storage: fix the source of register base

PD#155205: storage: fix the source of register base

The register base get from dts now,no longer from macro.

Change-Id: Ic763db5a9380396cfbfde0333d85ffb08c601713
Signed-off-by: Yi Zeng <yi.zeng@amlogic.com>
This commit is contained in:
Yi Zeng
2017-11-30 20:06:15 +08:00
committed by Jianxin Pan
parent 229bd2a709
commit 1d6e27d5b3

View File

@@ -2046,9 +2046,7 @@ int aml_nand_init(struct aml_nand_chip *aml_chip)
slc_program_info = &new_nand_info->slc_program_info;
chip->IO_ADDR_R = chip->IO_ADDR_W =
devm_ioremap_nocache(aml_chip->device,
NAND_BASE_APB + P_NAND_BUF,
sizeof(int));
controller->reg_base + P_NAND_BUF;
chip->options |= NAND_SKIP_BBTSCAN;
chip->options |= NAND_NO_SUBPAGE_WRITE;