[PATCH 07/18] ARM: OMAP2/3: CM: remove direct register access macros from common header

2014-03-04 Thread Tero Kristo
Done in preparation to move CM to be a driver of its own. This patch causes currently a build breakage which will be addressed in next patches. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cm2xxx.c |1 + arch/arm/mach-omap2/cm2xxx_3xxx.h | 48

[PATCH 04/18] ARM: OMAP3: PRM: move prcm wakeup helper to prm driver

2014-03-04 Thread Tero Kristo
Done in preparation to make the prm an individual driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/pm34xx.c | 60 + arch/arm/mach-omap2/prm3xxx.c | 53 arch/arm/mach-omap2/prm3xxx.h |1 + 3 files

[PATCH 02/18] ARM: OMAP2+: prcm: add omap_test_timeout to prcm-common.h

2014-03-04 Thread Tero Kristo
Done in preparation to move cm/prm to drivers. These will still use omap_test_timeout, but will not have access to common.h header under mach-omap2 anymore. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/prcm-common.h | 20 1 file changed, 20 insertions(+) diff --git

[PATCH 15/18] ARM: OMAP4+: PRM: make prm register access internal to PRM driver only

2014-03-04 Thread Tero Kristo
Removed exported prototypes from the public header file for the direct register access. Also made a new driver API for clearing mpuss previous logic powerstate so that the register APIs are no longer needed. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/omap-mpuss-lowpower.c | 15

[PATCH 17/18] ARM: OMAP3: PRM: move modem reset and iva2 idle to PRM driver

2014-03-04 Thread Tero Kristo
Done in preparation to move PRM into its own driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/pm34xx.c | 15 --- arch/arm/mach-omap2/prm3xxx.c |7 +++ 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach

[PATCH 08/18] ARM: OMAP3: PRM: add API for checking and clearing cold reset status

2014-03-04 Thread Tero Kristo
This isolates the PRM register access within the PRM driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/control.c |6 +- arch/arm/mach-omap2/prm3xxx.c | 20 arch/arm/mach-omap2/prm3xxx.h |1 + 3 files changed, 22 insertions(+), 5 deletions(-) diff

[PATCH 01/18] ARM: OMAP3: CM: remove a few OMAP34XX_CM_REGADDR defines

2014-03-04 Thread Tero Kristo
Remove a few OMAP34XX_CM_REGADDR defines and replace these with offset based register accesses instead. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cm3xxx.c | 12 arch/arm/mach-omap2/cm3xxx.h |6 ++ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a

[PATCH 11/18] ARM: OMAP24xx: PRM: move PRM init code within PRM driver from PM core

2014-03-04 Thread Tero Kristo
Done to isolate the PRM as its own driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/pm24xx.c | 34 + arch/arm/mach-omap2/prm2xxx.c | 42 + arch/arm/mach-omap2/prm2xxx.h |1 + 3 files changed, 44

[PATCH 00/18] ARM: OMAP2+: CM/PRM cleanup set

2014-03-04 Thread Tero Kristo
Hi, This set cleans up the CM/PRM codebase a bit, removing the need for direct CM/PRM register access macros outside CM/PRM drivers. This is done in preparation to isolate these drivers into its own driver directory. Currently my plan is to create a single PRCM driver, which will contain both, and

[PATCH 10/18] ARM: OMAP24xx: PRM: add API for clearing wakeup status bits

2014-03-04 Thread Tero Kristo
This helps to isolate the PRM into its own driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/pm24xx.c | 31 +-- arch/arm/mach-omap2/prm2xxx.c | 18 ++ arch/arm/mach-omap2/prm2xxx.h |1 + 3 files changed, 32 insertions(+), 18

[PATCH 03/18] ARM: OMAP2/3: CM: remove some external dependencies

2014-03-04 Thread Tero Kristo
Done in preparation to move the CM driver to its own driver folder. These drivers will not have access to functionality under mach-omap2 anymore. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cm2xxx.c | 15 ++- arch/arm/mach-omap2/cm3xxx.c | 13 + 2 files

[PATCH 06/18] ARM: OMAP3: PRM: move modem reset to PRM driver

2014-03-04 Thread Tero Kristo
This is a more proper isolation of the code. Done in preparation of making PRM an individual driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/pm34xx.c |5 + arch/arm/mach-omap2/prm3xxx.c | 15 +++ arch/arm/mach-omap2/prm3xxx.h |1 + 3 files changed, 17

[PATCH 13/18] ARM: OMAP3: PRM: move PRM init code from PM core to the driver

2014-03-04 Thread Tero Kristo
Helps to isolate the PRM driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/pm34xx.c | 71 +--- arch/arm/mach-omap2/prm3xxx.c | 90 + arch/arm/mach-omap2/prm3xxx.h |1 + 3 files changed, 92 insertions(+), 70

[PATCH 16/18] ARM: OMAP3: control: add API for setting up the modem pads

2014-03-04 Thread Tero Kristo
This patch moves the functionality from PM core to control driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/control.c | 26 ++ arch/arm/mach-omap2/control.h |1 + arch/arm/mach-omap2/pm34xx.c | 15 +-- 3 files changed, 28 insertions(+), 14

