修订版 | 390d9e2c8c7202f2153eba5e71cfe13803d44e73 (tree) |
---|---|
时间 | 2022-07-26 02:02:03 |
作者 | Paul Barker <paul.barker@sanc...> |
Commiter | Tom Rini |
board: ti: am335x: Use correct dtbs for SanCloud boards
We have different dtbs for the Lite and Extended WiFi variants of the
SanCloud BBE.
Signed-off-by: Paul Barker <paul.barker@sancloud.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
@@ -966,10 +966,20 @@ int board_fit_config_name_match(const char *name) | ||
966 | 966 | return 0; |
967 | 967 | else if (board_is_icev2() && !strcmp(name, "am335x-icev2")) |
968 | 968 | return 0; |
969 | - else if (board_is_bben() && !strcmp(name, "am335x-sancloud-bbe")) | |
970 | - return 0; | |
971 | - else | |
972 | - return -1; | |
969 | + else if (board_is_bben()) { | |
970 | + char subtype_id = board_ti_get_config()[1]; | |
971 | + | |
972 | + if (subtype_id == 'L') { | |
973 | + if (!strcmp(name, "am335x-sancloud-bbe-lite")) | |
974 | + return 0; | |
975 | + } else if (subtype_id == 'I') { | |
976 | + if (!strcmp(name, "am335x-sancloud-bbe-extended-wifi")) | |
977 | + return 0; | |
978 | + } else if (!strcmp(name, "am335x-sancloud-bbe")) { | |
979 | + return 0; | |
980 | + } | |
981 | + } | |
982 | + return -1; | |
973 | 983 | } |
974 | 984 | #endif |
975 | 985 |
@@ -55,7 +55,7 @@ CONFIG_MTDIDS_DEFAULT="nand0=nand.0" | ||
55 | 55 | CONFIG_MTDPARTS_DEFAULT="mtdparts=nand.0:128k(NAND.SPL),128k(NAND.SPL.backup1),128k(NAND.SPL.backup2),128k(NAND.SPL.backup3),256k(NAND.u-boot-spl-os),1m(NAND.u-boot),128k(NAND.u-boot-env),128k(NAND.u-boot-env.backup1),8m(NAND.kernel),-(NAND.file-system)" |
56 | 56 | # CONFIG_SPL_EFI_PARTITION is not set |
57 | 57 | CONFIG_OF_CONTROL=y |
58 | -CONFIG_OF_LIST="am335x-evm am335x-bone am335x-sancloud-bbe am335x-boneblack am335x-evmsk am335x-bonegreen am335x-icev2 am335x-pocketbeagle" | |
58 | +CONFIG_OF_LIST="am335x-evm am335x-bone am335x-sancloud-bbe am335x-sancloud-bbe-lite am335x-sancloud-bbe-extended-wifi am335x-boneblack am335x-evmsk am335x-bonegreen am335x-icev2 am335x-pocketbeagle" | |
59 | 59 | CONFIG_ENV_OVERWRITE=y |
60 | 60 | CONFIG_SYS_RELOC_GD_ENV_ADDR=y |
61 | 61 | CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y |