[PATCH] ARM: S3C24XX: remove plat-samsung/irq.h

2013-02-12 Thread Heiko Stübner
plat-samsung/irq.h did only contain functions for handling the spread out subirqs on s3c24xx arches, which are not needed anymore. Signed-off-by: Heiko Stuebner --- Sorry for bringing this separate submission, but I just remembered it this evening. This applies on top of all the other s3c24xx ir

[PATCH 3/3] ARM: S3C24XX: handle s3c2412 eints using new infrastructure

2013-02-11 Thread Heiko Stübner
The s3c2412 handles the eints 0 to 3 different than all the other SoCs of the 24xx range. These eints must be acked and masked in the regular bits as well as the bits 0 to 3 of the eint registers, which are unused on the other SoCs. This of course can be realized using the new infrastructure with

[PATCH 2/3] ARM: S3C24XX: add soc_is_s3c2412 option

2013-02-11 Thread Heiko Stübner
Makes it possible to identify s3c2412 SoCs. Signed-off-by: Heiko Stuebner --- arch/arm/plat-samsung/include/plat/cpu.h | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/arch/arm/plat-samsung/include/plat/cpu.h b/arch/arm/plat-samsung/include/plat/cpu.h index e12

[PATCH 1/3] ARM: S3C24XX: include first 4 bits of the eint register in irq mapping

2013-02-11 Thread Heiko Stübner
This patch moves the irq numbers starting with EINT4 4 points down to enable the inclusion of the first 4 bits of EINT register into the mapping removing the need for special offset handling. For most S3C24XX architectures this will simply create 4 additional unused interrupts, but enables the S3C

[PATCH 0/3] ARM: S3C24XX: integrate special s3c2412 eint handling

2013-02-11 Thread Heiko Stübner
This series is meant to go on top of the recent basic integration of the s3c2412, s3c2440 and s3c2442 and implements the last necessary change by making the overrides of the eints 0 to 3 on the s3c2412 unnecessary. After this everything is handled using the new structure. Heiko Stuebner (3): A

[PATCH v2 10/10] ARM: S3C24XX: transform s3c2412 irqs into new structure

2013-02-09 Thread Heiko Stübner
Contains only the new mapping structure. The special handling of the eint0 to eint3 interrupts still needs to be solved. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/irq.c | 122 +++ 1 files changed, 66 insertions(+), 56 deletions(-) diff --gi

[PATCH v2 09/10] ARM: S3C24XX: modify s3c2412 irq init to initialize all irqs

2013-02-09 Thread Heiko Stübner
Combines the two independent init steps for the irqs into one. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/common.h|1 + arch/arm/mach-s3c24xx/irq.c | 19 +++ arch/arm/mach-s3c24xx/mach-jive.c |2 +- arch/arm/mach-s3c24xx/mach-smdk2413.

[PATCH v2 08/10] ARM: S3C24XX: move s3c2412 irq init to common code

2013-02-09 Thread Heiko Stübner
Base for further cleanups Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/Makefile |2 +- arch/arm/mach-s3c24xx/irq-s3c2412.c | 192 --- arch/arm/mach-s3c24xx/irq.c | 154 3 files changed, 155 insertions(+),

[PATCH v2 07/10] ARM: S3C24XX: use samsung_sync_wakemask in s3c2412 pm

2013-02-09 Thread Heiko Stübner
Originally the s3c2412 used a overidden irq chip to set the rtc wakeup flag. But with using the samsung_sync_wakemask function the same can be achieved without introducing soc specific irq functions. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/Kconfig |1 + arch/arm/mach-s3

[PATCH v2 06/10] ARM: S3C24XX: transform s3c2440 irqs into new structure

2013-02-09 Thread Heiko Stübner
As always a mapping structure is everything needed. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/irq.c | 196 +- 1 files changed, 61 insertions(+), 135 deletions(-) diff --git a/arch/arm/mach-s3c24xx/irq.c b/arch/arm/mach-s3c24xx/irq.c index 0

[PATCH v2 05/10] ARM: S3C24XX: transform s3c2442 irqs into new structure

2013-02-09 Thread Heiko Stübner
Simply declare a correct mapping structure to use the common irq code. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/irq.c | 78 ++ 1 files changed, 63 insertions(+), 15 deletions(-) diff --git a/arch/arm/mach-s3c24xx/irq.c b/arch/arm/mach-s3c

[PATCH v2 04/10] ARM: S3C24XX: integrate s3c2440 irqs into common init

2013-02-09 Thread Heiko Stübner
Now all the arch_initcalls for s3c244x irqs are gone. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/irq.c | 46 -- 1 files changed, 13 insertions(+), 33 deletions(-) diff --git a/arch/arm/mach-s3c24xx/irq.c b/arch/arm/mach-s3c24xx/irq.c index

[PATCH v2 03/10] ARM: S3C24XX: move s3c2440 irqs to common irq code

2013-02-09 Thread Heiko Stübner
Will be integrated in the following patch. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/Makefile |2 +- arch/arm/mach-s3c24xx/irq-s3c2440.c | 128 --- arch/arm/mach-s3c24xx/irq.c | 88 3 files changed, 89 ins

[PATCH v2 02/10] ARM: S3C24XX: create dedicated irq init functions for s3c2440 and s3c2442

