1.1 --- a/include/nanonote.h Tue Jan 26 16:57:26 2016 +0100
1.2 +++ b/include/nanonote.h Wed Jan 27 15:51:32 2016 +0100
1.3 @@ -42,6 +42,8 @@
1.4 #define GPIO_KEYIN_BASE (3 * 32 + 18)
1.5 #define GPIO_KEYIN_8 (3 * 32 + 26)
1.6
1.7 +#define GPIO_POWER (3 * 32 + 29)
1.8 +
1.9 #define GPIO_SD_CD_N GPIO_SD_DETECT /* SD Card insert detect */
1.10 #define GPIO_SD_VCC_EN_N GPIO_SDPW_EN /* SD Card Power Enable */
1.11
2.1 --- a/stage2/board-nanonote.c Tue Jan 26 16:57:26 2016 +0100
2.2 +++ b/stage2/board-nanonote.c Wed Jan 27 15:51:32 2016 +0100
2.3 @@ -57,6 +57,9 @@
2.4 __gpio_as_input(GPIO_KEYIN_8);
2.5 __gpio_enable_pull(GPIO_KEYIN_8);
2.6
2.7 + __gpio_as_input(GPIO_POWER);
2.8 + __gpio_enable_pull(GPIO_POWER);
2.9 +
2.10 __gpio_as_output(GPIO_AUDIO_POP);
2.11 __gpio_set_pin(GPIO_AUDIO_POP);
2.12
3.1 --- a/stage2/irq.c Tue Jan 26 16:57:26 2016 +0100
3.2 +++ b/stage2/irq.c Wed Jan 27 15:51:32 2016 +0100
3.3 @@ -17,6 +17,12 @@
3.4 * along with this program. If not, see <http://www.gnu.org/licenses/>.
3.5 */
3.6
3.7 +#ifdef CONFIG_CPU_JZ4730_MINIPC
3.8 +#include "minipc.h"
3.9 +#else
3.10 +#include "nanonote.h"
3.11 +#endif
3.12 +
3.13 #include "board-specific.h"
3.14 #include "board.h"
3.15 #include "lcd.h"
3.16 @@ -74,7 +80,7 @@
3.17
3.18 /* Update the pixel type. */
3.19
3.20 - pixel_type = 1 - pixel_type;
3.21 + pixel_type = __gpio_get_pin(GPIO_POWER);
3.22
3.23 /* Clear interrupt status. */
3.24