diff mbox

clk: tegra: add FUSE clock device

Message ID 1385001490-18927-1-git-send-email-acourbot@nvidia.com (mailing list archive)
State New, archived
Headers show

Commit Message

Alexandre Courbot Nov. 21, 2013, 2:38 a.m. UTC
This clock is needed to ensure the FUSE registers can be accessed
without freezing the system.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
---
 drivers/clk/tegra/clk-tegra114.c | 1 +
 drivers/clk/tegra/clk-tegra124.c | 1 +
 drivers/clk/tegra/clk-tegra20.c  | 1 +
 drivers/clk/tegra/clk-tegra30.c  | 2 +-
 4 files changed, 4 insertions(+), 1 deletion(-)

Comments

Stephen Warren Nov. 21, 2013, 8:29 p.m. UTC | #1
On 11/20/2013 07:38 PM, Alexandre Courbot wrote:
> This clock is needed to ensure the FUSE registers can be accessed
> without freezing the system.

Acked-by: Stephen Warren <swarren@nvidia.com>
Peter De Schrijver Nov. 22, 2013, 1:41 p.m. UTC | #2
On Thu, Nov 21, 2013 at 03:38:10AM +0100, Alexandre Courbot wrote:
> This clock is needed to ensure the FUSE registers can be accessed
> without freezing the system.
> 
> Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>

Acked-by: Peter De Schrijver <pdeschrijver@nvidia.com>

