[PATCH 2/3] ARM: OMAP: SmartReflex driver: added required register and bit definitions.

2008-06-06 Thread Kalle Jokiniemi
Added new register and bit definitions to enable Smartreflex driver integration. Also PRM_VC_SMPS_SA bit definitions' naming was changed to match the naming of other similar bit definitions. Signed-off-by: Kalle Jokiniemi [EMAIL PROTECTED] --- arch/arm/mach-omap2/prm-regbits-34xx.h | 27

Re: [PATCH 0/3] ARM: OMAP: SmartReflex driver

2008-06-06 Thread Kalle Jokiniemi
Hi, Tony, I can update this patch set, or send an additional patch that adds the efuse support. Which will you prefer? Well I guess updating it would be better if it's just defining them so we have a working patch rather than patch and fix cycle. It took a bit longer than I expected,

Re: [PATCH 0/3] ARM: OMAP: SmartReflex driver

2008-06-06 Thread Koen Kooi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Op 6 jun 2008, om 11:49 heeft Kalle Jokiniemi het volgende geschreven: Hi, Tony, I can update this patch set, or send an additional patch that adds the efuse support. Which will you prefer? Well I guess updating it would be better if it's

[PATCH] Fix for the i2c initialiation error on 2430sdp

2008-06-06 Thread arun c
Hi all, The patch below fixes the i2c initialization error on 2430sdp. Now lcd and keyboard is working fine on my 2430sdp board. It was this commit abda15b1d2a48bb30dd79a7407d4ea8068975318 which introduced the new style i2c registration for 2430sdp(For other omap boards also). The old style

Re: [PATCH] Fix for the i2c initialiation error on 2430sdp

