1 /* 2 * Ben NanoNote stage 2 payload test. 3 * 4 * Copyright (C) 2015 Paul Boddie <paul@boddie.org.uk> 5 * Copyright (C) Wolfgang Spraul <wolfgang@sharism.cc> 6 * 7 * This program is free software; you can redistribute it and/or modify it under 8 * the terms of the GNU General Public License as published by the Free Software 9 * Foundation; either version 3 of the License, or (at your option) any later 10 * version. 11 * 12 * This program is distributed in the hope that it will be useful, but WITHOUT 13 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 14 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 15 * details. 16 * 17 * You should have received a copy of the GNU General Public License along with 18 * this program. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 21 #include "jz4740.h" 22 #include "board-nanonote.h" 23 #include "nanonote.h" 24 25 /* These arguments are initialised by usbboot and are defined in... 26 /etc/xburst-tools/usbboot.cfg. */ 27 28 struct fw_args *fw_args; 29 volatile u32 CPU_ID; 30 volatile u32 UART_BASE; 31 volatile u32 CONFIG_BAUDRATE; 32 volatile u8 SDRAM_BW16; 33 volatile u8 SDRAM_BANK4; 34 volatile u8 SDRAM_ROW; 35 volatile u8 SDRAM_COL; 36 volatile u8 CONFIG_MOBILE_SDRAM; 37 volatile u32 CFG_CPU_SPEED; 38 volatile u32 CFG_EXTAL; 39 volatile u8 PHM_DIV; 40 volatile u8 IS_SHARE; 41 42 void c_main(void) 43 { 44 gpio_init2(); 45 cpm_init(); 46 rtc_init(); 47 timer_init(); 48 }