summaryrefslogtreecommitdiffstats
path: root/board
diff options
context:
space:
mode:
authorLuotao Fu <l.fu@pengutronix.de>2009-06-25 16:21:10 +0200
committerLuotao Fu <l.fu@pengutronix.de>2009-06-25 16:21:16 +0200
commite212343c40c06695726df4a6a44cac61c0b6d4ac (patch)
tree20ecb82c5ac51d2ed3e5cab70981f8276d2893e5 /board
parentd5ec92129e1c67ac86e92c22d54bb090fb00d616 (diff)
downloadbarebox-e212343c40c06695726df4a6a44cac61c0b6d4ac.tar.gz
barebox-e212343c40c06695726df4a6a44cac61c0b6d4ac.tar.xz
pca100: deactive usb phy cs
this one pull up the gpio controlled cs lines of both usb phys to avoid phy crash caused by dirty data sent by usb controller during initialisation Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
Diffstat (limited to 'board')
-rw-r--r--board/phycard-i.MX27/pca100.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/phycard-i.MX27/pca100.c b/board/phycard-i.MX27/pca100.c
index eec6dd761f..0468c3a0cb 100644
--- a/board/phycard-i.MX27/pca100.c
+++ b/board/phycard-i.MX27/pca100.c
@@ -36,6 +36,7 @@
#include <asm/io.h>
#include <asm/arch/imx-nand.h>
#include <asm/arch/imx-pll.h>
+#include <gpio.h>
static struct device_d sdram_dev = {
.name = "ram",
@@ -112,6 +113,12 @@ static int pca100_devices_init(void)
for (i = 0; i < ARRAY_SIZE(mode); i++)
imx_gpio_mode(mode[i]);
+ /* disable the usb phys */
+ imx_gpio_mode((GPIO_PORTB | 23) | GPIO_GPIO | GPIO_IN);
+ imx_gpio_direction_output(GPIO_PORTB + 23, 1);
+ imx_gpio_mode((GPIO_PORTB | 24) | GPIO_GPIO | GPIO_IN);
+ imx_gpio_direction_output(GPIO_PORTB + 24, 1);
+
register_device(&nand_dev);
register_device(&sdram_dev);
register_device(&fec_dev);