2008-06-06 Thread Felipe Balbi
On Fri, 6 Jun 2008 18:42:56 +0530, arun c [EMAIL PROTECTED] wrote: static int __init omap2430_i2c_init(void) { - omap_register_i2c_bus(1, 400, NULL, 0); omap_register_i2c_bus(2, 2600, NULL, 0); + omap_register_i2c_bus(1, 400, NULL, 0); maybe there's a hw restriction that

Re: [PATCH] Fix for the i2c initialiation error on 2430sdp

2008-06-06 Thread Eduardo Valentin
Hi, On Fri, Jun 6, 2008 at 10:46 AM, Felipe Balbi [EMAIL PROTECTED] wrote: On Fri, 6 Jun 2008 18:42:56 +0530, arun c [EMAIL PROTECTED] wrote: static int __init omap2430_i2c_init(void) { - omap_register_i2c_bus(1, 400, NULL, 0); omap_register_i2c_bus(2, 2600, NULL, 0); +

Re: [PATCH] Fix for the i2c initialiation error on 2430sdp

2008-06-06 Thread Koen Kooi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Op 6 jun 2008, om 16:57 heeft Eduardo Valentin het volgende geschreven: Hi, On Fri, Jun 6, 2008 at 10:46 AM, Felipe Balbi [EMAIL PROTECTED] wrote: On Fri, 6 Jun 2008 18:42:56 +0530, arun c [EMAIL PROTECTED] wrote: static int __init

[PATCH 02/21] ARM: OMAP: DMTimer: Optimize by adding load and start

2008-06-06 Thread Tony Lindgren
From: Richard Woodruff [EMAIL PROTECTED] This patch optimizes the timer load and start sequence. By combining the load and start a needless posted wait can be removed from the system timer execution path. * Before patch register writes are taking up .078% @ 500MHz during idle. Address

[PATCH 04/21] ARM: OMAP: DMA: Make channels dynamic for multi-boot

2008-06-06 Thread Tony Lindgren
Make DMA channels dynamic for multi-boot Signed-off-by: Tony Lindgren [EMAIL PROTECTED] diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c index 39c637b..02f00a9 100644 --- a/arch/arm/plat-omap/dma.c +++ b/arch/arm/plat-omap/dma.c @@ -72,7 +72,6 @@ struct omap_dma_lch {

[PATCH 05/21] ARM: OMAP: DMA: Remove __REG access

2008-06-06 Thread Tony Lindgren
Remove __REG access in DMA code, use dma_read/write instead: - dynamically set the omap_dma_base based on the omap type - omap_read/write becomes dma_read/write - dma channel registers are read with dma_ch_read/write Cc: David Brownell [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Signed-off-by: Tony

[PATCH 07/21] ARM: OMAP: SRAM: Move sram-fn.S from plat-omap to mach-omap1

2008-06-06 Thread Tony Lindgren
This file is omap1 specific. Signed-off-by: Tony Lindgren [EMAIL PROTECTED] diff --git a/arch/arm/mach-omap1/Makefile b/arch/arm/mach-omap1/Makefile index c06f525..5e9416e 100644 --- a/arch/arm/mach-omap1/Makefile +++ b/arch/arm/mach-omap1/Makefile @@ -3,7 +3,7 @@ # # Common support -obj-y

[PATCH 08/21] ARM: OMAP: SRAM: Move omap2 sram-fn.S to sram242x.S

2008-06-06 Thread Tony Lindgren
This file will get split between sram242x.S and sram243x.S in following patch. Signed-off-by: Tony Lindgren [EMAIL PROTECTED] diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile index 2feb687..6c59b26 100644 --- a/arch/arm/mach-omap2/Makefile +++

[PATCH 09/21] ARM: OMAP: SRAM: Split sram24xx.S into sram242x.S and sram243x.S

2008-06-06 Thread Tony Lindgren
Split sram24xx.S into sram242x.S and sram243x.S Signed-off-by: Tony Lindgren [EMAIL PROTECTED] diff --git a/arch/arm/mach-omap1/sram.S b/arch/arm/mach-omap1/sram.S index 9e1813c..126d252 100644 --- a/arch/arm/mach-omap1/sram.S +++ b/arch/arm/mach-omap1/sram.S @@ -18,7 +18,7 @@ /* * Reprograms

[PATCH 10/21] ARM: OMAP: McBSP: Coding style cleanup on arch/arm/plat-omap/mcbsp.c

2008-06-06 Thread Tony Lindgren
From: Eduardo Valentin [EMAIL PROTECTED] This patch fix lots of warnings and errors reported by scripts/checkpatch.pl on arch/arm/plat-omap/mcbsp.c. Signed-off-by: Eduardo Valentin [EMAIL PROTECTED] Acked-by: Felipe Balbi [EMAIL PROTECTED] Signed-off-by: Tony Lindgren [EMAIL PROTECTED] diff

[PATCH 11/21] ARM: OMAP: McBSP: Prepare for splitting into omap1 and omap2 code

2008-06-06 Thread Tony Lindgren
From: Eduardo Valentin [EMAIL PROTECTED] This patch transform mcbsp code to use platform data from arch/arm/plat-omap/devices.c It also gets ride of ifdefs on mcbsp.c code. To do it, a platform data structure was defined. Signed-off-by: Eduardo Valentin [EMAIL PROTECTED] Signed-off-by: Tony

[PATCH 14/21] ARM: OMAP: Clean up interrupt lines to fix warnings for multi-omap

2008-06-06 Thread Tony Lindgren
If boards with different NR_IRQS are compiled together, tons of compiler warnings are emitted about redefining NR_IRQS. This patch fixes the problem by adding up NR_IRQS in a common place. Patch also removes quite a bit of now unnecessary code. Signed-off-by: Tony Lindgren [EMAIL PROTECTED]

[PATCH 12/21] ARM: OMAP: McBSP: Add support for mcbsp on mach-omap1

2008-06-06 Thread Tony Lindgren
From: Eduardo Valentin [EMAIL PROTECTED] This patch adds support for mach-omap1 based on current mcbsp platform driver. Signed-off-by: Eduardo Valentin [EMAIL PROTECTED] Signed-off-by: Tony Lindgren [EMAIL PROTECTED] diff --git a/arch/arm/mach-omap1/Makefile b/arch/arm/mach-omap1/Makefile index

[PATCH 15/21] ARM: OMAP: CLKFW: Initial debugfs support for omap clock framework

2008-06-06 Thread Tony Lindgren
From: Hiroshi DOYU [EMAIL PROTECTED] debugfs can provide the infrastructure to trace the dependencies of clock tree hierarchy quite visibly. This patch enables to keep track of clock tree hierarchy and expose their attributes under each clock directry as below: omap:~# tree -d -L 2

[PATCH 16/21] ARM: OMAP: Change omap_cf.c and omap_nor.c to use omap_readw/writew instead of __REG

2008-06-06 Thread Tony Lindgren
Change omap_cf.c and omap_nor.c to use omap_readw/writew instead of __REG. This is needed for multi-omap in the future. Cc: David Brownell [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Signed-off-by: Tony Lindren [EMAIL PROTECTED] diff --git a/arch/arm/mach-omap1/board-osk.c

[PATCH 18/21] ARM: OMAP: Remove __REG access for multi-omap

2008-06-06 Thread Tony Lindgren
This does not play nicely with multi-omap as it cannot be replaced by a function in io.c for omaps with different IO bases. Signed-off-by: Tony Lindgren [EMAIL PROTECTED] diff --git a/include/asm-arm/arch-omap/io.h b/include/asm-arm/arch-omap/io.h index 160578e..e1fb7ec 100644 ---

[PATCH 19/21] ARM: OMAP: Introduce omap_globals and prcm access functions for multi-omap

2008-06-06 Thread Tony Lindgren
New struct omap_globals contains the omap processor specific module bases. Use omap_globals to set the various base addresses to make detecting omap chip type simpler. Also introduce OMAP1_IO_ADDRESS and OMAP2_IO_ADDRESS for future multi-omap patches. Signed-off-by: Tony Lindgren [EMAIL

[PATCH 20/21] ARM: OMAP: Turn CM and PRM access into functions

2008-06-06 Thread Tony Lindgren
Otherwise compiling in omap2 and omap3 will not work. Signed-off-by: Tony Lindgren [EMAIL PROTECTED] diff --git a/arch/arm/mach-omap2/clock.h b/arch/arm/mach-omap2/clock.h index d5980a9..f979485 100644 --- a/arch/arm/mach-omap2/clock.h +++ b/arch/arm/mach-omap2/clock.h @@ -42,6 +42,7 @@ long

[PATCH 21/21] ARM: OMAP: Add OMAP chip type structure; clean up mach-omap2/id.c

2008-06-06 Thread Tony Lindgren
From: Paul Walmsley [EMAIL PROTECTED] Add a new OMAP chip identification interface, omap_chip_id. omap_chip_id is a structure which contains one bit for each OMAP2/3 CPU type, and on 3430, ES level. For example, the CHIP_IS_OMAP2420 bit is set in omap_chip at boot on an OMAP2420. On

[PATCH 01/12] ARM: OMAP2: Clock: Add OMAP3 DPLL autoidle functions

2008-06-06 Thread Tony Lindgren
From: Paul Walmsley [EMAIL PROTECTED] This patch adds support for DPLL autoidle control to the OMAP3 clock framework. These functions will be used by the noncore DPLL enable and disable code - this is because, according to the CDP code, the DPLL autoidle status must be saved and restored across

[PATCH 02/12] ARM: OMAP2: Clock: New OMAP2/3 DPLL rate rounding algorithm

2008-06-06 Thread Tony Lindgren
From: Paul Walmsley [EMAIL PROTECTED] This patch adds a new rate rounding algorithm for DPLL clocks on the OMAP2/3 architecture. For a desired DPLL target rate, there may be several multiplier/divider (M, N) values which will generate a sufficiently close rate. Lower N values result in greater

[PATCH 03/12] ARM: OMAP2: Powerdomain: Add base OMAP2/3 powerdomain code

2008-06-06 Thread Tony Lindgren
From: Paul Walmsley [EMAIL PROTECTED] This patch creates an interface to the powerdomain registers in the PRM/CM modules on OMAP2/3. This interface is intended to be used by PM code, e.g., pm.c; not by device drivers directly. Each powerdomain will be defined in later patches as static

[PATCH 04/12] ARM: OMAP2: Powerdomain: Add OMAP2/3 common powerdomains

2008-06-06 Thread Tony Lindgren
From: Paul Walmsley [EMAIL PROTECTED] Add powerdomains common to both OMAP2 and OMAP3 (WKUP and GFX/SGX). Modify mach-omap2/io.c to initialize the powerdomain code on boot. Signed-off-by: Paul Walmsley [EMAIL PROTECTED] Signed-off-by: Tony Lindgren [EMAIL PROTECTED] diff --git

[PATCH 05/12] ARM: OMAP2: Powerdomain: Add OMAP2 powerdomains

2008-06-06 Thread Tony Lindgren
From: Paul Walmsley [EMAIL PROTECTED] Add OMAP2-specific powerdomains. Signed-off-by: Paul Walmsley [EMAIL PROTECTED] Signed-off-by: Tony Lindgren [EMAIL PROTECTED] diff --git a/arch/arm/mach-omap2/powerdomains.h b/arch/arm/mach-omap2/powerdomains.h index 56c2a8f..801e3b3 100644 ---

[PATCH 06/12] ARM: OMAP: Powerdomain: Add OMAP3 powerdomains

2008-06-06 Thread Tony Lindgren
From: Paul Walmsley [EMAIL PROTECTED] Add OMAP3-specific powerdomains. Signed-off-by: Paul Walmsley [EMAIL PROTECTED] Signed-off-by: Tony Lindgren [EMAIL PROTECTED] diff --git a/arch/arm/mach-omap2/powerdomains.h b/arch/arm/mach-omap2/powerdomains.h index 801e3b3..5ad9cb0 100644 ---

[PATCH 08/12] ARM: OMAP2: Clockdomain: Connect clockdomain code to powerdomain code

2008-06-06 Thread Tony Lindgren
From: Paul Walmsley [EMAIL PROTECTED] Thie patch adds code to the powerdomain layer to track the clockdomains associated with each powerdomain. It also modifies the clockdomain code to register clockdomains with their corresponding powerdomain when the clockdomain is registered. Signed-off-by:

[PATCH 09/12] ARM: OMAP2: Clockdomain: Encode OMAP2/3 clockdomains

2008-06-06 Thread Tony Lindgren
From: Paul Walmsley [EMAIL PROTECTED] Add clockdomain definitions for OMAP24xx and OMAP34xx chips. Signed-off-by: Paul Walmsley [EMAIL PROTECTED] Signed-off-by: Tony Lindgren [EMAIL PROTECTED] diff --git a/arch/arm/mach-omap2/clockdomains.h b/arch/arm/mach-omap2/clockdomains.h new file mode

[PATCH 11/12] ARM: OMAP2: Clockdomain: Integrate OMAP3 clocks with clockdomain code

2008-06-06 Thread Tony Lindgren
From: Paul Walmsley [EMAIL PROTECTED] This patch integrates the OMAP3 clock tree with the clockdomain code. This patch: - marks OMAP34xx clocks with their corresponding clockdomain. - adds code to convert the clockdomain name to a clockdomain pointer in the struct clk during clk_register().

Re: [PATCH 00/12] Omap2 clock patches for post 2.6.26

2008-06-06 Thread Tony Lindgren
* Tony Lindgren [EMAIL PROTECTED] [080606 18:41]: Hi all, The following series adds support for omap2/3 powerdomains and clockdomains. It also adds new DPLL handling. This patch series also available via git at: git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git

[PATCH 02/16] ARM: OMAP2: Split sleep.S into sleep242x.S and sleep243x.S

2008-06-06 Thread Tony Lindgren
Some register offsets are different for 242x and 243x. This will allow compiling sleep code for both chips into the same kernel. Note that some PM patches are still missing. The PM patches will be added later on once the base files are in sync with linux-omap tree. Signed-off-by: Tony Lindgren

[PATCH 03/16] ARM: OMAP2: Add non-CORE DPLL rate set code and M,N programming

2008-06-06 Thread Tony Lindgren
From: Paul Walmsley [EMAIL PROTECTED] Add non-CORE DPLL rate set code and M,N programming for OMAP3. Connect it to OMAP34xx DPLLs 1, 2, 4, 5 via the clock framework. You may see some warnings on rate sets from the freqsel code. The table that TI presented in the 3430 TRM Rev F does not cover

[PATCH 07/16] ARM: OMAP2: Add clkdm_get_pwrdm()

2008-06-06 Thread Tony Lindgren
From: Paul Walmsley [EMAIL PROTECTED] Add clkdm_get_pwrdm() to the clockdomain code. It will return a pointer to the powerdomain struct that the clockdomain is contained within. Used by the PM code. Signed-off-by: Paul Walmsley [EMAIL PROTECTED] Signed-off-by: Tony Lindgren [EMAIL PROTECTED]

[PATCH 10/16] ARM: OMAP2: Use omap_globals for CPU detection for multi-omap

2008-06-06 Thread Tony Lindgren
This allows to get rid of the ifdefs and will allow simpler CPU detection in the future. Signed-off-by: Tony Lindgren [EMAIL PROTECTED] diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c index dff4b16..c7f9ab7 100644 --- a/arch/arm/mach-omap2/id.c +++ b/arch/arm/mach-omap2/id.c @@

[PATCH 11/16] ARM: OMAP2: Implement CPUfreq frequency table based on PRCM table

2008-06-06 Thread Tony Lindgren
From: Kevin Hilman [EMAIL PROTECTED] This patch adds a CPUfreq frequency-table implementation for OMAP2 by walking the PRCM rate-table for available entries and adding them to a CPUfreq table. CPUfreq can then be used to manage switching between all the available entries in the PRCM rate table.

[PATCH 12/16] ARM: OMAP2: Add pinmux support for omap34xx

2008-06-06 Thread Tony Lindgren
From: Vikram Pandita [EMAIL PROTECTED] This patch adds pinmux support for OMAP3. Incorporated review comments from Tony to make mux_value as bit mask. Tested on 3430SDP. Acked-by: Anand Gadiyar [EMAIL PROTECTED] Signed-off-by: Vikram Pandita [EMAIL PROTECTED] Signed-off-by: Tony Lindgren [EMAIL

[PATCH 13/16] ARM: OMAP2: Fix sparse, checkpatch warnings fro GPMC code

2008-06-06 Thread Tony Lindgren
From: Paul Walmsley [EMAIL PROTECTED] Fix sparse, checkpatch warnings fro GPMC code Signed-off-by: Paul Walmsley [EMAIL PROTECTED] Signed-off-by: Tony Lindgren [EMAIL PROTECTED] diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index dbf68dc..83984f7 100644 ---

[PATCH 14/16] ARM: OMAP2: Misc updates from linux-omap tree

2008-06-06 Thread Tony Lindgren
Misc updates from linux-omap tree Signed-off-by: Tony Lindgren [EMAIL PROTECTED] diff --git a/arch/arm/mach-omap1/devices.c b/arch/arm/mach-omap1/devices.c index da8a3ac..15ab43c 100644 --- a/arch/arm/mach-omap1/devices.c +++ b/arch/arm/mach-omap1/devices.c @@ -102,7 +102,7 @@ static inline void

[PATCH 15/16] ARM: OMAP2: Add minimal omap3430 support

2008-06-06 Thread Tony Lindgren
From: Syed Mohammed Khasim [EMAIL PROTECTED] Add minimal omap3430 support Signed-off-by: Syed Mohammed Khasim [EMAIL PROTECTED] Signed-off-by: Tony Lindgren [EMAIL PROTECTED] diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig index 7069c9d..a4582a9 100644 ---

[PATCH 16/16] ARM: OMAP2: Fix sparse, checkpatch warnings in OMAP2/3 IRQ code

2008-06-06 Thread Tony Lindgren
From: Paul Walmsley [EMAIL PROTECTED] Fix sparse warnings in mach-omap2/irq.c. Fix by defining intc_bank_write_reg() and intc_bank_read_reg(), and convert INTC module register access to use them rather than __raw_{read,write}l. Also clear up some checkpatch warnings involving includes from asm/