1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-01 12:38:27 +02:00

the SDRAM_BW16 shoudl be 1 or 0.

make the xburst tools work in jz4720 and jz4725 cpu.
This commit is contained in:
Xiangfu Liu 2009-08-30 21:35:46 +08:00
parent c5621d6af8
commit d5f2bee6f1
3 changed files with 4 additions and 6 deletions

View File

@ -450,8 +450,6 @@ int nand_program_file(struct nand_in *nand_in,
transfer_size = (hand.nand_ppb * hand.nand_ps); transfer_size = (hand.nand_ppb * hand.nand_ps);
else else
transfer_size = (hand.nand_ppb * (hand.nand_ps + hand.nand_os)); transfer_size = (hand.nand_ppb * (hand.nand_ps + hand.nand_os));
printf("nand_ppb: %d, nand_ps: %d, nand_os: %d\n", hand.nand_ppb,
hand.nand_ps, hand.nand_os);
m = flen / transfer_size; m = flen / transfer_size;
j = flen % transfer_size; j = flen % transfer_size;

View File

@ -197,9 +197,9 @@ int parse_configure(struct hand *hand, char * file_path)
hand->fw_args.cpu_id = 0x4740; hand->fw_args.cpu_id = 0x4740;
if (hand->fw_args.bus_width == 32) if (hand->fw_args.bus_width == 32)
hand->fw_args.bus_width = 0 ; hand->fw_args.bus_width = 0;
else else
hand->fw_args.bus_width = 1 ; hand->fw_args.bus_width = 1;
hand->fw_args.bank_num = hand->fw_args.bank_num / 4; hand->fw_args.bank_num = hand->fw_args.bank_num / 4;
hand->fw_args.cpu_speed = hand->fw_args.cpu_speed / hand->fw_args.ext_clk; hand->fw_args.cpu_speed = hand->fw_args.cpu_speed / hand->fw_args.ext_clk;

View File

@ -46,7 +46,7 @@ void test_load_args(void)
fw_args->use_uart = 0; fw_args->use_uart = 0;
UART_BASE = UART0_BASE + fw_args->use_uart * 0x1000; UART_BASE = UART0_BASE + fw_args->use_uart * 0x1000;
CONFIG_BAUDRATE = 57600; CONFIG_BAUDRATE = 57600;
SDRAM_BW16 = 16; SDRAM_BW16 = 1;
SDRAM_BANK4 = 4; SDRAM_BANK4 = 4;
SDRAM_ROW = 13; SDRAM_ROW = 13;
SDRAM_COL = 9; SDRAM_COL = 9;
@ -72,7 +72,7 @@ void load_args(void)
fw_args->use_uart = 0; fw_args->use_uart = 0;
UART_BASE = UART0_BASE + fw_args->use_uart * 0x1000; UART_BASE = UART0_BASE + fw_args->use_uart * 0x1000;
CONFIG_BAUDRATE = fw_args->boudrate; CONFIG_BAUDRATE = fw_args->boudrate;
SDRAM_BW16 = fw_args->bus_width == 0 ? 32 : 16; SDRAM_BW16 = fw_args->bus_width;
SDRAM_BANK4 = fw_args->bank_num * 4; SDRAM_BANK4 = fw_args->bank_num * 4;
SDRAM_ROW = fw_args->row_addr; SDRAM_ROW = fw_args->row_addr;
SDRAM_COL = fw_args->col_addr; SDRAM_COL = fw_args->col_addr;