2013-02-09 Thread Heiko Stübner
s3c2440 and s3c2442 need separate init functions, as the s3c2440 contains even more differing irqs that will be moved in the following patch. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/common.h |2 + arch/arm/mach-s3c24xx/irq.c| 45 -

[PATCH v2 01/10] ARM: S3C24XX: move s3c244x irq init to common irq code

2013-02-09 Thread Heiko Stübner
Base for further modifications. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/Makefile |2 +- arch/arm/mach-s3c24xx/irq-s3c244x.c | 142 --- arch/arm/mach-s3c24xx/irq.c | 105 ++ 3 files changed, 106 insertions(

[PATCH v2 00/10] ARM: S3C24XX: irq rework for S3C2412, S3C2440 and S3C2442

2013-02-09 Thread Heiko Stübner
This series finishes the irq rework by moving the irqs for s3c2412, s3c2440 and s3c2442 into the new structure. Now the only open point is the different handling of the eint0 to eint3 interrupts on the s3c2412. On this SoC these interrupts are represented in both the main register and the eint reg

[PATCH 2/2] i2c: s3c2410: fixup the styling of the newly moved register definitions

2013-02-07 Thread Heiko Stübner
Make them conform more to established standards. Signed-off-by: Heiko Stuebner --- drivers/i2c/busses/i2c-s3c2410.c | 50 ++--- 1 files changed, 24 insertions(+), 26 deletions(-) diff --git a/drivers/i2c/busses/i2c-s3c2410.c b/drivers/i2c/busses/i2c-s3c2410.c i

[PATCH 1/2] i2c: s3c2410: move mach/regs-iic.h into i2c-s3c2410 device driver

2013-02-07 Thread Heiko Stübner
The register definitions are only used in the driver itself. This also removes the last dependency on plat/ includes from the i2c driver. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/mach-rx1950.c |1 - arch/arm/plat-samsung/devs.c |1 - arch/arm/pla

[PATCH 2/2] ARM: S3C24XX: cleanup the included soc init functions in common.h

2013-02-07 Thread Heiko Stübner
Only the _init, _init_clocks, _init_uarts and _map_io functions need NULL defines, as they are used in the cpu map. Further integrate the two restart functions already in common.h in their respective soc part and compact the numerous empty lines. Signed-off-by: Heiko Stuebner --- arch/arm/mach-

[PATCH 1/2] ARM: S3C24XX: move plat-samsung/s3c24XX headers to local common.h

2013-02-07 Thread Heiko Stübner
The different soc functions are now only used in the mach-s3c24xx directory, so it's not necessary anymore to keep the globally visible. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/clock-s3c2410.c|1 - arch/arm/mach-s3c24xx/clock-s3c2412.c|1 - arch/arm/mach-s

[PATCH 0/2] ARM: S3C24XX: make s3c24XX.h header content local

2013-02-07 Thread Heiko Stübner
This series moves the contents of the plat/s3c24XX.h headers into common.h, as their content does not need to be global anymore, now that everything lives in mach-s3c24xx. Heiko Stuebner (2): ARM: S3C24XX: move plat-samsung/s3c24XX headers to local common.h ARM: S3C24XX: cleanup the included s

[PATCH 6/6] ARM: S3C24XX: transform s3c2440 irqs into new structure

2013-02-05 Thread Heiko Stübner
As always a mapping structure is everything needed. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/irq.c | 196 +- 1 files changed, 61 insertions(+), 135 deletions(-) diff --git a/arch/arm/mach-s3c24xx/irq.c b/arch/arm/mach-s3c24xx/irq.c index 0

[PATCH 5/6] ARM: S3C24XX: transform s3c2442 irqs into new structure

2013-02-05 Thread Heiko Stübner
Simply declare a correct mapping structure to use the common irq code. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/irq.c | 78 ++ 1 files changed, 63 insertions(+), 15 deletions(-) diff --git a/arch/arm/mach-s3c24xx/irq.c b/arch/arm/mach-s3c

[PATCH 4/6] ARM: S3C24XX: integrate s3c2440 irqs into common init

2013-02-05 Thread Heiko Stübner
Now all the arch_initcalls for s3c244x are gone. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/irq.c | 46 -- 1 files changed, 13 insertions(+), 33 deletions(-) diff --git a/arch/arm/mach-s3c24xx/irq.c b/arch/arm/mach-s3c24xx/irq.c index 59207

[PATCH 3/6] ARM: S3C24XX: move s3c2440 irqs to common irq code

2013-02-05 Thread Heiko Stübner
Will be integrated in the following patch. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/Makefile |2 +- arch/arm/mach-s3c24xx/irq-s3c2440.c | 128 --- arch/arm/mach-s3c24xx/irq.c | 88 3 files changed, 89 ins

[PATCH 2/6] ARM: S3C24XX: create dedicated irq init functions for s3c2440 and s3c2442

2013-02-05 Thread Heiko Stübner
s3c2440 and s3c2442 need separate init functions, as the s3c2440 contains even more differing irqs that will be moved in the following patch. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/common.h |4 +++ arch/arm/mach-s3c24xx/irq.c| 45 ---

[PATCH 1/6] ARM: S3C24XX: move s3c244x irq init to common irq code

2013-02-05 Thread Heiko Stübner
Base for further modifications. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/Makefile |2 +- arch/arm/mach-s3c24xx/irq-s3c244x.c | 142 --- arch/arm/mach-s3c24xx/irq.c | 105 ++ 3 files changed, 106 insertions(

[PATCH 0/6] ARM: S3C24XX: Move s3c2440 and s3c2442 into new irq structure

2013-02-05 Thread Heiko Stübner
Follows the formular laid out in the previous series, i.e. moving of the code, changing of the init and creation of the mapping structure. As I lack hardware for these arches, compile tested only. But as it is similar to the architectures of the previous run, hopefully I didn't break anything. Ap

Re: Help connect s3c2410-lcd device to SMDK2443

2013-02-05 Thread Heiko Stübner
Hi Alexander, Am Dienstag, 5. Februar 2013, 20:36:20 schrieb Alexander Varnin: > Hello. I'm trying to setup "s3c2410-lcd" device on SMDK2443 with 3.6 > kernel. On requesting interrupt it fails with EINVAL: > ~ # dmesg | grep lcd > s3c2410-lcd s3c2410-lcd: cannot get irq 32 - err -22 > s3c2410-lcd:

[PATCH] ARM: S3C24XX: osiris: add missing platform_device.h include

2013-02-05 Thread Heiko Stübner
The missing include led to a implcit declaration warning. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/mach-osiris.c |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-s3c24xx/mach-osiris.c b/arch/arm/mach-s3c24xx/mach-osiris.c index c2dc032..7d73626 100644 --- a/ar

[PATCH] ARM: S3C24XX: let S3C2412_PM select S3C2412_PM_SLEEP

2013-02-05 Thread Heiko Stübner
The code to enter sleep is used by both the s3c2412 and s3c2416 and was thus factored out into an extra config option. But it seems it was forgotten to add the appropriate select to the s3c2412 pm option, resulting in breakage when only compiling s3c2412 support. Signed-off-by: Heiko Stuebner --

[PATCH v4 0/9] ARM: S3C24XX: rework irq handling for a later dt usage

2013-01-27 Thread Heiko Stübner
This v4 does not change any code part. The patches are merely rebased to apply to the next/cleanup-s3c24xx branch as requested. Heiko Stuebner (9): ARM: S3C24XX: transform irq handling into a declarative form ARM: S3C24XX: Move irq syscore-ops to irq-pm ARM: S3C24XX: Modify s3c_irq_wake to u

[PATCH v4 9/9] ARM: S3C24XX: transform s3c2443 subirqs into new structure

2013-01-27 Thread Heiko Stübner
Share the common irq code by simply defining a correct mapping declaration for the s3c2443. Signed-off-by: Heiko Stuebner --- arch/arm/plat-s3c24xx/irq.c | 289 +++ 1 file changed, 75 insertions(+), 214 deletions(-) diff --git a/arch/arm/plat-s3c24xx/irq

[PATCH v4 8/9] ARM: S3C24XX: modify s3c2443 irq init to initialize all irqs

2013-01-27 Thread Heiko Stübner
Previously the irq init used s3c24xx_init_irq and an additional arch_initcall to add the cpu specific irqs. To be able to simplyfy the irq init later, create a new function s3c2443_init_irq, which then calls s3c24xx_init_irq but also adds the cpu specific irqs. Signed-off-by: Heiko Stuebner ---

[PATCH v4 7/9] ARM: S3C24XX: move s3c2443 irq code to irq.c

2013-01-27 Thread Heiko Stübner
Prequisite for further optimizations. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/Makefile |2 +- arch/arm/mach-s3c24xx/irq-s3c2443.c | 281 --- arch/arm/plat-s3c24xx/irq.c | 243 ++ 3 files changed, 244 i

[PATCH v4 6/9] ARM: S3C24XX: transform s3c2416 irqs into new structure

2013-01-27 Thread Heiko Stübner
Share the common irq code by simply defining a correct mapping declaration for the s3c2416. Signed-off-by: Heiko Stuebner --- arch/arm/plat-s3c24xx/irq.c | 342 +++ 1 file changed, 87 insertions(+), 255 deletions(-) diff --git a/arch/arm/plat-s3c24xx/irq

[PATCH v4 5/9] ARM: S3C24XX: modify s3c2416 irq init to initialize all irqs

2013-01-27 Thread Heiko Stübner
Previously the irq init used s3c24xx_init_irq and an additional arch_initcall to add the cpu specific irqs. To be able to simplyfy the irq init later, create a new function s3c416_init_irq, which then calls s3c24xx_init_irq but also adds the cpu specific irqs. Signed-off-by: Heiko Stuebner ---

[PATCH v4 4/9] ARM: S3C24XX: move s3c2416 irq init to common irq code

2013-01-27 Thread Heiko Stübner
This is needed to further clean up the irq init. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/Makefile |2 +- arch/arm/mach-s3c24xx/irq-pm.c | 23 +++ arch/arm/mach-s3c24xx/irq-s3c2416.c | 348 --- arch/arm/plat-s3c24xx/irq.c |

[PATCH v4 3/9] ARM: S3C24XX: Modify s3c_irq_wake to use the hwirq property

2013-01-27 Thread Heiko Stübner
This gets rid of the use of static irq mappings there. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/irq-pm.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-s3c24xx/irq-pm.c b/arch/arm/mach-s3c24xx/irq-pm.c index d48126d..640ec91 100644 ---

[PATCH v4 2/9] ARM: S3C24XX: Move irq syscore-ops to irq-pm

2013-01-27 Thread Heiko Stübner
With this the definition of s3c24xx_irq_syscore_ops can also move to common.h from plat/pm.h and the definitions of s3c24xx_irq_suspend and s3c24xx_irq_resume are also not necessary anymore in plat/pm.h Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/common.h |2 ++ arch/arm

[PATCH v4 1/9] ARM: S3C24XX: transform irq handling into a declarative form

2013-01-27 Thread Heiko Stübner
The irqs available on the machine and even the bit settings in the irq registers differ a lot through all the s3c24xx subarchitectures. This results in each subarch having its own irq init which adds its specific irqs to the base ones created in plat-s3c24xx/irq.c. This of course makes a future mo

Re: [PATCH v3 0/9] ARM: S3C24XX: rework irq handling for a later dt usage

2013-01-27 Thread Heiko Stübner
Am Freitag, 25. Januar 2013, 19:59:18 schrieb Kukjin Kim: > Heiko Stübner wrote: > > Third version of redoing the s3c24xx irqs in a generic way by using a > > declarative approach. > > > > Main change is the different approach to the init. Moved the > > s3c24

[PATCH v3 9/9] ARM: S3C24XX: transform s3c2443 subirqs into new structure

2013-01-18 Thread Heiko Stübner
Share the common irq code by simply defining a correct mapping declaration for the s3c2443. Signed-off-by: Heiko Stuebner --- arch/arm/plat-s3c24xx/irq.c | 289 +++ 1 files changed, 75 insertions(+), 214 deletions(-) diff --git a/arch/arm/plat-s3c24xx/ir

[PATCH v3 8/9] ARM: S3C24XX: modify s3c2443 irq init to initialize all irqs

2013-01-18 Thread Heiko Stübner
Previously the irq init used s3c24xx_init_irq and an additional arch_initcall to add the cpu specific irqs. To be able to simplyfy the irq init later, create a new function s3c2443_init_irq, which then calls s3c24xx_init_irq but also adds the cpu specific irqs. Signed-off-by: Heiko Stuebner ---

[PATCH v3 7/9] ARM: S3C24XX: move s3c2443 irq code to irq.c

2013-01-18 Thread Heiko Stübner
Prequisite for further optimizations. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/Makefile |2 +- arch/arm/mach-s3c24xx/irq-s3c2443.c | 281 --- arch/arm/plat-s3c24xx/irq.c | 243 ++ 3 files changed, 244 i

[PATCH v3 6/9] ARM: S3C24XX: transform s3c2416 irqs into new structure

2013-01-18 Thread Heiko Stübner
Share the common irq code by simply defining a correct mapping declaration for the s3c2416. Signed-off-by: Heiko Stuebner --- arch/arm/plat-s3c24xx/irq.c | 342 +++ 1 files changed, 87 insertions(+), 255 deletions(-) diff --git a/arch/arm/plat-s3c24xx/ir

[PATCH v3 5/9] ARM: S3C24XX: modify s3c2416 irq init to initialize all irqs

2013-01-18 Thread Heiko Stübner
Previously the irq init used s3c24xx_init_irq and an additional arch_initcall to add the cpu specific irqs. To be able to simplyfy the irq init later, create a new function s3c416_init_irq, which then calls s3c24xx_init_irq but also adds the cpu specific irqs. Signed-off-by: Heiko Stuebner ---

[PATCH v3 4/9] ARM: S3C24XX: move s3c2416 irq init to common irq code

2013-01-18 Thread Heiko Stübner
This is needed to further clean up the irq init. The only change made during the move is the renaming of the conflicting irq_save to s3c2416_irq_save Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/Makefile |2 +- arch/arm/mach-s3c24xx/irq-pm.c | 23 +++ arch/arm/mach-s3c

[PATCH v3 3/9] ARM: S3C24XX: Modify s3c_irq_wake to use the hwirq property

2013-01-18 Thread Heiko Stübner
This gets rid of the use of static irq mappings there. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/irq-pm.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-s3c24xx/irq-pm.c b/arch/arm/mach-s3c24xx/irq-pm.c index d48126d..640ec91 100644 --

[PATCH v3 2/9] ARM: S3C24XX: Move irq syscore-ops to irq-pm

2013-01-18 Thread Heiko Stübner
With this the definition of s3c24xx_irq_syscore_ops can also move to common.h from plat/pm.h and the definitions of s3c24xx_irq_suspend and s3c24xx_irq_resume are also not necessary anymore in plat/pm.h Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/common.h |2 ++ arch/arm

[PATCH v3 1/9] ARM: S3C24XX: transform irq handling into a declarative form

2013-01-18 Thread Heiko Stübner
The irqs available on the machine and even the bit settings in the irq registers differ a lot through all the s3c24xx subarchitectures. This results in each subarch having its own irq init which adds its specific irqs to the base ones created in plat-s3c24xx/irq.c. This of course makes a future mo

[PATCH v3 0/9] ARM: S3C24XX: rework irq handling for a later dt usage

2013-01-18 Thread Heiko Stübner
Third version of redoing the s3c24xx irqs in a generic way by using a declarative approach. Main change is the different approach to the init. Moved the s3c24xx_init_intc function from the dt patchset here, so that both init types (dt and non-dt) can use a similar init scheme. As in the second ve

Re: [PATCH 0/5 v3] S3C / S5PC100: add clockevent/clocksource support

2013-01-09 Thread Heiko Stübner
Am Mittwoch, 9. Januar 2013, 23:43:35 schrieb Romain Naour: > This series of patches converts the s3c and s5pc100 timer driver to the > clocksource/clockevent API. I made some test on a mini2440 board and I had > to reduce timers frequency to 1MHz in order to produce a timer's overflow > every 64ms

Re: [PATCH v2 00/11] ARM: S3C24XX: rework irq handling for a later dt usage

2013-01-02 Thread Heiko Stübner
Am Donnerstag, 3. Januar 2013, 00:34:36 schrieb Kukjin Kim: > Heiko Stübner wrote: > > Second version of redoing the s3c24xx irqs in a generic way by using a > > declarative approach. > > > > Changes include further generalizations resulting only in common > > i

[PATCH v2 11/11] ARM: S3C24XX: remove maskack irq ack funtions

2013-01-01 Thread Heiko Stübner
In the past level irqs provided a special ack handler that also masked the interrupt. But handle_level_irq also does mask-ack the interrupt itself, so there is no need to keep this special ack function around. We therefore can simplyfy the number of irq-chips again. Signed-off-by: Heiko Stuebner

[PATCH v2 10/11] ARM: S3C24XX: assimilate s3c2443 subirqs into new structure

2013-01-01 Thread Heiko Stübner
The contents of the base irq-register are shared between the s3c2443 and s3c2416/s3c2450. Signed-off-by: Heiko Stuebner --- arch/arm/plat-s3c24xx/irq.c | 252 ++- 1 files changed, 34 insertions(+), 218 deletions(-) diff --git a/arch/arm/plat-s3c24xx/irq.

[PATCH v2 09/11] ARM: S3C24XX: modify s3c2443 irq init to initialize all irqs

2013-01-01 Thread Heiko Stübner
Previously the irq init used s3c24xx_init_irq and an additional arch_initcall to add the cpu specific irqs. To be able to simplyfy the irq init later, create a new function s3c2443_init_irq, which then calls s3c24xx_init_irq but also adds the cpu specific irqs. Signed-off-by: Heiko Stuebner ---

[PATCH v2 08/11] ARM: S3C24XX: move s3c2443 irq code to irq.c

2013-01-01 Thread Heiko Stübner
Prequisite for further optimizations. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/Makefile |2 +- arch/arm/mach-s3c24xx/irq-s3c2443.c | 281 --- arch/arm/plat-s3c24xx/irq.c | 243 ++ 3 files changed, 244 i

[PATCH v2 07/11] ARM: S3C24XX: assimilate second s3c2416 interrupt into new structure

2013-01-01 Thread Heiko Stübner
The interrupt ack,mask and unmask functions for the main interrupt register are also able to handle the second one of the s3c2416. Signed-off-by: Heiko Stuebner --- arch/arm/plat-s3c24xx/irq.c | 106 --- 1 files changed, 30 insertions(+), 76 deletions(-)

[PATCH v2 06/11] ARM: S3C24XX: assimilate s3c2416 subirqs into new structure

2013-01-01 Thread Heiko Stübner
The contents of the base interrupt register is identical for s3c2443 and s3c2416/2450, so keep it separate already. Signed-off-by: Heiko Stuebner --- arch/arm/plat-s3c24xx/irq.c | 257 --- 1 files changed, 72 insertions(+), 185 deletions(-) diff --git a/

[PATCH v2 05/11] ARM: S3C24XX: modify s3c2416 irq init to initialize all irqs

2013-01-01 Thread Heiko Stübner
Previously the irq init used s3c24xx_init_irq and an additional arch_initcall to add the cpu specific irqs. To be able to simplyfy the irq init later, create a new function s3c416_init_irq, which then calls s3c24xx_init_irq but also adds the cpu specific irqs. Signed-off-by: Heiko Stuebner ---

[PATCH v2 04/11] ARM: S3C24XX: move s3c2416 irq init to common irq code

2013-01-01 Thread Heiko Stübner
This is needed to further clean up the irq init. The only change made during the move is the renaming of the possibly conflicting irq_save to irq2_save Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/Makefile |2 +- arch/arm/mach-s3c24xx/irq-s3c2416.c | 348

[PATCH v2 03/11] ARM: S3C24XX: cleanup irq-pm integration

2013-01-01 Thread Heiko Stübner
This patch integrates the irq-pm functions we moved in the previous patch. This includes some static attributes and the removal of the irq suspend and resume declaratons from the plat-samsung/pm.h header. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/common.h |2 ++ arch/a

[PATCH v2 02/11] ARM: S3C24XX: move irq-pm code into main irq file

2013-01-01 Thread Heiko Stübner
With this change, it's possible to make more elements static and also reduce the number of .h elements further down the road. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/Makefile |2 +- arch/arm/mach-s3c24xx/irq-pm.c | 95 arch/arm/plat-

[PATCH v2 01/11] ARM: S3C24XX: transform irq handling into a declarative form

2013-01-01 Thread Heiko Stübner
The irqs available on the machine and even the bit settings in the irq registers differ a lot through all the s3c24xx subarchitectures. This results in each subarch having its own irq init which adds its specific irqs to the base ones created in plat-s3c24xx/irq.c. This of course makes a future mo

[PATCH v2 00/11] ARM: S3C24XX: rework irq handling for a later dt usage

2013-01-01 Thread Heiko Stübner
Second version of redoing the s3c24xx irqs in a generic way by using a declarative approach. Changes include further generalizations resulting only in common irq-type declarations being needed and thus again easier code. As in the first version, the 1st patch might be hard to read due to the rewr

Re: S3C2416 LCD Support

2012-12-20 Thread Heiko Stübner
Am Donnerstag, 20. Dezember 2012, 17:56:23 schrieb Woody Wu: > Hi, List > > Does the current kernel 3.7.1 support S3C2416 (it's *6* not 0) LCD and > touch screen? I saw the help text of the CONFIG_FB_S3C says it only > supports S3C6400 and S3C6410. if you look in the mach-smd2416.c file you'll se

Re: [PATCH 2/5 v2] Add samsung-time support for s3c24xx

2012-12-10 Thread Heiko Stübner
Am Sonntag, 2. Dezember 2012, 20:44:09 schrieb Romain Naour: > This patch replace ARCH_USES_GETTIMEOFFSET by GENERIC_CLOCKEVENTS for > s3c24xx devices. It becomes possible to use the high-resolution timer and > dynamic ticks. > > > Signed-off-by: Naour Romain Tested-by: Heiko Stuebner on a s3

Re: [PATCH 1/5 v2] Rename s5p-time to samsung-time

2012-12-10 Thread Heiko Stübner
Am Sonntag, 2. Dezember 2012, 20:44:01 schrieb Romain Naour: > This patch rename s5p-time to samsung-time. > There is no functional change. > > > Signed-off-by: Naour Romain The patch does not apply to current linux-next, because it has some problem with the exynos-universal board. I've fixed

Re: [PATCH 5/5 v2] Remove unused plat-samsung/time.c

2012-12-10 Thread Heiko Stübner
Am Sonntag, 2. Dezember 2012, 20:44:22 schrieb Romain Naour: > Since all Samsung devices use clocksource/clockevent API, we can remove > unused sys_timer s3c24xx-timer (plat-samsung/time.c) The patch is corrupted, as it contains wrapped lines and does not apply against the current linux-next tree

Re: [PATCH 1/3] Rename s5p-time to samsung-time

2012-11-29 Thread Heiko Stübner
Hi Romain, Am Freitag, 30. November 2012, 00:18:08 schrieb Romain Naour: > Hi Heiko, > > Le 28/11/2012 00:57, Heiko Stübner a écrit : > > Hi Romain, > > > > Am Mittwoch, 28. November 2012, 00:27:36 schrieb Romain Naour: > >> Hi Tomasz, Kgene > >> &

Re: [PATCH 1/3] Rename s5p-time to samsung-time

2012-11-27 Thread Heiko Stübner
Hi Romain, Am Mittwoch, 28. November 2012, 00:27:36 schrieb Romain Naour: > Hi Tomasz, Kgene > > > I would also suggest splitting this huge patch into a series of several > > smaller, possibly: > > 1) Rename s5p-time to samsung-time (and correct any platforms using it > > currently) > > 2) Add sa

Re: [RFC 1/2] ARM: S3C24XX: add devicetree support for interrupts

2012-11-27 Thread Heiko Stübner
Am Dienstag, 27. November 2012, 07:12:52 schrieb Thomas Abraham: > On 26 November 2012 21:34, Heiko Stübner wrote: > > Hi Thomas, > > > > Am Montag, 26. November 2012, 16:23:00 schrieb Thomas Abraham: > >> On 26 November 2012 17:43, Heiko Stübner wrote: >

Re: [RFC 1/2] ARM: S3C24XX: add devicetree support for interrupts

2012-11-26 Thread Heiko Stübner
Hi Thomas, Am Montag, 26. November 2012, 16:23:00 schrieb Thomas Abraham: > On 26 November 2012 17:43, Heiko Stübner wrote: > > Hi Thomas, > > > > Am Montag, 26. November 2012, 12:03:22 schrieb Thomas Abraham: > >> Hi Heiko, > >> > >>

Re: [RFC 1/2] ARM: S3C24XX: add devicetree support for interrupts

2012-11-26 Thread Heiko Stübner
Hi Thomas, Am Montag, 26. November 2012, 12:03:22 schrieb Thomas Abraham: > Hi Heiko, > > On 25 November 2012 06:17, Heiko Stübner wrote: > > This adds devicetree parsing of the controller-data for the > > interrupt controllers on S3C24XX architectures. > > > &

Re: [PATCH v2 2/2] ARM: S3C2443: Workaround for 2443 EXTINT error

2012-11-26 Thread Heiko Stübner
Am Montag, 26. November 2012, 10:43:21 schrieb Alexander Varnin: > S3C2443 CPU has a problem with incorrect reading from EXTINTn > registers. So s3c_irqext_type function wrongly modifies them. > So add special check to s3c_irqext_type, to handle this case. > > Signed-off-by: Alexander Varnin Ack

Re: [PATCH 2/2] ARM: S3C2443: Workaround for 2443 EXTINT error

2012-11-26 Thread Heiko Stübner
/2] ARM: S3C2443: Workaround for 2443 EXTINT error to denote the most recent version and include a short summary of the changes _after_ the "---" of the main commit message. > 26.11.2012 13:12, Heiko Stübner пишет: > > Hi Alexander, > > > > I think this patch needs a

