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
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
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
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
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
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
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.
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(+),
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
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
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
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
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
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 -
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(
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
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
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
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-
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
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
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
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
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
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
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 ---
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(
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
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:
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
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
--
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
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
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
---
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
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
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
---
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 |
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
---
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
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
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
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
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
---
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
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
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
---
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
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
--
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
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
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
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
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
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
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.
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
---
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
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(-)
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/
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
---
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
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
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-
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
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
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
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
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
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
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
> >>
&
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
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:
>
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,
> >>
> >>
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.
> >
> &
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
/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
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
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
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
---
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
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
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'
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
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
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 ...
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
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
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.
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
---
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
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(-)
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/
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
---
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
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
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-
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
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
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
401 - 500 of 831 matches
Mail list logo