mvebu: Move BOOTROM_ERR_REG out of CONFIG namespace
authorTom Rini <trini@konsulko.com>
Wed, 30 Mar 2022 22:07:12 +0000 (18:07 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 8 Apr 2022 13:05:19 +0000 (09:05 -0400)
This register is referenced in one location and does not seem
configurable, so remove it from CONFIG namespace.

Cc: Stefan Roese <sr@denx.de>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/arm/mach-mvebu/cpu.c
arch/arm/mach-mvebu/include/mach/soc.h

index 0272dd7..1e89377 100644 (file)
@@ -91,7 +91,7 @@ u32 get_boot_device(void)
         * be done, via the bootrom error register. Here the
         * MSB marks if the UART mode is active.
         */
-       val = readl(CONFIG_BOOTROM_ERR_REG);
+       val = readl(BOOTROM_ERR_REG);
        boot_device = (val & BOOTROM_ERR_MODE_MASK) >> BOOTROM_ERR_MODE_OFFS;
        debug("BOOTROM_REG=0x%08x boot_device=0x%x\n", val, boot_device);
        if (boot_device == BOOTROM_ERR_MODE_UART)
index aab61f7..3b96188 100644 (file)
 #define COMPHY_REFCLK_ALIGNMENT        (MVEBU_REGISTER(0x182f8))
 
 /* BootROM error register (also includes some status infos) */
-#define CONFIG_BOOTROM_ERR_REG (MVEBU_REGISTER(0x182d0))
+#define BOOTROM_ERR_REG                (MVEBU_REGISTER(0x182d0))
 #define BOOTROM_ERR_MODE_OFFS  28
 #define BOOTROM_ERR_MODE_MASK  (0xf << BOOTROM_ERR_MODE_OFFS)
 #define BOOTROM_ERR_MODE_UART  0x6