aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c64xx/mach-crag6410.c
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2012-01-17 01:46:19 -0500
committerOlof Johansson <olof@lixom.net>2012-01-17 01:46:19 -0500
commit090e648a20a43d71fc2d63e0d8ff8ec6822e2396 (patch)
treebc8f67d9c5b0de5a20b251e4fd1f411cc8277deb /arch/arm/mach-s3c64xx/mach-crag6410.c
parent8b0f6d12de91345190f234edba781b2fd03257b6 (diff)
parent815ed6fc0a4d82bb39ed43d230c4e516214987e7 (diff)
Merge branch 'samsung-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung into fixes
* 'samsung-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung: ARM: EXYNOS: Invert VCLK polarity for framebuffer on ORIGEN ARM: S3C64XX: Fix interrupt configuration for PCA935x on Cragganmore ARM: S3C64XX: Fix the memory mapped GPIOs on Cragganmore ARM: S3C64XX: Remove hsmmc1 from Cragganmore ARM: S3C64XX: Remove unconditional power domain disables ARM: SAMSUNG: Declare struct platform_device in plat/s3c64xx-spi.h ARM: SAMSUNG: dma-ops.h needs mach/dma.h ARM: SAMSUNG: Guard against multiple inclusion of plat/dma.h
Diffstat (limited to 'arch/arm/mach-s3c64xx/mach-crag6410.c')
-rw-r--r--arch/arm/mach-s3c64xx/mach-crag6410.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/arch/arm/mach-s3c64xx/mach-crag6410.c b/arch/arm/mach-s3c64xx/mach-crag6410.c
index 1cc91d794c97..8077f650eb0e 100644
--- a/arch/arm/mach-s3c64xx/mach-crag6410.c
+++ b/arch/arm/mach-s3c64xx/mach-crag6410.c
@@ -260,6 +260,7 @@ static struct platform_device crag6410_dm9k_device = {
260 260
261static struct resource crag6410_mmgpio_resource[] = { 261static struct resource crag6410_mmgpio_resource[] = {
262 [0] = { 262 [0] = {
263 .name = "dat",
263 .start = S3C64XX_PA_XM0CSN4 + 1, 264 .start = S3C64XX_PA_XM0CSN4 + 1,
264 .end = S3C64XX_PA_XM0CSN4 + 1, 265 .end = S3C64XX_PA_XM0CSN4 + 1,
265 .flags = IORESOURCE_MEM, 266 .flags = IORESOURCE_MEM,
@@ -272,7 +273,7 @@ static struct platform_device crag6410_mmgpio = {
272 .resource = crag6410_mmgpio_resource, 273 .resource = crag6410_mmgpio_resource,
273 .num_resources = ARRAY_SIZE(crag6410_mmgpio_resource), 274 .num_resources = ARRAY_SIZE(crag6410_mmgpio_resource),
274 .dev.platform_data = &(struct bgpio_pdata) { 275 .dev.platform_data = &(struct bgpio_pdata) {
275 .base = -1, 276 .base = MMGPIO_GPIO_BASE,
276 }, 277 },
277}; 278};
278 279
@@ -328,7 +329,6 @@ static struct platform_device wallvdd_device = {
328 329
329static struct platform_device *crag6410_devices[] __initdata = { 330static struct platform_device *crag6410_devices[] __initdata = {
330 &s3c_device_hsmmc0, 331 &s3c_device_hsmmc0,
331 &s3c_device_hsmmc1,
332 &s3c_device_hsmmc2, 332 &s3c_device_hsmmc2,
333 &s3c_device_i2c0, 333 &s3c_device_i2c0,
334 &s3c_device_i2c1, 334 &s3c_device_i2c1,
@@ -355,7 +355,7 @@ static struct platform_device *crag6410_devices[] __initdata = {
355 355
356static struct pca953x_platform_data crag6410_pca_data = { 356static struct pca953x_platform_data crag6410_pca_data = {
357 .gpio_base = PCA935X_GPIO_BASE, 357 .gpio_base = PCA935X_GPIO_BASE,
358 .irq_base = 0, 358 .irq_base = -1,
359}; 359};
360 360
361/* VDDARM is controlled by DVS1 connected to GPK(0) */ 361/* VDDARM is controlled by DVS1 connected to GPK(0) */
@@ -683,12 +683,6 @@ static struct s3c_sdhci_platdata crag6410_hsmmc2_pdata = {
683 .cd_type = S3C_SDHCI_CD_PERMANENT, 683 .cd_type = S3C_SDHCI_CD_PERMANENT,
684}; 684};
685 685
686static struct s3c_sdhci_platdata crag6410_hsmmc1_pdata = {
687 .max_width = 4,
688 .cd_type = S3C_SDHCI_CD_GPIO,
689 .ext_cd_gpio = S3C64XX_GPF(11),
690};
691
692static void crag6410_cfg_sdhci0(struct platform_device *dev, int width) 686static void crag6410_cfg_sdhci0(struct platform_device *dev, int width)
693{ 687{
694 /* Set all the necessary GPG pins to special-function 2 */ 688 /* Set all the necessary GPG pins to special-function 2 */
@@ -723,7 +717,6 @@ static void __init crag6410_machine_init(void)
723 gpio_direction_output(S3C64XX_GPF(10), 1); 717 gpio_direction_output(S3C64XX_GPF(10), 1);
724 718
725 s3c_sdhci0_set_platdata(&crag6410_hsmmc0_pdata); 719 s3c_sdhci0_set_platdata(&crag6410_hsmmc0_pdata);
726 s3c_sdhci1_set_platdata(&crag6410_hsmmc1_pdata);
727 s3c_sdhci2_set_platdata(&crag6410_hsmmc2_pdata); 720 s3c_sdhci2_set_platdata(&crag6410_hsmmc2_pdata);
728 721
729 s3c_i2c0_set_platdata(&i2c0_pdata); 722 s3c_i2c0_set_platdata(&i2c0_pdata);