The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 03/23] mfd/db8500-prcmu: initialize DB8500 PRCMU regs
@ 2011-08-12  8:27 Linus Walleij
  2011-10-03 15:51 ` Samuel Ortiz
  0 siblings, 1 reply; 3+ messages in thread
From: Linus Walleij @ 2011-08-12  8:27 UTC (permalink / raw)
  To: Samuel Ortiz, linux-kernel; +Cc: Lee Jones, Mattias Nilsson, Linus Walleij

From: Mattias Nilsson <mattias.i.nilsson@stericsson.com>

Some clocks may be force enabled when we probe the
driver, but they need to be turned off by default so
we have a known state. We call this the register
initialization function if we need more stuff in
there in the future.

Signed-off-by: Mattias Nilsson <mattias.i.nilsson@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/mfd/db8500-prcmu.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/drivers/mfd/db8500-prcmu.c b/drivers/mfd/db8500-prcmu.c
index dcc690e..e2c4a26 100644
--- a/drivers/mfd/db8500-prcmu.c
+++ b/drivers/mfd/db8500-prcmu.c
@@ -1840,6 +1840,16 @@ void __init prcmu_early_init(void)
 	}
 }
 
+static void __init init_prcm_registers(void)
+{
+	u32 val;
+
+	val = readl(PRCM_A9PL_FORCE_CLKEN);
+	val &= ~(PRCM_A9PL_FORCE_CLKEN_PRCM_A9PL_FORCE_CLKEN |
+		PRCM_A9PL_FORCE_CLKEN_PRCM_A9AXI_FORCE_CLKEN);
+	writel(val, (PRCM_A9PL_FORCE_CLKEN));
+}
+
 /*
  * Power domain switches (ePODs) modeled as regulators for the DB8500 SoC
  */
@@ -2038,6 +2048,8 @@ static int __init db8500_prcmu_probe(struct platform_device *pdev)
 	if (ux500_is_svp())
 		return -ENODEV;
 
+	init_prcm_registers();
+
 	/* Clean up the mailbox interrupts after pre-kernel code. */
 	writel(ALL_MBOX_BITS, PRCM_ARM_IT1_CLR);
 
-- 
1.7.3.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 03/23] mfd/db8500-prcmu: initialize DB8500 PRCMU regs
  2011-08-12  8:27 [PATCH 03/23] mfd/db8500-prcmu: initialize DB8500 PRCMU regs Linus Walleij
@ 2011-10-03 15:51 ` Samuel Ortiz
  2011-10-05 14:32   ` Linus Walleij
  0 siblings, 1 reply; 3+ messages in thread
From: Samuel Ortiz @ 2011-10-03 15:51 UTC (permalink / raw)
  To: Linus Walleij; +Cc: linux-kernel, Lee Jones, Mattias Nilsson, Linus Walleij

Hi Linus,

On Fri, Aug 12, 2011 at 10:27:50AM +0200, Linus Walleij wrote:
> From: Mattias Nilsson <mattias.i.nilsson@stericsson.com>
> 
> Some clocks may be force enabled when we probe the
> driver, but they need to be turned off by default so
> we have a known state. We call this the register
> initialization function if we need more stuff in
> there in the future.
> 
> Signed-off-by: Mattias Nilsson <mattias.i.nilsson@stericsson.com>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
>  drivers/mfd/db8500-prcmu.c |   12 ++++++++++++
>  1 files changed, 12 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/mfd/db8500-prcmu.c b/drivers/mfd/db8500-prcmu.c
> index dcc690e..e2c4a26 100644
> --- a/drivers/mfd/db8500-prcmu.c
> +++ b/drivers/mfd/db8500-prcmu.c
> @@ -1840,6 +1840,16 @@ void __init prcmu_early_init(void)
>  	}
>  }
>  
> +static void __init init_prcm_registers(void)
Could we have a less generic function name here ?

Cheers,
Samuel.

-- 
Intel Open Source Technology Centre
http://oss.intel.com/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 03/23] mfd/db8500-prcmu: initialize DB8500 PRCMU regs
  2011-10-03 15:51 ` Samuel Ortiz
@ 2011-10-05 14:32   ` Linus Walleij
  0 siblings, 0 replies; 3+ messages in thread
From: Linus Walleij @ 2011-10-05 14:32 UTC (permalink / raw)
  To: Samuel Ortiz; +Cc: Linus Walleij, linux-kernel, Lee Jones, Mattias Nilsson

On Mon, Oct 3, 2011 at 5:51 PM, Samuel Ortiz <sameo@linux.intel.com> wrote:

>> +static void __init init_prcm_registers(void)
> Could we have a less generic function name here ?

OK I will rename it db8500_prcmu_init() as an add-on patch.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-10-05 14:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-12  8:27 [PATCH 03/23] mfd/db8500-prcmu: initialize DB8500 PRCMU regs Linus Walleij
2011-10-03 15:51 ` Samuel Ortiz
2011-10-05 14:32   ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox