1.1 --- a/include/nanonote.h Fri Jun 05 15:59:32 2015 +0200
1.2 +++ b/include/nanonote.h Fri Jun 05 19:07:33 2015 +0200
1.3 @@ -15,6 +15,7 @@
1.4
1.5 /*
1.6 * GPIO definition
1.7 + * See: http://en.qi-hardware.com/wiki/Hardware_basics
1.8 */
1.9 #define GPIO_LCD_CS (2 * 32 + 21)
1.10 #define GPIO_AMP_EN (3 * 32 + 4)
2.1 --- a/stage1.c Fri Jun 05 15:59:32 2015 +0200
2.2 +++ b/stage1.c Fri Jun 05 19:07:33 2015 +0200
2.3 @@ -21,6 +21,10 @@
2.4 #include "jz4740.h"
2.5 #include "board-nanonote.h"
2.6 #include "usb_boot_defines.h"
2.7 +#include "nanonote.h"
2.8 +
2.9 +/* These arguments are initialised by usbboot and are defined in...
2.10 + /etc/xburst-tools/usbboot.cfg. */
2.11
2.12 struct fw_args *fw_args;
2.13 volatile u32 CPU_ID;
2.14 @@ -38,7 +42,9 @@
2.15
2.16 void load_args(void)
2.17 {
2.18 - fw_args = (struct fw_args *)0x80002008; /* get the fw args from memory */
2.19 + /* Get the fw args from memory. See head.S for the memory layout. */
2.20 +
2.21 + fw_args = (struct fw_args *)0x80002008;
2.22 CPU_ID = fw_args->cpu_id ;
2.23 CFG_EXTAL = (u32)fw_args->ext_clk * 1000000;
2.24 CFG_CPU_SPEED = (u32)fw_args->cpu_speed * CFG_EXTAL ;