Changeset 4164
- Timestamp:
- 03/04/08 11:48:00 (5 years ago)
- Location:
- trunk/src/target/u-boot/patches
- Files:
-
- 3 edited
-
gta02-bootmenu.patch (modified) (2 diffs)
-
nor-bootmenu.patch (modified) (1 diff)
-
uboot-gta02.patch (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/target/u-boot/patches/gta02-bootmenu.patch
r4070 r4164 3 3 --- u-boot.orig/board/neo1973/gta02/gta02.c 4 4 +++ u-boot/board/neo1973/gta02/gta02.c 5 @@ -241,10 +241,10 @@ 6 gpio->GPJDAT |= 0x000000001; /* GTA02v1_GPIO_3D_RESET */ 7 #endif 8 9 -#if 0 10 /* if there's no other reason, must be regular reset */ 11 neo1973_wakeup_cause = NEO1973_WAKEUP_RESET; 12 13 +#if 0 14 if (!booted_from_nand) 15 goto woken_by_reset; 16 17 @@ -274,6 +274,7 @@ 18 } 19 20 woken_by_reset: 21 +#endif 22 23 while (neo1973_wakeup_cause == NEO1973_WAKEUP_RESET || 24 neo1973_on_key_pressed()) { 25 @@ -294,7 +295,6 @@ 26 jbt6k74_init(); 27 jbt6k74_enter_state(JBT_STATE_NORMAL); 28 jbt6k74_display_onoff(1); 29 -#endif 30 31 #if 0 32 { 33 @@ -303,12 +303,12 @@ 5 @@ -306,12 +306,12 @@ continue_boot: 34 6 if (!(gpio->GPFDAT & (1 << 5))) 35 7 gpio->GPBDAT &= ~(1 << 2); … … 46 18 return 0; 47 19 } 48 @@ -40 3,13 +403,11 @@20 @@ -408,13 +408,11 @@ int neo1973_on_key_pressed(void) 49 21 & PCF50633_OOCSTAT_ONKEY); 50 22 } -
trunk/src/target/u-boot/patches/nor-bootmenu.patch
r4150 r4164 22 22 + 23 23 + S3C24X0_GPIO * const gpio = S3C24X0_GetBase_GPIO(); 24 u nsigned char tmp;24 uint8_t int1, int2; 25 25 char buf[32]; 26 26 int menu_vote = 0; /* <= 0: no, > 0: yes */ 27 @@ -307,7 +309,7 @@ continue_boot: 27 @@ -246,7 +248,7 @@ int board_late_init(void) 28 /* if there's no other reason, must be regular reset */ 29 neo1973_wakeup_cause = NEO1973_WAKEUP_RESET; 30 31 - if (!booted_from_nand) 32 + if (!booted_from_nand && !booted_from_nor) 33 goto woken_by_reset; 34 35 /* obtain wake-up reason, save INT1 in environment */ 36 @@ -308,7 +310,7 @@ continue_boot: 28 37 } 29 38 #endif -
trunk/src/target/u-boot/patches/uboot-gta02.patch
r4118 r4164 95 95 --- /dev/null 96 96 +++ u-boot/board/neo1973/gta02/gta02.c 97 @@ -0,0 +1,45 2@@97 @@ -0,0 +1,455 @@ 98 98 +/* 99 99 + * (C) 2006-2007 by OpenMoko, Inc. … … 308 308 + S3C24X0_GPIO * const gpio = S3C24X0_GetBase_GPIO(); 309 309 + extern unsigned char booted_from_nand; 310 + u nsigned char tmp;310 + uint8_t int1, int2; 311 311 + char buf[32]; 312 312 + int menu_vote = 0; /* <= 0: no, > 0: yes */ … … 315 315 + /* Initialize the Power Management Unit with a safe register set */ 316 316 + pcf50633_init(); 317 + 318 + /* obtain wake-up reason */ 319 + int1 = pcf50633_reg_read(PCF50633_REG_INT1); 320 + int2 = pcf50633_reg_read(PCF50633_REG_INT2); 317 321 + 318 322 + /* switch on one of the power led's */ … … 337 341 +#endif 338 342 + 339 +#if 0340 343 + /* if there's no other reason, must be regular reset */ 341 344 + neo1973_wakeup_cause = NEO1973_WAKEUP_RESET; … … 344 347 + goto woken_by_reset; 345 348 + 346 + /* obtain wake-up reason, save INT1 in environment */ 347 + tmp = pcf50606_reg_read(PCF50606_REG_INT1); 348 + sprintf(buf, "0x%02x", tmp); 349 + setenv("pcf50606_int1", buf); 350 + 351 + if (tmp & PCF50606_INT1_ALARM) { 349 + /* save wake-up reason in environment */ 350 + sprintf(buf, "0x%02x", int1); 351 + setenv("pcf50633_int1", buf); 352 + sprintf(buf, "0x%02x", int2); 353 + setenv("pcf50633_int2", buf); 354 + 355 + if (int1 & PCF50633_INT1_ALARM) { 352 356 + /* we've been woken up by RTC alarm, boot */ 353 357 + neo1973_wakeup_cause = NEO1973_WAKEUP_ALARM; 354 358 + goto continue_boot; 355 359 + } 356 + if ( tmp & PCF50606_INT1_EXTONR) {360 + if (int1 & PCF50633_INT1_USBINS) { 357 361 + /* we've been woken up by charger insert */ 358 362 + neo1973_wakeup_cause = NEO1973_WAKEUP_CHARGER; 359 363 + } 360 364 + 361 + if ( tmp & PCF50606_INT1_ONKEYF) {365 + if (int2 & PCF50633_INT2_ONKEYF) { 362 366 + /* we've been woken up by a falling edge of the onkey */ 363 367 + neo1973_wakeup_cause = NEO1973_WAKEUP_POWER_KEY; … … 390 394 + jbt6k74_enter_state(JBT_STATE_NORMAL); 391 395 + jbt6k74_display_onoff(1); 392 +#endif393 396 + 394 397 + /* switch on the backlight */
Note: See TracChangeset
for help on using the changeset viewer.
