|
@@ -40,6 +40,7 @@
|
|
|
|
|
|
#include "hsmmc.h"
|
|
|
#include "control.h"
|
|
|
+#include "mux.h"
|
|
|
|
|
|
#define GPIO_HUB_POWER 1
|
|
|
#define GPIO_HUB_NRESET 62
|
|
@@ -368,8 +369,23 @@ static int __init omap4_panda_i2c_init(void)
|
|
|
omap_register_i2c_bus(4, 400, NULL, 0);
|
|
|
return 0;
|
|
|
}
|
|
|
+
|
|
|
+#ifdef CONFIG_OMAP_MUX
|
|
|
+static struct omap_board_mux board_mux[] __initdata = {
|
|
|
+ { .reg_offset = OMAP_MUX_TERMINATOR },
|
|
|
+};
|
|
|
+#else
|
|
|
+#define board_mux NULL
|
|
|
+#endif
|
|
|
+
|
|
|
static void __init omap4_panda_init(void)
|
|
|
{
|
|
|
+ int package = OMAP_PACKAGE_CBS;
|
|
|
+
|
|
|
+ if (omap_rev() == OMAP4430_REV_ES1_0)
|
|
|
+ package = OMAP_PACKAGE_CBL;
|
|
|
+ omap4_mux_init(board_mux, package);
|
|
|
+
|
|
|
omap4_panda_i2c_init();
|
|
|
platform_add_devices(panda_devices, ARRAY_SIZE(panda_devices));
|
|
|
omap_serial_init();
|