Date:2009-08-30 15:35:46 (10 years 9 months ago)
Author:Xiangfu Liu
Commit:d5f2bee6f1befd4f6af58e11934b087817a2c682
Message:the SDRAM_BW16 shoudl be 1 or 0. make the xburst tools work in jz4720 and jz4725 cpu.

Files: usbboot/src/cmd.c (1 diff)
usbboot/src/ingenic_cfg.c (1 diff)
usbboot/xburst_stage1/main.c (2 diffs)

Change Details

usbboot/src/cmd.c
450450        transfer_size = (hand.nand_ppb * hand.nand_ps);
451451    else
452452        transfer_size = (hand.nand_ppb * (hand.nand_ps + hand.nand_os));
453    printf("nand_ppb: %d, nand_ps: %d, nand_os: %d\n", hand.nand_ppb,
454        hand.nand_ps, hand.nand_os);
455453
456454    m = flen / transfer_size;
457455    j = flen % transfer_size;
usbboot/src/ingenic_cfg.c
197197
198198    hand->fw_args.cpu_id = 0x4740;
199199    if (hand->fw_args.bus_width == 32)
200        hand->fw_args.bus_width = 0 ;
200        hand->fw_args.bus_width = 0;
201201    else
202        hand->fw_args.bus_width = 1 ;
202        hand->fw_args.bus_width = 1;
203203    hand->fw_args.bank_num = hand->fw_args.bank_num / 4;
204204    hand->fw_args.cpu_speed = hand->fw_args.cpu_speed / hand->fw_args.ext_clk;
205205
usbboot/xburst_stage1/main.c
4646    fw_args->use_uart = 0;
4747    UART_BASE = UART0_BASE + fw_args->use_uart * 0x1000;
4848    CONFIG_BAUDRATE = 57600;
49    SDRAM_BW16 = 16;
49    SDRAM_BW16 = 1;
5050    SDRAM_BANK4 = 4;
5151    SDRAM_ROW = 13;
5252    SDRAM_COL = 9;
...... 
7272        fw_args->use_uart = 0;
7373    UART_BASE = UART0_BASE + fw_args->use_uart * 0x1000;
7474    CONFIG_BAUDRATE = fw_args->boudrate;
75    SDRAM_BW16 = fw_args->bus_width == 0 ? 32 : 16;
75    SDRAM_BW16 = fw_args->bus_width;
7676    SDRAM_BANK4 = fw_args->bank_num * 4;
7777    SDRAM_ROW = fw_args->row_addr;
7878    SDRAM_COL = fw_args->col_addr;

Archive Download the corresponding diff file



interactive