linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: vasanthananthan@gmail.com (Vasanth Ananthan)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 1/6] ARM: EXYNOS5: Clock settings for SATA and SATA PHY
Date: Tue, 30 Oct 2012 17:01:32 +0100	[thread overview]
Message-ID: <1351612897-14923-2-git-send-email-vasanthananthan@gmail.com> (raw)
In-Reply-To: <1351612897-14923-1-git-send-email-vasanthananthan@gmail.com>

This patch adds neccessary clock entries for SATA, SATA PHY and
I2C_SATAPHY

Signed-off-by: Vasanth Ananthan <vasanth.a@samsung.com>
---
 arch/arm/mach-exynos/clock-exynos5.c |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/arch/arm/mach-exynos/clock-exynos5.c b/arch/arm/mach-exynos/clock-exynos5.c
index c44ca1e..124c54f 100644
--- a/arch/arm/mach-exynos/clock-exynos5.c
+++ b/arch/arm/mach-exynos/clock-exynos5.c
@@ -651,15 +651,20 @@ static struct clk exynos5_init_clocks_off[] = {
 		.ctrlbit	= (1 << 15),
 	}, {
 		.name		= "sata",
-		.devname	= "ahci",
+		.devname	= "exynos5-sata",
+		.parent         = &exynos5_clk_aclk_200.clk,
 		.enable		= exynos5_clk_ip_fsys_ctrl,
 		.ctrlbit	= (1 << 6),
 	}, {
-		.name		= "sata_phy",
+		.name		= "sata-phy",
+		.devname	= "exynos5-sata-phy",
+		.parent         = &exynos5_clk_aclk_200.clk,
 		.enable		= exynos5_clk_ip_fsys_ctrl,
 		.ctrlbit	= (1 << 24),
 	}, {
-		.name		= "sata_phy_i2c",
+		.name		= "i2c",
+		.devname	= "exynos5-sata-phy-i2c",
+		.parent         = &exynos5_clk_aclk_200.clk,
 		.enable		= exynos5_clk_ip_fsys_ctrl,
 		.ctrlbit	= (1 << 25),
 	}, {
@@ -1226,6 +1231,16 @@ static struct clksrc_clk exynos5_clksrcs[] = {
 		.reg_div = { .reg = EXYNOS5_CLKDIV_TOP0, .shift = 24, .size = 3 },
 	}, {
 		.clk	= {
+			.name		= "sclk_sata",
+			.devname	= "exynos5-sata",
+			.enable		= exynos5_clksrc_mask_fsys_ctrl,
+			.ctrlbit	= (1 << 24),
+		},
+		.sources = &exynos5_clkset_aclk,
+		.reg_src = { .reg = EXYNOS5_CLKSRC_FSYS, .shift = 24, .size = 1 },
+		.reg_div = { .reg = EXYNOS5_CLKDIV_FSYS0, .shift = 20, .size = 4 },
+	}, {
+		.clk	= {
 			.name		= "sclk_gscl_wrap",
 			.devname	= "s5p-mipi-csis.0",
 			.enable		= exynos5_clksrc_mask_gscl_ctrl,
-- 
1.7.4.1

  reply	other threads:[~2012-10-30 16:01 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-30 16:01 [PATCH v2 0/6] Adding support for SATA in EXYNO5 Vasanth Ananthan
2012-10-30 16:01 ` Vasanth Ananthan [this message]
2012-11-09 11:03   ` [PATCH v2 1/6] ARM: EXYNOS5: Clock settings for SATA and SATA PHY Kukjin Kim
2012-11-20 12:43   ` Kukjin Kim
2012-11-23  8:45   ` Vasanth Ananthan
2012-11-23  9:19     ` Kukjin Kim
2012-10-30 16:01 ` [PATCH v2 2/6] ARM: EXYNOS5: DT Support " Vasanth Ananthan
2012-11-09 11:10   ` Kukjin Kim
2012-11-20 12:46   ` Kukjin Kim
2012-11-23  8:48   ` Vasanth Ananthan
2012-10-30 16:01 ` [PATCH v2 3/6] DRIVERS: ATA: SATA PHY utility framework Vasanth Ananthan
2012-11-23  8:50   ` Vasanth Ananthan
2012-10-30 16:01 ` [PATCH v2 4/6] DRIVERS:I2C: I2C driver polling mode support Vasanth Ananthan
2012-11-23  8:53   ` Vasanth Ananthan
2012-10-30 16:01 ` [PATCH v2 5/6] DRIVERS: ATA: SATA controller driver Vasanth Ananthan
2012-11-23  8:56   ` Vasanth Ananthan
2012-10-30 16:01 ` [PATCH v2 6/6] DRIVERS: ATA: SATA PHY " Vasanth Ananthan
2012-11-23  8:58   ` Vasanth Ananthan

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=1351612897-14923-2-git-send-email-vasanthananthan@gmail.com \
    --to=vasanthananthan@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).