diff options
author | Robby Cai <R63905@freescale.com> | 2009-11-10 11:32:51 +0800 |
---|---|---|
committer | Robby Cai <R63905@freescale.com> | 2009-11-10 11:33:42 +0800 |
commit | 229cea817de0f8d2b99f8f75f153020c9a396b28 (patch) | |
tree | d8c53acaa2b3a0856be022e8ccbd5f57df741ba9 /arch/arm/mach-stmp378x | |
parent | 4b382939664ba18fd6e7e96f38aa3552366465b2 (diff) |
ENGR00118079-3 Add missed SPI platform_data for enternet
include GPIO pin for ethernet interrupt, etc.
Signed-off-by: Robby Cai <R63905@freescale.com>
Diffstat (limited to 'arch/arm/mach-stmp378x')
-rw-r--r-- | arch/arm/mach-stmp378x/stmp378x_devb.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/mach-stmp378x/stmp378x_devb.c b/arch/arm/mach-stmp378x/stmp378x_devb.c index 7fade7ed7f0a..fba9fe551d6f 100644 --- a/arch/arm/mach-stmp378x/stmp378x_devb.c +++ b/arch/arm/mach-stmp378x/stmp378x_devb.c @@ -303,6 +303,13 @@ static struct stmp3xxxmmc_platform_data mmc_data = { .write_uA = 70000, }; +extern int stmp37xx_spi_enc_init(void *); +extern int stmp37xx_spi_enc_release(void *); +static struct stmp37xx_spi_platform_data enc_data = { + .irq_pin = PINID_SSP1_DATA1, + .hw_init = stmp37xx_spi_enc_init, + .hw_release = stmp37xx_spi_enc_release, +}; static struct spi_board_info spi_board_info[] __initdata = { #if defined(CONFIG_ENC28J60) || defined(CONFIG_ENC28J60_MODULE) { @@ -310,7 +317,7 @@ static struct spi_board_info spi_board_info[] __initdata = { .max_speed_hz = 6 * 1000 * 1000, .bus_num = 1, .chip_select = 0, - .platform_data = NULL, + .platform_data = &enc_data, }, #endif }; |