Enable the CV1800 RTC driver for Milk-V Duo, Milk-V Duo 256M, and LicheeRV Nano. Remove the board-level sysreset binding on Milk-V Duo now that the RTC driver binds the sysreset child from the devicetree node. Reset register access is unchanged here.
Signed-off-by: Zhuxu Ran <[email protected]> --- board/sophgo/milkv_duo/board.c | 5 ----- configs/milkv_duo_256m_defconfig | 2 ++ configs/milkv_duo_defconfig | 2 ++ configs/sipeed_licheerv_nano_defconfig | 2 ++ 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/board/sophgo/milkv_duo/board.c b/board/sophgo/milkv_duo/board.c index 34339c42925..3423f54012e 100644 --- a/board/sophgo/milkv_duo/board.c +++ b/board/sophgo/milkv_duo/board.c @@ -3,15 +3,10 @@ * Copyright (c) 2024, Kongyang Liu <[email protected]> */ -#include <dm/lists.h> - #include "../common/ethernet.h" int board_init(void) { - if (IS_ENABLED(CONFIG_SYSRESET_CV1800B)) - device_bind_driver(gd->dm_root, "cv1800b_sysreset", "sysreset", NULL); - if (IS_ENABLED(CONFIG_NET_LEGACY)) cv1800b_ephy_init(); diff --git a/configs/milkv_duo_256m_defconfig b/configs/milkv_duo_256m_defconfig index fda0baa3277..f15b41e1451 100644 --- a/configs/milkv_duo_256m_defconfig +++ b/configs/milkv_duo_256m_defconfig @@ -38,6 +38,8 @@ CONFIG_MMC_SDHCI_CV1800B=y CONFIG_DM_MDIO=y CONFIG_DM_MDIO_MUX=y CONFIG_ETH_DESIGNWARE=y +CONFIG_DM_RTC=y +CONFIG_RTC_CV1800B=y CONFIG_MDIO_MUX_MMIOREG=y CONFIG_SYS_NS16550=y CONFIG_SYS_NS16550_MEM32=y diff --git a/configs/milkv_duo_defconfig b/configs/milkv_duo_defconfig index 9d6b80362d5..77c8d89701d 100644 --- a/configs/milkv_duo_defconfig +++ b/configs/milkv_duo_defconfig @@ -35,6 +35,8 @@ CONFIG_MMC_SDHCI_ADMA=y CONFIG_MMC_SDHCI_CV1800B=y CONFIG_SPI_FLASH_MACRONIX=y CONFIG_ETH_DESIGNWARE=y +CONFIG_DM_RTC=y +CONFIG_RTC_CV1800B=y CONFIG_SYS_NS16550=y CONFIG_SYS_NS16550_MEM32=y CONFIG_SPI=y diff --git a/configs/sipeed_licheerv_nano_defconfig b/configs/sipeed_licheerv_nano_defconfig index 21b8fece201..75229787d2f 100644 --- a/configs/sipeed_licheerv_nano_defconfig +++ b/configs/sipeed_licheerv_nano_defconfig @@ -40,6 +40,8 @@ CONFIG_MMC_SDHCI_ADMA=y CONFIG_MMC_SDHCI_CV1800B=y CONFIG_SPI_FLASH_MACRONIX=y CONFIG_ETH_DESIGNWARE=y +CONFIG_DM_RTC=y +CONFIG_RTC_CV1800B=y CONFIG_SYS_NS16550=y CONFIG_SYS_NS16550_MEM32=y CONFIG_SPI=y -- 2.55.0
