/* do additional init to prevent trash being output on startup */
serial_init();
-#ifdef CONFIG_PANDORA_FINAL
- /*VAUX3 = 2.8V (AV connector)*/
- byte = 0x20;
- i2c_write(0x4B, 0x7A, 1, &byte, 1);
- byte = 0x03;
- i2c_write(0x4B, 0x7D, 1, &byte, 1);
-#else
- /*VAUX4 = 2.8V (TOUCH,NUBS,RS-232 TRANSCEIVER)*/
- byte = 0x20;
- i2c_write(0x4B, 0x7E, 1, &byte, 1);
- byte = 0x0A;
- i2c_write(0x4B, 0x81, 1, &byte, 1);
-#endif
+ #ifdef CONFIG_PANDORA_FINAL
+ /* restore GPBR1 for charging to work -
+ * boot ROM or something clears it before us */
+ byte = 0x90;
+ i2c_write(0x49, 0x91, 1, &byte, 1);
+
+ /*VAUX3 = 2.8V (AV connector)*/
+ byte = 0x20;
+ i2c_write(0x4B, 0x7A, 1, &byte, 1);
+ byte = 0x03;
+ i2c_write(0x4B, 0x7D, 1, &byte, 1);
+ #else
+ /*VAUX4 = 2.8V (TOUCH,NUBS,RS-232 TRANSCEIVER)*/
+ byte = 0x20;
+ i2c_write(0x4B, 0x7E, 1, &byte, 1);
+ byte = 0x0A;
+ i2c_write(0x4B, 0x81, 1, &byte, 1);
+ #endif
- delay(10000); /* give time to power up */
#endif
return 0;
int misc_init_r(void)
{
#ifdef CFG_PRINTF
- printf("OpenPandora X-Loader \n");
+ printf("OpenPandora System \n");
#endif
return (0);