GitHub/MotorolaMobilityLLC/kernel-slsi.git
14 years agoARM: S5PV310: Support ethernet for SMDKV310 and SMDKC210
Daein Moon [Tue, 26 Oct 2010 03:51:17 +0000 (12:51 +0900)]
ARM: S5PV310: Support ethernet for SMDKV310 and SMDKC210

This patch adds to support ethernet for SMDKV310 and SMDKC210 board.
  - define smc911x resources
  - define configurations of smc911x platform data
  - define platform device "smsc911x"
  - initialize srom controller for lan9215 chip

Signed-off-by: Daein Moon <moon9124@samsung.com>
Signed-off-by: Sangbeom Kim <sbkim73@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV310: Add support SROMC
Daein Moon [Mon, 25 Oct 2010 07:30:40 +0000 (16:30 +0900)]
ARM: S5PV310: Add support SROMC

This patch adds support SROMC for S5PV310 and S5PC210.

Signed-off-by: Daein Moon <moon9124@samsung.com>
Signed-off-by: Sangbeom Kim <sbkim73@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: SAMSUNG: Add the missed s3c_gpio_getpull() API
Daein Moon [Mon, 25 Oct 2010 23:40:08 +0000 (08:40 +0900)]
ARM: SAMSUNG: Add the missed s3c_gpio_getpull() API

This patch adds the s3c_gpio_getpull() API that has been missed in the
plat-samsung/gpio-config.c and actullay there is its extern declaration
in plat/gpio-cfg.h.

Signed-off-by: Daein Moon <moon9124@samsung.com>
Cc: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5P: Change VMALLOC_END to use more vmalloc()/ioremap() area
Kukjin Kim [Fri, 22 Oct 2010 01:49:17 +0000 (10:49 +0900)]
ARM: S5P: Change VMALLOC_END to use more vmalloc()/ioremap() area

