]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
arm: rmobile: silk: Disable ethernet pins pull-up
authorVladimir Barinov <vladimir.barinov@cogentembedded.com>
Tue, 24 Feb 2015 16:54:31 +0000 (18:54 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 12:05:51 +0000 (14:05 +0200)
Disable pull-ups on ethrenet lines

Signed-off-by: Vladimir Barinov <vladimir.barinov+renesas@cogentembedded.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
board/renesas/silk/silk.c

index e12401053f84c9bc686321d2045d8826d1105184..c97a2a042fa1ea8b61838b6f03e7669be7e99a9b 100644 (file)
@@ -69,6 +69,11 @@ int board_early_init_f(void)
        return 0;
 }
 
+/* LSI pin pull-up control */
+#define PUPR3          0xe606010C
+#define PUPR3_ETH      0x006FF800
+#define PUPR1          0xe6060104
+#define PUPR1_DREQ0_N  (1 << 20)
 int board_init(void)
 {
        /* adress of boot parameters */
@@ -93,7 +98,10 @@ int board_init(void)
        gpio_request(GPIO_FN_IRQ8, NULL);
 
        /* PHY reset */
+       mstp_clrbits_le32(PUPR3, PUPR3, PUPR3_ETH);
        gpio_request(GPIO_GP_1_24, NULL);
+       mstp_clrbits_le32(PUPR1, PUPR1, PUPR1_DREQ0_N);
+
        gpio_direction_output(GPIO_GP_1_24, 0);
        mdelay(20);
        gpio_set_value(GPIO_GP_1_24, 1);