All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jagan Teki <jagan@amarulasolutions.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 18/58] clk: sunxi: Implement AHB bus MMC clocks
Date: Sun, 19 Aug 2018 19:26:35 +0530	[thread overview]
Message-ID: <20180819135715.15799-19-jagan@amarulasolutions.com> (raw)
In-Reply-To: <20180819135715.15799-1-jagan@amarulasolutions.com>

Implement AHB bus MMC clocks for all Allwinner SoC
clock drivers via clock map descriptor table.

Cc: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
 drivers/clk/sunxi/clk_a10.c  | 4 ++++
 drivers/clk/sunxi/clk_a10s.c | 3 +++
 drivers/clk/sunxi/clk_a23.c  | 3 +++
 drivers/clk/sunxi/clk_a31.c  | 4 ++++
 drivers/clk/sunxi/clk_a64.c  | 3 +++
 drivers/clk/sunxi/clk_a83t.c | 3 +++
 drivers/clk/sunxi/clk_h3.c   | 3 +++
 drivers/clk/sunxi/clk_r40.c  | 4 ++++
 drivers/clk/sunxi/clk_v3s.c  | 3 +++
 9 files changed, 30 insertions(+)

diff --git a/drivers/clk/sunxi/clk_a10.c b/drivers/clk/sunxi/clk_a10.c
index 7492e1367a..fb11231dd1 100644
--- a/drivers/clk/sunxi/clk_a10.c
+++ b/drivers/clk/sunxi/clk_a10.c
@@ -18,6 +18,10 @@ static struct ccu_clk_map a10_clks[] = {
 	[CLK_AHB_OHCI0]		= { 0x060, BIT(2), NULL },
 	[CLK_AHB_EHCI1]		= { 0x060, BIT(3), NULL },
 	[CLK_AHB_OHCI1]		= { 0x060, BIT(4), NULL },
+	[CLK_AHB_MMC0]		= { 0x060, BIT(8), NULL },
+	[CLK_AHB_MMC1]		= { 0x060, BIT(9), NULL },
+	[CLK_AHB_MMC2]		= { 0x060, BIT(10), NULL },
+	[CLK_AHB_MMC3]		= { 0x060, BIT(11), NULL },
 
 	[CLK_USB_OHCI0]		= { 0x0cc, BIT(6), NULL },
 	[CLK_USB_OHCI1]		= { 0x0cc, BIT(7), NULL },
diff --git a/drivers/clk/sunxi/clk_a10s.c b/drivers/clk/sunxi/clk_a10s.c
index 976595201f..bc4ae7352b 100644
--- a/drivers/clk/sunxi/clk_a10s.c
+++ b/drivers/clk/sunxi/clk_a10s.c
@@ -16,6 +16,9 @@ static struct ccu_clk_map a10s_clks[] = {
 	[CLK_AHB_OTG]		= { 0x060, BIT(0), NULL },
 	[CLK_AHB_EHCI]		= { 0x060, BIT(1), NULL },
 	[CLK_AHB_OHCI]		= { 0x060, BIT(2), NULL },
+	[CLK_AHB_MMC0]		= { 0x060, BIT(8), NULL },
+	[CLK_AHB_MMC1]		= { 0x060, BIT(9), NULL },
+	[CLK_AHB_MMC2]		= { 0x060, BIT(10), NULL },
 
 	[CLK_USB_OHCI]		= { 0x0cc, BIT(6), NULL },
 	[CLK_USB_PHY0]		= { 0x0cc, BIT(8), NULL },
diff --git a/drivers/clk/sunxi/clk_a23.c b/drivers/clk/sunxi/clk_a23.c
index ec9834e1a8..62770a58fe 100644
--- a/drivers/clk/sunxi/clk_a23.c
+++ b/drivers/clk/sunxi/clk_a23.c
@@ -13,6 +13,9 @@
 #include <dt-bindings/reset/sun8i-a23-a33-ccu.h>
 
 static struct ccu_clk_map a23_clks[] = {
+	[CLK_BUS_MMC0]		= { 0x060, BIT(8), NULL },
+	[CLK_BUS_MMC1]		= { 0x060, BIT(9), NULL },
+	[CLK_BUS_MMC2]		= { 0x060, BIT(10), NULL },
 	[CLK_BUS_OTG]		= { 0x060, BIT(24), NULL },
 	[CLK_BUS_EHCI]		= { 0x060, BIT(26), NULL },
 	[CLK_BUS_OHCI]		= { 0x060, BIT(29), NULL },
diff --git a/drivers/clk/sunxi/clk_a31.c b/drivers/clk/sunxi/clk_a31.c
index c6d82be120..f314feff69 100644
--- a/drivers/clk/sunxi/clk_a31.c
+++ b/drivers/clk/sunxi/clk_a31.c
@@ -13,6 +13,10 @@
 #include <dt-bindings/reset/sun6i-a31-ccu.h>
 
 static struct ccu_clk_map a31_clks[] = {
+	[CLK_AHB1_MMC0]		= { 0x060, BIT(8), NULL },
+	[CLK_AHB1_MMC1]		= { 0x060, BIT(9), NULL },
+	[CLK_AHB1_MMC2]		= { 0x060, BIT(10), NULL },
+	[CLK_AHB1_MMC3]		= { 0x060, BIT(12), NULL },
 	[CLK_AHB1_OTG]		= { 0x060, BIT(24), NULL },
 	[CLK_AHB1_EHCI0]	= { 0x060, BIT(26), NULL },
 	[CLK_AHB1_EHCI1]	= { 0x060, BIT(27), NULL },
diff --git a/drivers/clk/sunxi/clk_a64.c b/drivers/clk/sunxi/clk_a64.c
index e5257b62c7..71f3510c74 100644
--- a/drivers/clk/sunxi/clk_a64.c
+++ b/drivers/clk/sunxi/clk_a64.c
@@ -13,6 +13,9 @@
 #include <dt-bindings/reset/sun50i-a64-ccu.h>
 
 static struct ccu_clk_map a64_clks[] = {
+	[CLK_BUS_MMC0]		= { 0x060, BIT(8), NULL },
+	[CLK_BUS_MMC1]		= { 0x060, BIT(9), NULL },
+	[CLK_BUS_MMC2]		= { 0x060, BIT(10), NULL },
 	[CLK_BUS_OTG]		= { 0x060, BIT(23), NULL },
 	[CLK_BUS_EHCI0]		= { 0x060, BIT(24), NULL },
 	[CLK_BUS_EHCI1]		= { 0x060, BIT(25), NULL },
diff --git a/drivers/clk/sunxi/clk_a83t.c b/drivers/clk/sunxi/clk_a83t.c
index 58d28eb6ad..cc18975a06 100644
--- a/drivers/clk/sunxi/clk_a83t.c
+++ b/drivers/clk/sunxi/clk_a83t.c
@@ -13,6 +13,9 @@
 #include <dt-bindings/reset/sun8i-a83t-ccu.h>
 
 static struct ccu_clk_map a83t_clks[] = {
+	[CLK_BUS_MMC0]		= { 0x060, BIT(8), NULL },
+	[CLK_BUS_MMC1]		= { 0x060, BIT(9), NULL },
+	[CLK_BUS_MMC2]		= { 0x060, BIT(10), NULL },
 	[CLK_BUS_OTG]		= { 0x060, BIT(24), NULL },
 	[CLK_BUS_EHCI0]		= { 0x060, BIT(26), NULL },
 	[CLK_BUS_EHCI1]		= { 0x060, BIT(27), NULL },
diff --git a/drivers/clk/sunxi/clk_h3.c b/drivers/clk/sunxi/clk_h3.c
index 0b7f4947dd..85dd06ee2d 100644
--- a/drivers/clk/sunxi/clk_h3.c
+++ b/drivers/clk/sunxi/clk_h3.c
@@ -13,6 +13,9 @@
 #include <dt-bindings/reset/sun8i-h3-ccu.h>
 
 static struct ccu_clk_map h3_clks[] = {
+	[CLK_BUS_MMC0]		= { 0x060, BIT(8), NULL },
+	[CLK_BUS_MMC1]		= { 0x060, BIT(9), NULL },
+	[CLK_BUS_MMC2]		= { 0x060, BIT(10), NULL },
 	[CLK_BUS_OTG]		= { 0x060, BIT(23), NULL },
 	[CLK_BUS_EHCI0]		= { 0x060, BIT(24), NULL },
 	[CLK_BUS_EHCI1]		= { 0x060, BIT(25), NULL },
diff --git a/drivers/clk/sunxi/clk_r40.c b/drivers/clk/sunxi/clk_r40.c
index 746d6734b2..006aa138b6 100644
--- a/drivers/clk/sunxi/clk_r40.c
+++ b/drivers/clk/sunxi/clk_r40.c
@@ -13,6 +13,10 @@
 #include <dt-bindings/reset/sun8i-r40-ccu.h>
 
 static struct ccu_clk_map r40_clks[] = {
+	[CLK_BUS_MMC0]		= { 0x060, BIT(8), NULL },
+	[CLK_BUS_MMC1]		= { 0x060, BIT(9), NULL },
+	[CLK_BUS_MMC2]		= { 0x060, BIT(10), NULL },
+	[CLK_BUS_MMC3]		= { 0x060, BIT(11), NULL },
 	[CLK_BUS_OTG]		= { 0x060, BIT(25), NULL },
 	[CLK_BUS_EHCI0]		= { 0x060, BIT(26), NULL },
 	[CLK_BUS_EHCI1]		= { 0x060, BIT(27), NULL },
diff --git a/drivers/clk/sunxi/clk_v3s.c b/drivers/clk/sunxi/clk_v3s.c
index 2494518798..ab2cc45640 100644
--- a/drivers/clk/sunxi/clk_v3s.c
+++ b/drivers/clk/sunxi/clk_v3s.c
@@ -13,6 +13,9 @@
 #include <dt-bindings/reset/sun8i-v3s-ccu.h>
 
 static struct ccu_clk_map v3s_clks[] = {
+	[CLK_BUS_MMC0]		= { 0x060, BIT(8), NULL },
+	[CLK_BUS_MMC1]		= { 0x060, BIT(9), NULL },
+	[CLK_BUS_MMC2]		= { 0x060, BIT(10), NULL },
 	[CLK_BUS_OTG]		= { 0x060, BIT(24), NULL },
 
 	[CLK_USB_PHY0]          = { 0x0cc, BIT(8), NULL },
-- 
2.18.0.321.gffc6fa0e3

  parent reply	other threads:[~2018-08-19 13:56 UTC|newest]

Thread overview: 87+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-19 13:56 [U-Boot] [PATCH v3 00/58] clk: Add Allwinner CLK, RESET support Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 01/58] clk: Add Allwinner A64 CLK driver Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 02/58] reset: Add default request ops Jagan Teki
2018-08-20 11:22   ` Maxime Ripard
2018-08-19 13:56 ` [U-Boot] [PATCH v3 03/58] reset: Add Allwinner RESET driver Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 04/58] clk: sunxi: Add Allwinner H3/H5 CLK driver Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 05/58] clk: sunxi: Add Allwinner A10/A20 " Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 06/58] clk: sunxi: Add Allwinner A10s/A13 " Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 07/58] clk: sunxi: Add Allwinner A31 " Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 08/58] clk: sunxi: Add Allwinner A23 " Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 09/58] clk: sunxi: a23: Add CLK support for A33 Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 10/58] clk: sunxi: Add Allwinner A83T CLK driver Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 11/58] clk: sunxi: Add Allwinner R40 " Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 12/58] clk: sunxi: Add Allwinner V3S " Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 13/58] sunxi: Enable CLK Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 14/58] musb-new: sunxi: Use CLK and RESET support Jagan Teki
2018-08-20 11:26   ` Maxime Ripard
2018-08-19 13:56 ` [U-Boot] [PATCH v3 15/58] phy: sun4i-usb: " Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 16/58] sunxi: usb: Switch to Generic host controllers Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 17/58] usb: host: Drop [e-o]hci-sunxi drivers Jagan Teki
2018-08-19 13:56 ` Jagan Teki [this message]
2018-08-20 11:28   ` [U-Boot] [PATCH v3 18/58] clk: sunxi: Implement AHB bus MMC clocks Maxime Ripard
2018-08-19 13:56 ` [U-Boot] [PATCH v3 19/58] clk: sunxi: Implement direct " Jagan Teki
2018-08-20 11:33   ` Maxime Ripard
2018-08-27 10:04     ` Jagan Teki
2018-08-28  9:51       ` Maxime Ripard
2018-08-28 16:46         ` Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 20/58] clk: sunxi: Implement AHB bus MMC resets Jagan Teki
2018-08-20 11:28   ` Maxime Ripard
2018-08-19 13:56 ` [U-Boot] [PATCH v3 21/58] reset: Add get reset by name optionally Jagan Teki
2018-08-20 11:34   ` Maxime Ripard
2018-08-19 13:56 ` [U-Boot] [PATCH v3 22/58] reset: Add reset valid Jagan Teki
2018-08-23 10:44   ` Simon Glass
2018-08-19 13:56 ` [U-Boot] [PATCH v3 23/58] clk: sunxi: Add Allwinner H6 CLK, RESET driver Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 24/58] arm64: allwinner: dts: h6: fix Pine H64 MMC bus width Jagan Teki
2018-08-20 11:35   ` Maxime Ripard
2018-08-20 11:39     ` Jagan Teki
2018-08-20 14:16       ` Maxime Ripard
2018-08-19 13:56 ` [U-Boot] [PATCH v3 25/58] sunxi: h6: Enable CLK, RESET Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 26/58] dm: mmc: sunxi: Add CLK and RESET support Jagan Teki
2018-08-20 11:36   ` Maxime Ripard
2018-08-19 13:56 ` [U-Boot] [PATCH v3 27/58] fastboot: sunxi: Update fastboot mmc default device Jagan Teki
2018-08-20 11:44   ` Maxime Ripard
2018-08-21 16:57     ` Jagan Teki
2018-08-22 16:43       ` Maxime Ripard
2018-08-27  9:20         ` Jagan Teki
2018-08-31 10:14           ` Maxime Ripard
2018-08-22 18:56       ` Olliver Schinagl
2018-08-19 13:56 ` [U-Boot] [PATCH v3 28/58] env: fat: Add func to get fat device, partition Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 29/58] sunxi: Get fat device wrt boot device, 'auto' partition Jagan Teki
2018-08-20 11:45   ` Maxime Ripard
2018-08-19 13:56 ` [U-Boot] [PATCH v3 30/58] env: sunxi: Don't update fat dev, part wrt MMC_SUNXI_SLOT_EXTRA Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 31/58] sunxi: Add mmc 2, 3 bootenv devices Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 32/58] sunxi: A20: Enable DM_MMC Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 33/58] mmc: sunxi: Add mmc, emmc H5/A64 compatible Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 34/58] sunxi: H3_H5: Enable DM_MMC Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 35/58] sunxi: A64: " Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 36/58] mmc: sunxi: Add A83T emmc compatible Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 37/58] sunxi: A83T: Enable DM_MMC Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 38/58] sunxi: V40: " Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 39/58] sunxi: H6: " Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 40/58] sunxi: A13/A31: " Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 41/58] sunxi: A23/A33/V3S: " Jagan Teki
2018-08-19 13:56 ` [U-Boot] [PATCH v3 42/58] clk: sunxi: Implement SPI clocks Jagan Teki
2018-08-19 13:57 ` [U-Boot] [PATCH v3 43/58] clk: sunxi: Implement SPI resets Jagan Teki
2018-08-19 13:57 ` [U-Boot] [PATCH v3 44/58] spi: sun4i: Add CLK support Jagan Teki
2018-08-19 13:57 ` [U-Boot] [PATCH v3 45/58] spi: Add Allwinner A31 SPI driver Jagan Teki
2018-08-20 11:18   ` Maxime Ripard
2018-08-20 11:42     ` Jagan Teki
2018-08-20 14:19       ` Maxime Ripard
2018-08-20 15:25         ` Jagan Teki
2018-08-19 13:57 ` [U-Boot] [PATCH v3 46/58] clk: sunxi: Implement UART clocks Jagan Teki
2018-08-19 13:57 ` [U-Boot] [PATCH v3 47/58] clk: sunxi: Implement UART resets Jagan Teki
2018-08-19 13:57 ` [U-Boot] [PATCH v3 48/58] clk: sunxi: Implement Ethernet clocks Jagan Teki
2018-08-19 13:57 ` [U-Boot] [PATCH v3 49/58] clk: sunxi: Implement Ethernet resets Jagan Teki
2018-08-19 13:57 ` [U-Boot] [PATCH v3 50/58] net: sunxi_emac: Add CLK support Jagan Teki
2018-08-19 13:57 ` [U-Boot] [PATCH v3 51/58] net: sun8i_emac: Retrieve GMAC clock via 'syscon' phandle Jagan Teki
2018-08-19 13:57 ` [U-Boot] [PATCH v3 52/58] net: sun8i_emac: Add CLK and RESET support Jagan Teki
2018-08-19 13:57 ` [U-Boot] [PATCH v3 53/58] clk: Get the CLK by index without device Jagan Teki
2018-08-23 10:45   ` Simon Glass
2018-08-19 13:57 ` [U-Boot] [PATCH v3 54/58] clk: Use clk_get_by_index_tail() Jagan Teki
2018-08-23 10:45   ` Simon Glass
2018-08-19 13:57 ` [U-Boot] [PATCH v3 55/58] reset: Get the RESET by index without device Jagan Teki
2018-08-23 10:45   ` Simon Glass
2018-08-19 13:57 ` [U-Boot] [PATCH v3 56/58] clk: sunxi: h3: Implement EPHY CLK and RESET Jagan Teki
2018-08-19 13:57 ` [U-Boot] [PATCH v3 57/58] net: sun8i_emac: Add EPHY CLK and RESET support Jagan Teki
2018-08-19 13:57 ` [U-Boot] [PATCH v3 58/58] board: sunxi: gmac: Remove Ethernet clock and reset Jagan Teki

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=20180819135715.15799-19-jagan@amarulasolutions.com \
    --to=jagan@amarulasolutions.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.