diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2021-02-25 17:22:54 +0800 |
---|---|---|
committer | Priyanka Jain <priyanka.jain@nxp.com> | 2021-03-05 10:25:43 +0530 |
commit | 9a39f76c7ac06ba04235b4192c1f4daf5094a924 (patch) | |
tree | 4d873c0dcdcd85e222f693a4d06ec037104d70d0 | |
parent | 037b17d29c2fa4d143ff129a43ffb131cce19674 (diff) | |
download | u-boot-9a39f76c7ac06ba04235b4192c1f4daf5094a924.zip u-boot-9a39f76c7ac06ba04235b4192c1f4daf5094a924.tar.gz u-boot-9a39f76c7ac06ba04235b4192c1f4daf5094a924.tar.bz2 |
ppc: qemu: Enable RTC support via I2C
The QEMU ppce500 target integrates a Freescale I2C controller and
has a Pericom pt7c4338 RTC connected to it. Enable corresponding
DM drivers so that 'date' command is actually useful.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
-rw-r--r-- | configs/qemu-ppce500_defconfig | 3 | ||||
-rw-r--r-- | include/configs/qemu-ppce500.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/configs/qemu-ppce500_defconfig b/configs/qemu-ppce500_defconfig index 8798db6..536fe7d 100644 --- a/configs/qemu-ppce500_defconfig +++ b/configs/qemu-ppce500_defconfig @@ -31,11 +31,14 @@ CONFIG_DM=y CONFIG_BLK=y CONFIG_HAVE_BLOCK_DEVICE=y CONFIG_MPC8XXX_GPIO=y +CONFIG_DM_I2C=y +CONFIG_SYS_I2C_FSL=y # CONFIG_MMC is not set CONFIG_DM_ETH=y CONFIG_E1000=y CONFIG_DM_PCI=y CONFIG_PCI_MPC85XX=y +CONFIG_DM_RTC=y CONFIG_DM_SERIAL=y CONFIG_SYS_NS16550=y CONFIG_SYSRESET=y diff --git a/include/configs/qemu-ppce500.h b/include/configs/qemu-ppce500.h index b1ee810..7c65e64 100644 --- a/include/configs/qemu-ppce500.h +++ b/include/configs/qemu-ppce500.h @@ -73,6 +73,9 @@ extern unsigned long long get_phys_ccsrbar_addr_early(void); #define CONFIG_LBA48 +/* RTC */ +#define CONFIG_RTC_PT7C4338 + /* * Environment */ |