1.1 --- a/stage1.c Fri Jun 05 15:59:32 2015 +0200
1.2 +++ b/stage1.c Fri Jun 05 19:07:33 2015 +0200
1.3 @@ -21,6 +21,10 @@
1.4 #include "jz4740.h"
1.5 #include "board-nanonote.h"
1.6 #include "usb_boot_defines.h"
1.7 +#include "nanonote.h"
1.8 +
1.9 +/* These arguments are initialised by usbboot and are defined in...
1.10 + /etc/xburst-tools/usbboot.cfg. */
1.11
1.12 struct fw_args *fw_args;
1.13 volatile u32 CPU_ID;
1.14 @@ -38,7 +42,9 @@
1.15
1.16 void load_args(void)
1.17 {
1.18 - fw_args = (struct fw_args *)0x80002008; /* get the fw args from memory */
1.19 + /* Get the fw args from memory. See head.S for the memory layout. */
1.20 +
1.21 + fw_args = (struct fw_args *)0x80002008;
1.22 CPU_ID = fw_args->cpu_id ;
1.23 CFG_EXTAL = (u32)fw_args->ext_clk * 1000000;
1.24 CFG_CPU_SPEED = (u32)fw_args->cpu_speed * CFG_EXTAL ;