]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ppc: qemu: Enable RTC support via I2C
authorBin Meng <bmeng.cn@gmail.com>
Thu, 25 Feb 2021 09:22:54 +0000 (17:22 +0800)
committerPriyanka Jain <priyanka.jain@nxp.com>
Fri, 5 Mar 2021 04:55:43 +0000 (10:25 +0530)
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>
configs/qemu-ppce500_defconfig
include/configs/qemu-ppce500.h

index 8798db69a80270f2862700908aca6d188ef3df52..536fe7d6e1d75a57b5e267036af8642a77cb2708 100644 (file)
@@ -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
index b1ee810f01c736a7aaf807f6ec1f95dcc987f150..7c65e64d756cc6fe49a54cb6c5c9f87fdb2283b1 100644 (file)
@@ -73,6 +73,9 @@ extern unsigned long long get_phys_ccsrbar_addr_early(void);
 
 #define CONFIG_LBA48
 
+/* RTC */
+#define CONFIG_RTC_PT7C4338
+
 /*
  * Environment
  */