spi: zynq: Add extended register read and write commands

This patch adds qspi extended register read and write commands
support for numonyx/winbond QSPI flashes.

These commands are useful while accessing greater than 16MB flash
with the help of extended address register if the actual size of
flash is > 16MB.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
sf: Add extended address register writing support for winbond and stmicro

This patch provides support to program a flash extended address
register for winbond and stmicro SPI flashes.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
sf: Add extended address register reading support for winbond and stmicro

This patch provides support to read a flash extended address
register for winbond and stmicro SPI flashes.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
zynq: sdhci: Donot pass max|min_clk arguments through zynq_sdhci_init

Instead of passing through zynq_sdhci_init, directly pass these values
as an arguments for add_sdhci.

zynq_sdhci set the max_clk as 52000000Mhz, this is the max clock supported by
eMMC as the same driver supports sd/mmc/emmc cards.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
zynq: sdhci: Move zynq_sdhci_init out of mmc.h

Call zynq_sdhci_init directly from board.c so no need to define
zynq_mmc_init separately hence removed.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
zynq: Define CONFIG_ZYNQ_SDHCI0

Rename SD_BASEADDR to CONFIG_ZYNQ_SDHCI_BASEADDR0.
Defined existing SDHCI support as CONFIG_ZYNQ_SDHCI0 so-that the
respective board configs will to enable this config.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
zynq: Add CONFIG_ZYNQ_SDHCI1 support

This patch provides a support to use SDHCI1 on existing zynq_sdhci.c
driver. defined regbase as -> CONFIG_ZYNQ_SDHCI_BASEADDR1 and
max, min clock values are initialized as 0.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
zynq: sdhci: Remove mmc.h and move it to sys_proto.h

It is useless to have one huge file with one function
declaration. Move it to sys_proto.h where others system
functions are.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
zynq: nand: Remove nand.h and move it to sys_proto.h

It is useless to have one huge file with one function
declaration. Move it to sys_proto.h where others system
functions are.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>