]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Convert CONFIG_SYS_MMC_MAX_BLK_COUNT to Kconfig
authorTom Rini <trini@konsulko.com>
Sat, 29 Oct 2022 00:27:05 +0000 (20:27 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 10 Nov 2022 15:08:55 +0000 (10:08 -0500)
This converts the following to Kconfig:
   CONFIG_SYS_MMC_MAX_BLK_COUNT

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
38 files changed:
configs/hikey960_defconfig
configs/octeontx2_95xx_defconfig
configs/octeontx2_96xx_defconfig
configs/octeontx_81xx_defconfig
configs/octeontx_83xx_defconfig
configs/socfpga_agilex_atf_defconfig
configs/socfpga_agilex_defconfig
configs/socfpga_agilex_vab_defconfig
configs/socfpga_arria10_defconfig
configs/socfpga_arria5_defconfig
configs/socfpga_cyclone5_defconfig
configs/socfpga_dbm_soc1_defconfig
configs/socfpga_de0_nano_soc_defconfig
configs/socfpga_de10_nano_defconfig
configs/socfpga_de10_standard_defconfig
configs/socfpga_de1_soc_defconfig
configs/socfpga_mcvevk_defconfig
configs/socfpga_n5x_atf_defconfig
configs/socfpga_n5x_defconfig
configs/socfpga_n5x_vab_defconfig
configs/socfpga_secu1_defconfig
configs/socfpga_sockit_defconfig
configs/socfpga_socrates_defconfig
configs/socfpga_sr1500_defconfig
configs/socfpga_stratix10_atf_defconfig
configs/socfpga_stratix10_defconfig
configs/socfpga_vining_fpga_defconfig
configs/total_compute_defconfig
configs/vexpress_ca9x4_defconfig
drivers/mmc/Kconfig
include/configs/hikey960.h
include/configs/octeontx2_common.h
include/configs/octeontx_common.h
include/configs/socfpga_common.h
include/configs/socfpga_soc64_common.h
include/configs/total_compute.h
include/configs/vexpress_common.h
include/mmc.h

index 1fd6d6daf15816fa9ee4c4c09353d3a1518bd7e4..3e999044fc73994bbcb41f7789ad92b4807e71c5 100644 (file)
@@ -29,6 +29,7 @@ CONFIG_ENV_IS_IN_EXT4=y
 CONFIG_ENV_EXT4_INTERFACE="mmc"
 CONFIG_ENV_EXT4_DEVICE_AND_PART="0:2"
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_SYS_MMC_MAX_BLK_COUNT=1024
 CONFIG_MMC_DW=y
 CONFIG_MMC_DW_K3=y
 CONFIG_PINCTRL=y
index f4ffe12854e371b5d5b5f7e731225d7ed1df8bab..5fdc397037f335b5a9444ae68228c22576152831 100644 (file)
@@ -83,6 +83,7 @@ CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_TFTP_TSIZE=y
 CONFIG_DM_I2C=y
 CONFIG_MISC=y
+CONFIG_SYS_MMC_MAX_BLK_COUNT=8192
 CONFIG_SUPPORT_EMMC_RPMB=y
 CONFIG_SUPPORT_EMMC_BOOT=y
 CONFIG_MMC_HS400_SUPPORT=y
index 7ff8d2bb8c053cfeab9372d699ca030a1fd60f64..061464d790351f03c62618dd6fb91625d7ff5f31 100644 (file)
@@ -89,6 +89,7 @@ CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
 CONFIG_I2C_MUX=y
 CONFIG_I2C_MUX_PCA954x=y
 CONFIG_MISC=y
+CONFIG_SYS_MMC_MAX_BLK_COUNT=8192
 CONFIG_SUPPORT_EMMC_RPMB=y
 CONFIG_SUPPORT_EMMC_BOOT=y
 CONFIG_MMC_HS400_SUPPORT=y
index dbf561703d7e19787378c36333051b4a9f2cb384..97c2c836f4b53db4bab743ebea3f474a10176c15 100644 (file)
@@ -87,6 +87,7 @@ CONFIG_LBA48=y
 CONFIG_SYS_64BIT_LBA=y
 CONFIG_DM_I2C=y
 CONFIG_MISC=y
+CONFIG_SYS_MMC_MAX_BLK_COUNT=8192
 CONFIG_SUPPORT_EMMC_RPMB=y
 CONFIG_SUPPORT_EMMC_BOOT=y
 CONFIG_MMC_OCTEONTX=y
index bfd23fc94a8e0ceb3f5a04b0e979cddd5d939142..1afa6a36b1b9a5faebe48cc9a9f4b01192ada941 100644 (file)
@@ -84,6 +84,7 @@ CONFIG_LBA48=y
 CONFIG_SYS_64BIT_LBA=y
 CONFIG_DM_I2C=y
 CONFIG_MISC=y
+CONFIG_SYS_MMC_MAX_BLK_COUNT=8192
 CONFIG_SUPPORT_EMMC_RPMB=y
 CONFIG_SUPPORT_EMMC_BOOT=y
 CONFIG_MMC_OCTEONTX=y
index 167e05b0aa5625bbb513e9b88e81344f242370e7..68440926c07895b746143fa8c49fbf9a1341f22a 100644 (file)
@@ -71,6 +71,7 @@ CONFIG_SPL_ALTERA_SDRAM=y
 CONFIG_DWAPB_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
+CONFIG_SYS_MMC_MAX_BLK_COUNT=256
 CONFIG_MMC_DW=y
 CONFIG_MTD=y
 CONFIG_SF_DEFAULT_MODE=0x2003
index e5864ebda219edd44f649c314c2376628cbf7421..de9ebd072263d2c79bed098be721dd6732e954e9 100644 (file)
@@ -65,6 +65,7 @@ CONFIG_SPL_ALTERA_SDRAM=y
 CONFIG_DWAPB_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
+CONFIG_SYS_MMC_MAX_BLK_COUNT=256
 CONFIG_MMC_DW=y
 CONFIG_SF_DEFAULT_MODE=0x2003
 CONFIG_SPI_FLASH_SPANSION=y
index bcdeb6d17cf1e404bc5862111f1153fc90d475c2..7642498ea9cab86f5adc90de8fec1f7cab45adc1 100644 (file)
@@ -72,6 +72,7 @@ CONFIG_SPL_ALTERA_SDRAM=y
 CONFIG_DWAPB_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
+CONFIG_SYS_MMC_MAX_BLK_COUNT=256
 CONFIG_MMC_DW=y
 CONFIG_MTD=y
 CONFIG_SF_DEFAULT_MODE=0x2003
index 6fe8d55002916207a899141ffbda5c91c62fce50..08ae6c502b4170b9370713d29d4f2692d6f94927 100644 (file)
@@ -55,6 +55,7 @@ CONFIG_SPL_DM_SEQ_ALIAS=y
 CONFIG_DWAPB_GPIO=y
 CONFIG_FS_LOADER=y
 CONFIG_SPL_FS_LOADER=y
+CONFIG_SYS_MMC_MAX_BLK_COUNT=256
 CONFIG_MMC_DW=y
 CONFIG_MTD=y
 CONFIG_PHY_MICREL=y
index 2632c0af4ea61726afea20820848e9a550ca39ca..2951574464bd676135f956f51e4abff96160c12c 100644 (file)
@@ -54,6 +54,7 @@ CONFIG_SYS_DFU_DATA_BUF_SIZE=0x1000000
 CONFIG_DWAPB_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
+CONFIG_SYS_MMC_MAX_BLK_COUNT=256
 CONFIG_MMC_DW=y
 CONFIG_MTD=y
 CONFIG_SPI_FLASH_SPANSION=y
index 451de03e1da69d551d5c16e6eb23a587188a91e8..9c3c0f66b2eaca30ff0b8ebbc1c5fce78d4efa28 100644 (file)
@@ -54,6 +54,7 @@ CONFIG_SYS_DFU_DATA_BUF_SIZE=0x1000000
 CONFIG_DWAPB_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
+CONFIG_SYS_MMC_MAX_BLK_COUNT=256
 CONFIG_MMC_DW=y
 CONFIG_MTD=y
 CONFIG_SPI_FLASH_MACRONIX=y
index 7786843427e6afb856ce70e8ff7f7bb1000554ed..b3ba9ff21e2e47ac1011360448c87befa28217d5 100644 (file)
@@ -63,6 +63,7 @@ CONFIG_SYS_DFU_DATA_BUF_SIZE=0x1000000
 CONFIG_DWAPB_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
+CONFIG_SYS_MMC_MAX_BLK_COUNT=256
 CONFIG_MMC_DW=y
 CONFIG_MTD=y
 CONFIG_SPI_FLASH_MTD=y
index cfc8b50e2b20cd3db1e4e93973beeb075dd30391..5f5706fbdb2283757d0ec7c31db1b4cc5e0a474c 100644 (file)
@@ -54,6 +54,7 @@ CONFIG_SYS_DFU_DATA_BUF_SIZE=0x1000000
 CONFIG_DWAPB_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
+CONFIG_SYS_MMC_MAX_BLK_COUNT=256
 CONFIG_MMC_DW=y
 CONFIG_MTD=y
 CONFIG_SPI_FLASH_MTD=y
index 53c4ff5ffd28c3005a74b6b8c64e3c15067bc027..1f835bea9275606a7b71cbd77232a012f52c4275 100644 (file)
@@ -51,6 +51,7 @@ CONFIG_SYS_DFU_DATA_BUF_SIZE=0x1000000
 CONFIG_DWAPB_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
+CONFIG_SYS_MMC_MAX_BLK_COUNT=256
 CONFIG_MMC_DW=y
 CONFIG_MTD=y
 CONFIG_SPI_FLASH_MTD=y
index 15d45995261babbcdff1f2e69b9d58156e03a421..412b0da0dbd1c15eb736e452b24998a868f4358b 100644 (file)
@@ -51,6 +51,7 @@ CONFIG_SYS_DFU_DATA_BUF_SIZE=0x1000000
 CONFIG_DWAPB_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
+CONFIG_SYS_MMC_MAX_BLK_COUNT=256
 CONFIG_MMC_DW=y
 CONFIG_MTD=y
 CONFIG_SPI_FLASH_MTD=y
index 2a15936806851e81c7ecce8235e2b45d0889408d..68a36892fb3db58622313c215100ac04bce0c58c 100644 (file)
@@ -48,6 +48,7 @@ CONFIG_VERSION_VARIABLE=y
 CONFIG_DWAPB_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
+CONFIG_SYS_MMC_MAX_BLK_COUNT=256
 CONFIG_MMC_DW=y
 CONFIG_MTD=y
 CONFIG_PHY_MICREL=y
index 35ea73a5987583c30c76991a0f6650e9ad557481..8be8b85c0c253533a80da9626833f2d904793c17 100644 (file)
@@ -54,6 +54,7 @@ CONFIG_SYS_DFU_DATA_BUF_SIZE=0x1000000
 CONFIG_DWAPB_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
+CONFIG_SYS_MMC_MAX_BLK_COUNT=256
 CONFIG_MMC_DW=y
 CONFIG_MTD=y
 CONFIG_SPI_FLASH_MTD=y
index 453fd87bd22506a99285e8d8dc8a3a1707c8b690..0feda3b04f75aa365e7fe1d58053031675d06da2 100644 (file)
@@ -70,6 +70,7 @@ CONFIG_SPL_DM_SEQ_ALIAS=y
 CONFIG_DWAPB_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
+CONFIG_SYS_MMC_MAX_BLK_COUNT=256
 CONFIG_MMC_DW=y
 CONFIG_MTD=y
 CONFIG_SF_DEFAULT_MODE=0x2003
index ae71791997217b1445f203f659b674860a8bd7f8..fa19f555f20af495d67d87e5a22f754d1bc1f83c 100644 (file)
@@ -62,6 +62,7 @@ CONFIG_SPL_DM_SEQ_ALIAS=y
 CONFIG_DWAPB_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
+CONFIG_SYS_MMC_MAX_BLK_COUNT=256
 CONFIG_MMC_DW=y
 CONFIG_SF_DEFAULT_MODE=0x2003
 CONFIG_SPI_FLASH_SPANSION=y
index 259b8ddf85e83624aef602e5d547e7e2549bd6b4..12e8ebf0138faee06a3d29dfbfa8c19dbf9ce97f 100644 (file)
@@ -71,6 +71,7 @@ CONFIG_SPL_DM_SEQ_ALIAS=y
 CONFIG_DWAPB_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
+CONFIG_SYS_MMC_MAX_BLK_COUNT=256
 CONFIG_MMC_DW=y
 CONFIG_MTD=y
 CONFIG_SF_DEFAULT_MODE=0x2003
index a6106f2a43df20134c050105834a84b3a9b6aca9..debe22f30ac2aaf29d5114edda9eb2e581ce4c60 100644 (file)
@@ -83,6 +83,7 @@ CONFIG_DM_I2C_GPIO=y
 CONFIG_MISC=y
 CONFIG_I2C_EEPROM=y
 CONFIG_SYS_I2C_EEPROM_ADDR=0x50
+CONFIG_SYS_MMC_MAX_BLK_COUNT=256
 CONFIG_MMC_DW=y
 CONFIG_MTD=y
 CONFIG_DM_MTD=y
index 0539d2937eff5b190a65b862ccfc21eea50089fe..31cc03a5fd89aafc4debb80422b98b985d8a841f 100644 (file)
@@ -54,6 +54,7 @@ CONFIG_SYS_DFU_DATA_BUF_SIZE=0x1000000
 CONFIG_DWAPB_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
+CONFIG_SYS_MMC_MAX_BLK_COUNT=256
 CONFIG_MMC_DW=y
 CONFIG_MTD=y
 CONFIG_SPI_FLASH_MACRONIX=y
index a81f74d329e5e3cc76b7639e7fb9ed533e8a2a77..72a70375360c18f2de556ea714bd6dca1b28bea6 100644 (file)
@@ -54,6 +54,7 @@ CONFIG_SYS_DFU_DATA_BUF_SIZE=0x1000000
 CONFIG_DWAPB_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
+CONFIG_SYS_MMC_MAX_BLK_COUNT=256
 CONFIG_MMC_DW=y
 CONFIG_MTD=y
 CONFIG_SPI_FLASH_MACRONIX=y
index 59d809ca0ed6ed7dad32feb67ad14cac49132ef0..44e9ba6c884434f0fe94f38b18c71e16be302957 100644 (file)
@@ -61,6 +61,7 @@ CONFIG_SYS_BOOTCOUNT_BE=y
 CONFIG_DWAPB_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
+CONFIG_SYS_MMC_MAX_BLK_COUNT=256
 CONFIG_MMC_DW=y
 CONFIG_MTD=y
 CONFIG_SF_DEFAULT_SPEED=100000000
index acb1ce9e0c97f70c6501839b878a442f9b8230dc..5ee9f5ff9da7223f77c93233d5fe70d0f6f220c5 100644 (file)
@@ -72,6 +72,7 @@ CONFIG_SPL_ALTERA_SDRAM=y
 CONFIG_DWAPB_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
+CONFIG_SYS_MMC_MAX_BLK_COUNT=256
 CONFIG_MMC_DW=y
 CONFIG_MTD=y
 CONFIG_SF_DEFAULT_MODE=0x2003
index 90a44f298152962bbda4e896975b5097a27cc6ce..f689105695c11a7b8b839e053b064135bdf661c1 100644 (file)
@@ -69,6 +69,7 @@ CONFIG_SPL_ALTERA_SDRAM=y
 CONFIG_DWAPB_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
+CONFIG_SYS_MMC_MAX_BLK_COUNT=256
 CONFIG_MMC_DW=y
 CONFIG_MTD=y
 CONFIG_SF_DEFAULT_MODE=0x2003
index 3a99667811ae37078fb1522ad9f9d42eb33a3a64..96c0ebbc0cd11447696e09776e2e26bcaa4dda65 100644 (file)
@@ -88,6 +88,7 @@ CONFIG_LED_STATUS_CMD=y
 CONFIG_MISC=y
 CONFIG_I2C_EEPROM=y
 CONFIG_SYS_I2C_EEPROM_ADDR=0x50
+CONFIG_SYS_MMC_MAX_BLK_COUNT=256
 CONFIG_MMC_DW=y
 CONFIG_MTD=y
 CONFIG_SF_DEFAULT_SPEED=40000000
index f9901a4f6770d6cf0394a0eb56436e324afa4cd2..807e9ebd8622593318a3ec9ffb39060effd72a38 100644 (file)
@@ -48,6 +48,7 @@ CONFIG_OF_CONTROL=y
 CONFIG_CLK=y
 # CONFIG_MMC_WRITE is not set
 CONFIG_ARM_PL180_MMCI=y
+CONFIG_SYS_MMC_MAX_BLK_COUNT=127
 CONFIG_MTD=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_FLASH_CFI_DRIVER=y
index 25e5d39e895b144a67099091b5f1bfa9920005b5..234686eb7b0c0d9c77b7fe20a2aa5317ab7b0287 100644 (file)
@@ -39,6 +39,7 @@ CONFIG_ENV_OVERWRITE=y
 CONFIG_ENV_IS_IN_FLASH=y
 CONFIG_CLK=y
 CONFIG_ARM_PL180_MMCI=y
+CONFIG_SYS_MMC_MAX_BLK_COUNT=127
 CONFIG_MTD=y
 CONFIG_DM_MTD=y
 CONFIG_MTD_NOR_FLASH=y
index 56f42820c745c2a6cccd3af4620e22c700c7b9bc..bf4d994ff695533e60fcfc6debe9a24b23c7b8b8 100644 (file)
@@ -93,6 +93,13 @@ config MMC_QUIRKS
          are enabled by default, other may require additional flags or are
          enabled by the host driver.
 
+config SYS_MMC_MAX_BLK_COUNT
+       int "Block count limit"
+       default 65535
+       help
+         The block count limit on MMC based devices. We default to 65535 due
+         to a 16bit register limit on some hardware.
+
 config MMC_HW_PARTITIONING
        bool "Support for HW partitioning command(eMMC)"
        default y
index bdc9c479c22ec06b87ff3fdc1183fe3db8edf571..973df8e4abce83da8df2101577a66d16df7454e5 100644 (file)
@@ -39,6 +39,5 @@
                                BOOTENV
 
 /* TODO: Remove this once the SD clock is fixed */
-#define CONFIG_SYS_MMC_MAX_BLK_COUNT   1024
 
 #endif /* __HIKEY_H */
index 25116c5ed23b1d37594562aefa7d0586f745f80b..ab1eb787e70fe4ef161b409f88d87e731b5a7439 100644 (file)
@@ -19,8 +19,6 @@
                                        "loadaddr=20080000\0"   \
                                        "ethrotate=yes\0"
 
-#define CONFIG_SYS_MMC_MAX_BLK_COUNT   8192
-
 #if defined(CONFIG_MMC_OCTEONTX)
 #define MMC_SUPPORTS_TUNING
 /** EMMC specific defines */
index 6e69b3de755dadeda55a91323028cddfed50c8ad..38f99ab21674230be3218f086958e26574aaea95 100644 (file)
@@ -42,8 +42,6 @@
 
 /** Heap size for U-Boot */
 
-#define CONFIG_SYS_MMC_MAX_BLK_COUNT   8192
-
 /** EMMC specific defines */
 
 #endif /* __OCTEONTX_COMMON_H__ */
index f0a33ed27dd58a0c6ed5dea7852e96954967f527..704a7141d7e30c5fe468cb84980848dd8265285b 100644 (file)
  */
 #define CONFIG_DW_WDT_CLOCK_KHZ                25000
 
-/*
- * MMC Driver
- */
-#ifdef CONFIG_CMD_MMC
-/* FIXME */
-/* using smaller max blk cnt to avoid flooding the limited stack we have */
-#define CONFIG_SYS_MMC_MAX_BLK_COUNT   256     /* FIXME -- SPL only? */
-#endif
-
 /*
  * NAND Support
  */
index 06198ddd82a31265b1c33c3f9fd54af768c2fdd3..86cc3771ba59d850ec1ed65ef937a4bc487f8d8d 100644 (file)
@@ -81,9 +81,6 @@
 /*
  * SDMMC configurations
  */
-#ifdef CONFIG_CMD_MMC
-#define CONFIG_SYS_MMC_MAX_BLK_COUNT   256
-#endif
 /*
  * Flash configurations
  */
index 7c77a8d53690b74ee0b0dace8b65ef1fd61907f9..ab6cd06332154a09000aff86008dfa5cf5eeed27 100644 (file)
@@ -28,8 +28,6 @@
 #define PHYS_SDRAM_2           0x8080000000
 #define PHYS_SDRAM_2_SIZE      0x180000000
 
-#define CONFIG_SYS_MMC_MAX_BLK_COUNT           127
-
 #define CONFIG_EXTRA_ENV_SETTINGS      \
                                "bootm_size=0x20000000\0"       \
                                "load_addr=0xa0000000\0"        \
index 7c0856ae325a424d16e772e95c7321704edd5153..5d773060d8263d8c96efcbe463edfd2edfa5f64a 100644 (file)
 #define CONFIG_SYS_SERIAL0             V2M_UART0
 #define CONFIG_SYS_SERIAL1             V2M_UART1
 
-#define CONFIG_SYS_MMC_MAX_BLK_COUNT   127
-
 /* Miscellaneous configurable options */
 #define LINUX_BOOT_PARAM_ADDR          (V2M_BASE + 0x2000)
 
index 027e8bcc73a6b5af26b7b0fa994fa32b3d06eaf8..571fa625d02db2976a05a8396e24ea0337f80890 100644 (file)
@@ -952,11 +952,6 @@ int mmc_get_env_dev(void);
 /* Minimum partition switch timeout in units of 10-milliseconds */
 #define MMC_MIN_PART_SWITCH_TIME       30 /* 300 ms */
 
-/* Set block count limit because of 16 bit register limit on some hardware*/
-#ifndef CONFIG_SYS_MMC_MAX_BLK_COUNT
-#define CONFIG_SYS_MMC_MAX_BLK_COUNT 65535
-#endif
-
 /**
  * mmc_get_blk_desc() - Get the block descriptor for an MMC device
  *