Merge tag 'u-boot-imx-20200121' of https://gitlab.denx.de/u-boot/custodians/u-boot-imx
[oweals/u-boot.git] / drivers / ram / mpc83xx_sdram.c
index 441baeb6f1a9e936e475902bd7d1138138a46c13..46449d3d1229eb22ad5c08cfd91567fb1846241b 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <init.h>
 #include <ram.h>
 #include <dt-bindings/memory/mpc83xx-sdram.h>
 
@@ -169,8 +170,8 @@ static int mpc83xx_sdram_static_init(ofnode node, u32 cs, u32 mapaddr, u32 size)
        odt_rd_cfg = ofnode_read_u32_default(node, "odt_rd_cfg", 0);
        switch (odt_rd_cfg) {
        case ODT_RD_ONLY_OTHER_DIMM:
-               if (!IS_ENABLED(CONFIG_MPC8360) &&
-                   !IS_ENABLED(CONFIG_MPC837x)) {
+               if (!IS_ENABLED(CONFIG_ARCH_MPC8360) &&
+                   !IS_ENABLED(CONFIG_ARCH_MPC837X)) {
                        debug("%s: odt_rd_cfg value %d invalid.\n",
                              ofnode_get_name(node), odt_rd_cfg);
                        return -EINVAL;
@@ -179,10 +180,10 @@ static int mpc83xx_sdram_static_init(ofnode node, u32 cs, u32 mapaddr, u32 size)
        case ODT_RD_NEVER:
        case ODT_RD_ONLY_CURRENT:
        case ODT_RD_ONLY_OTHER_CS:
-               if (!IS_ENABLED(CONFIG_MPC830x) &&
-                   !IS_ENABLED(CONFIG_MPC831x) &&
-                   !IS_ENABLED(CONFIG_MPC8360) &&
-                   !IS_ENABLED(CONFIG_MPC837x)) {
+               if (!IS_ENABLED(CONFIG_ARCH_MPC830X) &&
+                   !IS_ENABLED(CONFIG_ARCH_MPC831X) &&
+                   !IS_ENABLED(CONFIG_ARCH_MPC8360) &&
+                   !IS_ENABLED(CONFIG_ARCH_MPC837X)) {
                        debug("%s: odt_rd_cfg value %d invalid.\n",
                              ofnode_get_name(node), odt_rd_cfg);
                        return -EINVAL;
@@ -200,8 +201,8 @@ static int mpc83xx_sdram_static_init(ofnode node, u32 cs, u32 mapaddr, u32 size)
        odt_wr_cfg = ofnode_read_u32_default(node, "odt_wr_cfg", 0);
        switch (odt_wr_cfg) {
        case ODT_WR_ONLY_OTHER_DIMM:
-               if (!IS_ENABLED(CONFIG_MPC8360) &&
-                   !IS_ENABLED(CONFIG_MPC837x)) {
+               if (!IS_ENABLED(CONFIG_ARCH_MPC8360) &&
+                   !IS_ENABLED(CONFIG_ARCH_MPC837X)) {
                        debug("%s: odt_wr_cfg value %d invalid.\n",
                              ofnode_get_name(node), odt_wr_cfg);
                        return -EINVAL;
@@ -210,10 +211,10 @@ static int mpc83xx_sdram_static_init(ofnode node, u32 cs, u32 mapaddr, u32 size)
        case ODT_WR_NEVER:
        case ODT_WR_ONLY_CURRENT:
        case ODT_WR_ONLY_OTHER_CS:
-               if (!IS_ENABLED(CONFIG_MPC830x) &&
-                   !IS_ENABLED(CONFIG_MPC831x) &&
-                   !IS_ENABLED(CONFIG_MPC8360) &&
-                   !IS_ENABLED(CONFIG_MPC837x)) {
+               if (!IS_ENABLED(CONFIG_ARCH_MPC830X) &&
+                   !IS_ENABLED(CONFIG_ARCH_MPC831X) &&
+                   !IS_ENABLED(CONFIG_ARCH_MPC8360) &&
+                   !IS_ENABLED(CONFIG_ARCH_MPC837X)) {
                        debug("%s: odt_wr_cfg value %d invalid.\n",
                              ofnode_get_name(node), odt_wr_cfg);
                        return -EINVAL;