1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/stage2.c Fri Jun 05 19:34:16 2015 +0200
1.3 @@ -0,0 +1,46 @@
1.4 +/*
1.5 + * Ben NanoNote stage 2 payload test.
1.6 + *
1.7 + * Copyright (C) 2015 Paul Boddie <paul@boddie.org.uk>
1.8 + * Copyright (C) Wolfgang Spraul <wolfgang@sharism.cc>
1.9 + *
1.10 + * This program is free software; you can redistribute it and/or modify it under
1.11 + * the terms of the GNU General Public License as published by the Free Software
1.12 + * Foundation; either version 3 of the License, or (at your option) any later
1.13 + * version.
1.14 + *
1.15 + * This program is distributed in the hope that it will be useful, but WITHOUT
1.16 + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
1.17 + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
1.18 + * details.
1.19 + *
1.20 + * You should have received a copy of the GNU General Public License along with
1.21 + * this program. If not, see <http://www.gnu.org/licenses/>.
1.22 + */
1.23 +
1.24 +#include "jz4740.h"
1.25 +#include "board-nanonote.h"
1.26 +#include "nanonote.h"
1.27 +
1.28 +/* These arguments are initialised by usbboot and are defined in...
1.29 + /etc/xburst-tools/usbboot.cfg. */
1.30 +
1.31 +struct fw_args *fw_args;
1.32 +volatile u32 CPU_ID;
1.33 +volatile u32 UART_BASE;
1.34 +volatile u32 CONFIG_BAUDRATE;
1.35 +volatile u8 SDRAM_BW16;
1.36 +volatile u8 SDRAM_BANK4;
1.37 +volatile u8 SDRAM_ROW;
1.38 +volatile u8 SDRAM_COL;
1.39 +volatile u8 CONFIG_MOBILE_SDRAM;
1.40 +volatile u32 CFG_CPU_SPEED;
1.41 +volatile u32 CFG_EXTAL;
1.42 +volatile u8 PHM_DIV;
1.43 +volatile u8 IS_SHARE;
1.44 +
1.45 +void c_main(void)
1.46 +{
1.47 + __gpio_as_output(GPIO_SD_CMD);
1.48 + __gpio_set_pin(GPIO_SD_CMD);
1.49 +}