Re: [PATCH 2/2] ARM: S3C2443: Workaround for 2443 EXTINT error

2012-11-26 Thread Heiko Stübner
Hi Alexander, I think this patch needs a bit more love :-) . Please run scripts/checkpatch.pl on it and fix all the reported problems. And I'd change the comment to something like: /* * S3C2443 CPU has a problem with EXTINTn registers. * Essentially register-reads return transformed data, but

Re: [PATCH 1/2] ARM: S3C2443: introduce soc_is_s3c2443 macro

2012-11-26 Thread Heiko Stübner
Am Montag, 26. November 2012, 09:40:02 schrieb Alexander Varnin: > Signed-off-by: Alexander Varnin Acked-by: Heiko Stuebner > --- > arch/arm/plat-samsung/include/plat/cpu.h | 10 ++ > 1 files changed, 10 insertions(+), 0 deletions(-) > > diff --git a/arch/arm/plat-samsung/include/pl

[RFC 2/2] ARM: S3C24XX: Add devicetree support and dt-board file for s3c2416 SoCs

2012-11-24 Thread Heiko Stübner
This adds a board file and the devicetree source files to support boards using the Samsung S3C2416 SoC. The dt source files contain the definitions generic to all S3C24XX SoCs in the s3c24xx.dtsi file which then gets extendes with S3C2416 specific definitions. Signed-off-by: Heiko Stuebner ---

