aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-omap4panda.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-12-12 15:14:06 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-12-12 15:14:06 -0500
commitcf4af01221579a4e895f43dbfc47598fbfc5a731 (patch)
treeadc48fdc6ffb9d3d2a32a0f83df9e66066549963 /arch/arm/mach-omap2/board-omap4panda.c
parentd027db132b395dabfac208e52a7e510e441bb9d2 (diff)
parent006309132f57ccc20dd69e971e2041ebd2cbb7e5 (diff)
Merge tag 'boards' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC board updates from Olof Johansson: "This branch contains a set of various board updates for ARM platforms. A few shmobile platforms that are stale have been removed, some defconfig updates for various boards selecting new features such as pinctrl subsystem support, and various updates enabling peripherals, etc." Fix up conflicts mostly as per Olof. * tag 'boards' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (58 commits) ARM: S3C64XX: Add dummy supplies for Glenfarclas LDOs ARM: S3C64XX: Add registration of WM2200 Bells device on Cragganmore ARM: kirkwood: Add Plat'Home OpenBlocks A6 support ARM: Dove: update defconfig ARM: Kirkwood: update defconfig for new boards arm: orion5x: add DT related options in defconfig arm: orion5x: convert 'LaCie Ethernet Disk mini v2' to Device Tree arm: orion5x: basic Device Tree support arm: orion5x: mechanical defconfig update ARM: kirkwood: Add support for the MPL CEC4 arm: kirkwood: add support for ZyXEL NSA310 ARM: Kirkwood: new board USI Topkick ARM: kirkwood: use gpio-fan DT binding on lsxl ARM: Kirkwood: add Netspace boards to defconfig ARM: kirkwood: DT board setup for Network Space Mini v2 ARM: kirkwood: DT board setup for Network Space Lite v2 ARM: kirkwood: DT board setup for Network Space v2 and parents leds: leds-ns2: add device tree binding ARM: Kirkwood: Enable the second I2C bus ARM: mmp: select pinctrl driver ...
Diffstat (limited to 'arch/arm/mach-omap2/board-omap4panda.c')
-rw-r--r--arch/arm/mach-omap2/board-omap4panda.c69
1 files changed, 1 insertions, 68 deletions
diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c
index 12a3a24d5bb5..5c8e9cee2c2e 100644
--- a/arch/arm/mach-omap2/board-omap4panda.c
+++ b/arch/arm/mach-omap2/board-omap4panda.c
@@ -37,9 +37,6 @@
37#include <asm/mach-types.h> 37#include <asm/mach-types.h>
38#include <asm/mach/arch.h> 38#include <asm/mach/arch.h>
39#include <asm/mach/map.h> 39#include <asm/mach/map.h>
40#include <video/omapdss.h>
41
42#include <video/omap-panel-tfp410.h>
43 40
44#include "common.h" 41#include "common.h"
45#include "soc.h" 42#include "soc.h"
@@ -48,14 +45,12 @@
48#include "control.h" 45#include "control.h"
49#include "mux.h" 46#include "mux.h"
50#include "common-board-devices.h" 47#include "common-board-devices.h"
48#include "dss-common.h"
51 49
52#define GPIO_HUB_POWER 1 50#define GPIO_HUB_POWER 1
53#define GPIO_HUB_NRESET 62 51#define GPIO_HUB_NRESET 62
54#define GPIO_WIFI_PMENA 43 52#define GPIO_WIFI_PMENA 43
55#define GPIO_WIFI_IRQ 53 53#define GPIO_WIFI_IRQ 53
56#define HDMI_GPIO_CT_CP_HPD 60 /* HPD mode enable/disable */
57#define HDMI_GPIO_LS_OE 41 /* Level shifter for HDMI */
58#define HDMI_GPIO_HPD 63 /* Hotplug detect */
59 54
60/* wl127x BT, FM, GPS connectivity chip */ 55/* wl127x BT, FM, GPS connectivity chip */
61static struct ti_st_plat_data wilink_platform_data = { 56static struct ti_st_plat_data wilink_platform_data = {
@@ -409,68 +404,6 @@ static struct omap_board_mux board_mux[] __initdata = {
409#define board_mux NULL 404#define board_mux NULL
410#endif 405#endif
411 406
412/* Display DVI */
413#define PANDA_DVI_TFP410_POWER_DOWN_GPIO 0
414
415/* Using generic display panel */
416static struct tfp410_platform_data omap4_dvi_panel = {
417 .i2c_bus_num = 3,
418 .power_down_gpio = PANDA_DVI_TFP410_POWER_DOWN_GPIO,
419};
420
421static struct omap_dss_device omap4_panda_dvi_device = {
422 .type = OMAP_DISPLAY_TYPE_DPI,
423 .name = "dvi",
424 .driver_name = "tfp410",
425 .data = &omap4_dvi_panel,
426 .phy.dpi.data_lines = 24,
427 .reset_gpio = PANDA_DVI_TFP410_POWER_DOWN_GPIO,
428 .channel = OMAP_DSS_CHANNEL_LCD2,
429};
430
431static struct omap_dss_hdmi_data omap4_panda_hdmi_data = {
432 .ct_cp_hpd_gpio = HDMI_GPIO_CT_CP_HPD,
433 .ls_oe_gpio = HDMI_GPIO_LS_OE,
434 .hpd_gpio = HDMI_GPIO_HPD,
435};
436
437static struct omap_dss_device omap4_panda_hdmi_device = {
438 .name = "hdmi",
439 .driver_name = "hdmi_panel",
440 .type = OMAP_DISPLAY_TYPE_HDMI,
441 .channel = OMAP_DSS_CHANNEL_DIGIT,
442 .data = &omap4_panda_hdmi_data,
443};
444
445static struct omap_dss_device *omap4_panda_dss_devices[] = {
446 &omap4_panda_dvi_device,
447 &omap4_panda_hdmi_device,
448};
449
450static struct omap_dss_board_info omap4_panda_dss_data = {
451 .num_devices = ARRAY_SIZE(omap4_panda_dss_devices),
452 .devices = omap4_panda_dss_devices,
453 .default_device = &omap4_panda_dvi_device,
454};
455
456static void __init omap4_panda_display_init(void)
457{
458
459 omap_display_init(&omap4_panda_dss_data);
460
461 /*
462 * OMAP4460SDP/Blaze and OMAP4430 ES2.3 SDP/Blaze boards and
463 * later have external pull up on the HDMI I2C lines
464 */
465 if (cpu_is_omap446x() || omap_rev() > OMAP4430_REV_ES2_2)
466 omap_hdmi_init(OMAP_HDMI_SDA_SCL_EXTERNAL_PULLUP);
467 else
468 omap_hdmi_init(0);
469
470 omap_mux_init_gpio(HDMI_GPIO_LS_OE, OMAP_PIN_OUTPUT);
471 omap_mux_init_gpio(HDMI_GPIO_CT_CP_HPD, OMAP_PIN_OUTPUT);
472 omap_mux_init_gpio(HDMI_GPIO_HPD, OMAP_PIN_INPUT_PULLDOWN);
473}
474 407
475static void omap4_panda_init_rev(void) 408static void omap4_panda_init_rev(void)
476{ 409{