]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Convert CONFIG_SYS_I2C_EEPROM_CCID et al to Kconfig
authorTom Rini <trini@konsulko.com>
Wed, 10 Aug 2022 14:29:27 +0000 (10:29 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 1 Sep 2022 21:18:42 +0000 (17:18 -0400)
This converts the following to Kconfig:
   CONFIG_SYS_I2C_EEPROM_CCID
   CONFIG_SYS_I2C_EEPROM_NXID
   CONFIG_SYS_EEPROM_BUS_NUM

Signed-off-by: Tom Rini <trini@konsulko.com>
38 files changed:
common/Kconfig
configs/MPC8548CDS_36BIT_defconfig
configs/MPC8548CDS_defconfig
configs/MPC8548CDS_legacy_defconfig
configs/ls1021atwr_nor_SECURE_BOOT_defconfig
configs/ls1021atwr_nor_defconfig
configs/ls1021atwr_nor_lpuart_defconfig
configs/ls1021atwr_qspi_defconfig
configs/ls1021atwr_sdcard_ifc_SECURE_BOOT_defconfig
configs/ls1021atwr_sdcard_ifc_defconfig
configs/ls1021atwr_sdcard_qspi_defconfig
include/configs/MPC8548CDS.h
include/configs/P1010RDB.h
include/configs/P2041RDB.h
include/configs/T102xRDB.h
include/configs/T208xQDS.h
include/configs/T208xRDB.h
include/configs/corenet_ds.h
include/configs/ls1012aqds.h
include/configs/ls1021aiot.h
include/configs/ls1021aqds.h
include/configs/ls1021atsn.h
include/configs/ls1021atwr.h
include/configs/ls1028a_common.h
include/configs/ls1043aqds.h
include/configs/ls1043ardb.h
include/configs/ls1046afrwy.h
include/configs/ls1046aqds.h
include/configs/ls1046ardb.h
include/configs/ls1088aqds.h
include/configs/ls1088ardb.h
include/configs/ls2080aqds.h
include/configs/ls2080ardb.h
include/configs/lx2160a_common.h
include/configs/lx2160aqds.h
include/configs/lx2160ardb.h
include/configs/lx2162aqds.h
include/configs/sifive-unmatched.h

index e7914ca750a3eb601a5d060aa31ad0c93ac07c24..2c3f7f4274d295af73ddf4209540dba50c7ef3e0 100644 (file)
@@ -671,6 +671,27 @@ config ID_EEPROM
          A number of different systems and vendors enable a vendor-specified
          EEPROM that contains various identifying features.
 
+config SYS_EEPROM_BUS_NUM
+       int "I2C bus number of the system identifier EEPROM"
+       depends on ID_EEPROM
+       default 0
+
+choice
+       prompt "EEPROM starts with 'CCID' or 'NXID'"
+       depends on ID_EEPROM && (PPC || ARCH_LS1021A || FSL_LAYERSCAPE)
+       default SYS_I2C_EEPROM_NXID
+       help
+         Specify if the Freescale / NXP ID EEPROM starts with 'CCID' or 'NXID'
+         ASCII literal string.
+
+config SYS_I2C_EEPROM_CCID
+       bool "EEPROM starts with 'CCID'"
+
+config SYS_I2C_EEPROM_NXID
+       bool "EEPROM starts with 'NXID'"
+
+endchoice
+
 config PCI_INIT_R
        bool "Enumerate PCI buses during init"
        depends on PCI
index def5d6fdf44b2bc0602d30af7dd366ff4440f1f3..feb0be5a49497952a913092d4cacc55ff1447d45 100644 (file)
@@ -21,6 +21,7 @@ CONFIG_USE_BOOTCOMMAND=y
 CONFIG_BOOTCOMMAND="setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off console=$consoledev,$baudrate $othbootargs;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr"
 # CONFIG_MISC_INIT_R is not set
 CONFIG_ID_EEPROM=y
+CONFIG_SYS_I2C_EEPROM_CCID=y
 CONFIG_HUSH_PARSER=y
 CONFIG_SYS_PBSIZE=276
 CONFIG_CMD_IMLS=y
index 881fca912b9b2f3a557ad36b0e56f2d60e0b0458..945347941b41c73a3dea08ed2c7fe22213b7478c 100644 (file)
@@ -20,6 +20,7 @@ CONFIG_USE_BOOTCOMMAND=y
 CONFIG_BOOTCOMMAND="setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off console=$consoledev,$baudrate $othbootargs;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr"
 # CONFIG_MISC_INIT_R is not set
 CONFIG_ID_EEPROM=y
+CONFIG_SYS_I2C_EEPROM_CCID=y
 CONFIG_HUSH_PARSER=y
 CONFIG_SYS_PBSIZE=276
 CONFIG_CMD_IMLS=y
index 99a63300af9080a29c567c21454a933cfcf7e2e4..f069451697dd915ccf7c7032998b5c8c53900955 100644 (file)
@@ -21,6 +21,7 @@ CONFIG_USE_BOOTCOMMAND=y
 CONFIG_BOOTCOMMAND="setenv bootargs root=/dev/nfs rw nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off console=$consoledev,$baudrate $othbootargs;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr"
 # CONFIG_MISC_INIT_R is not set
 CONFIG_ID_EEPROM=y
+CONFIG_SYS_I2C_EEPROM_CCID=y
 CONFIG_HUSH_PARSER=y
 CONFIG_SYS_PBSIZE=276
 CONFIG_CMD_IMLS=y
index e385ea47aa1333f8eefa903210ffa0a9f8395111..f66aacc991271901596cf3dfc5fd4cc7cb8f36b5 100644 (file)
@@ -33,6 +33,7 @@ CONFIG_SILENT_CONSOLE=y
 CONFIG_SYS_CONSOLE_IS_IN_ENV=y
 CONFIG_MISC_INIT_R=y
 CONFIG_ID_EEPROM=y
+CONFIG_SYS_EEPROM_BUS_NUM=1
 CONFIG_SYS_CBSIZE=256
 CONFIG_SYS_PBSIZE=276
 CONFIG_SYS_BOOTM_LEN=0x4000000
index 1d4e57c6eda4f97b5127638298886ef10249f11b..110cf5d3d2b698a790bead990fbacc43160865bd 100644 (file)
@@ -34,6 +34,7 @@ CONFIG_SYS_CONSOLE_IS_IN_ENV=y
 CONFIG_ARCH_MISC_INIT=y
 CONFIG_MISC_INIT_R=y
 CONFIG_ID_EEPROM=y
+CONFIG_SYS_EEPROM_BUS_NUM=1
 CONFIG_SYS_CBSIZE=256
 CONFIG_SYS_PBSIZE=276
 CONFIG_SYS_BOOTM_LEN=0x4000000
index 391f46459fa280ca9ff59ae22bf3f6926caab762..9d8dbbf043b77f10f3408a1053c1a9e1a19fae5b 100644 (file)
@@ -34,6 +34,7 @@ CONFIG_SYS_CONSOLE_IS_IN_ENV=y
 CONFIG_ARCH_MISC_INIT=y
 CONFIG_MISC_INIT_R=y
 CONFIG_ID_EEPROM=y
+CONFIG_SYS_EEPROM_BUS_NUM=1
 CONFIG_SYS_CBSIZE=256
 CONFIG_SYS_PBSIZE=276
 CONFIG_SYS_BOOTM_LEN=0x4000000
index 3b37641c6ae02cad2e4e0d05ced6542b94910a63..039c9842e99f27a63747de8e0726f3293cdc9b38 100644 (file)
@@ -35,6 +35,7 @@ CONFIG_SYS_CONSOLE_IS_IN_ENV=y
 CONFIG_ARCH_MISC_INIT=y
 CONFIG_MISC_INIT_R=y
 CONFIG_ID_EEPROM=y
+CONFIG_SYS_EEPROM_BUS_NUM=1
 CONFIG_SYS_CBSIZE=256
 CONFIG_SYS_PBSIZE=276
 CONFIG_SYS_BOOTM_LEN=0x4000000
index 38c074d158079d30540747783dc438113462cfe1..a916959d57cc9db8e41fd9949ebab85a3e2f32af 100644 (file)
@@ -43,6 +43,7 @@ CONFIG_SILENT_CONSOLE=y
 CONFIG_SYS_CONSOLE_IS_IN_ENV=y
 CONFIG_MISC_INIT_R=y
 CONFIG_ID_EEPROM=y
+CONFIG_SYS_EEPROM_BUS_NUM=1
 CONFIG_SPL_MAX_SIZE=0x1a000
 CONFIG_SPL_PAD_TO=0x1c000
 CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
index 3dd08712131c6bd1ea8b29d7f7d716034ec017e5..65f033aed95110ffe1cb43a2c406982c432be157 100644 (file)
@@ -44,6 +44,7 @@ CONFIG_SYS_CONSOLE_IS_IN_ENV=y
 CONFIG_ARCH_MISC_INIT=y
 CONFIG_MISC_INIT_R=y
 CONFIG_ID_EEPROM=y
+CONFIG_SYS_EEPROM_BUS_NUM=1
 CONFIG_SPL_MAX_SIZE=0x1a000
 CONFIG_SPL_PAD_TO=0x1c000
 CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
index 84722b01e85b9a52c67cce5cbbd237d7d42697b7..45c917972701ea23ef247c18cd7f1e1c66c8b581 100644 (file)
@@ -45,6 +45,7 @@ CONFIG_SYS_CONSOLE_IS_IN_ENV=y
 CONFIG_ARCH_MISC_INIT=y
 CONFIG_MISC_INIT_R=y
 CONFIG_ID_EEPROM=y
+CONFIG_SYS_EEPROM_BUS_NUM=1
 CONFIG_SPL_MAX_SIZE=0x1a000
 CONFIG_SPL_PAD_TO=0x1c000
 CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
index 0c710ef8865cec1c321172ef2cb9c2d09157964e..eb7a8351794bf0024d97e6df19c4a5a22d8a7f82 100644 (file)
 #define CONFIG_SYS_I2C_NOPROBES                { {0, 0x69} }
 #endif
 
-/* EEPROM */
-#define CONFIG_SYS_I2C_EEPROM_CCID
-
 /*
  * General PCI
  * Memory space is mapped 1-1, but I/O space must start from 0.
index 7f5eaf88aa4cbc16e06592b178bb8417030a9879..8492a64d439254629271f1149869df909d270f98 100644 (file)
@@ -351,10 +351,6 @@ extern unsigned long get_sdram_size(void);
 
 /* I2C EEPROM */
 #if defined(CONFIG_TARGET_P1010RDB_PB)
-#ifdef CONFIG_ID_EEPROM
-#define CONFIG_SYS_I2C_EEPROM_NXID
-#endif
-#define CONFIG_SYS_EEPROM_BUS_NUM      0
 #define MAX_NUM_PORTS                  9 /* for 128Bytes EEPROM */
 #endif
 /* enable read and write access to EEPROM */
index 11a3db590259d0220d07447b2e15887fd92058b3..925720d234099854cb4966c540b1f5591d5678b5 100644 (file)
 #define CONFIG_SYS_DCSRBAR_PHYS                0xf00000000ull
 #endif
 
-/* EEPROM */
-#define CONFIG_SYS_I2C_EEPROM_NXID
-#define CONFIG_SYS_EEPROM_BUS_NUM      0
-
 /*
  * DDR Setup
  */
index a5461d7fc6853a7398d6320348c061ef9fa6d303..e0aa2b9598cfba0e62468f5fa1e8fe40ba2ac1f3 100644 (file)
 #define CONFIG_SYS_DCSRBAR_PHYS                0xf00000000ull
 #endif
 
-/* EEPROM */
-#define CONFIG_SYS_I2C_EEPROM_NXID
-#define CONFIG_SYS_EEPROM_BUS_NUM      0
-
 /*
  * DDR Setup
  */
index fc068c94a9ea61126971c720afee58bbf90f4a5b..e852fc4cdc8ff29e1fe01e178aba78f0ed6b0720 100644 (file)
 #define CONFIG_SYS_DCSRBAR     0xf0000000
 #define CONFIG_SYS_DCSRBAR_PHYS        0xf00000000ull
 
-/* EEPROM */
-#define CONFIG_SYS_I2C_EEPROM_NXID
-#define CONFIG_SYS_EEPROM_BUS_NUM      0
-
 /*
  * DDR Setup
  */
index 056e2d1925ba517efac910fe440fde11df3fff08..68cf13581ade6beaaf7ff629d20b1e50b4994d10 100644 (file)
 #define CONFIG_SYS_DCSRBAR     0xf0000000
 #define CONFIG_SYS_DCSRBAR_PHYS        0xf00000000ull
 
-/* EEPROM */
-#define CONFIG_SYS_I2C_EEPROM_NXID
-#define CONFIG_SYS_EEPROM_BUS_NUM      0
-
 /*
  * DDR Setup
  */
index 7e65b2b6aa226e03eabd00f35b882cc5e8ac052c..6ee5ec09629bc0c6b07d95cf356fb12022ffaafd 100644 (file)
 #define CONFIG_SYS_DCSRBAR_PHYS                0xf00000000ull
 #endif
 
-/* EEPROM */
-#define CONFIG_SYS_I2C_EEPROM_NXID
-#define CONFIG_SYS_EEPROM_BUS_NUM      0
-
 /*
  * DDR Setup
  */
index 48fe8288aa187df8dbfd0f6383e2996a469c4d03..9ad3a1201183fd4e988a3e59965de1ac89d63ee5 100644 (file)
 #define RTC
 #define CONFIG_SYS_I2C_RTC_ADDR         0x51  /* Channel 3*/
 
-/* EEPROM */
-#define CONFIG_SYS_I2C_EEPROM_NXID
-#define CONFIG_SYS_EEPROM_BUS_NUM    0
-
 
 /* Voltage monitor on channel 2*/
 #define I2C_VOL_MONITOR_ADDR           0x40
index ec688741a07e9e1f80edba72efb64906e844daab..f418c8ccf714807e0ffb48630871c98bdc48be5b 100644 (file)
  * I2C
  */
 
-/* EEPROM */
-#define CONFIG_SYS_I2C_EEPROM_NXID
-#define CONFIG_SYS_EEPROM_BUS_NUM              0
-
 /*
  * MMC
  */
index aaf28a346d05de82bc741b0adc9bd4974f89cdd1..d383b6c655b821f96d05a0c930a495ee96f03192 100644 (file)
 
 /* GPIO */
 
-/* EEPROM */
-#define CONFIG_SYS_I2C_EEPROM_NXID
-#define CONFIG_SYS_EEPROM_BUS_NUM              0
-
 /*
  * I2C bus multiplexer
  */
index f318eb58603d6602c425cd35cc0013d731372150..157f218a8ec17439c503fed3c63cd44a162cf129 100644 (file)
 
 /* I2C */
 
-/* EEPROM */
-#define CONFIG_SYS_I2C_EEPROM_NXID
-#define CONFIG_SYS_EEPROM_BUS_NUM      0
-
 /* PCIe */
 #define FSL_PCIE_COMPAT                        "fsl,ls1021a-pcie"
 
index 5f3e8d5b71288e37d5b04daa30c9644b9739bf1c..83c74b66d3a054baa2e66e3c2a8afe5330005399 100644 (file)
 
 /* GPIO */
 
-/* EEPROM */
-#define CONFIG_SYS_I2C_EEPROM_NXID
-#define CONFIG_SYS_EEPROM_BUS_NUM              1
-
 #define CONFIG_PEN_ADDR_BIG_ENDIAN
 #define CONFIG_SMP_PEN_ADDR            0x01ee0200
 
index 8413e68f3a794bd82b43c978a07d41b02fb1227e..24422665e8763026c3809a2387207baee076c1b9 100644 (file)
 #define I2C_MUX_PCA_ADDR_PRI            0x77 /* Primary Mux*/
 #define I2C_MUX_CH_DEFAULT              0x8
 
-/* EEPROM */
-#define CONFIG_SYS_I2C_EEPROM_NXID
-#define CONFIG_SYS_EEPROM_BUS_NUM              0
-
 /* DisplayPort */
 #define DP_PWD_EN_DEFAULT_MASK          0x8
 
index 49f6cd6be11b150ac8ccec1a4707386e7dbf28e5..4158d15cc0fcd11a3cad2515b54ca1778e5b8d84 100644 (file)
 
 /* SATA */
 
-/* EEPROM */
-#define CONFIG_SYS_I2C_EEPROM_NXID
-#define CONFIG_SYS_EEPROM_BUS_NUM              0
-
 #define CONFIG_SYS_SATA                                AHCI_BASE_ADDR
 
 /*
index ff5da5d2754525b2f80075fc5eafcd1e842658a4..4bfe4e3ecd05843e1832072a8224efafe72f8bbb 100644 (file)
 #define CONFIG_SYS_CS2_FTIM2           CONFIG_SYS_CPLD_FTIM2
 #define CONFIG_SYS_CS2_FTIM3           CONFIG_SYS_CPLD_FTIM3
 
-/* EEPROM */
-#ifndef SPL_NO_EEPROM
-#define CONFIG_SYS_I2C_EEPROM_NXID
-#define CONFIG_SYS_EEPROM_BUS_NUM              0
-#endif
-
 /*
  * Environment
  */
index 43717cdd4e63aa55249c7f0a95b6b28a789231da..2df5f3f6c0bd21dd8f3a281c3eef9ad46140fef3 100644 (file)
@@ -59,8 +59,6 @@
 #define CONFIG_SYS_CS0_FTIM3           CONFIG_SYS_NAND_FTIM3
 
 /* EEPROM */
-#define CONFIG_SYS_I2C_EEPROM_NXID
-#define CONFIG_SYS_EEPROM_BUS_NUM              0
 #define I2C_RETIMER_ADDR                       0x18
 
 /* I2C bus multiplexer */
index 869bbd763461aeae267bf992216e8d7c3b085a90..1f54e5164551a7d8796eddba5903f0e146302622 100644 (file)
 #define CFG_LPUART_EN          0x2
 #endif
 
-/* EEPROM */
-#define CONFIG_SYS_I2C_EEPROM_NXID
-#define CONFIG_SYS_EEPROM_BUS_NUM              0
-
 /*
  * IFC Definitions
  */
index 382d5c76461e3c7ecd2e00f775c84623094bf5c5..5d329577a631f80a74c303d74c8f3a4acdd53d7f 100644 (file)
@@ -98,8 +98,6 @@
 #define CONFIG_SYS_CS2_FTIM3           CONFIG_SYS_CPLD_FTIM3
 
 /* EEPROM */
-#define CONFIG_SYS_I2C_EEPROM_NXID
-#define CONFIG_SYS_EEPROM_BUS_NUM              0
 #define I2C_RETIMER_ADDR                       0x18
 
 /* PMIC */
index 747ee9d4428a796d4fdfd72a37194420d4937fa5..2d3351e6b4fb1955384342eea35d3e3a4126b93f 100644 (file)
 #define RTC
 #define CONFIG_SYS_I2C_RTC_ADDR         0x51  /* Channel 3*/
 
-/* EEPROM */
-#define CONFIG_SYS_I2C_EEPROM_NXID
-#define CONFIG_SYS_EEPROM_BUS_NUM              0
-
 #ifdef CONFIG_FSL_DSPI
 #if !defined(CONFIG_TFABOOT) && \
        !defined(CONFIG_QSPI_BOOT) && !defined(CONFIG_SD_BOOT_QSPI)
index 3e829ea8659a147d73301b5ede4e80373abbd995..d98ed39812a71dca837ea81c8b9c8731083fe20f 100644 (file)
 #define CONFIG_SYS_I2C_RTC_ADDR         0x51  /* Channel 3*/
 #endif
 
-/* EEPROM */
-#define CONFIG_SYS_I2C_EEPROM_NXID
-#define CONFIG_SYS_EEPROM_BUS_NUM              0
-
 #ifndef SPL_NO_ENV
 /* Initial environment variables */
 #ifdef CONFIG_TFABOOT
index 6487397f65286ecbbed3329294cacfd54f37e9da..d02d7fc58867facb0ce9cbfe1325b1c10482639d 100644 (file)
 #define CONFIG_RTC_DS3231               1
 #define CONFIG_SYS_I2C_RTC_ADDR         0x68
 
-/* EEPROM */
-#define CONFIG_SYS_I2C_EEPROM_NXID
-#define CONFIG_SYS_EEPROM_BUS_NUM      0
-
 /* Initial environment variables */
 #undef CONFIG_EXTRA_ENV_SETTINGS
 #ifdef CONFIG_NXP_ESBC
index 87d07b765c6c53c978642cdad81aeb17a146670b..09484dc6094be8b0be0db1477797b880ad2ffc3e 100644 (file)
 #define CONFIG_SYS_I2C_RTC_ADDR         0x68
 #endif
 
-/* EEPROM */
-#define CONFIG_SYS_I2C_EEPROM_NXID
-#define CONFIG_SYS_EEPROM_BUS_NUM      0
-
 #define BOOT_TARGET_DEVICES(func) \
        func(USB, usb, 0) \
        func(MMC, mmc, 0) \
index d39c0032c4a1c97fe5bd222104e5bcb9109cff86..ed69b8575826ff8ca0f3c9b5c0336dbc0b02e95b 100644 (file)
 #define RTC
 #define CONFIG_SYS_I2C_RTC_ADDR                0x51  /* Channel 3*/
 
-/* EEPROM */
-#define CONFIG_SYS_I2C_EEPROM_NXID
-#define CONFIG_SYS_EEPROM_BUS_NUM              0
-
 /* Qixis */
 #define CONFIG_SYS_I2C_FPGA_ADDR               0x66
 
index 585aab26bff7cc5cf2e52a7de03f05e68e1414b2..4e8a90485960774aed6f5caae294b03d209be311 100644 (file)
 
 /* MAC/PHY configuration */
 
-/* EEPROM */
-#define CONFIG_SYS_I2C_EEPROM_NXID
-#define CONFIG_SYS_EEPROM_BUS_NUM              0
-
 /* Initial environment variables */
 #define CONFIG_EXTRA_ENV_SETTINGS              \
        EXTRA_ENV_SETTINGS                      \
index 5c4ea27787bc60506eea3d536fdc4933ba8c2319..bb9239cc5996808199b3b6d400d06858005c3cfc 100644 (file)
 #define I2C_EMC2305_CMD                0x40
 #define I2C_EMC2305_PWM                0x80
 
-/* EEPROM */
-#define CONFIG_SYS_I2C_EEPROM_NXID
-#define CONFIG_SYS_EEPROM_BUS_NUM                 0
-
 /* Initial environment variables */
 #define CONFIG_EXTRA_ENV_SETTINGS              \
        EXTRA_ENV_SETTINGS                      \
index d1ae403473148daedb2103fe21321dfd1f552ded..b70abb013f47fdb003ec28ef56003e264dfec6ab 100644 (file)
 /* RTC */
 #define CONFIG_SYS_RTC_BUS_NUM         0
 
-/* EEPROM */
-#define CONFIG_SYS_I2C_EEPROM_NXID
-#define CONFIG_SYS_EEPROM_BUS_NUM              0
-
 /* Initial environment variables */
 #define CONFIG_EXTRA_ENV_SETTINGS              \
        EXTRA_ENV_SETTINGS                      \
index 9923f3d9c34407d4ee6e9ea0e833595ddc644a99..85fab927195fc83f3bad6cda8f1847f915de5bee 100644 (file)
@@ -51,6 +51,4 @@
        "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
        BOOTENV
 
-#define CONFIG_SYS_EEPROM_BUS_NUM              0
-
 #endif /* __SIFIVE_UNMATCHED_H */