[PATCH 18/18] ARM: OMAP3: control: isolate control module init to its own function

2014-03-04 Thread Tero Kristo
Control module related PM initializations are now moved within control module driver. Done in preparation to isolate the code to its own driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/control.c | 19 +-- arch/arm/mach-omap2/control.h |3 +-- arch/arm/mach-omap2

Re: [PATCHv2 13/14] ARM: OMAP24xx: clock: remove legacy clock data

2014-03-04 Thread Tero Kristo
On 03/04/2014 07:32 PM, Tony Lindgren wrote: * Tero Kristo [140304 01:22]: This is no longer needed as clock data is provided through DT. Looks like there's a new error even before applying this patch in the series as I'm now getting the following oops on n8x0. So cannot test this

Re: [PATCHv2 14/14] ARM: OMAP3: clock: remove legacy clock data

2014-03-04 Thread Tero Kristo
On 03/04/2014 07:32 PM, Tony Lindgren wrote: * Tero Kristo [140304 01:22]: This is no longer needed as clock data is provided through DT. And this one we cannot apply yet until omap3 is booting in device tree only mode. What is missing to achieve this? Some boards are not booting in DT

Re: [PATCHv2 13/14] ARM: OMAP24xx: clock: remove legacy clock data

2014-03-05 Thread Tero Kristo
On 03/04/2014 11:28 PM, Tony Lindgren wrote: * Tero Kristo [140304 10:58]: On 03/04/2014 07:32 PM, Tony Lindgren wrote: * Tero Kristo [140304 01:22]: This is no longer needed as clock data is provided through DT. Looks like there's a new error even before applying this patch in the s

Re: [PATCH 0/8] OMAP: OMAP3 DSS related clock patches

2014-03-05 Thread Tero Kristo
On 03/05/2014 10:35 AM, Tomi Valkeinen wrote: Hi Tero, What about the dts fixes in this series? DSS DT depends on those fixes. I'd like the dts fixes to be either merged for v3.14, or I can add them to my DSS DT series (with acks). Well, I am not a maintainer of any sort, so you are asking wro

Re: [PATCH v4 4/4] ARM: OMAP2+: Add pdata quirk for sys_clkout2 for omap3 DBB056

2014-03-05 Thread Tero Kristo
On 03/01/2014 12:37 AM, Tony Lindgren wrote: * Christoph Fritz [140214 06:24]: Full device tree support for clock control, especially to set frequencies, is not yet accomplished. Until then, configure the 24Mhz of sys_clkout2 to feed an USB-Hub here. Hmm would like to see Tero's comments on t

Re: [PATCH 0/4] clk: dt: add support for default rate/parent

2014-03-05 Thread Tero Kristo
Ping. Mike, any feedback on this? -Tero On 02/13/2014 11:00 AM, Tero Kristo wrote: Hi, This set is a mix-match of new DT properties for generic and TI specific clock drivers. Basically provided for commenting purposes. The patches provide a way to configure clock parents / rates during boot

Re: [PATCHv2 13/14] ARM: OMAP24xx: clock: remove legacy clock data

2014-03-06 Thread Tero Kristo
On 03/05/2014 08:10 PM, Tony Lindgren wrote: * Tony Lindgren [140305 09:12]: * Tero Kristo [140305 00:17]: On 03/04/2014 11:28 PM, Tony Lindgren wrote: * Tero Kristo [140304 10:58]: On 03/04/2014 07:32 PM, Tony Lindgren wrote: * Tero Kristo [140304 01:22]: This is no longer needed as

Re: [PATCH 1/8] CLK: ti: dra7: Initialize USB_DPLL

2014-03-07 Thread Tero Kristo
On 03/07/2014 03:09 PM, Roger Quadros wrote: USB_DPLL must be initialized and locked at boot so that USB modules can work. Also program USB_DLL_M2 output to half rate. CC: Mike Turquette CC: Tero Kristo Signed-off-by: Roger Quadros --- drivers/clk/ti/clk-7xx.c | 11 +++ 1 file

Re: [PATCH 2/8] ARM: dts: dra7-clock: Add "l3init_960m_gfclk" clock gate

2014-03-07 Thread Tero Kristo
usb_otg_ss1_refclk960m and usb_otg_ss2_refclk960m. CC: Tero Kristo Signed-off-by: Roger Quadros --- arch/arm/boot/dts/dra7xx-clocks.dtsi | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/dra7xx-clocks.dtsi b/arch/arm/boot/dts/dra7xx-clocks.dtsi index

Re: [PATCH v2 1/8] ARM: dts: dra7: Initialize USB_DPLL

2014-03-10 Thread Tero Kristo
On 03/10/2014 02:49 PM, Roger Quadros wrote: USB_DPLL must be initialized and locked at boot so that USB modules can work. Program USB_DLL_M2 output to half rate as well. Patch depends on https://www.mail-archive.com/linux-omap@vger.kernel.org/msg101300.html CC: Mike Turquette CC: Tero

Re: [RFC 3/5] ARM: OMAP2+: timer: Add clocksource initialization and powerup support

