Changeset 1583


Ignore:
Timestamp:
03/30/07 22:50:35 (6 years ago)
Author:
laforge
Message:
  • add platform device for vibrator (via led driver api)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/target/kernel/patches/gta01-core.patch

    r1579 r1583  
    55=================================================================== 
    66--- linux-2.6.20.4.orig/arch/arm/mach-s3c2410/Kconfig   2007-03-30 20:42:20.000000000 +0200 
    7 +++ linux-2.6.20.4/arch/arm/mach-s3c2410/Kconfig        2007-03-30 21:32:43.000000000 +0200 
     7+++ linux-2.6.20.4/arch/arm/mach-s3c2410/Kconfig        2007-03-30 22:46:27.000000000 +0200 
    88@@ -86,6 +86,14 @@ 
    99        help 
     
    2424=================================================================== 
    2525--- linux-2.6.20.4.orig/arch/arm/mach-s3c2410/Makefile  2007-03-30 20:42:20.000000000 +0200 
    26 +++ linux-2.6.20.4/arch/arm/mach-s3c2410/Makefile       2007-03-30 21:32:42.000000000 +0200 
     26+++ linux-2.6.20.4/arch/arm/mach-s3c2410/Makefile       2007-03-30 22:46:27.000000000 +0200 
    2727@@ -89,5 +89,6 @@ 
    2828 obj-$(CONFIG_MACH_NEXCODER_2440) += mach-nexcoder.o 
     
    3535=================================================================== 
    3636--- /dev/null   1970-01-01 00:00:00.000000000 +0000 
    37 +++ linux-2.6.20.4/arch/arm/mach-s3c2410/mach-gta01.c   2007-03-30 21:32:59.000000000 +0200 
    38 @@ -0,0 +1,563 @@ 
     37+++ linux-2.6.20.4/arch/arm/mach-s3c2410/mach-gta01.c   2007-03-30 22:47:43.000000000 +0200 
     38@@ -0,0 +1,579 @@ 
    3939+/* 
    4040+ * linux/arch/arm/mach-s3c2410/mach-gta01.c 
     
    495495+}; 
    496496+ 
     497+static struct resource gta01_led_resources[] = { 
     498+       [0] = { 
     499+               .start  = GTA01_GPIO_VIBRATOR_ON, 
     500+               .end    = GTA01_GPIO_VIBRATOR_ON, 
     501+       }, 
     502+}; 
     503+ 
     504+struct platform_device gta01_led_dev = { 
     505+       .name           = "gta01-led", 
     506+       .num_resources  = ARRAY_SIZE(gta01_led_resources), 
     507+       .resource       = gta01_led_resources, 
     508+}; 
     509+ 
    497510+static struct resource gta01_button_resources[] = { 
    498511+       [0] = { 
     
    582595+               gta01_pmu_resources[0].start = 
    583596+                       gta01_pmu_resources[0].end = GTA01Bv4_IRQ_PCF50606; 
     597+               gta01_led_resources[0].start = 
     598+                       gta01_led_resources[0].end = GTA01Bv4_GPIO_VIBRATOR_ON; 
    584599+               break; 
    585600+       } 
    586601+       platform_device_register(&gta01_pmu_dev); 
     602+       platform_device_register(&gta01_led_dev); 
    587603+ 
    588604+       s3c2410_pm_init(); 
Note: See TracChangeset for help on using the changeset viewer.