[RFC 1/2] ARM: S3C24XX: add devicetree support for interrupts

2012-11-24 Thread Heiko Stübner
This adds devicetree parsing of the controller-data for the interrupt controllers on S3C24XX architectures. Signed-off-by: Heiko Stuebner --- .../interrupt-controller/samsung,s3c24xx-irq.txt | 57 ++ arch/arm/mach-s3c24xx/common.h |1 + arch/arm/plat-s3c24xx/irq.c

[RFC 0/2] ARM: S3C24XX: Add devicetree support

2012-11-24 Thread Heiko Stübner
This series builts on my not-yet-accepted irq rework and provides the last bits to use devicetree on s3c2416 boards. It also requires the patch "serial: samsung: add devicetree properties for non-Exynos SoCs" which adds the missing device names to the mapping table. Thanks to the work of other dev

Re: [PATCH] ARM: S3C2443: Workaround for 2443 EXTINT error

2012-11-24 Thread Heiko Stübner
Am Samstag, 24. November 2012, 12:24:49 schrieb Heiko Stübner: > Am Samstag, 24. November 2012, 10:01:31 schrieb Alexander Varnin: > > I've done it within another function, because otherwise users of other > > chips would pay for a one more runtime check, which they don'

Re: [PATCH] ARM: S3C2443: Workaround for 2443 EXTINT error