2014-03-14 Thread Tero Kristo
On 03/14/2014 01:36 AM, Joel Fernandes wrote: On 03/13/2014 04:52 PM, Rob Herring wrote: On Thu, Mar 13, 2014 at 3:35 PM, Joel Fernandes wrote: Introduce a generic omap timer initialization function that can be used by all SoCs for which support is available in the clocksource driver introduce

Re: [RFC 2/5] ARM: dts: am33xx: Set parent clock for timer through DT

2014-03-14 Thread Tero Kristo
On 03/13/2014 10:35 PM, Joel Fernandes wrote: Signed-off-by: Joel Fernandes --- arch/arm/boot/dts/am33xx.dtsi |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi index 4e6c959..51b7008 100644 --- a/arch/arm/boot/dts/am33xx.dts

Re: pandaboard boot crash with linux-next

2014-03-18 Thread Tero Kristo
On 03/18/2014 10:32 AM, Peter Ujfalusi wrote: On 03/17/2014 04:09 PM, Tomi Valkeinen wrote: Hi, I noticed that my omap4 panda does not boot with today's linux-next (8808b950581f71e3ee4cf8e6cae479f4c7106405). I didn't have much time to study it, but I didn't find any posts about the issue with a

Re: [PATCH 0/4] clk: dt: add support for default rate/parent

2014-03-21 Thread Tero Kristo
On 03/20/2014 11:23 PM, Mike Turquette wrote: Quoting Tero Kristo (2014-03-05 05:10:17) Ping. Mike, any feedback on this? Hi Tero, Have you seen Sylwester's approach[1]? I prefer it since it is more device-oriented and less "centralized". The clock consumer enumerates the de

Re: [PATCH 12/18] ARM: OMAP3: PM: remove access to PRM_VOLTCTRL register

2014-03-26 Thread Tero Kristo
On 03/26/2014 12:36 AM, Tony Lindgren wrote: * Tero Kristo [140304 08:23]: There is a solitary write to this register every wakeup from off-mode, which isn't doing anything, so remove it. Argh, this chunk of code is for sure the the thing that's blocking all the voltage scalin

[PATCH 00/55]: ARM: OMAP2+: PRCM move to drivers

2014-03-31 Thread Tero Kristo
Hi, This set is continuation for the work started earlier to cleanup the CM/PRM and attempt to make it a separate driver. This set depends on these two sets: CM/PRM cleanup set: http://marc.info/?l=linux-omap&m=139395000918201&w=2 OMAP2 clock DT set: http://comments.gmane.org/gmane.linux.ports.a

[PATCH 01/55] ARM: OMAP4: CM: use cm_base* in register address calculations

2014-03-31 Thread Tero Kristo
OMAP44XX_CM*_REGADDR macros should be avoided, instead use the cm_base* iomaps. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cm44xx.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-omap2/cm44xx.c b/arch/arm/mach-omap2/cm44xx.c index 535d66e

[PATCH 06/55] ARM: OMAP3/4: PRM: add support of late_init call to prm_ll_ops

2014-03-31 Thread Tero Kristo
SoC specific late_init call is now registered during PRM init, and will be called automatically by PRM core. This helps to get rid of some redundant initcalls and cpu_is_X checks from the PRM code. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/prm.h|2 ++ arch/arm/mach-omap2

[PATCH 11/55] CLK: TI: clockdomain: add support for retrying init

2014-03-31 Thread Tero Kristo
Retry init is needed if clockdomains are registered before the corresponding clocks are ready. In this case, the clockdomain info is added to a list which will be processed once the clockdomains for next PRCM module are processed. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/prm_common.c

[PATCH 14/55] ARM: OMAP2: CM: remove references to cm-regbits-24xx.h from CM core code

2014-03-31 Thread Tero Kristo
Done in preparation to make CM a standalone driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cm2xxx.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/cm2xxx.c b/arch/arm/mach-omap2/cm2xxx.c index 4c29f63..e74484a 100644

[PATCH 18/55] ARM: OMAP4: PRM: remove references to prm-regbits-44xx.h from PRM core code

2014-03-31 Thread Tero Kristo
Done in preparation to make PRM a standalone driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/prm44xx.c | 33 - arch/arm/mach-omap2/prminst44xx.c |3 ++- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2

[PATCH 07/55] ARM: OMAP3+: PRM: add cpu-type as parameter to prm_init calls

2014-03-31 Thread Tero Kristo
This helps to get rid of cpu_is_X checks from within the PRM driver. Done in preparation to make PRM a separate driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/io.c | 17 + arch/arm/mach-omap2/prm.h | 11 +++ arch/arm/mach-omap2

[PATCH 09/55] ARM: OMAP4+: PRM: add prm_dev_inst offset as a global parameter

2014-03-31 Thread Tero Kristo
This is different for OMAP4, OMAP5 and DRA7, and is currently checked runtime with a cpu_is_X check. Replace this with an init time setting. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/prm.h |1 + arch/arm/mach-omap2/prm44xx.c | 20 +--- arch/arm/mach

[PATCH 13/55] ARM: OMAP4: PRCM: remove references to cm-regbits-44xx.h from PRCM core files

