diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2013-05-03 17:11:49 +0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-05-04 11:07:44 +0200 |
commit | f8e869c16f09c8cd4168025da47061bd1f1998e1 (patch) | |
tree | 8bfc868effd0555edc010bcdcc4aaf4078d97538 /arch | |
parent | e72bdf32d09b7137d1a623c1ca0da7df2e358662 (diff) | |
download | barebox-f8e869c16f09c8cd4168025da47061bd1f1998e1.tar.gz barebox-f8e869c16f09c8cd4168025da47061bd1f1998e1.tar.xz |
ARM: pcm038: Add definition for FEC reset
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/boards/pcm038/pcm038.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/boards/pcm038/pcm038.c b/arch/arm/boards/pcm038/pcm038.c index 4337f3e179..4b2fa6c6ca 100644 --- a/arch/arm/boards/pcm038/pcm038.c +++ b/arch/arm/boards/pcm038/pcm038.c @@ -46,6 +46,7 @@ #include "pll.h" +#define PCM038_GPIO_FEC_RST (GPIO_PORTC + 30) #define PCM038_GPIO_SPI_CS0 (GPIO_PORTD + 28) static struct fec_platform_data fec_info = { @@ -212,6 +213,7 @@ static int pcm038_devices_init(void) PD15_AOUT_FEC_COL, PD16_AIN_FEC_TX_ER, PF23_AIN_FEC_TX_EN, + PCM038_GPIO_FEC_RST | GPIO_GPIO | GPIO_OUT, /* UART1 */ PE12_PF_UART1_TXD, PE13_PF_UART1_RXD, @@ -303,6 +305,7 @@ static int pcm038_devices_init(void) /* Register the fec device after the PLL re-initialisation * as the fec depends on the (now higher) ipg clock */ + gpio_set_value(PCM038_GPIO_FEC_RST, 1); imx27_add_fec(&fec_info); switch (bootsource_get()) { |