]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm64: a37xx: remove old pinctrl implementation
authorKen Ma <make@marvell.com>
Mon, 26 Mar 2018 07:56:07 +0000 (15:56 +0800)
committerStefan Roese <sr@denx.de>
Fri, 30 Mar 2018 10:52:48 +0000 (12:52 +0200)
Since the new pinctrl/gpio driver is used, so this patch removes
the old board specific pin control settings.

Cc: Simon Glass <sjg@chromium.org>
Cc: Stefan Roese <sr@denx.de>
Signed-off-by: Ken Ma <make@marvell.com>
Signed-off-by: Stefan Roese <sr@denx.de>
board/Marvell/mvebu_armada-37xx/board.c

index ac3e3a392fc2c73e299741d78bcce585679a531b..e20539624bafcd18becf9e9a0c668404336c3808 100644 (file)
@@ -50,29 +50,6 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int board_early_init_f(void)
 {
-       const void *blob = gd->fdt_blob;
-       const char *bank_name;
-       const char *compat = "marvell,armada-3700-pinctl";
-       int off, len;
-       void __iomem *addr;
-
-       /* FIXME
-        * Temporary WA for setting correct pin control values
-        * until the real pin control driver is awailable.
-        */
-       off = fdt_node_offset_by_compatible(blob, -1, compat);
-       while (off != -FDT_ERR_NOTFOUND) {
-               bank_name = fdt_getprop(blob, off, "bank-name", &len);
-               addr = (void __iomem *)fdtdec_get_addr_size_auto_noparent(
-                               blob, off, "reg", 0, NULL, true);
-               if (!strncmp(bank_name, "armada-3700-nb", len))
-                       writel(PINCTRL_NB_REG_VALUE, addr);
-               else if (!strncmp(bank_name, "armada-3700-sb", len))
-                       writel(PINCTRL_SB_REG_VALUE, addr);
-
-               off = fdt_node_offset_by_compatible(blob, off, compat);
-       }
-
        return 0;
 }