2014-03-31 Thread Tero Kristo
Done in preparation to make PRCM a standalone driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cm44xx.c |1 - arch/arm/mach-omap2/cminst44xx.c |8 +++- arch/arm/mach-omap2/powerdomain-common.c |1 - 3 files changed, 7 insertions(+), 3 deletions

[PATCH 05/55] ARM: OMAP3/OMAP4: PRM: add prm_features flags and add IO wakeup under it

2014-03-31 Thread Tero Kristo
prm_features flag will contain SoC specific feature enabler flags. Initially IO wakeup is added under this. Helps to get rid of runtime cpu_is_X checks. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/prm.h|8 arch/arm/mach-omap2/prm3xxx.c|8 +++- arch/arm

[PATCH 10/55] ARM: OMAP3+: PRM: get rid of some unnecessary header files

2014-03-31 Thread Tero Kristo
Done in preparation to make PRM a separate driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/prcm-common.h |1 + arch/arm/mach-omap2/prm3xxx.c |4 +--- arch/arm/mach-omap2/prm44xx.c |5 ++--- arch/arm/mach-omap2/prm_common.c |2 -- arch/arm/mach-omap2

[PATCH 02/55] ARM: OMAP2+: PRCM: cleanup some header includes

2014-03-31 Thread Tero Kristo
Some of the includes are totally unnecessary, remove some others in preparation to make the PRCM its own driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/clockdomain.h |3 ++- arch/arm/mach-omap2/cm33xx.h |3 --- arch/arm/mach-omap2

[PATCH 15/55] ARM: AM33xx: CM: remove references to cm-regbits-33xx.h from CM core code

2014-03-31 Thread Tero Kristo
Done in preparation to make CM a standalone driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cm33xx.c |9 - arch/arm/mach-omap2/cm33xx.h |1 - 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/cm33xx.c b/arch/arm/mach-omap2/cm33xx.c

[PATCH 12/55] ARM: PRCM: split PRCM module init to their own driver files

2014-03-31 Thread Tero Kristo
Previously this was done for all modules under prm_common.c. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cm_common.c | 18 + arch/arm/mach-omap2/control.c | 15 +++ arch/arm/mach-omap2/control.h |1 + arch/arm/mach-omap2/io.c |4

[PATCH 04/55] ARM: OMAP3/4: PRM: provide io chain reconfig function through irq setup

2014-03-31 Thread Tero Kristo
This helps to make the PRM registration modular, and also gets rid of a cpu type check done later. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/prcm-common.h |2 ++ arch/arm/mach-omap2/prm3xxx.c |1 + arch/arm/mach-omap2/prm44xx.c |1 + arch/arm/mach-omap2/prm_common.c

[PATCH 16/55] ARM: OMAP2: PRM: remove references to prm-regbits-24xx.h from PRM core code

2014-03-31 Thread Tero Kristo
Done in preparation to make PRM a standalone driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/prm2xxx.c | 16 +++- arch/arm/mach-omap2/prm2xxx_3xxx.c |1 - 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/prm2xxx.c b/arch/arm

[PATCH 08/55] ARM: DRA7: PRM: add voltage processor check behind a prm_feature flag

2014-03-31 Thread Tero Kristo
This is done in attempt to get rid of cpu_is_X calls from the PRM core. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/prm.h |1 + arch/arm/mach-omap2/prm44xx.c |4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/prm.h b/arch/arm/mach-omap2

[PATCH 24/55] ARM: OMAP3: CM: move cm3xxx.h header to public location

2014-03-31 Thread Tero Kristo
This file needs to be accessible from the PRCM core and mach-omap2 board support code. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cm3xxx.c |2 +- arch/arm/mach-omap2/cm3xxx.h | 66 + arch/arm/mach-omap2/cm_common.c |2 +- arch/arm/mach

[PATCH 34/55] ARM: AM33XX: PRM: move parts of the prm33xx.h header file to public location

2014-03-31 Thread Tero Kristo
Parts of this file are needed from both the driver and mach-omap2 board code. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/am33xx-restart.c |2 +- arch/arm/mach-omap2/cm33xx.c |3 ++- arch/arm/mach-omap2/prm33xx.c|3 ++- arch/arm/mach-omap2/prm33xx.h

[PATCH 39/55] ARM: OMAP5: PRM: remove direct register declaration macros

2014-03-31 Thread Tero Kristo
None of these are currently used, so cleanup. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/prm54xx.h | 18 -- 1 file changed, 18 deletions(-) diff --git a/arch/arm/mach-omap2/prm54xx.h b/arch/arm/mach-omap2/prm54xx.h index e441101..3f1b383 100644 --- a/arch/arm/mach

[PATCH 29/55] ARM: OMAP4: CM: rename cminst44xx.h to cm44xx.h and move it to public location

2014-03-31 Thread Tero Kristo
The new name follows the naming convention of the other public CM header files. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cminst44xx.c |2 +- arch/arm/mach-omap2/cminst44xx.h | 29 - arch/arm/mach-omap2/io.c |2 +- arch/arm/mach-omap2

[PATCH 31/55] ARM: OMAP2: export parts of prm2xxx.h header file

