sf: Fix dual parallel erase/program on micron devices

Usually by polling flag status register is enough to erase/program
die based micron flashes instead of read status register.

But dual parallel with die based micron topology doesn't works
with this setup instead it requires both the registers need to poll.

So, updated the code for polling read and flag status register for
die based micron flash devices.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Acked-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
sf: Fix remain_len calculation in read ops

remain_len must be subtracted with offset instead
of read_addr, by subtracting read_addr in remain_len
may leads incorrect behavior for dual parallel qspi's.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Acked-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
sf: Correct bank_sel to use write_addr instead of offset

Corrected bank_sel in write ops to use write_addr instead
of offset during merge.
"Merge tag 'v2013.07' into xilinx/master-next"
(sha1: 6978377d4b022d7fd9a8c6f720ebc2e5daaeb173)

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Acked-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arm: zynq : Revert TZ_DDR_RAM to secure.

TZ_DDR_RAM on reset is in secure mode.
Since uboot and linux runs in full
TZ privilege secure mode, no need
to set DDR trustzone to non-secure.

Signed-off-by: Radhey Shyam Pandey <radheys@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>