aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-yocto-3.14/h1940/0008-ARM-s3c24xx-h1940-unlock-reset-button.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-yocto-3.14/h1940/0008-ARM-s3c24xx-h1940-unlock-reset-button.patch')
-rw-r--r--recipes-kernel/linux/linux-yocto-3.14/h1940/0008-ARM-s3c24xx-h1940-unlock-reset-button.patch52
1 files changed, 0 insertions, 52 deletions
diff --git a/recipes-kernel/linux/linux-yocto-3.14/h1940/0008-ARM-s3c24xx-h1940-unlock-reset-button.patch b/recipes-kernel/linux/linux-yocto-3.14/h1940/0008-ARM-s3c24xx-h1940-unlock-reset-button.patch
deleted file mode 100644
index 6c3c9d3..0000000
--- a/recipes-kernel/linux/linux-yocto-3.14/h1940/0008-ARM-s3c24xx-h1940-unlock-reset-button.patch
+++ /dev/null
@@ -1,52 +0,0 @@
-From f163da149d098264475000f33bf919fe3342a5f6 Mon Sep 17 00:00:00 2001
-From: Vasily Khoruzhick <anarsoul@gmail.com>
-Date: Sat, 3 Dec 2011 12:12:21 +0300
-Subject: [PATCH 08/17] ARM: s3c24xx: h1940: unlock reset button
-
-Reset button can be left locked by bootloader and in case of kernel panic
-user won't be able to reset a device by pressing reset button.
-
-Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
----
- arch/arm/mach-s3c24xx/mach-h1940.c | 17 +++++++++++++++--
- 1 file changed, 15 insertions(+), 2 deletions(-)
-
-diff --git a/arch/arm/mach-s3c24xx/mach-h1940.c b/arch/arm/mach-s3c24xx/mach-h1940.c
-index 9ca26d1..6403d80 100644
---- a/arch/arm/mach-s3c24xx/mach-h1940.c
-+++ b/arch/arm/mach-s3c24xx/mach-h1940.c
-@@ -219,9 +219,9 @@ static struct s3c2410fb_mach_info h1940_fb_info __initdata = {
- .gpcup = 0x0000ffff,
- .gpcup_mask = 0xffffffff,
- .gpdcon = 0xaa84aaa0,
-- .gpdcon_mask = 0xffffffff,
-+ .gpdcon_mask = 0xfffffff3,
- .gpdup = 0x0000faff,
-- .gpdup_mask = 0xffffffff,
-+ .gpdup_mask = 0xfffffffd,
- };
-
- static int power_supply_init(struct device *dev)
-@@ -795,6 +795,19 @@ static void __init h1940_init(void)
- gpio_direction_output(S3C2410_GPA(7), 0);
- gpio_direction_output(H1940_LATCH_LED_FLASH, 0);
-
-+ gpio_request(S3C2410_GPD(1), "Reset sense");
-+ gpio_request(S3C2410_GPA(14), "Reset reset");
-+ gpio_request(S3C2410_GPB(6), "Reset lock");
-+ gpio_direction_input(S3C2410_GPD(1));
-+ gpio_direction_output(S3C2410_GPA(14), 0);
-+ if (gpio_get_value(S3C2410_GPD(1)))
-+ gpio_set_value(S3C2410_GPA(14), 0);
-+
-+ gpio_direction_output(S3C2410_GPA(14), 1);
-+ mdelay(100);
-+ gpio_direction_output(S3C2410_GPB(6), 1);
-+ gpio_direction_output(S3C2410_GPB(6), 0);
-+
- i2c_register_board_info(0, h1940_i2c_devices,
- ARRAY_SIZE(h1940_i2c_devices));
- }
---
-1.9.3
-