2014-03-31 Thread Tero Kristo
Some of these are shared between the PRM driver and mach-omap2 board code. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cm2xxx.c |4 +++- arch/arm/mach-omap2/prm2xxx.c |2 +- arch/arm/mach-omap2/prm2xxx.h | 20 +- arch/arm/mach-omap2/prm_common.c

[PATCH 23/55] ARM: AM33xx: CM: move cm33xx.h header to a public location

2014-03-31 Thread Tero Kristo
This file needs to be accessible from the PRCM core and mach-omap2 board support code. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cm33xx.c |2 +- arch/arm/mach-omap2/cm33xx.h | 50 +-- include/linux/power/omap/cm33xx.h | 68

[PATCH 27/55] ARM: OMAP4+: CM: remove unused cm_44xx_54xx.h header file

2014-03-31 Thread Tero Kristo
This is not used for anything, so removed. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cm1_44xx.h |2 -- arch/arm/mach-omap2/cm1_54xx.h |2 -- arch/arm/mach-omap2/cm1_7xx.h |2 -- arch/arm/mach-omap2/cm2_44xx.h |2 -- arch/arm/mach-omap2/cm2_54xx.h

[PATCH 20/55] ARM: OMAP3+: PRCM: remove references to cm-regbits-34xx.h from PRCM core code

2014-03-31 Thread Tero Kristo
Done in preparation to make PRCM a standalone driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cm33xx.c |6 +- arch/arm/mach-omap2/cm3xxx.c |8 +++- arch/arm/mach-omap2/cminst44xx.c |6 +- arch/arm/mach-omap2/powerdomain-common.c

[PATCH 17/55] ARM: AM33xx: PRM: remove references to prm-regbits-33xx.h from PRM core code

2014-03-31 Thread Tero Kristo
Done in preparation to make PRM a standalone driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/prm33xx.c |8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/prm33xx.c b/arch/arm/mach-omap2/prm33xx.c index 0660105..877d7c7 100644 --- a/arch

[PATCH 19/55] ARM: OMAP3: PRM: remove references to prm-regbits-34xx.h from PRM core code

2014-03-31 Thread Tero Kristo
Done in preparation to make PRM a standalone driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/prm3xxx.c | 54 - 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/prm3xxx.c b/arch/arm/mach-omap2/prm3xxx.c index

[PATCH 26/55] ARM: OMAP3: move cm2xxx_3xxx.h header to public location

2014-03-31 Thread Tero Kristo
This file needs to be accessible from the PRCM core and mach-omap2 board support code. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/clkt_iclk.c |2 +- arch/arm/mach-omap2/clock3xxx.c |2 +- arch/arm/mach-omap2/clockdomains2420_data.c |2

[PATCH 33/55] ARM: AM33xx: PRM: move global warm reset implementation to driver

2014-03-31 Thread Tero Kristo
Moved the implementation from am33xx-restart.c to the prm33xx.c file to isolate the PRM register accesses to be private for PRM driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/am33xx-restart.c |9 + arch/arm/mach-omap2/prm33xx.c| 16 2 files

[PATCH 48/55] ARM: OMAP2+: move prm.h header to public location

2014-03-31 Thread Tero Kristo
This file needs to be accessible from the PRCM core and mach-omap2 board support code. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cminst44xx.c |2 +- arch/arm/mach-omap2/cpuidle44xx.c|2 +- arch/arm/mach-omap2/display.c|2

[PATCH 28/55] ARM: OMAP4: CM: make all omap4_cminst_read/write calls static

2014-03-31 Thread Tero Kristo
These are not used outside the cminst44xx.c anymore, thus make them static. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cminst44xx.c | 23 +++ arch/arm/mach-omap2/cminst44xx.h | 14 -- 2 files changed, 11 insertions(+), 26 deletions(-) diff --git a

[PATCH 30/55] ARM: OMAP2+: CM: move cm.h header to public location

2014-03-31 Thread Tero Kristo
This file needs to be accessible from the PRCM core and mach-omap2 board support code. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/clock.c |2 +- arch/arm/mach-omap2/clock2xxx.c |2 +- arch/arm/mach-omap2/clockdomains33xx_data.c |2 +- arch/arm

[PATCH 32/55] ARM: OMAP2+: PRM: move prm2xxx_3xxx.h to public location

2014-03-31 Thread Tero Kristo
This file needs to be accessible from the PRCM core and mach-omap2 board support code. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/clock3xxx.c |2 +- arch/arm/mach-omap2/clockdomains2420_data.c |2 +- arch/arm/mach-omap2/clockdomains2430_data.c |2

[PATCH 44/55] ARM: OMAP4: PRM: make omap4_prm_read/write_inst_reg calls static

2014-03-31 Thread Tero Kristo
These are not (and should not be) used by anybody outside the PRM driver itself. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/prm44xx.c |6 +++--- arch/arm/mach-omap2/prm44xx_54xx.h |4 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/arch/arm/mach-omap2

[PATCH 22/55] ARM: OMAP2: CM: move cm2xxx.h header to a public location

