]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
ARM: uniphier: remove IRQ settings
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 24 Nov 2017 15:25:32 +0000 (00:25 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 28 Nov 2017 15:28:59 +0000 (00:28 +0900)
This work-around has been here in U-Boot because the AIDET and GPIO
drivers were missing in the upstream Linux.  Both are now available
in Linus' tree:
  - drivers/irqchip/irq-uniphier-aidet.c
  - drivers/gpio/gpio-uniphier.c

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/arm/mach-uniphier/board_init.c

index a6ee22e3392d77d8720d50b6cadc693e88fba6fd..28784ea631b87d441e2971f43fdfc8ac743ec803 100644 (file)
 
 DECLARE_GLOBAL_DATA_PTR;
 
-static void uniphier_setup_xirq(void)
-{
-       const void *fdt = gd->fdt_blob;
-       int soc_node, aidet_node;
-       const fdt32_t *val;
-       unsigned long aidet_base;
-       u32 tmp;
-
-       soc_node = fdt_path_offset(fdt, "/soc");
-       if (soc_node < 0)
-               return;
-
-       aidet_node = fdt_subnode_offset_namelen(fdt, soc_node, "aidet", 5);
-       if (aidet_node < 0)
-               return;
-
-       val = fdt_getprop(fdt, aidet_node, "reg", NULL);
-       if (!val)
-               return;
-
-       aidet_base = fdt32_to_cpu(*val);
-
-       tmp = readl(aidet_base + 8);    /* AIDET DETCONFR2 */
-       tmp |= 0x00ff0000;              /* Set XIRQ0-7 low active */
-       writel(tmp, aidet_base + 8);
-
-       tmp = readl(0x55000090);        /* IRQCTL */
-       tmp |= 0x000000ff;
-       writel(tmp, 0x55000090);
-}
-
 #ifdef CONFIG_ARCH_UNIPHIER_LD11
 static void uniphier_ld11_misc_init(void)
 {
@@ -192,10 +161,6 @@ int board_init(void)
 
        led_puts("U3");
 
-       uniphier_setup_xirq();
-
-       led_puts("U4");
-
        support_card_late_init();
 
        led_puts("Uboo");