>  drivers/clk/tegra/clk-tegra114.c | 1 +
>  drivers/clk/tegra/clk-tegra124.c | 1 +
>  drivers/clk/tegra/clk-tegra20.c  | 1 +
>  drivers/clk/tegra/clk-tegra30.c  | 2 +-
>  4 files changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/clk/tegra/clk-tegra114.c b/drivers/clk/tegra/clk-tegra114.c
> index dbab27f773b5..b29d31d94d2e 100644
> --- a/drivers/clk/tegra/clk-tegra114.c
> +++ b/drivers/clk/tegra/clk-tegra114.c
> @@ -925,6 +925,7 @@ static struct tegra_devclk devclks[] __initdata = {
>  	{ .con_id = "sclk", .dt_id = TEGRA114_CLK_SCLK },
>  	{ .con_id = "hclk", .dt_id = TEGRA114_CLK_HCLK },
>  	{ .con_id = "pclk", .dt_id = TEGRA114_CLK_PCLK },
> +	{ .con_id = "fuse", .dt_id = TEGRA114_CLK_FUSE },
>  	{ .dev_id = "rtc-tegra", .dt_id = TEGRA114_CLK_RTC },
>  	{ .dev_id = "timer", .dt_id = TEGRA114_CLK_TIMER },
>  };
> diff --git a/drivers/clk/tegra/clk-tegra124.c b/drivers/clk/tegra/clk-tegra124.c
> index 266e80b51d38..e123fd218983 100644
> --- a/drivers/clk/tegra/clk-tegra124.c
> +++ b/drivers/clk/tegra/clk-tegra124.c
> @@ -1007,6 +1007,7 @@ static struct tegra_devclk devclks[] __initdata = {
>  	{ .con_id = "sclk", .dt_id = TEGRA124_CLK_SCLK },
>  	{ .con_id = "hclk", .dt_id = TEGRA124_CLK_HCLK },
>  	{ .con_id = "pclk", .dt_id = TEGRA124_CLK_PCLK },
> +	{ .con_id = "fuse", .dt_id = TEGRA124_CLK_FUSE },
>  	{ .dev_id = "rtc-tegra", .dt_id = TEGRA124_CLK_RTC },
>  	{ .dev_id = "timer", .dt_id = TEGRA124_CLK_TIMER },
>  };
> diff --git a/drivers/clk/tegra/clk-tegra20.c b/drivers/clk/tegra/clk-tegra20.c
> index 58faac5f509e..9dd264886621 100644
> --- a/drivers/clk/tegra/clk-tegra20.c
> +++ b/drivers/clk/tegra/clk-tegra20.c
> @@ -452,6 +452,7 @@ static struct tegra_devclk devclks[] __initdata = {
>  	{ .con_id = "sclk", .dt_id = TEGRA20_CLK_SCLK },
>  	{ .con_id = "hclk", .dt_id = TEGRA20_CLK_HCLK },
>  	{ .con_id = "pclk", .dt_id = TEGRA20_CLK_PCLK },
> +	{ .con_id = "fuse", .dt_id = TEGRA20_CLK_FUSE },
>  	{ .con_id = "twd", .dt_id = TEGRA20_CLK_TWD },
>  	{ .con_id = "audio", .dt_id = TEGRA20_CLK_AUDIO },
>  	{ .con_id = "audio_2x", .dt_id = TEGRA20_CLK_AUDIO_2X },
> diff --git a/drivers/clk/tegra/clk-tegra30.c b/drivers/clk/tegra/clk-tegra30.c
> index 51c093c96657..6d96b307d48c 100644
> --- a/drivers/clk/tegra/clk-tegra30.c
> +++ b/drivers/clk/tegra/clk-tegra30.c
> @@ -659,7 +659,7 @@ static struct tegra_devclk devclks[] __initdata = {
>  	{ .con_id = "pcie", .dev_id = "tegra-pcie", .dt_id = TEGRA30_CLK_PCIE },
>  	{ .con_id = "afi", .dev_id = "tegra-pcie", .dt_id = TEGRA30_CLK_AFI },
>  	{ .con_id = "pciex", .dev_id = "tegra-pcie", .dt_id = TEGRA30_CLK_PCIEX },
> -	{ .con_id = "fuse", .dev_id = "fuse-tegra", .dt_id = TEGRA30_CLK_FUSE },
> +	{ .con_id = "fuse", .dt_id = TEGRA30_CLK_FUSE },
>  	{ .con_id = "fuse_burn", .dev_id = "fuse-tegra", .dt_id = TEGRA30_CLK_FUSE_BURN },
>  	{ .con_id = "apbif", .dev_id = "tegra30-ahub", .dt_id = TEGRA30_CLK_APBIF },
>  	{ .con_id = "hda2hdmi", .dev_id = "tegra30-hda", .dt_id = TEGRA30_CLK_HDA2HDMI },
> -- 
> 1.8.4.2
>
Stephen Warren Nov. 22, 2013, 4:20 p.m. UTC | #3
On 11/22/2013 06:41 AM, Peter De Schrijver wrote:
> On Thu, Nov 21, 2013 at 03:38:10AM +0100, Alexandre Courbot wrote:
>> This clock is needed to ensure the FUSE registers can be accessed
>> without freezing the system.
>>
>> Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
> 
> Acked-by: Peter De Schrijver <pdeschrijver@nvidia.com>

Aren't you taking this patch through the clock tree?
Peter De Schrijver Nov. 25, 2013, 1:42 p.m. UTC | #4
On Fri, Nov 22, 2013 at 05:20:50PM +0100, Stephen Warren wrote:
> On 11/22/2013 06:41 AM, Peter De Schrijver wrote:
> > On Thu, Nov 21, 2013 at 03:38:10AM +0100, Alexandre Courbot wrote:
> >> This clock is needed to ensure the FUSE registers can be accessed
> >> without freezing the system.
> >>
> >> Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
> > 
> > Acked-by: Peter De Schrijver <pdeschrijver@nvidia.com>
> 
> Aren't you taking this patch through the clock tree?

Will do.
diff mbox

Patch

diff --git a/drivers/clk/tegra/clk-tegra114.c b/drivers/clk/tegra/clk-tegra114.c
index dbab27f773b5..b29d31d94d2e 100644
--- a/drivers/clk/tegra/clk-tegra114.c
+++ b/drivers/clk/tegra/clk-tegra114.c
@@ -925,6 +925,7 @@  static struct tegra_devclk devclks[] __initdata = {
 	{ .con_id = "sclk", .dt_id = TEGRA114_CLK_SCLK },
 	{ .con_id = "hclk", .dt_id = TEGRA114_CLK_HCLK },
 	{ .con_id = "pclk", .dt_id = TEGRA114_CLK_PCLK },
+	{ .con_id = "fuse", .dt_id = TEGRA114_CLK_FUSE },
 	{ .dev_id = "rtc-tegra", .dt_id = TEGRA114_CLK_RTC },
 	{ .dev_id = "timer", .dt_id = TEGRA114_CLK_TIMER },
 };
diff --git a/drivers/clk/tegra/clk-tegra124.c b/drivers/clk/tegra/clk-tegra124.c
index 266e80b51d38..e123fd218983 100644
--- a/drivers/clk/tegra/clk-tegra124.c
+++ b/drivers/clk/tegra/clk-tegra124.c
@@ -1007,6 +1007,7 @@  static struct tegra_devclk devclks[] __initdata = {
 	{ .con_id = "sclk", .dt_id = TEGRA124_CLK_SCLK },
 	{ .con_id = "hclk", .dt_id = TEGRA124_CLK_HCLK },
 	{ .con_id = "pclk", .dt_id = TEGRA124_CLK_PCLK },
+	{ .con_id = "fuse", .dt_id = TEGRA124_CLK_FUSE },
 	{ .dev_id = "rtc-tegra", .dt_id = TEGRA124_CLK_RTC },
 	{ .dev_id = "timer", .dt_id = TEGRA124_CLK_TIMER },
 };
diff --git a/drivers/clk/tegra/clk-tegra20.c b/drivers/clk/tegra/clk-tegra20.c
index 58faac5f509e..9dd264886621 100644
--- a/drivers/clk/tegra/clk-tegra20.c
+++ b/drivers/clk/tegra/clk-tegra20.c
@@ -452,6 +452,7 @@  static struct tegra_devclk devclks[] __initdata = {
 	{ .con_id = "sclk", .dt_id = TEGRA20_CLK_SCLK },
 	{ .con_id = "hclk", .dt_id = TEGRA20_CLK_HCLK },
 	{ .con_id = "pclk", .dt_id = TEGRA20_CLK_PCLK },
+	{ .con_id = "fuse", .dt_id = TEGRA20_CLK_FUSE },
 	{ .con_id = "twd", .dt_id = TEGRA20_CLK_TWD },
 	{ .con_id = "audio", .dt_id = TEGRA20_CLK_AUDIO },
 	{ .con_id = "audio_2x", .dt_id = TEGRA20_CLK_AUDIO_2X },
diff --git a/drivers/clk/tegra/clk-tegra30.c b/drivers/clk/tegra/clk-tegra30.c
index 51c093c96657..6d96b307d48c 100644
--- a/drivers/clk/tegra/clk-tegra30.c
+++ b/drivers/clk/tegra/clk-tegra30.c
@@ -659,7 +659,7 @@  static struct tegra_devclk devclks[] __initdata = {
 	{ .con_id = "pcie", .dev_id = "tegra-pcie", .dt_id = TEGRA30_CLK_PCIE },
 	{ .con_id = "afi", .dev_id = "tegra-pcie", .dt_id = TEGRA30_CLK_AFI },
 	{ .con_id = "pciex", .dev_id = "tegra-pcie", .dt_id = TEGRA30_CLK_PCIEX },
-	{ .con_id = "fuse", .dev_id = "fuse-tegra", .dt_id = TEGRA30_CLK_FUSE },
+	{ .con_id = "fuse", .dt_id = TEGRA30_CLK_FUSE },
 	{ .con_id = "fuse_burn", .dev_id = "fuse-tegra", .dt_id = TEGRA30_CLK_FUSE_BURN },
 	{ .con_id = "apbif", .dev_id = "tegra30-ahub", .dt_id = TEGRA30_CLK_APBIF },
 	{ .con_id = "hda2hdmi", .dev_id = "tegra30-hda", .dt_id = TEGRA30_CLK_HDA2HDMI },