Browse Source

ls2k increate dma buffer size to 64k, old 4k is less than main+oob size.

Change-Id: Ief28bb8eb0aba6bf391ec3aedda8e1db6e165ba0
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
master
QiaoChong 6 years ago
parent
commit
278a0f9fb8
  1. 3
      sys/dev/nand/ls2k-nand.c

3
sys/dev/nand/ls2k-nand.c

@ -30,7 +30,7 @@
#define DMA_ACCESS_ADDR LS2H_NAND_DMA_ACC_REG
#define ORDER_REG_ADDR (CKSEG1ADDR(LS2H_DMA_ORDER_REG))
#define MAX_BUFF_SIZE 4096
#define MAX_BUFF_SIZE 0x4000
#define NAND_PAGE_SHIFT 12
#define NO_SPARE_ADDRH(x) ((x) >> (32 - (NAND_PAGE_SHIFT - 1 )))
#define NO_SPARE_ADDRL(x) ((x) << (NAND_PAGE_SHIFT - 1))
@ -126,7 +126,6 @@ enum {
#define REG(reg) (info->mmio_base + reg)
#define NAND_DEBUG
#define MAX_BUFF_SIZE 4096
#define STATUS_TIME_LOOP_R 3000
#define STATUS_TIME_LOOP_WS 100
#define STATUS_TIME_LOOP_WM 60

Loading…
Cancel
Save