mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-29 10:10:37 +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:
parent
c5621d6af8
commit
d5f2bee6f1
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user