|
@@ -614,3 +614,64 @@ static int n8x0_auto_voltage_scale(void)
|
|
|
static int n8x0_menelaus_late_init(struct device *dev)
|
|
|
{
|
|
|
int ret;
|
|
|
+
|
|
|
+ ret = n8x0_auto_voltage_scale();
|
|
|
+ if (ret < 0)
|
|
|
+ return ret;
|
|
|
+ ret = n8x0_auto_sleep_regulators();
|
|
|
+ if (ret < 0)
|
|
|
+ return ret;
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
+#else
|
|
|
+static int n8x0_menelaus_late_init(struct device *dev)
|
|
|
+{
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+#endif
|
|
|
+
|
|
|
+static struct menelaus_platform_data n8x0_menelaus_platform_data __initdata = {
|
|
|
+ .late_init = n8x0_menelaus_late_init,
|
|
|
+};
|
|
|
+
|
|
|
+static struct i2c_board_info __initdata n8x0_i2c_board_info_1[] __initdata = {
|
|
|
+ {
|
|
|
+ I2C_BOARD_INFO("menelaus", 0x72),
|
|
|
+ .irq = 7 + OMAP_INTC_START,
|
|
|
+ .platform_data = &n8x0_menelaus_platform_data,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static struct aic3x_pdata n810_aic33_data __initdata = {
|
|
|
+ .gpio_reset = 118,
|
|
|
+};
|
|
|
+
|
|
|
+static struct i2c_board_info n810_i2c_board_info_2[] __initdata = {
|
|
|
+ {
|
|
|
+ I2C_BOARD_INFO("tlv320aic3x", 0x18),
|
|
|
+ .platform_data = &n810_aic33_data,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+#ifdef CONFIG_OMAP_MUX
|
|
|
+static struct omap_board_mux board_mux[] __initdata = {
|
|
|
+ /* I2S codec port pins for McBSP block */
|
|
|
+ OMAP2420_MUX(EAC_AC_SCLK, OMAP_MUX_MODE1 | OMAP_PIN_INPUT),
|
|
|
+ OMAP2420_MUX(EAC_AC_FS, OMAP_MUX_MODE1 | OMAP_PIN_INPUT),
|
|
|
+ OMAP2420_MUX(EAC_AC_DIN, OMAP_MUX_MODE1 | OMAP_PIN_INPUT),
|
|
|
+ OMAP2420_MUX(EAC_AC_DOUT, OMAP_MUX_MODE1 | OMAP_PIN_OUTPUT),
|
|
|
+ { .reg_offset = OMAP_MUX_TERMINATOR },
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_device_pad serial2_pads[] __initdata = {
|
|
|
+ {
|
|
|
+ .name = "uart3_rx_irrx.uart3_rx_irrx",
|
|
|
+ .flags = OMAP_DEVICE_PAD_REMUX | OMAP_DEVICE_PAD_WAKEUP,
|
|
|
+ .enable = OMAP_MUX_MODE0,
|
|
|
+ .idle = OMAP_MUX_MODE3 /* Mux as GPIO for idle */
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
+static inline void board_serial_init(void)
|
|
|
+{
|