2014-03-31 Thread Tero Kristo
This file needs to be accessible from the PRCM core and mach-omap2 board support code. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cm2xxx.c |2 +- arch/arm/mach-omap2/cm2xxx.h | 52 +-- arch/arm/mach-omap2/cm_common.c |2 +- include/linux

[PATCH 21/55] ARM: OMAP2+: PRCM: remove references to clock.h from PRCM core code

2014-03-31 Thread Tero Kristo
Done in preparation to make PRCM a standalone driver. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/clockdomain.c |1 - arch/arm/mach-omap2/clockdomain.h |2 +- arch/arm/mach-omap2/prcm-common.h |2 ++ arch/arm/mach-omap2/prm_common.c | 11 --- 4 files changed, 7

[PATCH 25/55] ARM: OMAP4: CM: remove unnecessary cm44xx.h header file

2014-03-31 Thread Tero Kristo
Contains only two defines used by a single source code file, so move the definitions over and delete the file. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cm44xx.h | 26 -- arch/arm/mach-omap2/cm_common.c |3 ++- arch/arm/mach-omap2/cminst44xx.c

[PATCH 35/55] ARM: OMAP3: PRM: remove direct register declaration macros

2014-03-31 Thread Tero Kristo
Only a handful of these are currently used in the kernel, so cleanup. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cclock3xxx_data.c | 14 - arch/arm/mach-omap2/prm3xxx.h | 37 - 2 files changed, 9 insertions(+), 42 deletions

[PATCH 36/55] ARM: OMAP3: PRM: move prm3xxx.h header to public location

2014-03-31 Thread Tero Kristo
This file needs to be accessible from the PRCM core and mach-omap2 board support code. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/prm3xxx.c |2 +- arch/arm/mach-omap2/prm3xxx.h | 113 +- arch/arm/mach-omap2/prm_common.c |2 +- include

[PATCH 41/55] ARM: DRA7: PRM: remove direct register declaration macros

2014-03-31 Thread Tero Kristo
None of these are currently used, so cleanup. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/prm7xx.h | 77 -- 1 file changed, 77 deletions(-) diff --git a/arch/arm/mach-omap2/prm7xx.h b/arch/arm/mach-omap2/prm7xx.h index d92a840..b971af5 100644

[PATCH 37/55] ARM: OMAP4: PRM: remove direct register declaration macros

2014-03-31 Thread Tero Kristo
None of these are currently used, so cleanup. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/prm44xx.h | 318 - 1 file changed, 318 deletions(-) diff --git a/arch/arm/mach-omap2/prm44xx.h b/arch/arm/mach-omap2/prm44xx.h index 7db2422..7fc277b 100644

[PATCH 46/55] ARM: OMAP3+: VP: move OMAP*_VP_VDD_*_ID definitions to prm public headers

2014-03-31 Thread Tero Kristo
vp.h is not publicly available, however the PRM driver requires access to these so moved to prm public headers. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/prm3xxx.c |1 - arch/arm/mach-omap2/prm44xx.c |1 - arch/arm/mach-omap2/vp.h |9 - include

[PATCH 49/55] ARM: OMAP4: move prcm44xx.h header to public location

2014-03-31 Thread Tero Kristo
This file needs to be accessible from the PRCM core and mach-omap2 board support code. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/clockdomains43xx_data.c |1 - arch/arm/mach-omap2/clockdomains44xx_data.c |2 +- arch/arm/mach-omap2/clockdomains54xx_data.c |2 +- arch

[PATCH 53/55] ARM: OMAP4: CM: remove unnecessary cm*_44xx.h header files from core code

2014-03-31 Thread Tero Kristo
These are not needed for anything. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cm44xx.c |2 -- arch/arm/mach-omap2/cminst44xx.c |2 -- 2 files changed, 4 deletions(-) diff --git a/arch/arm/mach-omap2/cm44xx.c b/arch/arm/mach-omap2/cm44xx.c index 506974b..14d8256 100644 --- a

[PATCH 43/55] ARM: OMAP4: PRM: get rid of prminst44xx.h header file

2014-03-31 Thread Tero Kristo
Only contains a few function prototypes, so move these to the public prm44xx.h header and remove the now unnecessary prminst44xx.h. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/io.c |1 - arch/arm/mach-omap2/omap-mpuss-lowpower.c |1 - arch/arm/mach-omap2

[PATCH 38/55] ARM: OMAP4: PRM: move parts of prm44xx.h header file to public location

2014-03-31 Thread Tero Kristo
Parts of this file are needed from both the driver and mach-omap2 board code. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cminst44xx.c |3 +- arch/arm/mach-omap2/powerdomain.c |3 +- arch/arm/mach-omap2/prm44xx.c |2 +- arch/arm/mach-omap2/prm44xx.h | 394

[PATCH 40/55] ARM: OMAP5: PRM: move parts of prm54xx.h header file to public location

2014-03-31 Thread Tero Kristo
Parts of this file are needed by both the driver and mach-omap2 board code. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/prm44xx.c |2 +- arch/arm/mach-omap2/prm54xx.h | 371 +- arch/arm/mach-omap2/prminst44xx.c |2 +- include/linux

[PATCH 50/55] ARM: OMAP2+: clockdomain: move clockdomain.h header to public location