2012-11-24 Thread Heiko Stübner
c2416 cpufreq driver also on the s3c2443, as the armdiv etc structure is the same. > 24.11.2012 04:16, Heiko Stübner пишет: > >>> What does this do or what should it do? Also it gets calculated but > >>> never used? > >>> > >>> And please use scr

Re: [PATCH] ARM: S3C2443: Workaround for 2443 EXTINT error

2012-11-23 Thread Heiko Stübner
sorry, forgot half of it [inline] Am Freitag, 23. November 2012, 08:10:15 schrieb Alexander Varnin: > Please take a look at this document. It describes the problem with > EXTINTn registers on 2443. > In fact, the irqext_set function for s3c2443 differs from common > starting from "//Hack for 2443

Re: [PATCH] ARM: S3C2443: Workaround for 2443 EXTINT error

2012-11-23 Thread Heiko Stübner
Am Freitag, 23. November 2012, 08:10:15 schrieb Alexander Varnin: > Please take a look at this document. It describes the problem with > EXTINTn registers on 2443. > In fact, the irqext_set function for s3c2443 differs from common > starting from "//Hack for 2443 error workaround" comment. wow ...

Re: [PATCH] ARM: S3C2443: Workaround for 2443 EXTINT error

2012-11-22 Thread Heiko Stübner
Hi Alexander, first of all could you elaborate a bit more on the error you experience, because I currently have problems to understand it from the code alone :-) . More inline. Am Donnerstag, 22. November 2012, 14:00:01 schrieb Alexander Varnin: > S3C2443 CPU has a problem with incorrect readi

