All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bin Meng <bmeng.cn@gmail.com>
To: u-boot@lists.denx.de
Subject: [PATCH v3 33/38] ppc: qemu: Enable RTC support via I2C
Date: Thu, 25 Feb 2021 17:22:54 +0800	[thread overview]
Message-ID: <1614244979-48216-34-git-send-email-bmeng.cn@gmail.com> (raw)
In-Reply-To: <1614244979-48216-1-git-send-email-bmeng.cn@gmail.com>

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>

---

(no changes since v2)

Changes in v2:
- new patch: ppc: qemu: Enable RTC support via I2C

 configs/qemu-ppce500_defconfig | 3 +++
 include/configs/qemu-ppce500.h | 3 +++
 2 files changed, 6 insertions(+)

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
  */
-- 
2.7.4

  parent reply	other threads:[~2021-02-25  9:22 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-25  9:22 [PATCH v3 00/38] ppc: qemu: Convert qemu-ppce500 to driver model and enable additional driver support Bin Meng
2021-02-25  9:22 ` Bin Meng
2021-02-25  9:22 ` [PATCH v3 01/38] pci: fsl_pci_init: Dynamically allocate the PCI regions Bin Meng
2021-02-25  9:22 ` [PATCH v3 02/38] ppc: qemu: Update MAINTAINERS for correct email address Bin Meng
2021-02-25  9:22 ` [PATCH v3 03/38] common: fdt_support: Support special case of PCI address in fdt_read_prop() Bin Meng
2021-02-25  9:22 ` [PATCH v3 04/38] ppc: qemu: Support non-identity PCI bus address Bin Meng
2021-02-26  9:29   ` Priyanka Jain
2021-02-26 14:15     ` Bin Meng
2021-03-01  7:15       ` Priyanka Jain
2021-03-01  7:54         ` Bin Meng
2021-03-02  6:34           ` Priyanka Jain
2021-03-04  1:13             ` Bin Meng
2021-03-04  2:19               ` Simon Glass
2021-02-25  9:22 ` [PATCH v3 05/38] ppc: qemu: Fix CONFIG_SYS_PCI_MAP_END Bin Meng
2021-02-25  9:22 ` [PATCH v3 06/38] ppc: mpc85xx: Wrap LAW related codes with CONFIG_FSL_LAW Bin Meng
2021-02-26  9:41   ` Priyanka Jain
2021-02-25  9:22 ` [PATCH v3 07/38] ppc: qemu: Drop init_laws() and print_laws() Bin Meng
2021-02-25  9:22 ` [PATCH v3 08/38] ppc: qemu: Drop board_early_init_f() Bin Meng
2021-02-25  9:22 ` [PATCH v3 09/38] ppc: qemu: Enable OF_CONTROL Bin Meng
2021-02-25  9:22 ` [PATCH v3 10/38] ppc: qemu: Enable driver model Bin Meng
2021-02-25  9:22 ` [PATCH v3 11/38] include: Remove extern from addr_map.h Bin Meng
2021-02-25  9:22 ` [PATCH v3 12/38] lib: addr_map: Move address_map[] type to the header file Bin Meng
2021-02-25  9:22 ` [PATCH v3 13/38] cmd: Add a command to display the address map Bin Meng
2021-02-26  9:34   ` Priyanka Jain
2021-02-25  9:22 ` [PATCH v3 14/38] test: cmd: Add a basic test for 'addrmap' command Bin Meng
2021-02-26  9:36   ` Priyanka Jain
2021-02-25  9:22 ` [PATCH v3 15/38] lib: kconfig: Mention CONFIG_ADDR_MAP limitation in the help Bin Meng
2021-02-25  9:22 ` [PATCH v3 16/38] ppc: io.h: Use addrmap_ translation APIs only in post-relocation phase Bin Meng
2021-02-25  9:22 ` [PATCH v3 17/38] common: Move initr_addr_map() to a bit earlier Bin Meng
2021-02-26  9:37   ` Priyanka Jain
2021-02-25  9:22 ` [PATCH v3 18/38] ppc: qemu: Switch over to use DM serial Bin Meng
2021-02-25  9:22 ` [PATCH v3 19/38] pci: mpc85xx: Wrap LAW programming with CONFIG_FSL_LAW Bin Meng
2021-02-26  9:38   ` Priyanka Jain
2021-02-25  9:22 ` [PATCH v3 20/38] pci: mpc85xx: Support controller register physical address beyond 32-bit Bin Meng
2021-02-25  9:22 ` [PATCH v3 21/38] pci: mpc85xx: Support 64-bit bus and cpu address Bin Meng
2021-02-25  9:22 ` [PATCH v3 22/38] ppc: qemu: Switch over to use DM ETH and PCI Bin Meng
2021-02-25  9:22 ` [PATCH v3 23/38] ppc: qemu: Drop CONFIG_OF_BOARD_SETUP Bin Meng
2021-02-25  9:22 ` [PATCH v3 24/38] cmd: Fix virtio command dependency Bin Meng
2021-02-25  9:22 ` [PATCH v3 25/38] ppc: qemu: Enable VirtIO NET support Bin Meng
2021-02-25  9:22 ` [PATCH v3 26/38] virtio: Fix VirtIO BLK driver dependency Bin Meng
2021-02-25  9:22 ` [PATCH v3 27/38] ppc: qemu: Enable VirtIO BLK support Bin Meng
2021-02-25  9:22 ` [PATCH v3 28/38] ppc: mpc85xx: Add 'gpibe' register to 'struct ccsr_gpio' Bin Meng
2021-02-25  9:22 ` [PATCH v3 29/38] gpio: mpc8xxx: Support controller register physical address beyond 32-bit Bin Meng
2021-02-25  9:22 ` [PATCH v3 30/38] ppc: qemu: Enable GPIO support Bin Meng
2021-02-25  9:22 ` [PATCH v3 31/38] dm: sysreset: Add a Kconfig option for the 'reset' command Bin Meng
2021-02-26  9:39   ` Priyanka Jain
2021-02-25  9:22 ` [PATCH v3 32/38] ppc: qemu: Enable support for power off via GPIO Bin Meng
2021-02-25  9:22 ` Bin Meng [this message]
2021-02-25  9:22 ` [PATCH v3 34/38] ppc: qemu: Delete the temporary FDT virtual-physical mapping after U-Boot is relocated Bin Meng
2021-02-25  9:22 ` [PATCH v3 35/38] ppc: qemu: Drop a custom env variable 'fdt_addr_r' Bin Meng
2021-02-25  9:22 ` [PATCH v3 36/38] ppc: qemu: Drop fixed_sdram() Bin Meng
2021-02-25  9:22 ` [PATCH v3 37/38] ppc: qemu: Move board directory from board/freescale to board/emulation Bin Meng
2021-02-25  9:22 ` [PATCH v3 38/38] doc: Add a reST document for qemu-ppce500 Bin Meng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1614244979-48216-34-git-send-email-bmeng.cn@gmail.com \
    --to=bmeng.cn@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.