aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r--arch/arm/mach-omap2/Kconfig2
-rw-r--r--arch/arm/mach-omap2/board-omap4panda.c16
2 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig
index 39229cf72c4b..186d270344e8 100644
--- a/arch/arm/mach-omap2/Kconfig
+++ b/arch/arm/mach-omap2/Kconfig
@@ -290,6 +290,8 @@ config MACH_OMAP4_PANDA
290 bool "OMAP4 Panda Board" 290 bool "OMAP4 Panda Board"
291 default y 291 default y
292 depends on ARCH_OMAP4 292 depends on ARCH_OMAP4
293 select OMAP_PACKAGE_CBL
294 select OMAP_PACKAGE_CBS
293 295
294config OMAP3_EMU 296config OMAP3_EMU
295 bool "OMAP3 debugging peripherals" 297 bool "OMAP3 debugging peripherals"
diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c
index 1ecd0a6cefb7..801f8146b00c 100644
--- a/arch/arm/mach-omap2/board-omap4panda.c
+++ b/arch/arm/mach-omap2/board-omap4panda.c
@@ -40,6 +40,7 @@
40 40
41#include "hsmmc.h" 41#include "hsmmc.h"
42#include "control.h" 42#include "control.h"
43#include "mux.h"
43 44
44#define GPIO_HUB_POWER 1 45#define GPIO_HUB_POWER 1
45#define GPIO_HUB_NRESET 62 46#define GPIO_HUB_NRESET 62
@@ -368,8 +369,23 @@ static int __init omap4_panda_i2c_init(void)
368 omap_register_i2c_bus(4, 400, NULL, 0); 369 omap_register_i2c_bus(4, 400, NULL, 0);
369 return 0; 370 return 0;
370} 371}
372
373#ifdef CONFIG_OMAP_MUX
374static struct omap_board_mux board_mux[] __initdata = {
375 { .reg_offset = OMAP_MUX_TERMINATOR },
376};
377#else
378#define board_mux NULL
379#endif
380
371static void __init omap4_panda_init(void) 381static void __init omap4_panda_init(void)
372{ 382{
383 int package = OMAP_PACKAGE_CBS;
384
385 if (omap_rev() == OMAP4430_REV_ES1_0)
386 package = OMAP_PACKAGE_CBL;
387 omap4_mux_init(board_mux, package);
388
373 omap4_panda_i2c_init(); 389 omap4_panda_i2c_init();
374 platform_add_devices(panda_devices, ARRAY_SIZE(panda_devices)); 390 platform_add_devices(panda_devices, ARRAY_SIZE(panda_devices));
375 omap_serial_init(); 391 omap_serial_init();