Re: [PATCH] ARM: S3C2443: SPI clock channel setup is fixed

2012-11-19 Thread Heiko Stübner
Am Montag, 19. November 2012, 15:33:57 schrieb Alexander Varnin: > Actually, SPI channel 0 on 2443 is mapped to HS SPI controller, > and to enable s3c2410-spi controller, we should power on channel > 1 in PCLKCON. There is no channel 0 SPI on s3c2443, so delete its > clock. > > Signed-off-by: Alex

[PATCH 10/10] ARM: S3C24XX: assimilate s3c2443 subirqs into new structure

2012-11-17 Thread Heiko Stübner
The contents of the base irq-register are shared between the s3c2443 and s3c2416/s3c2450. Signed-off-by: Heiko Stuebner --- arch/arm/plat-s3c24xx/irq.c | 252 ++- 1 files changed, 34 insertions(+), 218 deletions(-) diff --git a/arch/arm/plat-s3c24xx/irq.

[PATCH 09/10] ARM: S3C24XX: modify s3c2443 irq init to initialize all irqs

2012-11-17 Thread Heiko Stübner
Previously the irq init used s3c24xx_init_irq and an additional arch_initcall to add the cpu specific irqs. To be able to simplyfy the irq init later, create a new function s3c2443_init_irq, which then calls s3c24xx_init_irq but also adds the cpu specific irqs. Signed-off-by: Heiko Stuebner ---

