]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Convert CONFIG_NORFLASH_PS32BIT to Kconfig
authorTom Rini <trini@konsulko.com>
Thu, 24 Mar 2022 21:18:04 +0000 (17:18 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 1 Apr 2022 14:28:47 +0000 (10:28 -0400)
This converts the following to Kconfig:
   CONFIG_NORFLASH_PS32BIT

Note that we also attempt to correct the behavior of the code here,
which had been testing for "NORFLASH_PS32BIT" which would never be set,
instead check for the now set "CONFIG_NORFLASH_PS32BIT", which results
in some behavior change.

Cc: TsiChung Liew <Tsi-Chung.Liew@nxp.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
board/freescale/m5235evb/Kconfig
configs/M5235EVB_Flash32_defconfig
include/configs/M5235EVB.h

index fc8341999aa0129c7d10ef1e8252c86d725bcabb..f0d4c8c7964de3d88f67518a4ed221258bb96e6e 100644 (file)
@@ -12,4 +12,7 @@ config SYS_VENDOR
 config SYS_CONFIG_NAME
        default "M5235EVB"
 
+config NORFLASH_PS32BIT
+       bool "Board has 32bit CFI flash"
+
 endif
index 8d43b45c4cbac7d4d92e0ed8311cf611f7fdb5bb..f0077b67a9065bf3f74869202976ceb172f62e98 100644 (file)
@@ -5,9 +5,9 @@ CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_SECT_SIZE=0x2000
 CONFIG_DEFAULT_DEVICE_TREE="M5235EVB_Flash32"
 CONFIG_TARGET_M5235EVB=y
+CONFIG_NORFLASH_PS32BIT=y
 CONFIG_MCFTMR=y
 CONFIG_SYS_LOAD_ADDR=0x20000
-CONFIG_SYS_EXTRA_OPTIONS="NORFLASH_PS32BIT"
 CONFIG_BOOTDELAY=1
 # CONFIG_DISPLAY_BOARDINFO is not set
 # CONFIG_CMDLINE_EDITING is not set
index e2f336750d59a7738f5833ec83022cc200921a5a..625fa01355ecfdc79f78f0fc79aa3b393b3a84e8 100644 (file)
  */
 #ifdef CONFIG_SYS_FLASH_CFI
 #      define CONFIG_SYS_FLASH_SIZE            0x800000        /* Max size that the board might have */
-#ifdef NORFLASH_PS32BIT
+#ifdef CONFIG_NORFLASH_PS32BIT
 #      define CONFIG_SYS_FLASH_CFI_WIDTH       FLASH_CFI_32BIT
 #else
 #      define CONFIG_SYS_FLASH_CFI_WIDTH       FLASH_CFI_16BIT
  * CS6 - Available
  * CS7 - Available
  */
-#ifdef NORFLASH_PS32BIT
+#ifdef CONFIG_NORFLASH_PS32BIT
 #      define CONFIG_SYS_CS0_BASE      0xFFC00000
 #      define CONFIG_SYS_CS0_MASK      0x003f0001
 #      define CONFIG_SYS_CS0_CTRL      0x00001D00