• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修订版390d9e2c8c7202f2153eba5e71cfe13803d44e73 (tree)
时间2022-07-26 02:02:03
作者Paul Barker <paul.barker@sanc...>
CommiterTom Rini

Log Message

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>

更改概述

差异

--- a/board/ti/am335x/board.c
+++ b/board/ti/am335x/board.c
@@ -966,10 +966,20 @@ int board_fit_config_name_match(const char *name)
966966 return 0;
967967 else if (board_is_icev2() && !strcmp(name, "am335x-icev2"))
968968 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;
973983 }
974984 #endif
975985
--- a/configs/am335x_evm_defconfig
+++ b/configs/am335x_evm_defconfig
@@ -55,7 +55,7 @@ CONFIG_MTDIDS_DEFAULT="nand0=nand.0"
5555 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)"
5656 # CONFIG_SPL_EFI_PARTITION is not set
5757 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"
5959 CONFIG_ENV_OVERWRITE=y
6060 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
6161 CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y