[PATCH 08/10] ARM: S3C24XX: move s3c2443 irq code to irq.c

2012-11-17 Thread Heiko Stübner
Prequisite for further optimizations. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/Makefile |2 +- arch/arm/mach-s3c24xx/irq-s3c2443.c | 281 --- arch/arm/plat-s3c24xx/irq.c | 243 ++ 3 files changed, 244 i

[PATCH 07/10] ARM: S3C24XX: assimilate second s3c2416 interrupt into new structure

2012-11-17 Thread Heiko Stübner
The interrupt ack,mask and unmask functions for the main interrupt register are also able to handle the second one of the s3c2416. Signed-off-by: Heiko Stuebner --- arch/arm/plat-s3c24xx/irq.c | 118 --- 1 files changed, 43 insertions(+), 75 deletions(-)

[PATCH 06/10] ARM: S3C24XX: assimilate s3c2416 subirqs into new structure

2012-11-17 Thread Heiko Stübner
The contents of the base interrupt register is identical for s3c2443 and s3c2416/2450, so keep it separate already. Signed-off-by: Heiko Stuebner --- arch/arm/plat-s3c24xx/irq.c | 257 --- 1 files changed, 72 insertions(+), 185 deletions(-) diff --git a/

[PATCH 05/10] ARM: S3C24XX: modify s3c2416 irq init to initialize all irqs