2014-03-31 Thread Tero Kristo
This file needs to be accessible from the PRCM core and mach-omap2 board support code. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/clock.c |2 +- arch/arm/mach-omap2/clockdomain.c|3 +- arch/arm/mach-omap2/clockdomain.h| 237

[PATCH 45/55] ARM: OMAP4: PRM: move prm44xx_54xx.h header to public location

2014-03-31 Thread Tero Kristo
This file needs to be accessible from the PRCM core and mach-omap2 board support code. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/prm44xx.c |2 +- arch/arm/mach-omap2/prm44xx.h |2 +- arch/arm/mach-omap2/prm44xx_54xx.h | 61

[PATCH 52/55] ARM: OMAP2+: PRCM: add prcm_base init call for DT boot

2014-03-31 Thread Tero Kristo
This parses the prm, cm and scrm base addresses from DT if available, avoiding the need for various omap2_set_globals_* calls. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cm_common.c| 57 --- arch/arm/mach-omap2/control.c | 36 ++-- arch/arm

[PATCH 54/55] ARM: OMAP4: PRCM: move prcm_mpu_base definition to a public header

2014-03-31 Thread Tero Kristo
Needed from both PRCM core code and mach-omap2 board code. This gets rid of need to include the prcm_mpu_44xx_54xx.h header to the PRCM core code. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cminst44xx.c |1 - arch/arm/mach-omap2/prcm_mpu_44xx_54xx.h |2 -- arch/arm/mach

[PATCH 51/55] ARM: OMAP2+: powerdomain: move powerdomain.h header to public location

2014-03-31 Thread Tero Kristo
This file needs to be accessible from the PRCM core and mach-omap2 board support code. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/clockdomain.c|2 +- arch/arm/mach-omap2/cm2xxx.c |2 +- arch/arm/mach-omap2/cm3xxx.c |2

[PATCH 47/55] ARM: OMAP2+: PRM: move prcm-common.h header to public location

2014-03-31 Thread Tero Kristo
This file needs to be accessible from the PRCM core and mach-omap2 board support code. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/cm2xxx.c |2 +- arch/arm/mach-omap2/cm2xxx.h |2 +- arch/arm/mach-omap2/cm33xx.c |2

Re: [PATCH 00/55]: ARM: OMAP2+: PRCM move to drivers

2014-04-01 Thread Tero Kristo
On 04/01/2014 01:09 AM, Tony Lindgren wrote: * Tero Kristo [140331 08:20]: Hi, This set is continuation for the work started earlier to cleanup the CM/PRM and attempt to make it a separate driver. This set depends on these two sets: CM/PRM cleanup set: http://marc.info/?l=linux-omap&a

Re: [PATCH] ARM: DTS: dra7xx-clocks: Correct mcasp2_ahclkx_mux bit-shift

2014-04-02 Thread Tero Kristo
On 04/02/2014 04:46 PM, Peter Ujfalusi wrote: The correct bit is 24 for AHCLKX. Signed-off-by: Peter Ujfalusi Yes, thats a clear bug in the data. Acked-by: Tero Kristo --- arch/arm/boot/dts/dra7xx-clocks.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm

Re: [PATCH] clk: ti: clk-7xx: Correct ABE DPLL configuration

2014-04-02 Thread Tero Kristo
On 04/02/2014 04:48 PM, Peter Ujfalusi wrote: ABE DPLL frequency need to be lowered from 361267200 to 180633600 to facilitate the ATL requironments. The dpll_abe_m2x2_ck clock need to be set to double of ABE DPLL rate in order to have correct clocks for audio. Do you have some sort of TRM refer

Re: [PATCH 02/11] ARM: OMAP3: Fix idle mode signaling for sys_clkreq and sys_off_mode

2014-04-12 Thread Tero Kristo
d sys_off_mode pins, so > the fixes are needed to fix monitoring of PM states with LEDs or > an oscilloscope. > > Cc: Kevin Hilman > Cc: Nishanth Menon > Cc: Paul Walmsley > Cc: Tero Kristo > Signed-off-by: Tony Lindgren > --- > arch/arm/mach-om

Re: [PATCH 00/55]: ARM: OMAP2+: PRCM move to drivers

2014-04-12 Thread Tero Kristo
On 04/01/2014 08:13 PM, Tony Lindgren wrote: * Tero Kristo [140401 01:38]: On 04/01/2014 01:09 AM, Tony Lindgren wrote: We don't want to make access to these registers available without proper frameworks as that will lead into misuse by various drivers. And cleaning up that mess later

Re: [PATCH 00/18] ARM: OMAP2+: CM/PRM cleanup set

2014-04-12 Thread Tero Kristo
On 03/04/2014 06:19 PM, Tero Kristo wrote: Hi, This set cleans up the CM/PRM codebase a bit, removing the need for direct CM/PRM register access macros outside CM/PRM drivers. This is done in preparation to isolate these drivers into its own driver directory. Currently my plan is to create a

Re: [PATCH] ARM: AM43xx: clk: Change the wdt1 func clk src to per_32k clk

