1.1 --- a/stage2.c Sat Jun 06 23:29:51 2015 +0200
1.2 +++ b/stage2.c Sat Jun 06 23:55:31 2015 +0200
1.3 @@ -18,29 +18,11 @@
1.4 * this program. If not, see <http://www.gnu.org/licenses/>.
1.5 */
1.6
1.7 -#include "jz4740.h"
1.8 #include "board-nanonote.h"
1.9 -#include "nanonote.h"
1.10 -
1.11 -/* These arguments are initialised by usbboot and are defined in...
1.12 - /etc/xburst-tools/usbboot.cfg. */
1.13 -
1.14 -struct fw_args *fw_args;
1.15 -volatile u32 CPU_ID;
1.16 -volatile u32 UART_BASE;
1.17 -volatile u32 CONFIG_BAUDRATE;
1.18 -volatile u8 SDRAM_BW16;
1.19 -volatile u8 SDRAM_BANK4;
1.20 -volatile u8 SDRAM_ROW;
1.21 -volatile u8 SDRAM_COL;
1.22 -volatile u8 CONFIG_MOBILE_SDRAM;
1.23 -volatile u32 CFG_CPU_SPEED;
1.24 -volatile u32 CFG_EXTAL;
1.25 -volatile u8 PHM_DIV;
1.26 -volatile u8 IS_SHARE;
1.27
1.28 void c_main(void)
1.29 {
1.30 + load_args();
1.31 gpio_init2();
1.32 cpm_init();
1.33 rtc_init();