ram: k3-am654: Do not rely on default values for certain DDR register
[oweals/u-boot.git] / drivers / ram / mpc83xx_sdram.c
index 441baeb6f1a9e936e475902bd7d1138138a46c13..f03d0428b2aca57028356620edc564abf48da944 100644 (file)
@@ -169,8 +169,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 +179,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 +200,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 +210,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;