summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: aa20d16)
raw | patch | inline | side by side (parent: aa20d16)
author | Hebbar, Gururaja <gururaja.hebbar@ti.com> | |
Tue, 31 Jan 2012 03:43:38 +0000 (09:13 +0530) | ||
committer | Hebbar, Gururaja <gururaja.hebbar@ti.com> | |
Tue, 31 Jan 2012 05:42:10 +0000 (11:12 +0530) |
Beaglebone uses i2c2 to detect expansion cards. This patch registers
i2c2 device along with setting up pin-muxes
Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
i2c2 device along with setting up pin-muxes
Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
arch/arm/mach-omap2/board-am335xevm.c | patch | blob | history |
index 4c09cc97d13e2da1e598ffdbeb335b67f773f2be..8aa7e1072b6e87ae27878609fe655a73bed2daa1 100644 (file)
{NULL, 0},
};
+static struct pinmux_config i2c2_pin_mux[] = {
+ {"uart1_ctsn.i2c2_sda", OMAP_MUX_MODE3 | AM33XX_SLEWCTRL_SLOW |
+ AM33XX_PULL_UP | AM33XX_INPUT_EN},
+ {"uart1_rtsn.i2c2_scl", OMAP_MUX_MODE3 | AM33XX_SLEWCTRL_SLOW |
+ AM33XX_PULL_UP | AM33XX_INPUT_EN},
+ {NULL, 0},
+};
+
/* Module pin mux for mcasp1 */
static struct pinmux_config mcasp1_pin_mux[] = {
{"mii1_crs.mcasp1_aclkx", OMAP_MUX_MODE4 | AM33XX_PIN_INPUT_PULLDOWN},
return;
}
+
+static struct i2c_board_info am335x_i2c_boardinfo2[] = {
+};
+
+static void i2c2_init(int evm_id, int profile)
+{
+ setup_pin_mux(i2c2_pin_mux);
+ omap_register_i2c_bus(3, 100, am335x_i2c_boardinfo2,
+ ARRAY_SIZE(am335x_i2c_boardinfo2));
+ return;
+}
+
/* Setup McASP 1 */
static void mcasp1_init(int evm_id, int profile)
{
{usb0_init, DEV_ON_BASEBOARD, PROFILE_NONE},
{usb1_init, DEV_ON_BASEBOARD, PROFILE_NONE},
{mmc0_init, DEV_ON_BASEBOARD, PROFILE_NONE},
+ {i2c2_init, DEV_ON_BASEBOARD, PROFILE_NONE},
{NULL, 0, 0},
};
{usb0_init, DEV_ON_BASEBOARD, PROFILE_NONE},
{usb1_init, DEV_ON_BASEBOARD, PROFILE_NONE},
{mmc0_init, DEV_ON_BASEBOARD, PROFILE_NONE},
+ {i2c2_init, DEV_ON_BASEBOARD, PROFILE_NONE},
{NULL, 0, 0},
};