Skip to contentSkip to conversation

board: starfive: Remove compatible boards Milk-V Mars CM and Mars CM Lite

PATCH In review E Shattow 2 participants 2 messages Mar 27, 2025 – Mar 29, 2025

lore
Share & tools
lore

E Shattow

author
#0 lore raw

PATCH 1/1 board: starfive: Remove compatible boards Milk-V Mars CM and Mars CM Lite

Remove leftover code from Milk-V Mars CM and Mars CM Lite boards that do not exist in upstream Linux Kernel devicetree-rebasing. These will be re- introduced when submitted upstream for a future U-Boot release. Users of these boards should use the previous stable release of U-Boot until then.

---
 board/starfive/visionfive2/Kconfig            |   9 -
 board/starfive/visionfive2/spl.c              |   8 -
 .../visionfive2/starfive_visionfive2.c        |  11 +-
 .../visionfive2/visionfive2-i2c-eeprom.c      |   3 -
 doc/board/starfive/index.rst                  |   1 -
 doc/board/starfive/milk-v_mars_cm.rst         | 193 ------------------
 6 files changed, 1 insertion(+), 224 deletions(-)
 delete mode 100644 doc/board/starfive/milk-v_mars_cm.rst
board/starfive/visionfive2/Kconfig +0 -9
index d7e8a7a7d78..2186a939646 100644
@@ -50,13 +50,4 @@ config BOARD_SPECIFIC_OPTIONS # dummy
 	imply PHY_LIB
 	imply PHY_MSCC
 
-config STARFIVE_NO_EMMC
-	bool "Report eMMC size as zero"
-	help
-	  The serial number string in the EEPROM is meant to report the
-	  size of onboard eMMC. Unfortunately some Milk-V Mars CM Lite
-	  modules without eMMC show a non-zero size here.
-
-	  Set to 'Y' if you have a Mars CM Lite module.
-
 endif
board/starfive/visionfive2/spl.c +0 -8
index 22afd76c6b9..f41bd6d603f 100644
@@ -130,14 +130,6 @@ int board_fit_config_name_match(const char *name)
 	} else if (!strncmp(product_id, "MARS", 4) &&
 		   !strcmp(name, "jh7110-milkv-mars")) {
 		return 0;
-	} else if (!strncmp(product_id, "MARC", 4)) {
-		if (!get_mmc_size_from_eeprom()) {
-			if (!strcmp(name, "jh7110-milkv-mars-cm-lite"))
-				return 0;
-		} else {
-			if (!strcmp(name, "jh7110-milkv-mars-cm"))
-				return 0;
-		}
 	} else if (!strncmp(product_id, "STAR64", 6) &&
 		   !strcmp(name, "jh7110-pine64-star64")) {
 		return 0;
board/starfive/visionfive2/starfive_visionfive2.c +1 -10
index 3940d45b13f..b8cd509bc89 100644
@@ -19,10 +19,6 @@ DECLARE_GLOBAL_DATA_PTR;
 #define JH7110_L2_PREFETCHER_HART_OFFSET	0x2000
 #define FDTFILE_MILK_V_MARS \
 	"starfive/jh7110-milkv-mars.dtb"
-#define FDTFILE_MILK_V_MARS_CM \
-	"starfive/jh7110-milkv-mars-cm.dtb"
-#define FDTFILE_MILK_V_MARS_CM_LITE \
-	"starfive/jh7110-milkv-mars-cm-lite.dtb"
 #define FDTFILE_VISIONFIVE2_1_2A \
 	"starfive/jh7110-starfive-visionfive-2-v1.2a.dtb"
 #define FDTFILE_VISIONFIVE2_1_3B \
@@ -67,12 +63,7 @@ static void set_fdtfile(void)
 		log_err("Can't read EEPROM\n");
 		return;
 	}
-	if (!strncmp(product_id, "MARC", 4)) {
-		if (get_mmc_size_from_eeprom())
-			fdtfile = FDTFILE_MILK_V_MARS_CM;
-		else
-			fdtfile = FDTFILE_MILK_V_MARS_CM_LITE;
-	} else if (!strncmp(product_id, "MARS", 4)) {
+	if (!strncmp(product_id, "MARS", 4)) {
 		fdtfile = FDTFILE_MILK_V_MARS;
 	} else if (!strncmp(product_id, "VF7110", 6)) {
 		version = get_pcb_revision_from_eeprom();
board/starfive/visionfive2/visionfive2-i2c-eeprom.c +0 -3
index 838f41e41bd..010e386e64d 100644
@@ -573,9 +573,6 @@ u32 get_mmc_size_from_eeprom(void)
 {
 	u32 size;
 
-	if (IS_ENABLED(CONFIG_STARFIVE_NO_EMMC))
-		return 0;
-
 	if (read_eeprom())
 		return 0;
 
doc/board/starfive/index.rst +0 -1
index 72ab6ddfbf6..2cba1b6dc56 100644
@@ -7,6 +7,5 @@ StarFive
    :maxdepth: 1
 
    milk-v_mars
-   milk-v_mars_cm
    pine64_star64
    visionfive2
doc/board/starfive/milk-v_mars_cm.rst deleted +0 -193

193 lines not on this page · raw message

base-commit: 3f9e0349c3e8afe45d5bdb2328a16512cfbc2ef1

Signature · 1 line
2.49.0
#1 lore raw
Quoted 6 lines · E Shattow

Remove leftover code from Milk-V Mars CM and Mars CM Lite boards that do not exist in upstream Linux Kernel devicetree-rebasing. These will be re- introduced when submitted upstream for a future U-Boot release. Users of these boards should use the previous stable release of U-Boot until then.

Applied to u-boot/master, thanks!

[1/1] board: starfive: Remove compatible boards Milk-V Mars CM and Mars CM Lite

      commit: 870c4d105a634c140328a405b6ffd1c7b1630978
Signature · 1 line
Tom