2014-04-22 Thread Tero Kristo
On 04/16/2014 07:14 AM, Lokesh Vutla wrote: WDT1 module can take one of the below clocks as input functional clock - - On-Chip 32K RC Osc [default/reset] - 32K from PRCM The On-Chip 32K RC Osc clock is not an accurate clock-source as per the design/spec, so as a result, for examp

Re: [PATCH] arm: dts: am43x-clock: add tbclk data for ehrpwm.

2014-04-22 Thread Tero Kristo
On 04/22/2014 01:25 PM, Sourav Poddar wrote: We need "tblclk" clock data for the functioning of ehrpwm module. Hence, populating the required clock information in clock dts file. Signed-off-by: Sourav Poddar --- arch/arm/boot/dts/am43xx-clocks.dtsi | 84 ++

Re: [PATCH 02/11] ARM: OMAP3: Fix idle mode signaling for sys_clkreq and sys_off_mode

2014-04-23 Thread Tero Kristo
On 04/12/2014 06:02 PM, Tony Lindgren wrote: * Tero Kristo [140412 02:01]: On 04/11/2014 02:47 AM, Tony Lindgren wrote:> @@ -282,6 +283,7 @@ void omap_sram_idle(void) /* CORE */ if (core_next_state < PWRDM_POWER_ON) { + omap3_vc_set_pmic_sig

Re: [PATCH] clk: ti: clk-7xx: Correct ABE DPLL configuration

2014-04-24 Thread Tero Kristo
On 04/24/2014 12:11 PM, Peter Ujfalusi wrote: Mike, Tero, On 04/03/2014 09:29 AM, Peter Ujfalusi wrote: On 04/02/2014 05:12 PM, Tero Kristo wrote: On 04/02/2014 04:48 PM, Peter Ujfalusi wrote: ABE DPLL frequency need to be lowered from 361267200 to 180633600 to facilitate the ATL

Re: [PATCH] arm: dts: am43x-clock: add tbclk data for ehrpwm.

2014-04-24 Thread Tero Kristo
On 04/25/2014 08:42 AM, sourav wrote: Hi Tero, On Tuesday 22 April 2014 06:11 PM, Tero Kristo wrote: On 04/22/2014 01:25 PM, Sourav Poddar wrote: We need "tblclk" clock data for the functioning of ehrpwm module. Hence, populating the required clock information in clock dts file.

Re: [PATCH] arm: dts: am33xx-clock: Fix ehrpwm tbclk data.

2014-04-25 Thread Tero Kristo
On 04/25/2014 11:55 AM, Sourav Poddar wrote: tbclk does not need to be a composite clock, we can simply use gate clock for this purpose. Signed-off-by: Sourav Poddar --- arch/arm/boot/dts/am33xx-clocks.dtsi | 42 ++ 1 file changed, 12 insertions(+), 30 delet

Re: [PATCH] arm: dts: am43x-clock: add tbclk data for ehrpwm.

2014-04-25 Thread Tero Kristo
On 04/25/2014 11:55 AM, Sourav Poddar wrote: We need "tbclk" clock data for the functioning of ehrpwm module. Hence, populating the required clock information in clock dts file. Signed-off-by: Sourav Poddar --- arch/arm/boot/dts/am43xx-clocks.dtsi | 48 ++ d

Re: [PATCHv2] arm: dts: am43x-clock: add tbclk data for ehrpwm.

2014-04-29 Thread Tero Kristo
On 04/29/2014 11:34 AM, Sourav Poddar wrote: We need "tbclk" clock data for the functioning of ehrpwm module. Hence, populating the required clock information in clock dts file. Signed-off-by: Sourav Poddar --- v1->v2: change compatible according to mainline. arch/arm/boot/dts/am43xx-clocks.d

Re: [PATCHv2] arm: dts: am33xx-clock: Fix ehrpwm tbclk data.

2014-04-29 Thread Tero Kristo
On 04/29/2014 11:34 AM, Sourav Poddar wrote: tbclk does not need to be a composite clock, we can simply use gate clock for this purpose. Signed-off-by: Sourav Poddar Looks good to me so: Acked-by: Tero Kristo --- v1->v2: change compatible string according to mainline. arch/arm/boot/

Re: [PATCHv3] arm: dts: am43x-clock: add tbclk data for ehrpwm.

2014-04-29 Thread Tero Kristo
On 04/29/2014 05:15 PM, Sourav Poddar wrote: We need "tbclk" clock data for the functioning of ehrpwm module. Hence, populating the required clock information in clock dts file. Signed-off-by: Sourav Poddar Acked-by: Tero Kristo --- v2->v3 - correct bitshifting arch

Re: [PATCH 1/2] ARM: DTS: omap54xx-clocks: remove the autoidle properties for clock nodes

2014-04-30 Thread Tero Kristo
On 04/30/2014 02:41 PM, Peter Ujfalusi wrote: In OMAP5 bit 8 in PRCM registers are not defined (Reserved) unlike their counterpart in OMAP4. It is better to not write to these bits. Yeah, looks like this bug was copied over from the legacy clock data. Acked-by: Tero Kristo Signed-off-by

<    12   13   14   15   16   17   18   19   20   21   >