diff options
author | Padmarao Begari <padmarao.begari@microchip.com> | 2021-11-17 18:21:18 +0530 |
---|---|---|
committer | Leo Yu-Chi Liang <ycliang@andestech.com> | 2021-12-02 16:43:52 +0800 |
commit | 5c007d24b9ae5d8e4e25a91d326bc7b03323a562 (patch) | |
tree | a74896a62582a62b7e75bd9cf6ce7bf8afce570d /board | |
parent | 06142d6874ca58b420c3a77633317daa31c1b88e (diff) | |
download | u-boot-5c007d24b9ae5d8e4e25a91d326bc7b03323a562.tar.gz u-boot-5c007d24b9ae5d8e4e25a91d326bc7b03323a562.tar.bz2 u-boot-5c007d24b9ae5d8e4e25a91d326bc7b03323a562.zip |
riscv: Update Microchip MPFS Icicle Kit support
This patch updates Microchip MPFS Icicle Kit support. For now,
add Microchip I2C driver, set environment variables for
mac addresses and default build for SBI_V02.
Signed-off-by: Padmarao Begari <padmarao.begari@microchip.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Diffstat (limited to 'board')
-rw-r--r-- | board/microchip/mpfs_icicle/Kconfig | 5 | ||||
-rw-r--r-- | board/microchip/mpfs_icicle/mpfs_icicle.c | 17 |
2 files changed, 21 insertions, 1 deletions
diff --git a/board/microchip/mpfs_icicle/Kconfig b/board/microchip/mpfs_icicle/Kconfig index 4678462378..092e411215 100644 --- a/board/microchip/mpfs_icicle/Kconfig +++ b/board/microchip/mpfs_icicle/Kconfig @@ -45,5 +45,10 @@ config BOARD_SPECIFIC_OPTIONS # dummy imply MMC_WRITE imply MMC_SDHCI imply MMC_SDHCI_CADENCE + imply MMC_SDHCI_ADMA + imply MMC_HS200_SUPPORT + imply CMD_I2C + imply DM_I2C + imply SYS_I2C_MICROCHIP endif diff --git a/board/microchip/mpfs_icicle/mpfs_icicle.c b/board/microchip/mpfs_icicle/mpfs_icicle.c index afef719dff..e74c9fb03c 100644 --- a/board/microchip/mpfs_icicle/mpfs_icicle.c +++ b/board/microchip/mpfs_icicle/mpfs_icicle.c @@ -119,7 +119,22 @@ int board_late_init(void) if (icicle_mac_addr[idx] == ':') icicle_mac_addr[idx] = ' '; } - env_set("icicle_mac_addr", icicle_mac_addr); + env_set("icicle_mac_addr0", icicle_mac_addr); + + mac_addr[5] = device_serial_number[0] + 1; + + icicle_mac_addr[0] = '['; + + sprintf(&icicle_mac_addr[1], "%pM", mac_addr); + + icicle_mac_addr[18] = ']'; + icicle_mac_addr[19] = '\0'; + + for (idx = 0; idx < 20; idx++) { + if (icicle_mac_addr[idx] == ':') + icicle_mac_addr[idx] = ' '; + } + env_set("icicle_mac_addr1", icicle_mac_addr); return 0; } |