This patch changes VMALLOC_END from 0xE0000000 to 0xF6000000, because
some systems want to use more vmalloc()/ioremap() area and now don't use
from at 0xE0000000 to 0xF6000000 (the start of Samsung SoCs' VA space)

Cc: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S3C: Change VMALLOC_END to use more vmalloc()/ioremap() area
Kukjin Kim [Fri, 22 Oct 2010 01:35:19 +0000 (10:35 +0900)]
ARM: S3C: Change VMALLOC_END to use more vmalloc()/ioremap() area

This patch changes VMALLOC_END from 0xE0000000 to 0xF6000000, because
some systems want to use more vmalloc()/ioremap() area and now don't use
from at 0xE0000000 to 0xF6000000 (the start of Samsung SoCs' VA space)

Cc: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: SAMSUNG: Move the start address of Samsung SoCs' VA space
Kukjin Kim [Fri, 22 Oct 2010 01:16:27 +0000 (10:16 +0900)]
ARM: SAMSUNG: Move the start address of Samsung SoCs' VA space

This patch moves the start address of Samsung SoCs' VA space so that
can use more vmalloc()/ioremap() space. Of course need to change the
VMALLOC_END for it.

Cc: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV310: Add support External Interrupt
Jongsun Han [Thu, 21 Oct 2010 06:18:55 +0000 (15:18 +0900)]
ARM: S5PV310: Add support External Interrupt

This patch adds EINT(External Interrupt) support on S5PV310 and S5PC210.
All EINTs are transferred to GIC through interrupt combiner.

Signed-off-by: Jongsun Han <jongsun.han@samsung.com>
Signed-off-by: Jongpill Lee <boyko.lee@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV310: Add the definition for external interrupt
Jongsun Han [Thu, 21 Oct 2010 06:59:20 +0000 (15:59 +0900)]
ARM: S5PV310: Add the definition for external interrupt

This patch adds the definition for both IRQs and GPIO registers for
external interrupts.

Signed-off-by: Jongsun Han <jongsun.han@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV310: Add L2 cache init function in cpu.c
Kyungmin Park [Thu, 21 Oct 2010 06:22:36 +0000 (15:22 +0900)]
ARM: S5PV310: Add L2 cache init function in cpu.c

This patch adds L2 cache initialization code in cpu.c of ARCH_S5PV310.
It includes TAG and Data latency, Prefetch, and Power configurations.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Changhwan Youn <chaos.youn@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV310: Remove L2 cache init in machine
Kyungmin Park [Thu, 21 Oct 2010 07:28:20 +0000 (16:28 +0900)]
ARM: S5PV310: Remove L2 cache init in machine

Basically, need L2 cache initialize function in ARCH_S5PV310. So it would
be better to move it into ARCH_S5PV310 common part. This patch removes L2
cache initialization code at the each board file.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Changhwan Youn <chaos.youn@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: Add L2X0 PREFETCH and POWER control register
Kyungmin Park [Thu, 21 Oct 2010 06:21:02 +0000 (15:21 +0900)]
ARM: Add L2X0 PREFETCH and POWER control register

This patch adds L2X0 Prefetch and Power control register.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: SAMSUNG: Move DMA clock enable into S3C PL330 driver
Seungwhan Youn [Tue, 19 Oct 2010 09:44:16 +0000 (18:44 +0900)]
ARM: SAMSUNG: Move DMA clock enable into S3C PL330 driver

This patch moves DMA clock enable functionality into pl330_probe() of
plat-samsung/s3c_pl330.c (PL330 DMAC driver) and disable functionality
into pl330_remove().
For now according to clock policy of Samsung SoCs' mainline, clocks which
are used in the driver should be controlled by each own.

Signed-off-by: Seungwhan Youn <sw.youn@samsung.com>
Acked-by: Jassi Brar <jassi.brar@samsung.com>
[kgene.kim@samsung.com: minor title and comment edit]
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5P: Reorder DMA platform device id
Seungwhan Youn [Tue, 19 Oct 2010 09:42:34 +0000 (18:42 +0900)]
ARM: S5P: Reorder DMA platform device id

This patch is matched-up DMA platform device id to its clock id.

Signed-off-by: Seungwhan Youn <sw.youn@samsung.com>
Acked-by: Jassi Brar <jassi.brar@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5P64X0: Set DMA clock disable as default
Seungwhan Youn [Tue, 19 Oct 2010 09:13:11 +0000 (18:13 +0900)]
ARM: S5P64X0: Set DMA clock disable as default

This patch modify to DMA operation clock into disable list for default
clock setting.

Signed-off-by: Seungwhan Youn <sw.youn@samsung.com>
Acked-by: Jassi Brar <jassi.brar@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: Add DMA operation clock
Seungwhan Youn [Tue, 19 Oct 2010 09:10:53 +0000 (18:10 +0900)]
ARM: S5PV210: Add DMA operation clock

This patch adds DMA operation clock which is disabled as default.

Signed-off-by: Seungwhan Youn <sw.youn@samsung.com>
Acked-by: Jassi Brar <jassi.brar@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5P6442: Add DMA operation clock
Seungwhan Youn [Tue, 19 Oct 2010 09:08:08 +0000 (18:08 +0900)]
ARM: S5P6442: Add DMA operation clock

This patch adds DMA operation clock which is disabled as default.

Signed-off-by: Seungwhan Youn <sw.youn@samsung.com>
Acked-by: Jassi Brar <jassi.brar@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoMerge branch 'next-s3c64xx' into for-next
Kukjin Kim [Mon, 25 Oct 2010 07:10:16 +0000 (16:10 +0900)]
Merge branch 'next-s3c64xx' into for-next

14 years agoMerge branch 'next-s3c24xx' into for-next
Kukjin Kim [Mon, 25 Oct 2010 07:08:29 +0000 (16:08 +0900)]
Merge branch 'next-s3c24xx' into for-next

14 years agoARM: S5PC100: Fix Audio, Keypad and ADC clock sources
Jassi Brar [Wed, 20 Oct 2010 07:37:28 +0000 (16:37 +0900)]
ARM: S5PC100: Fix Audio, Keypad and ADC clock sources

Audio, Keypad and ADC inherit PCLKD1 clock source.

Signed-off-by: Jassi Brar <jassi.brar@samsung.com>
[kgene.kim@samsung.com: minor title fix]
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: Add voltage consumer of WM8994 to the regulator framework
Chanwoo Choi [Thu, 14 Oct 2010 08:25:57 +0000 (17:25 +0900)]
ARM: S5PV210: Add voltage consumer of WM8994 to the regulator framework

This patch add cose related to regulator. To control powre consumeption
have registered the voltage consumer of WM8994 to the regulator framework.

Additionally, I explain the constraints of the regulator of WM8994 codec.
All these consumer supply of WM8994 codec connected the regulator(VCC_1.8V)
on a circuit diagram. "VCC_1.8V" regulator is always enabled, because it is
used to many devices on Goni/Aquila board. This is required especially
when there are many devices physically attached to "VCC_1.8V" and some of
they did not "register" as consumers to "VCC_1.8V". "VCC_1.8V" might be
turned off by those who are registered while "unregistered" are still active

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: Add init code of audio to Goni and Auqila board
Chanwoo Choi [Thu, 14 Oct 2010 07:00:42 +0000 (16:00 +0900)]
ARM: S5PV210: Add init code of audio to Goni and Auqila board

This patch add initialization code of audio and I2S platform drivers
to Goni and Aquila board.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: Add i2c information to Goni and Aquila board
Chanwoo Choi [Thu, 14 Oct 2010 06:02:44 +0000 (15:02 +0900)]
ARM: S5PV210: Add i2c information to Goni and Aquila board

This patch the I2C board information for the WM8994 used in the Goni/Aquila
as audio codec and adds the I2C platform drivers.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV310: Add support GPIOlib
Jongpill Lee [Thu, 14 Oct 2010 06:52:16 +0000 (15:52 +0900)]
ARM: S5PV310: Add support GPIOlib

This patch adds GPIOlib support for S5PV310 and S5PC210.

Signed-off-by: Jongpill Lee <boyko.lee@samsung.com>
Signed-off-by: Sangbeom Kim <sbkim73@samsung.com>
[kgene.kim@samsung.com: Fix NR_IRQS]
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5P: Add initial map for GPIO2 and GPIO3
Jongpill Lee [Thu, 14 Oct 2010 06:46:18 +0000 (15:46 +0900)]
ARM: S5P: Add initial map for GPIO2 and GPIO3

This patch adds initial map for GPIO2 and GPIO3.
S5PV310/S5PC210 has separated GPIO1, GPIO2 and GPIO3.

Signed-off-by: Jongpill Lee <boyko.lee@samsung.com>
Signed-off-by: Sangbeom Kim <sbkim73@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV310: Update MAX_COMBINER_NR
Jongpill Lee [Thu, 14 Oct 2010 01:51:10 +0000 (10:51 +0900)]
ARM: S5PV310: Update MAX_COMBINER_NR

This patch updates MAX_COMBINER_NR from 39 to 40 because
S5PV310 need 39th combiner for including EINT16_31.

Signed-off-by: Jongpill Lee <boyko.lee@samsung.com>
Signed-off-by: Sangbeom Kim <sbkim73@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5P: Add EPLL rate change warning
Seungwhan Youn [Thu, 14 Oct 2010 01:39:33 +0000 (10:39 +0900)]
ARM: S5P: Add EPLL rate change warning

This patch adds warning about changing EPLL rate to notice that other
driver that controls H/W, which is using EPLL, will has unknown effects
by this EPLL rate change.

Signed-off-by: Seungwhan Youn <sw.youn@samsung.com>
Acked-by: Jassi Brar <jassi.brar@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: Add EPLL clock operations
Seungwhan Youn [Thu, 14 Oct 2010 01:39:28 +0000 (10:39 +0900)]
ARM: S5PV210: Add EPLL clock operations

This patch adds EPLL specific clock get_rate/set_rate operations
on S5PV210.

Signed-off-by: Seungwhan Youn <sw.youn@samsung.com>
Acked-by: Jassi Brar <jassi.brar@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: Fix wrong EPLL rate getting on setup clocks
Seungwhan Youn [Thu, 14 Oct 2010 01:39:15 +0000 (10:39 +0900)]
ARM: S5PV210: Fix wrong EPLL rate getting on setup clocks

This patch fix wrong EPLL getting on setup clocks on S5PV210.

Signed-off-by: Seungwhan Youn <sw.youn@samsung.com>
Acked-by: Jassi Brar <jassi.brar@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5P: Reduce duplicated EPLL control codes
Seungwhan Youn [Thu, 14 Oct 2010 01:39:08 +0000 (10:39 +0900)]
ARM: S5P: Reduce duplicated EPLL control codes

S5P Samsung SoCs has a EPLL to support various PLL clock sources for other
H/W blocks. Until now, to control EPLL, each of SoCs make their own functions
in 'mach-s5pxxx/clock.c'. But some of functions, 'xxx_epll_get_rate()' and
'xxx_epll_enable()', are exactly same in all S5P SoCs, so this patch move
these duplicated codes to common EPLL functions that use platform wide.

Signed-off-by: Seungwhan Youn <sw.youn@samsung.com>
Acked-by: Jassi Brar <jassi.brar@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: Add audio clocks as sysclk
Seungwhan Youn [Thu, 14 Oct 2010 01:35:24 +0000 (10:35 +0900)]
ARM: S5PV210: Add audio clocks as sysclk

This patch adds audio clocks(SCLK_AUDIO{0,1,2} and SCLK_AUDIO) to be
initial as a sysclk on boot-time.

Signed-off-by: Seungwhan Youn <sw.youn@samsung.com>
Acked-by: Jassi Brar <jassi.brar@samsung.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: Add SCLK_SPDIF clock
Seungwhan Youn [Thu, 14 Oct 2010 01:35:24 +0000 (10:35 +0900)]
ARM: S5PV210: Add SCLK_SPDIF clock

This patch add SCLK_SPDIF clock to support source clock of S/PDIF
on S5PV210.

Signed-off-by: Seungwhan Youn <sw.youn@samsung.com>
Acked-by: Jassi Brar <jassi.brar@samsung.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: Add S/PDIF platform device
Seungwhan Youn [Thu, 14 Oct 2010 01:35:24 +0000 (10:35 +0900)]
ARM: S5PV210: Add S/PDIF platform device

This patch add S/PDIF platform device to support S/PDIF PCM audio
on S5PV210.

Signed-off-by: Seungwhan Youn <sw.youn@samsung.com>
Acked-by: Jassi Brar <jassi.brar@samsung.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PC100: Add SCLK_SPDIF clock
Seungwhan Youn [Thu, 14 Oct 2010 01:35:23 +0000 (10:35 +0900)]
ARM: S5PC100: Add SCLK_SPDIF clock

This patch add SCLK_SPDIF clock to support source clock of S/PDIF
on S5PC100.

Signed-off-by: Seungwhan Youn <sw.youn@samsung.com>
Acked-by: Jassi Brar <jassi.brar@samsung.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PC100: Modify SCLK_AUDIO{0,1,2} clock as sysclks
Seungwhan Youn [Thu, 14 Oct 2010 01:35:23 +0000 (10:35 +0900)]
ARM: S5PC100: Modify SCLK_AUDIO{0,1,2} clock as sysclks

This patch modify SCLK_AUDIO{0,1,2} to be initial as sysclks
on boot-time.

Signed-off-by: Seungwhan Youn <sw.youn@samsung.com>
Acked-by: Jassi Brar <jassi.brar@samsung.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PC100: Add S/PDIF platform device
Seungwhan Youn [Thu, 14 Oct 2010 01:35:23 +0000 (10:35 +0900)]
ARM: S5PC100: Add S/PDIF platform device

This patch add S/PDIF platform device to support S/PDIF PCM audio
on S5PC100.

Signed-off-by: Seungwhan Youn <sw.youn@samsung.com>
Acked-by: Jassi Brar <jassi.brar@samsung.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S3C64XX: Ensure s3c64xx_ide_setup_gpio() is prototyped
Mark Brown [Wed, 13 Oct 2010 09:23:42 +0000 (18:23 +0900)]
ARM: S3C64XX: Ensure s3c64xx_ide_setup_gpio() is prototyped

Since it's exported we should make sure we're using the prototype
others see.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S3C64XX: Ensure samsung_keypad_cfg_gpio() is prototyped
Mark Brown [Wed, 13 Oct 2010 09:23:39 +0000 (18:23 +0900)]
ARM: S3C64XX: Ensure samsung_keypad_cfg_gpio() is prototyped

Since it's exported we should make sure we're using the prototype
others see.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: Update Kconfig and Makefile for supporting CPUFREQ driver
Jaecheol Lee [Tue, 12 Oct 2010 00:23:19 +0000 (09:23 +0900)]
ARM: S5PV210: Update Kconfig and Makefile for supporting CPUFREQ driver

This patch adds ARCH_HAS_CPUFREQ in arch/arm/Kconfig for S5PV210,
and updates mach-s5pv210/Makefile for supporting build CPUFREQ driver.

Signed-off-by: Jaecheol Lee <jc.lee@samsung.com>
Signed-off-by: Sangbeom Kim <sbkim73@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: Add support CPUFREQ
Jaecheol Lee [Tue, 12 Oct 2010 00:19:38 +0000 (09:19 +0900)]
ARM: S5PV210: Add support CPUFREQ

This patch adds CPUFREQ driver for supporting DFS(Dynamic Frequency Scaling).

Signed-off-by: Jaecheol Lee <jc.lee@samsung.com>
Signed-off-by: Sangbeom Kim <sbkim73@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: Add Register definition for CMU
Jaecheol Lee [Tue, 12 Oct 2010 00:19:34 +0000 (09:19 +0900)]
ARM: S5PV210: Add Register definition for CMU

This patch adds some CMU(Clock Management Unit) registers for
supporting CPUFREQ and some drivers.

Signed-off-by: Jaecheol Lee <jc.lee@samsung.com>
Signed-off-by: Sangbeom Kim <sbkim73@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: Add MOUT_DMC0 and SCLK_DMC0 clocks
Jaecheol Lee [Tue, 12 Oct 2010 00:19:30 +0000 (09:19 +0900)]
ARM: S5PV210: Add MOUT_DMC0 and SCLK_DMC0 clocks

This patch adds MOUT_DMC0 and SCLK_DMC0 for checking the dmc0 clock
in CPUFREQ driver.

Signed-off-by: Jaecheol Lee <jc.lee@samsung.com>
Signed-off-by: Sangbeom Kim <sbkim73@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: Add struct clk_ops for clk_fout_apll
Jaecheol Lee [Tue, 12 Oct 2010 00:19:26 +0000 (09:19 +0900)]
ARM: S5PV210: Add struct clk_ops for clk_fout_apll

Current fout_apll has fixed rate value. So CPUFREQ driver gets
incorrect value when finding current CPU frequency. Because some
operation level need to change APLL.
Added get_rate function for fout_apll can give correct frequency
value when calling get_rate function.

Signed-off-by: Jaecheol Lee <jc.lee@samsung.com>
Signed-off-by: Sangbeom Kim <sbkim73@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV310: Add I2C channel 3, 4, 5, 6, and 7 device support
Kyungmin Park [Mon, 11 Oct 2010 22:49:24 +0000 (07:49 +0900)]
ARM: S5PV310: Add I2C channel 3, 4, 5, 6, and 7 device support

S5PV310 and S5PC210 support more I2C devices than previous SoCs.
Add the device support code for them.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV310: Define address & interrupt for all I2C blocks
Kyungmin Park [Mon, 11 Oct 2010 22:49:20 +0000 (07:49 +0900)]
ARM: S5PV310: Define address & interrupt for all I2C blocks

S5PV310 and S5PC210 support total 8 (+ 1 dedicated for HDMI) I2C devices.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: Fix wrong interrupt I2C2 and I2C3 number
Kyungmin Park [Mon, 11 Oct 2010 22:49:18 +0000 (07:49 +0900)]
ARM: S5PV210: Fix wrong interrupt I2C2 and I2C3 number

The name of the I2C2 and I2C3 interrupt should be IIC2 and IIC3
instead of CAN0 and CAN1.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PC100: Change I2C2 and I2C3 IRQ names
Kukjin Kim [Mon, 11 Oct 2010 06:55:29 +0000 (15:55 +0900)]
ARM: S5PC100: Change I2C2 and I2C3 IRQ names

This patch changes I2C2 and I2C3 interrupt name from IRQ_CANX to IRQ_IICX
according other SoCs' I2C interrupt naming rule.

Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5P: Cleanup the S5P SoCs' VA address mapping
Kukjin Kim [Tue, 5 Oct 2010 01:49:38 +0000 (10:49 +0900)]
ARM: S5P: Cleanup the S5P SoCs' VA address mapping

Basically S5P SoCs use the Samsung common VA address mapping where
plat-samsung and use plat-s5p's mapping also. The later is a little
mess. So this patch cleans it up.

Cc: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV310: I2C0/1 devices support on Universal board
Kyungmin Park [Fri, 8 Oct 2010 13:34:56 +0000 (22:34 +0900)]
ARM: S5PV310: I2C0/1 devices support on Universal board

Camera devices use the I2C0 and Gyro uese the I2C1 on universal board.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
[kgene.kim@samsung.com: minor title fixes]
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV310: Universal OneNAND support
Kyungmin Park [Fri, 8 Oct 2010 13:34:52 +0000 (22:34 +0900)]
ARM: S5PV310: Universal OneNAND support

OneNAND device support for Universal board.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
[kgene.kim@samsung.com: minor title fixes]
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: SAMSUNG: Add clock types into platform data
Jeongbae Seo [Fri, 8 Oct 2010 09:03:27 +0000 (18:03 +0900)]
ARM: SAMSUNG: Add clock types into platform data

This patch adds clock types into platform data to support
external clock divider instead of internal clock divider.
It is defined that what kinds of clock type is used in machine.

Signed-off-by: Jeongbae Seo <jeongbae.seo@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: SAMSUNG: Modified to change of bus width and host caps
Hyuk Lee [Fri, 8 Oct 2010 09:03:23 +0000 (18:03 +0900)]
ARM: SAMSUNG: Modified to change of bus width and host caps

This patch adds to change bus width and host capability of HSMMC,
when HSMMC is only configured with another value of bus width
and host capability from default one.

Signed-off-by: Hyuk Lee <hyuk1.lee@samsung.com>
Signed-off-by: Jeongbae Seo <jeongbae.seo@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV310: Add support HSMMC on SMDKV310 and SMDKC210
Hyuk Lee [Wed, 6 Oct 2010 05:50:20 +0000 (14:50 +0900)]
ARM: S5PV310: Add support HSMMC on SMDKV310 and SMDKC210

This patch adds support HSMMC for S5PV310(SMDKV310) and
S5PC210(SMDKC210).

Signed-off-by: Hyuk Lee <hyuk1.lee@samsung.com>
Signed-off-by: Jeongbae Seo <jeongbae.seo@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV310: Add HSMMC platform data
Hyuk Lee [Tue, 5 Oct 2010 10:07:41 +0000 (19:07 +0900)]
ARM: S5PV310: Add HSMMC platform data

This patch adds initialization HSMMC device information.
And HSMMC platform data like card detect, data bus width
and capability is configured.

Signed-off-by: Hyuk Lee <hyuk1.lee@samsung.com>
Signed-off-by: Jeongbae Seo <jeongbae.seo@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV310: Add support HSMMC and SDHCI configuration
Hyuk Lee [Wed, 6 Oct 2010 02:09:42 +0000 (11:09 +0900)]
ARM: S5PV310: Add support HSMMC and SDHCI configuration

This patch adds support HSMMC for S5PV310 and S5PC210 and
setup for HSMMC host controller and also related GPIO.
At most 4 channel can be used at the same time.
A user can configure SDHCI data bus as 8bit or 4bit.

Signed-off-by: Hyuk Lee <hyuk1.lee@samsung.com>
Signed-off-by: Jeongbae Seo <jeongbae.seo@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PC100: Cleanup the GPIOlib code
Kukjin Kim [Fri, 1 Oct 2010 12:32:52 +0000 (21:32 +0900)]
ARM: S5PC100: Cleanup the GPIOlib code

This patch clean up the GPIO code and removes useless GPIO addresses.
It can be calculated with offset, the 'base' member of s3c_gpio_chip
is also initialized in the init function.

Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoMerge branch 'next-gpio-update' into for-next
Kukjin Kim [Mon, 25 Oct 2010 06:57:16 +0000 (15:57 +0900)]
Merge branch 'next-gpio-update' into for-next

14 years agoARM: S5P: Fix missed IRQ_EINT_BIT()
Kukjin Kim [Thu, 14 Oct 2010 06:35:07 +0000 (15:35 +0900)]
ARM: S5P: Fix missed IRQ_EINT_BIT()

When merged patches, missed IRQ_EINT_BIT() definition from commit ea31fd43
(ARM: S5PV210: Add Power Management Support). The IRQ_EINT_BIT() is used
in the Power Management operation (plat-samsung/pm.c).

Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S3C64XX: Fix special function for IISv4 port
Mark Brown [Wed, 13 Oct 2010 22:53:12 +0000 (07:53 +0900)]
ARM: S3C64XX: Fix special function for IISv4 port

When converting to use s3c_gpio_cfgpin_range() the function for the
IISv4 block appears to have been typoed as 4 (the keypad) rather than
5 as it should be.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: 2nd Change to using s3c_gpio_cfgrange_nopull()
Kukjin Kim [Fri, 1 Oct 2010 11:12:24 +0000 (20:12 +0900)]
ARM: S5PV210: 2nd Change to using s3c_gpio_cfgrange_nopull()

This patch changes code setting special-function and no pull-up
to use the s3c_gpio_cfgrange_nopull() wrapper.
NOTE: This is for missed things from the previous patch.

Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PC100: 2nd Change to using s3c_gpio_cfgrange_nopull()
Kukjin Kim [Fri, 1 Oct 2010 11:10:33 +0000 (20:10 +0900)]
ARM: S5PC100: 2nd Change to using s3c_gpio_cfgrange_nopull()

This patch changes code setting special-function and no pull-up
to use the s3c_gpio_cfgrange_nopull() wrapper.
NOTE: This is for missed things from the previous patch.

Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S3C64XX: 2nd Change to using s3c_gpio_cfgrange_nopull()
Kukjin Kim [Fri, 1 Oct 2010 11:20:37 +0000 (20:20 +0900)]
ARM: S3C64XX: 2nd Change to using s3c_gpio_cfgrange_nopull()

This patch changes code setting special-function and no pull-up
to use the s3c_gpio_cfgrange_nopull() wrapper.
NOTE: This is for missed things from the previous patch.

Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: Change to using s3c_gpio_cfgrange_nopull()
Ben Dooks [Thu, 27 May 2010 08:25:47 +0000 (17:25 +0900)]
ARM: S5PV210: Change to using s3c_gpio_cfgrange_nopull()

Change code setting special-function and no pull-up to use
the s3c_gpio_cfgrange_nopull() wrapper.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PC100: Change to using s3c_gpio_cfgrange_nopull()
Ben Dooks [Thu, 27 May 2010 08:25:46 +0000 (17:25 +0900)]
ARM: S5PC100: Change to using s3c_gpio_cfgrange_nopull()

Change code setting special-function and no pull-up to use
the s3c_gpio_cfgrange_nopull() wrapper.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S3C64XX: Change to using s3c_gpio_cfgrange_nopull()
Ben Dooks [Thu, 27 May 2010 08:25:45 +0000 (17:25 +0900)]
ARM: S3C64XX: Change to using s3c_gpio_cfgrange_nopull()

Change code setting special-function and no pull-up to use
the s3c_gpio_cfgrange_nopull() wrapper.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: SAMSUNG: Add s3c_gpio_cfgrange_nopull() helper
Ben Dooks [Fri, 1 Oct 2010 10:07:28 +0000 (19:07 +0900)]
ARM: SAMSUNG: Add s3c_gpio_cfgrange_nopull() helper

A number of the SDHCI code configure a GPIO to a special function
and remove any pull-up, so add s3c_gpio_cfgrange_nopull() as a
wrapper to the s3c_gpio_cfgall_range() to make the code that
calls it fit on one line.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: 2nd Change to using s3c_gpio_cfgall_range()
Kukjin Kim [Fri, 1 Oct 2010 11:54:56 +0000 (20:54 +0900)]
ARM: S5PV210: 2nd Change to using s3c_gpio_cfgall_range()

This patch changes the code setting range of GPIO pins' configuration and
pull state to use the recently introduced s3c_gpio_cfgpin_range().
NOTE: This is for missed things from the previous patch.

Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PC100: 2nd Change to using s3c_gpio_cfgall_range()
Kukjin Kim [Fri, 1 Oct 2010 11:50:20 +0000 (20:50 +0900)]
ARM: S5PC100: 2nd Change to using s3c_gpio_cfgall_range()

This patch changes the code setting range of GPIO pins' configuration and
pull state to use the recently introduced s3c_gpio_cfgpin_range().
NOTE: This is for missed things from the previous patch.

Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5P64X0: 2nd Change to using s3c_gpio_cfgall_range()
Kukjin Kim [Fri, 1 Oct 2010 10:38:26 +0000 (19:38 +0900)]
ARM: S5P64X0: 2nd Change to using s3c_gpio_cfgall_range()

This patch changes the code setting range of GPIO pins' configuration and
pull state to use the recently introduced s3c_gpio_cfgpin_range().
NOTE: This is for missed things from the previous patch.

Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S3C64XX: 2nd Change to using s3c_gpio_cfgall_range()
Kukjin Kim [Fri, 1 Oct 2010 11:47:21 +0000 (20:47 +0900)]
ARM: S3C64XX: 2nd Change to using s3c_gpio_cfgall_range()

This patch changes the code setting range of GPIO pins' configuration and
pull state to use the recently introduced s3c_gpio_cfgpin_range().
NOTE: This is for missed things from the previous patch.

Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV310: Change to using s3c_gpio_cfgall_range()
Kukjin Kim [Fri, 1 Oct 2010 10:32:27 +0000 (19:32 +0900)]
ARM: S5PV310: Change to using s3c_gpio_cfgall_range()

Change the code setting a range of GPIO pins' configuration and
pull state to use the recently introduced s3c_gpio_cfgall_range().

Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: Change to using s3c_gpio_cfgall_range()
Ben Dooks [Thu, 27 May 2010 08:02:32 +0000 (17:02 +0900)]
ARM: S5PV210: Change to using s3c_gpio_cfgall_range()

Change the code setting a range of GPIO pins' configuration and
pull state to use the recently introduced s3c_gpio_cfgall_range().

Mop up a few missed s3c_gpio_cfgpin_range() changes.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PC100: Change to using s3c_gpio_cfgall_range()
Ben Dooks [Fri, 1 Oct 2010 07:49:11 +0000 (16:49 +0900)]
ARM: S5PC100: Change to using s3c_gpio_cfgall_range()

Change the code setting a range of GPIO pins' configuration and
pull state to use the recently introduced s3c_gpio_cfgall_range().

Mop up a few missed s3c_gpio_cfgpin_range() changes.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5P64X0: Change to using s3c_gpio_cfgall_range()
Kukjin Kim [Fri, 1 Oct 2010 09:39:38 +0000 (18:39 +0900)]
ARM: S5P64X0: Change to using s3c_gpio_cfgall_range()

Change the code setting a range of GPIO pins' configuration and
pull state to use the recently introduced s3c_gpio_cfgall_range().

Mop up a few missed s3c_gpio_cfgpin_range() changes.

Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5P6442: Change to using s3c_gpio_cfgall_range()
Kukjin Kim [Fri, 1 Oct 2010 10:37:09 +0000 (19:37 +0900)]
ARM: S5P6442: Change to using s3c_gpio_cfgall_range()

Change the code setting a range of GPIO pins' configuration and
pull state to use the recently introduced s3c_gpio_cfgall_range().

Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S3C64XX: Change to using s3c_gpio_cfgall_range()
Ben Dooks [Fri, 1 Oct 2010 07:39:15 +0000 (16:39 +0900)]
ARM: S3C64XX: Change to using s3c_gpio_cfgall_range()

Change the code setting a range of GPIO pins' configuration and
pull state to use the recently introduced s3c_gpio_cfgall_range().

Mop up a few missed s3c_gpio_cfgpin_range() changes.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
[kgene.kim@samsung.com: Fix small comments]
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: SAMSUNG: Add s3c_gpio_cfgall_range() function
Ben Dooks [Fri, 1 Oct 2010 07:34:34 +0000 (16:34 +0900)]
ARM: SAMSUNG: Add s3c_gpio_cfgall_range() function

Add a function to configure a range of GPIOs function and
pull in one go, mainly for the SDHCI and framebuffer helpers
which tend to do this.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
[kgene.kim@samsung.com: Fix small comments]
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV310: Change to using s3c_gpio_cfgpin_range()
Kukjin Kim [Fri, 1 Oct 2010 07:05:07 +0000 (16:05 +0900)]
ARM: S5PV310: Change to using s3c_gpio_cfgpin_range()

This patch changes the code setting ranges of GPIO pins in mach-s5pv310 using
s3c_gpio_cfgpin() to use the recently introduced s3c_gpio_cfgpin_range().

Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: Change to using s3c_gpio_cfgpin_range()
Ben Dooks [Fri, 1 Oct 2010 05:27:31 +0000 (14:27 +0900)]
ARM: S5PV210: Change to using s3c_gpio_cfgpin_range()

Change the code setting ranges of GPIO pins using s3c_gpio_cfgpin() to
use the recently introduced s3c_gpio_cfgpin_range().

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
[kgene.kim@samsung.com: coding-style fixes]
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PC100: Change to using s3c_gpio_cfgpin_range()
Ben Dooks [Fri, 1 Oct 2010 05:20:55 +0000 (14:20 +0900)]
ARM: S5PC100: Change to using s3c_gpio_cfgpin_range()

Change the code setting ranges of GPIO pins using s3c_gpio_cfgpin() to
use the recently introduced s3c_gpio_cfgpin_range().

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
[kgene.kim@samsung.com: Fixed wrong change]
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5P64X0: 2nd Change to using s3c_gpio_cfgpin_range()
Kukjin Kim [Fri, 1 Oct 2010 06:46:36 +0000 (15:46 +0900)]
ARM: S5P64X0: 2nd Change to using s3c_gpio_cfgpin_range()

This patch changes the code setting ranges of GPIO pins in mach-s5p64x0 using
s3c_gpio_cfgpin() to use the recently introduced s3c_gpio_cfgpin_range().
NOTE: This is for missed things from the previous patch.

Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5P64X0: Change to using s3c_gpio_cfgpin_range()
Ben Dooks [Fri, 1 Oct 2010 04:45:54 +0000 (13:45 +0900)]
ARM: S5P64X0: Change to using s3c_gpio_cfgpin_range()

Change the code setting ranges of GPIO pins using s3c_gpio_cfgpin() to
use the recently introduced s3c_gpio_cfgpin_range().

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
[kgene.kim@samsung.com: modified to s5p64x0 from s5p6440]
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5P6442: Change to using s3c_gpio_cfgpin_range()
Ben Dooks [Fri, 1 Oct 2010 04:52:25 +0000 (13:52 +0900)]
ARM: S5P6442: Change to using s3c_gpio_cfgpin_range()

Change the code setting ranges of GPIO pins using s3c_gpio_cfgpin() to
use the recently introduced s3c_gpio_cfgpin_range().

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
[kgene.kim@samsung.com: fixed wrong change]
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S3C64XX: Change to using s3c_gpio_cfgpin_range()
Ben Dooks [Thu, 27 May 2010 06:54:06 +0000 (15:54 +0900)]
ARM: S3C64XX: Change to using s3c_gpio_cfgpin_range()

Change the code setting ranges of GPIO pins using s3c_gpio_cfgpin() to
use the recently introduced s3c_gpio_cfgpin_range().

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S3C64XX: Change dev-audio.c to use S3C_GPIO_SFN() for special functions
Ben Dooks [Thu, 27 May 2010 05:57:27 +0000 (14:57 +0900)]
ARM: S3C64XX: Change dev-audio.c to use S3C_GPIO_SFN() for special functions

To aide in changing the gpio code, remove the use of pin-specific configs
and move to using the S3C_GPIO_SFN() versions.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: SAMSUNG: Add GPIO configuration for a range of pins
Ben Dooks [Fri, 1 Oct 2010 04:37:13 +0000 (13:37 +0900)]
ARM: SAMSUNG: Add GPIO configuration for a range of pins

Add s3c_gpio_cfgpin_range() to configure a range of pins to the given
value. This is useful for a number of blocks where the pins are in order
and saves multiple calls to s3c_gpio_cfgpin().

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: GONI: Add support for QT602240 TS driver
Marek Szyprowski [Mon, 4 Oct 2010 09:38:12 +0000 (18:38 +0900)]
ARM: S5PV210: GONI: Add support for QT602240 TS driver

Add required platform definitions for QT602240 touchscreen on I2C2 bus.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: Add si470x radio device to the GONI board
Marek Szyprowski [Mon, 4 Oct 2010 07:39:22 +0000 (16:39 +0900)]
ARM: S5PV210: Add si470x radio device to the GONI board

Add required platform definitions for si470x radio device on Samsung
Goni board.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
[kgene.kim@samsung.com: minor title fixes]
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: Add support for S6E63M0 LCD controller on GONI board
Marek Szyprowski [Mon, 4 Oct 2010 07:39:20 +0000 (16:39 +0900)]
ARM: S5PV210: Add support for S6E63M0 LCD controller on GONI board

Add required platform definitions for S6E63M0 LCD controller on Samsung
Goni board.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
[kgene.kim@samsung.com: minor title fixes]
[kgene.kim@samsung.com: fix build error]
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: Add Power Management Support
Jongpill Lee [Sat, 2 Oct 2010 10:13:42 +0000 (19:13 +0900)]
ARM: S5PV210: Add Power Management Support

This patch adds suspend-to-ram support for S5PV210.
Note. This patch is confirmed on SMDKV210 and SMDKC110 board.

Signed-off-by: Jongpill Lee <boyko.lee@samsung.com>
Signed-off-by: Sangbeom Kim <sbkim73@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: Fix build error on pm debug
Sangbeom Kim [Fri, 8 Oct 2010 12:50:20 +0000 (21:50 +0900)]
ARM: S5PV210: Fix build error on pm debug

This patch fixes build error by S3C2410 PM Suspend debug option
due to undefined address.

Signed-off-by: Sangbeom Kim <sbkim73@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5P: Unify defines for both gpio interrupt types
Marek Szyprowski [Sat, 2 Oct 2010 02:48:09 +0000 (11:48 +0900)]
ARM: S5P: Unify defines for both gpio interrupt types

Samsung S5P SoCs have the same interrupt type defines for both
external interrupts and gpio interrupts. This patch removes all
duplicates from S5PC100 and S5PV210 specific includes as well as
gpio interrupt code and put a common defines to plat/irqs.h
NOTE: Do not use this for S5P6440 and S5P6450.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
[kgene.kim@samsung.com: add note for S5P64X0]
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: SAMSUNG: Add common samsung_gpiolib_to_irq function
Joonyoung Shim [Fri, 1 Oct 2010 02:24:39 +0000 (11:24 +0900)]
ARM: SAMSUNG: Add common samsung_gpiolib_to_irq function

This patch adds a common callback for gpio_to_irq() for external and
gpio interrupts for Samsung SoCs.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Ben Dooks <ben-linux@fluff.org>
[kgene.kim@samsung.com: moved samsung_gpiolib_to_irq() for s3c24xx build]
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PC100: Move External Interrupt definitions
Joonyoung Shim [Fri, 1 Oct 2010 02:23:06 +0000 (11:23 +0900)]
ARM: S5PC100: Move External Interrupt definitions

This patch moves external interrupt definitions from mach/gpio.h
to mach/regs-gpio.h for consistency with S5PV210.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PC100: Use generic S5P GPIO Interrupt interface
Joonyoung Shim [Fri, 1 Oct 2010 02:18:05 +0000 (11:18 +0900)]
ARM: S5PC100: Use generic S5P GPIO Interrupt interface

S5PC100 SoC can use common S5P GPIO interrupt code. This patch
removes specific S5PC100 gpio interrupts code and adds required
defines and code to make use of common S5P code.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: Add support for GPIO Interrupt
Marek Szyprowski [Fri, 1 Oct 2010 02:16:44 +0000 (11:16 +0900)]
ARM: S5PV210: Add support for GPIO Interrupt

S5PV210/S5PC110 can use common S5P GPIO interrupt code.
This patch adds required defines and code to make use of it.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
[kgene.kim@samsung.com: minor title fixes]
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5P: Add common S5P GPIO Interrupt support
Marek Szyprowski [Fri, 1 Oct 2010 01:40:37 +0000 (10:40 +0900)]
ARM: S5P: Add common S5P GPIO Interrupt support

This patch adds common code to enable support of GPIO interrupt on
S5P SoCs.

The total number of GPIO pins is quite large on S5P SoCs. Registering
irq support for all of them would be a resource waste. Because of that
the interrupt support for standard GPIO pins is registered dynamically
by the s5p_register_gpio_interrupt() function.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
[kgene.kim@samsung.com: minor title fixes]
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: Enable USB HSOTG gadget build
Marek Szyprowski [Wed, 29 Sep 2010 13:10:51 +0000 (22:10 +0900)]
ARM: S5PV210: Enable USB HSOTG gadget build

Add the necessary definitions and mapping information to enable the
s3c-hsotg gadget to build.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: Add Support for MMC regulators on GONI board
Marek Szyprowski [Wed, 29 Sep 2010 13:05:19 +0000 (22:05 +0900)]
ARM: S5PV210: Add Support for MMC regulators on GONI board

Add required platform definitions for MMC power regulators on Samsung
Goni board. GPIO pin GONI_EXT_FLASH_EN has been transferred from machine
startup code to fixed voltage regulator.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: Add Support for OTG USB Gadget on GONI board
Marek Szyprowski [Thu, 30 Sep 2010 11:59:46 +0000 (20:59 +0900)]
ARM: S5PV210: Add Support for OTG USB Gadget on GONI board

Add required platform definitions for s3c-hsotg driver to enable usb
gadget support on Samsung Goni board.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
14 years agoARM: S5PV210: fb setup for GONI - remove pixel clock
Marek Szyprowski [Wed, 29 Sep 2010 12:50:04 +0000 (21:50 +0900)]
ARM: S5PV210: fb setup for GONI - remove pixel clock

Since commit 67a38950f0917aecfe1a3e46720d8bbb0020 there is no need
to set pixel clock for the s3c-fb driver's window information.
The correct pixel clock value can be automatically calculated from
the other screen parameters. This patch removes the redundant pixel clock
parameter.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>