diff options
author | Mirko Vogt <mirko@openwrt.org> | 2008-12-12 00:02:36 +0000 |
---|---|---|
committer | Mirko Vogt <mirko@openwrt.org> | 2008-12-12 00:02:36 +0000 |
commit | 845092569c227454f28d77e647d386ab7cc1419f (patch) | |
tree | efab142ef89b35ce42e8a79e028eff15be362af8 /target/linux/s3c24xx/patches/0101-This-is-gta02-and-not-gta01.-Do-not-call-the-vibrato.patch | |
parent | d565bb20de4a9dec01f2f4c0f62be55eb61435a9 (diff) | |
download | upstream-845092569c227454f28d77e647d386ab7cc1419f.tar.gz upstream-845092569c227454f28d77e647d386ab7cc1419f.tar.bz2 upstream-845092569c227454f28d77e647d386ab7cc1419f.zip |
add support for target 3c24xx (more known as Openmoko GTA02 "Freerunner") and merge it with the openmoko-target and the work Michael Buesch <mb> did
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13609 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/s3c24xx/patches/0101-This-is-gta02-and-not-gta01.-Do-not-call-the-vibrato.patch')
-rwxr-xr-x | target/linux/s3c24xx/patches/0101-This-is-gta02-and-not-gta01.-Do-not-call-the-vibrato.patch | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches/0101-This-is-gta02-and-not-gta01.-Do-not-call-the-vibrato.patch b/target/linux/s3c24xx/patches/0101-This-is-gta02-and-not-gta01.-Do-not-call-the-vibrato.patch new file mode 100755 index 0000000000..727e9bb5c5 --- /dev/null +++ b/target/linux/s3c24xx/patches/0101-This-is-gta02-and-not-gta01.-Do-not-call-the-vibrato.patch @@ -0,0 +1,91 @@ +From f41615922ff8f847afde0872ba8edb0ad4054190 Mon Sep 17 00:00:00 2001 +From: Holger Freyther <zecke@openmoko.org> +Date: Fri, 25 Jul 2008 23:06:03 +0100 +Subject: [PATCH] This is gta02 and not gta01. Do not call the vibrator led. + +Signed-Off-by: Holger Freyther <zecke@openmoko.org> +--- + arch/arm/mach-s3c2440/mach-gta02.c | 25 ++++++++++++------------- + 1 files changed, 12 insertions(+), 13 deletions(-) + +diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c +index 3574375..bd2888a 100644 +--- a/arch/arm/mach-s3c2440/mach-gta02.c ++++ b/arch/arm/mach-s3c2440/mach-gta02.c +@@ -67,7 +67,6 @@ + #include <asm/arch/spi-gpio.h> + #include <asm/arch/usb-control.h> + +-#include <asm/arch/gta01.h> + #include <asm/arch/gta02.h> + + #include <asm/plat-s3c/regs-serial.h> +@@ -855,17 +854,17 @@ static struct glamo_spigpio_info glamo_spigpio_cfg = { + .board_info = gta02_spi_board_info, + }; + +-static struct resource gta01_led_resources[] = { ++static struct resource gta02_vibrator_resources[] = { + [0] = { + .start = GTA02_GPIO_VIBRATOR_ON, + .end = GTA02_GPIO_VIBRATOR_ON, + }, + }; + +-static struct platform_device gta01_led_dev = { ++static struct platform_device gta02_vibrator_dev = { + .name = "neo1973-vibrator", +- .num_resources = ARRAY_SIZE(gta01_led_resources), +- .resource = gta01_led_resources, ++ .num_resources = ARRAY_SIZE(gta02_vibrator_resources), ++ .resource = gta02_vibrator_resources, + }; + + /* SPI: Accelerometers attached to SPI of s3c244x */ +@@ -1090,7 +1089,7 @@ struct platform_device gta02_led_dev = { + .resource = gta02_led_resources, + }; + +-static struct resource gta01_button_resources[] = { ++static struct resource gta02_button_resources[] = { + [0] = { + .start = GTA02_GPIO_AUX_KEY, + .end = GTA02_GPIO_AUX_KEY, +@@ -1105,13 +1104,13 @@ static struct resource gta01_button_resources[] = { + }, + }; + +-static struct platform_device gta01_button_dev = { ++static struct platform_device gta02_button_dev = { + .name = "neo1973-button", +- .num_resources = ARRAY_SIZE(gta01_button_resources), +- .resource = gta01_button_resources, ++ .num_resources = ARRAY_SIZE(gta02_button_resources), ++ .resource = gta02_button_resources, + }; + +-static struct platform_device gta01_pm_gsm_dev = { ++static struct platform_device gta02_pm_gsm_dev = { + .name = "neo1973-pm-gsm", + }; + +@@ -1375,13 +1374,13 @@ static void __init gta02_machine_init(void) + platform_device_register(>a02_glamo_dev); + + platform_device_register(&s3c_device_spi_acc); +- platform_device_register(>a01_button_dev); +- platform_device_register(>a01_pm_gsm_dev); ++ platform_device_register(>a02_button_dev); ++ platform_device_register(>a02_pm_gsm_dev); + platform_device_register(>a02_pm_usbhost_dev); + + mangle_pmu_pdata_by_system_rev(); + platform_device_register(>a02_pmu_dev); +- platform_device_register(>a01_led_dev); ++ platform_device_register(>a02_vibrator_dev); + platform_device_register(>a02_led_dev); + + +-- +1.5.6.3 + |