[PATCH v2 0/4] ARM: S3C24XX: move some code from plat to mach directory

2012-05-08 Thread Heiko Stübner
Again the series of small moves of common code from the plat-s3c24xx to the mach-s3c24xx directory. This time without the wrong handled irq.c . Hopefully I'll get time to do it properly later. As the dev-uart.c move breaks the resource patch by Tushar Behera, I updated the patch to fix the

[PATCH 1/4] ARM: S3C24XX: move plat-s3c24xx/cpu.c

2012-05-08 Thread Heiko Stübner
Following the model of s3c64xx cpu.c becomes common.c in mach-s3c24xx, to got more common code added later on. Signed-off-by: Heiko Stuebner he...@sntech.de --- arch/arm/mach-s3c24xx/Makefile |2 ++ .../{plat-s3c24xx/cpu.c = mach-s3c24xx/common.c} |2 +-

[PATCH 2/4] ARM: S3C24XX: move plat-s3c24xx/dev-uart.c into common.c

2012-05-08 Thread Heiko Stübner
The uart devices are used on all s3c24xx machines, so they can reside in the common code for all machines. Signed-off-by: Heiko Stuebner he...@sntech.de --- arch/arm/mach-s3c24xx/common.c | 73 +++ arch/arm/plat-s3c24xx/Makefile |1 -

[PATCH 3/4] ARM: S3C24XX: move common power-management code to mach-s3c24xx

2012-05-08 Thread Heiko Stübner
This is the basic power-management code used by all s3c24xx machines. Signed-off-by: Heiko Stuebner he...@sntech.de --- arch/arm/mach-s3c24xx/Makefile |4 arch/arm/{plat-s3c24xx = mach-s3c24xx}/irq-pm.c |0 arch/arm/{plat-s3c24xx = mach-s3c24xx}/pm.c |0

[PATCH 4/4] ARM: S3C24XX: move common clock init into common.c

2012-05-08 Thread Heiko Stübner
Signed-off-by: Heiko Stuebner he...@sntech.de --- arch/arm/mach-s3c24xx/common.c | 18 arch/arm/plat-s3c24xx/Makefile |1 - arch/arm/plat-s3c24xx/clock.c | 59 3 files changed, 18 insertions(+), 60 deletions(-) delete mode 100644

[PATCH v2 06/33] ARM: S3C24XX: dev-uart: Use common macro to define resources

2012-05-08 Thread Heiko Stübner
From: Tushar Behera tushar.beh...@linaro.org CC: Ben Dooks ben-li...@fluff.org CC: Kukjin Kim kgene@samsung.com Signed-off-by: Tushar Behera tushar.beh...@linaro.org Signed-off-by: Heiko Stuebner he...@sntech.de --- changes since v1: update the patch to apply against the moved dev-uart

Re: [PATCH 06/10] ARM: Samsung: Modify s3c64xx_spi{0|1|2}_set_platdata function

2012-05-09 Thread Heiko Stübner
Am Mittwoch, 9. Mai 2012, 10:56:17 schrieb Mark Brown: On Wed, May 09, 2012 at 03:34:50AM +0530, Thomas Abraham wrote: + s3c64xx_spi0_set_platdata(s3c6410-spi, NULL, 0, 1); Shouldn't we just set the name in the struct platform_device rather than requiring the machine to pass it through by

Re: [PATCH 07/10] spi: s3c64xx: Remove the 'set_level' callback from controller data

2012-05-09 Thread Heiko Stübner
Am Mittwoch, 9. Mai 2012, 00:04:51 schrieb Thomas Abraham: The set_level callback in the controller data, which is used to configure the slave select line, cannot be supported when migrating the driver to device tree based discovery. Since all the platforms currently use gpio as the slave

Re: [PATCH] ARM: S3C24XX: add support for second irq set of S3C2416

2012-05-13 Thread Heiko Stübner
Hi Kgene, Am Mittwoch 25 April 2012, 15:11:25 schrieb Heiko Stübner: Am Montag, 2. April 2012, 21:28:09 schrieb Heiko Stübner: Am Samstag 03 März 2012, 22:19:45 schrieb Heiko Stübner: The S3C2416 has a separate second interrupt register-set to support additional irqs. This patch adds

