Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260550
b: refs/heads/master
c: 8dd7b81
h: refs/heads/master
v: v3
  • Loading branch information
Andre Silva authored and Sascha Hauer committed Jul 7, 2011
1 parent f8f3a07 commit c86ac10
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b6a14477695e54da6621c6d3c72f019b8cddb89d
refs/heads/master: 8dd7b817a1135940406a3271346a4a8e39e2b87c
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-mx5/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ config MACH_MX53_ARD
bool "Support MX53 ARD platforms"
select SOC_IMX53
select IMX_HAVE_PLATFORM_IMX2_WDT
select IMX_HAVE_PLATFORM_IMX_I2C
select IMX_HAVE_PLATFORM_IMX_UART
select IMX_HAVE_PLATFORM_SDHCI_ESDHC_IMX
help
Expand Down
21 changes: 20 additions & 1 deletion trunk/arch/arm/mach-mx5/board-mx53_ard.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ static iomux_v3_cfg_t mx53_ard_pads[] = {
MX53_PAD_PATA_DATA11__ESDHC1_DAT7,
MX53_PAD_GPIO_1__GPIO1_1,
MX53_PAD_GPIO_9__GPIO1_9,
/* I2C2 */
MX53_PAD_EIM_EB2__I2C2_SCL,
MX53_PAD_KEY_ROW3__I2C2_SDA,
/* I2C3 */
MX53_PAD_GPIO_3__I2C3_SCL,
MX53_PAD_GPIO_16__I2C3_SDA,
};

static struct resource ard_smsc911x_resources[] = {
Expand Down Expand Up @@ -120,16 +126,27 @@ static const struct esdhc_platform_data mx53_ard_sd1_data __initconst = {
.wp_gpio = ARD_SD1_WP,
};

static struct imxi2c_platform_data mx53_ard_i2c2_data = {
.bitrate = 50000,
};

static struct imxi2c_platform_data mx53_ard_i2c3_data = {
.bitrate = 400000,
};

static void __init mx53_ard_io_init(void)
{
mxc_iomux_v3_setup_multiple_pads(mx53_ard_pads,
ARRAY_SIZE(mx53_ard_pads));

gpio_request(ARD_ETHERNET_INT_B, "eth-int-b");
gpio_direction_input(ARD_ETHERNET_INT_B);

gpio_request(ARD_I2CPORTEXP_B, "i2cptexp-rst");
gpio_direction_output(ARD_I2CPORTEXP_B, 1);
}

/* Config CS1 settings for ethernet controller */
/* Config CS1 settings for ethernet controller */
static int weim_cs_config(void)
{
u32 reg;
Expand Down Expand Up @@ -179,6 +196,8 @@ static void __init mx53_ard_board_init(void)

imx53_add_sdhci_esdhc_imx(0, &mx53_ard_sd1_data);
imx53_add_imx2_wdt(0, NULL);
imx53_add_imx_i2c(1, &mx53_ard_i2c2_data);
imx53_add_imx_i2c(2, &mx53_ard_i2c3_data);
}

static void __init mx53_ard_timer_init(void)
Expand Down

0 comments on commit c86ac10

Please sign in to comment.