diff options
Diffstat (limited to 'meta/packages/uboot/u-boot-mkimage-openmoko-native/early-powerdown.patch')
-rw-r--r-- | meta/packages/uboot/u-boot-mkimage-openmoko-native/early-powerdown.patch | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/meta/packages/uboot/u-boot-mkimage-openmoko-native/early-powerdown.patch b/meta/packages/uboot/u-boot-mkimage-openmoko-native/early-powerdown.patch deleted file mode 100644 index 7326c2daa6..0000000000 --- a/meta/packages/uboot/u-boot-mkimage-openmoko-native/early-powerdown.patch +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | Index: u-boot/board/neo1973/neo1973.c | ||
2 | =================================================================== | ||
3 | --- u-boot.orig/board/neo1973/gta01/gta01.c | ||
4 | +++ u-boot/board/neo1973/gta01/gta01.c | ||
5 | @@ -68,8 +68,12 @@ DECLARE_GLOBAL_DATA_PTR; | ||
6 | #define U_M_PDIV 0x2 | ||
7 | #define U_M_SDIV 0x3 | ||
8 | |||
9 | +#define VALID_WAKEUP_REASONS (PCF50606_INT1_ONKEYF | PCF50606_INT1_ALARM) | ||
10 | + | ||
11 | unsigned int neo1973_wakeup_cause; | ||
12 | extern int nobootdelay; | ||
13 | +static unsigned char int1; | ||
14 | + | ||
15 | |||
16 | static inline void delay (unsigned long loops) | ||
17 | { | ||
18 | @@ -179,6 +183,13 @@ int board_init (void) | ||
19 | #error Please define GTA01 version | ||
20 | #endif | ||
21 | |||
22 | + i2c_init(CFG_I2C_SPEED, CFG_I2C_SLAVE); | ||
23 | + int1 = pcf50606_reg_read(PCF50606_REG_INT1); | ||
24 | + if (!(int1 & VALID_WAKEUP_REASONS) && !neo1973_aux_key_pressed()) { | ||
25 | + pcf50606_reg_write(PCF50606_REG_OOCC1, PCF50606_OOCC1_GOSTDBY); | ||
26 | + while (1); | ||
27 | + } | ||
28 | + | ||
29 | /* arch number of SMDK2410-Board */ | ||
30 | gd->bd->bi_arch_number = MACH_TYPE_NEO1973_GTA01; | ||
31 | |||
32 | @@ -200,7 +211,7 @@ int board_late_init(void) | ||
33 | pcf50606_init(); | ||
34 | |||
35 | /* obtain wake-up reason, save INT1 in environment */ | ||
36 | - tmp = pcf50606_reg_read(PCF50606_REG_INT1); | ||
37 | + tmp = int1; //pcf50606_reg_read(PCF50606_REG_INT1); | ||
38 | sprintf(buf, "0x%02x", tmp); | ||
39 | setenv("pcf50606_int1", buf); | ||
40 | |||