TMP: partially switch to read/write/cmd functions from U-Boot driver

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
TMP: NAND gets initialized, stucks on OOB read

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
TMP: more usage for basic functions from U-Boot

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
TMP: no need for delay if "Wait For Ready" is set.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
TMP: enabled more debug

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
TMP: some fixes

 * add "wait for ready" flag to read and write
 * process commands with flag NAND_CTRL_CHANGE

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
TMP: correctly use addressing

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
COMMON: fix return value

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
COMMON: fix env structure allocation

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
ARC: add more options for NAND

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
ARC: fixes

 * mask out lower 8 bits of command/address
 * switch for NAND_ECC_NON for now

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>