2012-11-17 Thread Heiko Stübner
Previously the irq init used s3c24xx_init_irq and an additional arch_initcall to add the cpu specific irqs. To be able to simplyfy the irq init later, create a new function s3c416_init_irq, which then calls s3c24xx_init_irq but also adds the cpu specific irqs. Signed-off-by: Heiko Stuebner ---

[PATCH 04/10] ARM: S3C24XX: move s3c2416 irq init to common irq code

2012-11-17 Thread Heiko Stübner
This is needed to further clean up the irq init. The only change made during the move is the renaming of the possibly conflicting irq_save to irq2_save Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/Makefile |2 +- arch/arm/mach-s3c24xx/irq-s3c2416.c | 348

[PATCH 03/10] ARM: S3C24XX: cleanup irq-pm integration

2012-11-17 Thread Heiko Stübner
This patch integrates the irq-pm functions we moved in the previous patch. This includes some static attributes and the removal of the irq suspend and resume declaratons from the plat-samsung/pm.h header. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/common.h |2 ++ arch/a

[PATCH 02/10] ARM: S3C24XX: move irq-pm code into main irq file

2012-11-17 Thread Heiko Stübner
With this change, it's possible to make more elements static and also reduce the number of .h elements further down the road. Signed-off-by: Heiko Stuebner --- arch/arm/mach-s3c24xx/Makefile |2 +- arch/arm/mach-s3c24xx/irq-pm.c | 95 arch/arm/plat-

[PATCH 01/10] ARM: S3C24XX: transform irq handling into a declarative form

2012-11-17 Thread Heiko Stübner
The irqs available on the machine and even the bit settings in the irq registers differ a lot through all the s3c24xx subarchitectures. This results in each subarch having its own irq init which adds its specific irqs to the base ones created in plat-s3c24xx/irq.c. This of course makes a future mo

[PATCH 00/10] ARM: S3C24XX: rework irq handling for a later dt usage

2012-11-17 Thread Heiko Stübner
All S3C24XX arches share the same interrupt registers and basic handling principles but the individual interrupts differ quite a lot between all the arches. This series therefore tries to unify this a bit by abstracting the irq handling and enabling the arches to simply provide a structure describ

Re: [RFC PATCH 1/4] ARM: S3C24XX: move s3c24xx-irq to drivers/irqchip

2012-11-12 Thread Heiko Stübner
Am Montag, 12. November 2012, 18:05:39 schrieb Stephen Warren: > On 11/12/2012 06:47 AM, Heiko Stübner wrote: > > Removes another part from plat-s3c24xx and also enables further > > improvements happening in the correct location. > > > > Signed-off-by: Heiko Stuebner

<    1   2   3   4   5   6   7   8   9   >