Re: [PATCH 0/2] ARM: S3C64xx: cpuidle cleanups

2012-05-14 Thread Heiko Stübner
Am Montag, 14. Mai 2012, 01:51:00 schrieb Daniel Lezcano: On 05/09/2012 04:08 PM, Daniel Lezcano wrote: These couple of patches use the new cpuidle core api to refactor some part of the code. The first one declares the states directly in the driver declaration and the second one use the

[PATCH] mmc: sdhci-s3c: pass IRQF ONESHOT to request threaded irq

2012-06-03 Thread Heiko Stübner
Fix a boot regression in existing kernels causing: genirq: Threaded irq requested with handler=NULL and !ONESHOT for irq XXX caused by 1c6c6952 (genirq: Reject bogus threaded irq requests). Signed-off-by: Heiko Stuebner he...@sntech.de --- Witnessed on a s3c2416 with 3.5-rc1

Re: ARM: s3c2410: remove dead mach-s3c2410 directory

2012-06-25 Thread Heiko Stübner
Am Montag 25 Juni 2012, 12:11:52 schrieb Paul Bolle: Commit 85fd6d63bf2927b9da7ab1b0d46723bfdb13808c (ARM: S3C2410: move mach-s3c2410/* into mach-s3c24xx/) orphaned arch/arm/mach-s3c2410/Kconfig: currently no other Kconfig file sources that file. This means that the Kconfig symbols

Re: [PATCH] ARM: SAMSUNG: Introduce Kconfig variable for Samsung custom clk API

2012-07-05 Thread Heiko Stübner
Am Mittwoch, 4. Juli 2012, 18:07:24 schrieb Mark Brown: Make it easier to switch to the common clock API by making the existing clock API implementation depend on a Kconfig symbol which is enabled when the common clock API is disabled. This means that we can have some SoCs using the common

Re: [PATCH] mmc: sdhci-s3c: Add device tree support

2012-08-17 Thread Heiko Stübner
Hi Thomas, Am Donnerstag, 16. August 2012, 17:49:29 schrieb Thomas Abraham: Add device tree based discovery support for Samsung's sdhci controller Cc: Ben Dooks ben-li...@fluff.org Cc: Kukjin Kim kgene@samsung.com Cc: Chris Ball c...@laptop.org Signed-off-by: Thomas Abraham

Re: [PATCH] gpio: samsung: add devicetree init for s3c24xx arches

2012-08-27 Thread Heiko Stübner
Hi Thomas, thanks for your review: Am Montag, 27. August 2012, 06:20:49 schrieb Thomas Abraham: Hi Heiko, On 26 August 2012 03:23, Heiko Stübner he...@sntech.de wrote: Until now the Exynos-SoC was the only Samsung-SoC supporting the GPIOs via the device tree. This patch implements dt

Re: [PATCH] gpio: samsung: add devicetree init for s3c24xx arches

2012-08-27 Thread Heiko Stübner
Hi Vasily, Am Montag, 27. August 2012, 10:57:04 schrieb Vasily Khoruzhick: Hi, On Mon, Aug 27, 2012 at 11:01 AM, Heiko Stübner he...@sntech.de wrote: Hi Thomas, thanks for your review: Hmmm, but the logic to drive the gpio controller is the same for all arches. The only

[PATCH v2] gpio: samsung: add devicetree init for s3c24xx arches

2012-08-28 Thread Heiko Stübner
Until now the Exynos-SoC was the only Samsung-SoC supporting the GPIOs via the device tree. This patch implements dt-support for the s3c24xx arches. The controllers contain only 3 cells, as the underlying gpio controller does not support controlling the drive strength on a gpio level. Tested

Re: [PATCH v2] gpio: samsung: add devicetree init for s3c24xx arches

2012-08-29 Thread Heiko Stübner
Am Mittwoch, 29. August 2012, 01:09:37 schrieb Kukjin Kim: On 08/28/12 14:55, Heiko Stübner wrote: Until now the Exynos-SoC was the only Samsung-SoC supporting the GPIOs via the device tree. This patch implements dt-support for the s3c24xx arches. The controllers contain only 3 cells

Re: Problem using S3C2416's HSSPI

2012-10-01 Thread Heiko Stübner
Hi José, Am Montag, 1. Oktober 2012, 19:32:15 schrieb José Miguel Gonçalves: I'm trying to use the HSSPI controller on a S3C2416 based board but I'm having some problems. I've added s3c64xx_device_spi0 to my array of platform devices and added a call to s3c64xx_spi0_set_platdata(NULL, 0, 1)

[PATCH] ARM: SAMSUNG: Add naming of s3c64xx-spi devices

2012-10-02 Thread Heiko Stübner
Commit a5238e360b71 (spi: s3c64xx: move controller information into driver data) introduced separate device names for the different subtypes of the spi controller but forgot to set these in the relevant machines. To fix this introduce a s3c64xx_spi_setname function and populate all Samsung arches

Re: [PATCH 4/6] ARM: S3C2410: I2C driver polling mode support

2012-10-15 Thread Heiko Stübner
Am Dienstag, 9. Oktober 2012, 13:48:50 schrieb Vasanth Ananthan: This patch adds polling mode support for i2c s3c-2410 driver. The I2C_SATAPHY controller lacks an interrupt line but the s3c-2410 driver is interrupt driven. Hence this support is required for functioning of the I2C_SATAPHY

Re: [PATCH 3/3] mmc: sdhci-s3c: Add clk_(enable/disable) in runtime suspend/resume

2012-10-17 Thread Heiko Stübner
Hi, Am Freitag, 14. September 2012, 11:08:51 schrieb Chander Kashyap: Perform clock disable/enable in runtime suspend/resume. Signed-off-by: Chander Kashyap chander.kash...@linaro.org It seems this patch breaks my S3C2416 based machine with 3.7-rc1. I'm not yet sure why, but the only

Re: [PATCH 3/3] mmc: sdhci-s3c: Add clk_(enable/disable) in runtime suspend/resume

2012-10-18 Thread Heiko Stübner
code, it's probably right to revert it for now. Or you see a easy fix :-) . Heiko Best Regards, Jaehoon Chung On 10/17/2012 06:15 PM, Heiko Stübner wrote: Hi, Am Freitag, 14. September 2012, 11:08:51 schrieb Chander Kashyap: Perform clock disable/enable in runtime suspend/resume

Re: [PATCH 3/3] mmc: sdhci-s3c: Add clk_(enable/disable) in runtime suspend/resume

2012-10-18 Thread Heiko Stübner
Am Donnerstag, 18. Oktober 2012, 11:36:03 schrieb Seungwon Jeon: On Thursday, October 18, 2012, Heiko Stübner he...@sntech.de wrote: Hi, Am Donnerstag, 18. Oktober 2012, 04:04:42 schrieb Jaehoon Chung: Sorry, i didn't check this patch with s3c2416. (i didn't have the s3c2416 board

[RFC PATCH 0/4] ARM: S3C24XX: irq move to drivers and first steps to dt

2012-11-12 Thread Heiko Stübner
On the way back from Barcelona I've started the move of the common s3c24xx irq-code to drivers/irqchip and also modifications to enable using it in a devicetree context at some point. So, as I'm also missing the now probably famous tail-lights in this, it would be cool to have some feedback if

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

2012-11-12 Thread Heiko Stübner
Removes another part from plat-s3c24xx and also enables further improvements happening in the correct location. Signed-off-by: Heiko Stuebner he...@sntech.de --- arch/arm/Kconfig |1 + arch/arm/plat-s3c24xx/Makefile |1 -

[RFC PATCH 2/4] irqchip: s3c24xx: add irq_domains for the interrupt registers

2012-11-12 Thread Heiko Stübner
Add irqdomains for the three register sets in use for base, external and sub-interrupts. This also pouplates the hwirq value for further improvements. Signed-off-by: Heiko Stuebner he...@sntech.de --- drivers/irqchip/Kconfig |1 + drivers/irqchip/irq-s3c24xx.c | 14 ++ 2

[RFC PATCH 3/4] ARM: S3C24XX: irq_data conversion for s3c_irqsub_* functions

2012-11-12 Thread Heiko Stübner
Don't strip off the rest of the irq_data struct when calling one of the s3c_irqsub_* functions. This enables using its hwirq field later on. Signed-off-by: Heiko Stuebner he...@sntech.de --- arch/arm/mach-s3c24xx/irq-s3c2412.c |6 +++--- arch/arm/mach-s3c24xx/irq-s3c2416.c | 24

[RFC PATCH 4/4] ARM: S3C24XX: First part converting irq code to use hwirq

2012-11-12 Thread Heiko Stübner
Use the newly introduced irq_domains to let the basic ack, mask and unmask functions use its hwirq field. This also includes the external irq sources and removes all offset calculations based on the static irq numbers from these parts. Signed-off-by: Heiko Stuebner he...@sntech.de ---

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 he...@sntech.de --- arch/arm

[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

[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

[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 he...@sntech.de --- arch/arm/mach-s3c24xx/Makefile |2 +- arch/arm/mach-s3c24xx/irq-pm.c | 95

[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 he...@sntech.de --- arch/arm/mach-s3c24xx/common.h |

[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 he...@sntech.de --- arch/arm/mach-s3c24xx/Makefile |2 +- arch/arm/mach-s3c24xx/irq-s3c2416.c | 348

[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 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 he...@sntech.de --- arch/arm/plat-s3c24xx/irq.c | 257 --- 1 files changed, 72 insertions(+), 185

[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 he...@sntech.de --- arch/arm/plat-s3c24xx/irq.c | 118 --- 1 files changed, 43 insertions(+),

[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 he...@sntech.de --- arch/arm/mach-s3c24xx/Makefile |2 +- arch/arm/mach-s3c24xx/irq-s3c2443.c | 281 --- arch/arm/plat-s3c24xx/irq.c | 243 ++ 3

[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 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 he...@sntech.de --- arch/arm/plat-s3c24xx/irq.c | 252 ++- 1 files changed, 34 insertions(+), 218 deletions(-) diff --git

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

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 ... this

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't need. On the other hand

[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

[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 he...@sntech.de --- .../interrupt-controller/samsung,s3c24xx-irq.txt | 57 ++ arch/arm/mach-s3c24xx/common.h |1 +

[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

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 fenix...@mail.ru Acked-by: Heiko Stuebner he...@sntech.de --- arch/arm/plat-samsung/include/plat/cpu.h | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git

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,

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

2012-11-26 Thread Heiko Stübner
: 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 bit more love :-) . Please run scripts/checkpatch.pl

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

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 he...@sntech.de wrote: This adds devicetree parsing of the controller-data for the interrupt controllers on S3C24XX architectures. Signed-off-by: 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, 16:23:00 schrieb Thomas Abraham: On 26 November 2012 17:43, Heiko Stübner he...@sntech.de wrote: Hi Thomas, Am Montag, 26. November 2012, 12:03:22 schrieb Thomas Abraham: Hi Heiko, On 25 November 2012 06:17, Heiko Stübner he...@sntech.de

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 he...@sntech.de wrote: Hi Thomas, Am Montag, 26. November 2012, 16:23:00 schrieb Thomas Abraham: On 26 November 2012 17:43, Heiko Stübner he...@sntech.de wrote: Hi Thomas

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 samsung-time

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 I would also suggest splitting this huge patch into a series

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/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 romain.na...@openwide.fr The patch does not apply to current linux-next, because it has some problem with the

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 see

[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

[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 he...@sntech.de --- arch/arm/mach-s3c24xx/common.h |

[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 he...@sntech.de --- arch/arm/mach-s3c24xx/Makefile |2 +- arch/arm/mach-s3c24xx/irq-s3c2416.c | 348

[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 he...@sntech.de --- arch/arm/plat-s3c24xx/irq.c | 257 --- 1 files changed, 72 insertions(+), 185

[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 he...@sntech.de --- arch/arm/plat-s3c24xx/irq.c | 106 --- 1 files changed, 30 insertions(+),

[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 he...@sntech.de --- arch/arm/mach-s3c24xx/Makefile |2 +- arch/arm/mach-s3c24xx/irq-s3c2443.c | 281 --- arch/arm/plat-s3c24xx/irq.c | 243 ++ 3

[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 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 he...@sntech.de --- arch/arm/plat-s3c24xx/irq.c | 252 ++- 1 files changed, 34 insertions(+), 218 deletions(-) diff --git

[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

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 irq-type declarations being needed and thus

[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

[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

[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 he...@sntech.de --- arch/arm/mach-s3c24xx/common.h |

[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 he...@sntech.de --- 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

[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 he...@sntech.de --- arch/arm/mach-s3c24xx/Makefile |2 +- arch/arm/mach-s3c24xx/irq-pm.c | 23 +++

[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 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 he...@sntech.de --- arch/arm/plat-s3c24xx/irq.c | 342 +++ 1 files changed, 87 insertions(+), 255 deletions(-) diff --git

[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 he...@sntech.de --- arch/arm/mach-s3c24xx/Makefile |2 +- arch/arm/mach-s3c24xx/irq-s3c2443.c | 281 --- arch/arm/plat-s3c24xx/irq.c | 243 ++ 3

[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 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 he...@sntech.de --- arch/arm/plat-s3c24xx/irq.c | 289 +++ 1 files changed, 75 insertions(+), 214 deletions(-) diff --git

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 s3c24xx_init_intc function from the dt patchset here

[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

[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 he...@sntech.de --- arch/arm/mach-s3c24xx/common.h |

[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 he...@sntech.de --- 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

[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 he...@sntech.de --- arch/arm/mach-s3c24xx/Makefile |2 +- arch/arm/mach-s3c24xx/irq-pm.c | 23 +++ arch/arm/mach-s3c24xx/irq-s3c2416.c | 348 ---

[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 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 he...@sntech.de --- arch/arm/plat-s3c24xx/irq.c | 342 +++ 1 file changed, 87 insertions(+), 255 deletions(-) diff --git

[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 he...@sntech.de --- arch/arm/mach-s3c24xx/Makefile |2 +- arch/arm/mach-s3c24xx/irq-s3c2443.c | 281 --- arch/arm/plat-s3c24xx/irq.c | 243 ++ 3

[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 he...@sntech.de --- arch/arm/plat-s3c24xx/irq.c | 289 +++ 1 file changed, 75 insertions(+), 214 deletions(-) diff --git

[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

[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 he...@sntech.de --- 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

[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 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 he...@sntech.de --- arch/arm/mach-s3c24xx/Makefile |2 +- arch/arm/mach-s3c24xx/irq-s3c244x.c | 142 --- arch/arm/mach-s3c24xx/irq.c | 105 ++ 3 files changed,

[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 he...@sntech.de --- arch/arm/mach-s3c24xx/Makefile |2 +- arch/arm/mach-s3c24xx/irq-s3c2440.c | 128 --- arch/arm/mach-s3c24xx/irq.c | 88 3 files

[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 he...@sntech.de --- arch/arm/mach-s3c24xx/irq.c | 46 -- 1 files changed, 13 insertions(+), 33 deletions(-) diff --git a/arch/arm/mach-s3c24xx/irq.c

[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 he...@sntech.de --- arch/arm/mach-s3c24xx/irq.c | 78 ++ 1 files changed, 63 insertions(+), 15 deletions(-) diff --git a/arch/arm/mach-s3c24xx/irq.c

[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 he...@sntech.de --- arch/arm/mach-s3c24xx/irq.c | 196 +- 1 files changed, 61 insertions(+), 135 deletions(-) diff --git a/arch/arm/mach-s3c24xx/irq.c

[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

[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 he...@sntech.de ---

[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 he...@sntech.de --- arch/arm/mach-s3c24xx/mach-rx1950.c |1 - arch/arm/plat-samsung/devs.c |1

[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 he...@sntech.de --- drivers/i2c/busses/i2c-s3c2410.c | 50 ++--- 1 files changed, 24 insertions(+), 26 deletions(-) diff --git a/drivers/i2c/busses/i2c-s3c2410.c

  1   2   3   4   5   6   7   8   >