summaryrefslogtreecommitdiff
path: root/arch/arm/mach-keystone
diff options
context:
space:
mode:
authorMurali Karicheri <m-karicheri2@ti.com>2019-02-21 12:02:04 -0500
committerTom Rini <trini@konsulko.com>2019-04-12 08:05:46 -0400
commitf748ec9d328b95cc246c960c1cd6c6478b57e788 (patch)
tree79a042ac18eefd5464ec7dc7ed5394901c10071d /arch/arm/mach-keystone
parent55d5cb17282e1e5a15309975e0259a9438308197 (diff)
downloadu-boot-f748ec9d328b95cc246c960c1cd6c6478b57e788.tar.gz
u-boot-f748ec9d328b95cc246c960c1cd6c6478b57e788.tar.bz2
u-boot-f748ec9d328b95cc246c960c1cd6c6478b57e788.zip
ARM: k2g: add a workaround to reset the phy
This patch adds a workaround to reset the phy one time during boot using GPIO0 pin 10 to make sure, the Phy latches the configuration from the input pins correctly. Signed-off-by: Murali Karicheri <m-karicheri2@ti.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'arch/arm/mach-keystone')
-rw-r--r--arch/arm/mach-keystone/include/mach/hardware-k2g.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-keystone/include/mach/hardware-k2g.h b/arch/arm/mach-keystone/include/mach/hardware-k2g.h
index 8b902641ec..971c081bb3 100644
--- a/arch/arm/mach-keystone/include/mach/hardware-k2g.h
+++ b/arch/arm/mach-keystone/include/mach/hardware-k2g.h
@@ -69,9 +69,12 @@
#define K2G_GPIO0_BASE 0X02603000
#define K2G_GPIO1_BASE 0X0260a000
+#define K2G_GPIO0_BANK0_BASE K2G_GPIO0_BASE + 0x10
#define K2G_GPIO1_BANK2_BASE K2G_GPIO1_BASE + 0x38
#define K2G_GPIO_DIR_OFFSET 0x0
+#define K2G_GPIO_OUTDATA_OFFSET 0x4
#define K2G_GPIO_SETDATA_OFFSET 0x8
+#define K2G_GPIO_CLRDATA_OFFSET 0xC
/* BOOTCFG RESETMUX8 */
#define KS2_RSTMUX8 (KS2_DEVICE_STATE_CTRL_BASE + 0x328)