]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
12 years agozynq: Add CONFIG_ZYNQ_SDHCI1 support
Jagannadha Sutradharudu Teki [Tue, 9 Apr 2013 06:30:34 +0000 (12:00 +0530)] 
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>
12 years agozynq: Define CONFIG_ZYNQ_SDHCI0
Jagannadha Sutradharudu Teki [Tue, 9 Apr 2013 06:30:32 +0000 (12:00 +0530)] 
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>
12 years agozynq: sdhci: Move zynq_sdhci_init out of mmc.h
Jagannadha Sutradharudu Teki [Tue, 9 Apr 2013 06:30:30 +0000 (12:00 +0530)] 
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>
12 years agozynq: sdhci: Donot pass max|min_clk arguments through zynq_sdhci_init
Jagannadha Sutradharudu Teki [Fri, 12 Apr 2013 14:17:14 +0000 (19:47 +0530)] 
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>
12 years agosf: Add extended address register reading support for winbond and stmicro
Jagannadha Sutradharudu Teki [Fri, 12 Apr 2013 14:01:27 +0000 (19:31 +0530)] 
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>
12 years agosf: Add extended address register writing support for winbond and stmicro
Jagannadha Sutradharudu Teki [Fri, 12 Apr 2013 14:01:26 +0000 (19:31 +0530)] 
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>
12 years agospi: zynq: Add extended register read and write commands
Jagannadha Sutradharudu Teki [Fri, 12 Apr 2013 14:01:25 +0000 (19:31 +0530)] 
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>
12 years agoMerge branch 'petalinux/master-next' into master-next
Michal Simek [Thu, 11 Apr 2013 11:59:49 +0000 (13:59 +0200)] 
Merge branch 'petalinux/master-next' into master-next

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agomtd: cfi_flash: Write buffer size adjustment for M29EW Numonyx devices
Jagannadha Sutradharudu Teki [Fri, 1 Mar 2013 11:24:26 +0000 (16:54 +0530)] 
mtd: cfi_flash: Write buffer size adjustment for M29EW Numonyx devices

This patch addjusted the write buffer size for M29EW devices those
are operated in 8-bit mode.

The M29EW devices seem to report the CFI information wrong when
it's in 8 bit mode.

There's an app note from Numonyx on this issue and there's a patch
in the open source as well for Linux, but it doesn't seem to be in mainline.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Tested-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agomtd: cfi_flash: Fix CFI flash driver for 8-bit bus support
aaron.williams@caviumnetworks.com [Sun, 3 Mar 2013 11:15:05 +0000 (16:45 +0530)] 
mtd: cfi_flash: Fix CFI flash driver for 8-bit bus support

This commit is based on that patch from aaron.williams@caviumnetworks.com
with same commit title. pulled the same code changes into current u-boot tree.

http://patchwork.ozlabs.org/patch/140863/
http://lists.denx.de/pipermail/u-boot/2011-April/089606.html

This patch corrects the addresses used when working with Spansion/AMD FLASH chips.
Addressing for 8 and 16 bits is almost identical except in the 16-bit case the
LSB of the address is always 0.  The confusion arose because the addresses
in the datasheet for 16-bit mode are word addresses but this code assumed it was
byte addresses.

I have only been able to test this on our Octeon boards which use either an 8-bit
or 16-bit bus.  I have not tested the case where there's an 8-bit part on a 16-bit
bus.

This patch also adds some delays as suggested by Spansion.

If a part can be both 8 and 16-bits, it forces it to work in 8-bit mode if an
8-bit bus is detected.

Apart from the pulled changes, fixed few minor code cleanups and tested
on 256M29EW, 512M29EW flashes.

Before this fix:
---------------
Bank # 1: CFI conformant flash (8 x 8)  Size: 64 MB in 512 Sectors
  AMD Standard command set, Manufacturer ID: 0xFF, Device ID: 0xFF
  Erase timeout: 4096 ms, write timeout: 2 ms
  Buffer write timeout: 5 ms, buffer size: 1024 bytes

After this fix:
--------------
Bank # 1: CFI conformant flash (8 x 8)  Size: 64 MB in 512 Sectors
  AMD Standard command set, Manufacturer ID: 0x89, Device ID: 0x7E2301
  Erase timeout: 4096 ms, write timeout: 2 ms
  Buffer write timeout: 5 ms, buffer size: 1024 bytes

Signed-off-by: Aaron Williams <aaron.williams@caviumnetworks.com>
Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Tested-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agoARM: xilinx: U-Boot udelay < 1000 FIX
David Andrey [Fri, 7 Dec 2012 15:51:32 +0000 (16:51 +0100)] 
ARM: xilinx: U-Boot udelay < 1000 FIX

Rework the __udelay function of U-Boot Zynq Arch to handle
delay < 1000 usec

Signed-off-by: David Andrey <david.andrey@netmodule.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agonet:xilinx_axi_emac: Implement packet buffer
Jason Wu [Tue, 9 Apr 2013 06:16:32 +0000 (16:16 +1000)] 
net:xilinx_axi_emac: Implement packet buffer

Implement the ring buffer for xilinx_axi_emac driver and set the
length to 2.

This is required to workaround the issue reported by Peter:
Report from Peter:
The xilinx_axi_emac driver only define a length 1 ring buffer. The issue comes
from the fact that the next packet is transmitted before the receive is acked.
So this is what happens:

 - Uboot sends DHCP discover
 - Server responds with DHCP offer -> Length 1 RX buffer is full
 - Uboot traps the RX and TXs the DHCP request
 - Server responds with DHCP ack -> dropped and RX buffer is still full
 - Uboot returns RX buffer to hardware control

The last two are racing against each other. I dont know what the deal with DHCP
and dropped packets is supposed to be, I think you are supposed to start from
scratch. But in QEMU u-boot loses the race to the hardware every time, so DHCP
never acquires. This is probably because QEMU networking is unrealistically
fast. The real hardware would suffer the packet transmission time which would
generally be greater than the time it take the NetReceive path to return back to
to the rx_handler where the RX ring buffer is then refreshed.

Reported-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Reported-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Jason Wu <huanyu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agofpga: zynqpl: Add checking mechanism for binary format
Michal Simek [Wed, 3 Apr 2013 14:24:06 +0000 (16:24 +0200)] 
fpga: zynqpl: Add checking mechanism for binary format

It is common mistake that users are trying to load
bitstreams not in binary format to the zynq.

Also check bitstream size before load.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agozynq: Support fpga command for all zynq families
Michal Simek [Wed, 3 Apr 2013 10:34:19 +0000 (12:34 +0200)] 
zynq: Support fpga command for all zynq families

Detect zynq idcode and based on that setup fpga device
which is connected to it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agozynq_common: Enable bootz command
Michal Simek [Fri, 29 Mar 2013 06:19:17 +0000 (07:19 +0100)] 
zynq_common: Enable bootz command

bootz command add option to enable booting zImages.

Booting commands with external dtb:
tftp 0x8000 zImage
tftp 0x2A00000 devicetree.dtb
tftp 0x2000000 uramdisk.image.gz
bootz 0x8000 0x2000000 0x2A00000

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agozynq_common: Change the default server and ip address
Jagannadha Sutradharudu Teki [Wed, 27 Mar 2013 10:14:16 +0000 (15:44 +0530)] 
zynq_common: Change the default server and ip address

Changed the default server and ip address w.r.t systest control
pc as systest is a default environment to run.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: Remove XILINX_ZYNQ_NAND_BUSWIDTH_16
Jagannadha Sutradharudu Teki [Thu, 14 Mar 2013 15:26:37 +0000 (20:56 +0530)] 
zynq: Remove XILINX_ZYNQ_NAND_BUSWIDTH_16

Removed XILINX_ZYNQ_NAND_BUSWIDTH_16 as nand buswidth
is detected at runtime.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: nand: Runtime detection of nand buswidth through slcr
Jagannadha Sutradharudu Teki [Thu, 14 Mar 2013 15:26:36 +0000 (20:56 +0530)] 
zynq: nand: Runtime detection of nand buswidth through slcr

This patch adds support to check the buswidth on nand flash
at runtime based on nand MIO configurations done by FSBL.

User needs to correctly configure the MIO's based on the
buswidth supported by the nand flash which is present on the board.

Added nand8 and nand16 @periph names on slcr driver.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agospi: zynq: Minor code cleanups on qspips
Jagannadha Sutradharudu Teki [Thu, 14 Mar 2013 15:26:35 +0000 (20:56 +0530)] 
spi: zynq: Minor code cleanups on qspips

- Remove few unnecessary comment lines
- Remove few unnecessary reg_base args
- Add comments
- Remove XPSS_QSPI_LIN_BASEADDR

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agoMerge branch 'xilinx/master-next' into petalinux/master-next
Michal Simek [Thu, 14 Mar 2013 14:49:40 +0000 (15:49 +0100)] 
Merge branch 'xilinx/master-next' into petalinux/master-next

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agospi: zynq: Move qspi MIO detection code into slcr
Jagannadha Sutradharudu Teki [Thu, 14 Mar 2013 12:29:13 +0000 (17:59 +0530)] 
spi: zynq: Move qspi MIO detection code into slcr

This patch provides a support for the qspi MIO runtime
detection code through slcr driver.

Now, slcr driver is capable to get the status of specific MIO
pins by taking an @periph name as an argument.

Currently added qspi0, qspi1_cs and qspi1 as @periph names.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agospi: zynq: Use u-boot coding style for declaring structure register set
Jagannadha Sutradharudu Teki [Tue, 12 Mar 2013 04:14:52 +0000 (09:44 +0530)] 
spi: zynq: Use u-boot coding style for declaring structure register set

Instead of defining register set as a macros, declare a structure
which consist of a register as per the offset values.

This is recommended coding style in u-boot.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agospi: zynq: Use standard readl/writel io routines
Jagannadha Sutradharudu Teki [Tue, 12 Mar 2013 04:14:51 +0000 (09:44 +0530)] 
spi: zynq: Use standard readl/writel io routines

Use the standard io routines writel and readl instead
of __raw_readl and __raw_writel respectively.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agospi: zynq: driver code cleanups
Jagannadha Sutradharudu Teki [Tue, 12 Mar 2013 04:14:50 +0000 (09:44 +0530)] 
spi: zynq: driver code cleanups

- Moved the structures from zynq_qspips.h to zynq_qspips.c
- Removed typedef bool and zynq_qspips.h

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agospi: zynq: Update spi_cs_is_valid()
Jagannadha Sutradharudu Teki [Tue, 12 Mar 2013 04:14:49 +0000 (09:44 +0530)] 
spi: zynq: Update spi_cs_is_valid()

Updated the chipselect valid check to 1 bus and 2 chipselect's
as zynq qspi bus controller support maximum of 2 chipselects
in different bus topologies.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agospi: zynq: Add qspi dual stacked topology support
Jagannadha Sutradharudu Teki [Fri, 8 Mar 2013 18:43:48 +0000 (00:13 +0530)] 
spi: zynq: Add qspi dual stacked topology support

This patch provides a support for qspi dual stacked topology.

Compared to dual parallel, dual stacked is also a dual qspi with shared bus.
flahes memories can be accessed via CS's.

dual stacked access for lower memory:
zynq-uboot> sf probe 0 0 0
SF: Detected S25FL129P_64K with page size 64 KiB, total 16 MiB

dual stacked access for upper memory:
zynq-uboot> sf probe 1 0 0
SF: Detected S25FL129P_64K with page size 64 KiB, total 16 MiB

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agospi: zynq: Add enum qualifier for qspi connections topology
Jagannadha Sutradharudu Teki [Fri, 8 Mar 2013 18:43:47 +0000 (00:13 +0530)] 
spi: zynq: Add enum qualifier for qspi connections topology

QSPI connections topology single, dual parallel are defined
as enum qualifier to make use on respective area on the code.

Also added MIO count macros for single and dual qspi XQSPIPS_MIO_*

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agospi: zynq: Fix to check CS0 and CS1 MIO's
Jagannadha Sutradharudu Teki [Fri, 8 Mar 2013 18:43:46 +0000 (00:13 +0530)] 
spi: zynq: Fix to check CS0 and CS1 MIO's

Checking CS0 and CS1 MIO's for single and dual qspi which is
missing on the existing runtime qspi detection code.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agospi: zynq: Add static qualifiers
Jagannadha Sutradharudu Teki [Thu, 7 Mar 2013 13:59:09 +0000 (19:29 +0530)] 
spi: zynq: Add static qualifiers

Added few static qualifiers to missing symbols.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq_common: Option to load bitstream from SD/MMC/eMMC
Jagannadha Sutradharudu Teki [Thu, 7 Mar 2013 11:24:02 +0000 (16:54 +0530)] 
zynq_common: Option to load bitstream from SD/MMC/eMMC

This patch adds support to load bitstream from SD/MMC/eMMC cards
through $mmc_loadbit_fat env variable.

User should have a bitstream file named as 'system.bit.bin' on mmc
fat partition 0:0

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: Code cleanup on board.c
Jagannadha Sutradharudu Teki [Wed, 6 Mar 2013 17:42:25 +0000 (23:12 +0530)] 
zynq: Code cleanup on board.c

- Added tabs
- Fixed comment sytle

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: Use standard readl/writel io routines
Jagannadha Sutradharudu Teki [Wed, 6 Mar 2013 17:42:04 +0000 (23:12 +0530)] 
zynq: Use standard readl/writel io routines

Use the standard io routines writel and readl instead
of Xil_Out32 and Xil_In32 respectively.
Implemented zynq_slcr_get_boot_mode on slcr driver.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agoi2c: zynq: Driver code cleanup
Jagannadha Sutradharudu Teki [Wed, 6 Mar 2013 12:50:49 +0000 (18:20 +0530)] 
i2c: zynq: Driver code cleanup

- Add tabs
- Add spaces
- Fixed single line comments
- Replaced ETIMEDOUT to -ETIMEDOUT

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agoi2c: zynq: Use standard io routines from io.h
Jagannadha Sutradharudu Teki [Wed, 6 Mar 2013 12:50:48 +0000 (18:20 +0530)] 
i2c: zynq: Use standard io routines from io.h

Used standard io functions like readl, writel, clrbits_le32
and setbits_le32 instead Xin_le32, Xout_le32, Xclrbits_le32
and Xsetbits_le32 respectively.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: nand: Add mem_regs and ecc_regs to one structure
Michal Simek [Wed, 6 Mar 2013 08:34:39 +0000 (09:34 +0100)] 
zynq: nand: Add mem_regs and ecc_regs to one structure

Created xnandps_smc_regs struct (xnandps_smc_mem_regs + xnand_smc_ecc_regs).

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agozynq_common: Few code cleanups on board configs
Jagannadha Sutradharudu Teki [Wed, 6 Mar 2013 04:21:20 +0000 (09:51 +0530)] 
zynq_common: Few code cleanups on board configs

- Add tabs
- Rearrange the config macros
- Removed few unneeded configs
- Added missing && on nor autoboot

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agoZynq:aut-board.h.template: Update PS7 NOR flash parameter name
Jason Wu [Wed, 6 Mar 2013 07:15:06 +0000 (17:15 +1000)] 
Zynq:aut-board.h.template: Update PS7 NOR flash parameter name

Change from XILINX_PS7_NOR_BASEADDR to XILINX_PS7_NOR_FLASH_BASEADDR

Signed-off-by: Jason Wu <huanyu@xilinx.com>
12 years agozynq: nand: Minor cleanup on zynq_nand.c
Jagannadha Sutradharudu Teki [Tue, 5 Mar 2013 14:05:06 +0000 (19:35 +0530)] 
zynq: nand: Minor cleanup on zynq_nand.c

- Added few print()
- Removed unneeded nand_info

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agozynq: nand: Renamed PSS with PS
Jagannadha Sutradharudu Teki [Tue, 5 Mar 2013 14:05:05 +0000 (19:35 +0530)] 
zynq: nand: Renamed PSS with PS

Acronym PS instead of PSS.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: nand: Cleanup xnandps_device_ready
Jagannadha Sutradharudu Teki [Tue, 5 Mar 2013 14:05:04 +0000 (19:35 +0530)] 
zynq: nand: Cleanup xnandps_device_ready

Cleanup the xnandps_device_ready logic by removing unnecessary
status variable.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: nand: Add waitfor_ecc_completion
Jagannadha Sutradharudu Teki [Tue, 5 Mar 2013 14:05:03 +0000 (19:35 +0530)] 
zynq: nand: Add waitfor_ecc_completion

Replaced endless while loop in waitfor_ecc_completion routine
with a timeout value.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: nand: Use u-boot coding style for declaring structure register set
Jagannadha Sutradharudu Teki [Tue, 5 Mar 2013 14:05:02 +0000 (19:35 +0530)] 
zynq: nand: Use u-boot coding style for declaring structure register set

Instead of defining register set as a macros, declare a structure
which consist of a register as per the offset values.

This is recommended coding style in u-boot.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: nand: Add const qualifier to xnandps_command_format
Jagannadha Sutradharudu Teki [Tue, 5 Mar 2013 14:05:01 +0000 (19:35 +0530)] 
zynq: nand: Add const qualifier to xnandps_command_format

Declared const to xnandps_command_format array, as it never modified
throughout the code.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: nand: Add static qualifiers
Jagannadha Sutradharudu Teki [Tue, 5 Mar 2013 14:05:00 +0000 (19:35 +0530)] 
zynq: nand: Add static qualifiers

Added few static qualifiers to missing symbols.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: nand: Remove drivers/mtd/nand/zynq_nand.h
Jagannadha Sutradharudu Teki [Tue, 5 Mar 2013 14:04:59 +0000 (19:34 +0530)] 
zynq: nand: Remove drivers/mtd/nand/zynq_nand.h

Moved the needed macros onto zynq_nand.c and removed the zynq_nand.h,
as there is no other user using zynq_nand.h.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: nand: Fix code cleanups
Jagannadha Sutradharudu Teki [Tue, 5 Mar 2013 14:04:58 +0000 (19:34 +0530)] 
zynq: nand: Fix code cleanups

- Fixed few comment cleanups
- Add tabs
- Removed trailing spaces

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: nand: Code cleanups on zynq_nand.c
Jagannadha Sutradharudu Teki [Tue, 5 Mar 2013 14:04:57 +0000 (19:34 +0530)] 
zynq: nand: Code cleanups on zynq_nand.c

- Removed EIO, ENXIO and ENOMEM
- Removed __devinitdata, __force
- Add few print() routines

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: nand: Use standard readl/writel io routines
Jagannadha Sutradharudu Teki [Tue, 5 Mar 2013 14:04:56 +0000 (19:34 +0530)] 
zynq: nand: Use standard readl/writel io routines

Use the standard io routines writel and readl instead
of Xil_Out32 and Xil_In32 respectively.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: nand: Minor cleanup on zynq_nand.c
Jagannadha Sutradharudu Teki [Tue, 5 Mar 2013 14:05:06 +0000 (19:35 +0530)] 
zynq: nand: Minor cleanup on zynq_nand.c

- Added few print()
- Removed unneeded nand_info

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agozynq: nand: Renamed PSS with PS
Jagannadha Sutradharudu Teki [Tue, 5 Mar 2013 14:05:05 +0000 (19:35 +0530)] 
zynq: nand: Renamed PSS with PS

Acronym PS instead of PSS.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: nand: Cleanup xnandps_device_ready
Jagannadha Sutradharudu Teki [Tue, 5 Mar 2013 14:05:04 +0000 (19:35 +0530)] 
zynq: nand: Cleanup xnandps_device_ready

Cleanup the xnandps_device_ready logic by removing unnecessary
status variable.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: nand: Add waitfor_ecc_completion
Jagannadha Sutradharudu Teki [Tue, 5 Mar 2013 14:05:03 +0000 (19:35 +0530)] 
zynq: nand: Add waitfor_ecc_completion

Replaced endless while loop in waitfor_ecc_completion routine
with a timeout value.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: nand: Use u-boot coding style for declaring structure register set
Jagannadha Sutradharudu Teki [Tue, 5 Mar 2013 14:05:02 +0000 (19:35 +0530)] 
zynq: nand: Use u-boot coding style for declaring structure register set

Instead of defining register set as a macros, declare a structure
which consist of a register as per the offset values.

This is recommended coding style in u-boot.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: nand: Add const qualifier to xnandps_command_format
Jagannadha Sutradharudu Teki [Tue, 5 Mar 2013 14:05:01 +0000 (19:35 +0530)] 
zynq: nand: Add const qualifier to xnandps_command_format

Declared const to xnandps_command_format array, as it never modified
throughout the code.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: nand: Add static qualifiers
Jagannadha Sutradharudu Teki [Tue, 5 Mar 2013 14:05:00 +0000 (19:35 +0530)] 
zynq: nand: Add static qualifiers

Added few static qualifiers to missing symbols.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: nand: Remove drivers/mtd/nand/zynq_nand.h
Jagannadha Sutradharudu Teki [Tue, 5 Mar 2013 14:04:59 +0000 (19:34 +0530)] 
zynq: nand: Remove drivers/mtd/nand/zynq_nand.h

Moved the needed macros onto zynq_nand.c and removed the zynq_nand.h,
as there is no other user using zynq_nand.h.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: nand: Fix code cleanups
Jagannadha Sutradharudu Teki [Tue, 5 Mar 2013 14:04:58 +0000 (19:34 +0530)] 
zynq: nand: Fix code cleanups

- Fixed few comment cleanups
- Add tabs
- Removed trailing spaces

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: nand: Code cleanups on zynq_nand.c
Jagannadha Sutradharudu Teki [Tue, 5 Mar 2013 14:04:57 +0000 (19:34 +0530)] 
zynq: nand: Code cleanups on zynq_nand.c

- Removed EIO, ENXIO and ENOMEM
- Removed __devinitdata, __force
- Add few print() routines

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: nand: Use standard readl/writel io routines
Jagannadha Sutradharudu Teki [Tue, 5 Mar 2013 14:04:56 +0000 (19:34 +0530)] 
zynq: nand: Use standard readl/writel io routines

Use the standard io routines writel and readl instead
of Xil_Out32 and Xil_In32 respectively.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: Do not setup ram start and size in board specific file
Michal Simek [Tue, 5 Mar 2013 12:59:05 +0000 (13:59 +0100)] 
zynq: Do not setup ram start and size in board specific file

It is setup in dram_init_banksize() in board.c
Also do not call get_ram_size to determine ram size.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agozynq: Do not setup ram start and size in board specific file
Michal Simek [Tue, 5 Mar 2013 12:59:05 +0000 (13:59 +0100)] 
zynq: Do not setup ram start and size in board specific file

It is setup in dram_init_banksize() in board.c
Also do not call get_ram_size to determine ram size.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agomicroblaze: Remove custom fsl command
Michal Simek [Mon, 4 Mar 2013 17:41:33 +0000 (18:41 +0100)] 
microblaze: Remove custom fsl command

This command was used for microblaze fsl but it has never been
used and properly tested.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agozynq: sdhci: Enable MMC host High Capacity support
Jagannadha Sutradharudu Teki [Thu, 21 Feb 2013 15:47:56 +0000 (21:17 +0530)] 
zynq: sdhci: Enable MMC host High Capacity support

This patch enables MMC high capacity support to host, to inform
the card that the host is capable to handle the high capacity cards.

This is needs for the cards(mmc/emmc) which has > 2GB capacity.

Bug log(for > 2GB cards without enabling MMC_MODE_HC):
zynq-uboot> mmcinfo
[snip]
[snip]
CMD_SEND:1
                ARG                      0x00300000
                MMC_RSP_R3,4             0x00FF8080
CMD_SEND:1
                ARG                      0x00300000
                MMC_RSP_R3,4             0x00FF8080
CMD_SEND:1
                ARG                      0x00300000
                MMC_RSP_R3,4             0x00FF8080
CMD_SEND:1
                ARG                      0x00300000
                MMC_RSP_R3,4             0x00FF8080
Card did not respond to voltage select!
Device: zynq_sdhci
Manufacturer ID: 0
OEM: 0
Name: Tran Speed: 0
Rd Block Len: 0
MMC version 0.0
High Capacity: No
Capacity: 0 Bytes
Bus Width: 1-bit

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agopetalinux-auto-board.h.template: Minor style clean up
Jason Wu [Mon, 4 Mar 2013 06:40:25 +0000 (16:40 +1000)] 
petalinux-auto-board.h.template: Minor style clean up

Minor style clean up around boot command

Signed-off-by: Jason Wu <huanyu@xilinx.com>
12 years agopetalinux-auto-board.h.template: Enable boot command for NAND
Jason Wu [Mon, 4 Mar 2013 06:40:24 +0000 (16:40 +1000)] 
petalinux-auto-board.h.template: Enable boot command for NAND

Set CONFIG_BOOTCOMMAND for NAND flash.

Signed-off-by: Jason Wu <huanyu@xilinx.com>
12 years agopetalinux-auto-board.h.template: Enable autoboot even if no Flash
Wendy Liang [Mon, 25 Feb 2013 07:17:31 +0000 (17:17 +1000)] 
petalinux-auto-board.h.template: Enable autoboot even if no Flash

Currently, if there is no flash, autoboot is always disabled.
It always set the bootcmd to netboot. However, there is customer
has system without any flash, and wants to boot from SD card but not
netboot.

We just need to reenable autoboot and let the user to set the CONFIG_BOOTCMD
from their platform's .h.template.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
12 years agopetalinux-auto-board.h.template: Add support for PS7 NOR
Jason Wu [Fri, 1 Mar 2013 02:18:48 +0000 (12:18 +1000)] 
petalinux-auto-board.h.template: Add support for PS7 NOR

Set up correct flash start(XILINX_FLASH_START) and size
(XILINX_FLASH_SIZE) for NOR flash.

Signed-off-by: Jason Wu <huanyu@xilinx.com>
12 years agopetalinux-auto-board.h.template: Add usual petalinux commands for nand
Jason Wu [Tue, 19 Feb 2013 05:55:01 +0000 (15:55 +1000)] 
petalinux-auto-board.h.template: Add usual petalinux commands for nand

Signed-off-by: Jason Wu <huanyu@xilinx.com>
12 years agopetalinux-auto-board.h.template: Add Nand detection
Jason Wu [Tue, 19 Feb 2013 05:55:00 +0000 (15:55 +1000)] 
petalinux-auto-board.h.template: Add Nand detection

and define the required variables

Signed-off-by: Jason Wu <huanyu@xilinx.com>
12 years agozynq_common: Define CONFIG_ENV_IS_NOWHERE
Jason Wu [Fri, 1 Mar 2013 02:18:49 +0000 (12:18 +1000)] 
zynq_common: Define CONFIG_ENV_IS_NOWHERE

CONFIG_ENV_IS_NOWHERE needs to be defined when CONFIG_SYS_NO_FLASH is
set. Otherwise compilation error will occur when try to compile a
system without a flash.

Signed-off-by: Jason Wu <huanyu@xilinx.com>
12 years agozynq_common: Define CONFIG_ENV_IS_NOWHERE
Jason Wu [Fri, 1 Mar 2013 02:18:49 +0000 (12:18 +1000)] 
zynq_common: Define CONFIG_ENV_IS_NOWHERE

CONFIG_ENV_IS_NOWHERE needs to be defined when CONFIG_SYS_NO_FLASH is
set. Otherwise compilation error will occur when try to compile a
system without a flash.

Signed-off-by: Jason Wu <huanyu@xilinx.com>
12 years agozynq: sdhci: Enable MMC host High Capacity support
Jagannadha Sutradharudu Teki [Thu, 21 Feb 2013 15:47:56 +0000 (21:17 +0530)] 
zynq: sdhci: Enable MMC host High Capacity support

This patch enables MMC high capacity support to host, to inform
the card that the host is capable to handle the high capacity cards.

This is needs for the cards(mmc/emmc) which has > 2GB capacity.

Bug log(for > 2GB cards without enabling MMC_MODE_HC):
zynq-uboot> mmcinfo
[snip]
[snip]
CMD_SEND:1
                ARG                      0x00300000
                MMC_RSP_R3,4             0x00FF8080
CMD_SEND:1
                ARG                      0x00300000
                MMC_RSP_R3,4             0x00FF8080
CMD_SEND:1
                ARG                      0x00300000
                MMC_RSP_R3,4             0x00FF8080
CMD_SEND:1
                ARG                      0x00300000
                MMC_RSP_R3,4             0x00FF8080
Card did not respond to voltage select!
Device: zynq_sdhci
Manufacturer ID: 0
OEM: 0
Name: Tran Speed: 0
Rd Block Len: 0
MMC version 0.0
High Capacity: No
Capacity: 0 Bytes
Bus Width: 1-bit

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq_common: Ensure that commands won't be run partially
Michal Simek [Mon, 28 Jan 2013 11:34:19 +0000 (12:34 +0100)] 
zynq_common: Ensure that commands won't be run partially

Ensure that if one command fails when others won't be
executed.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agozynq_common: Ensure that commands won't be run partially
Michal Simek [Mon, 28 Jan 2013 11:34:19 +0000 (12:34 +0100)] 
zynq_common: Ensure that commands won't be run partially

Ensure that if one command fails when others won't be
executed.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agomicroblaze: Remove custom fsl command
Michal Simek [Tue, 12 Feb 2013 11:06:08 +0000 (12:06 +0100)] 
microblaze: Remove custom fsl command

This command was used for microblaze fsl but it has never been
used and properly tested.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agoRevert "mtd: spi_flash: Warn user with 3 byte addressing limitations"
Jagannadha Sutradharudu Teki [Mon, 11 Feb 2013 11:08:47 +0000 (16:38 +0530)] 
Revert "mtd: spi_flash: Warn user with 3 byte addressing limitations"

This reverts commit eef1451bb3cb039f62b018a5daf9cdbc4ef56f22.

Now the current implementation in spi_flash.c is able to access the
flash from greater than 16MiB in 3-byte addressing.

This should be the part of this patch:
"sf: Add bank address access support"
(sha1: 5b00fc8b7fbf422bdc18de2bfa414db38026094f)

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agopetalinux: Enable fpga command for zynq
Michal Simek [Mon, 11 Feb 2013 10:45:50 +0000 (11:45 +0100)] 
petalinux: Enable fpga command for zynq

fpga command provides an option to configure
programmable logic on zynq.
Enabling this option adds +3kB.

Usage:
tftp 10000000 fpga.bin
fpga info 0
fpga load 0 10000000 ${filesize}

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agoRevert "mtd: spi_flash: Warn user with 3 byte addressing limitations"
Jagannadha Sutradharudu Teki [Mon, 11 Feb 2013 11:08:47 +0000 (16:38 +0530)] 
Revert "mtd: spi_flash: Warn user with 3 byte addressing limitations"

This reverts commit eef1451bb3cb039f62b018a5daf9cdbc4ef56f22.

Now the current implementation in spi_flash.c is able to access the
flash from greater than 16MiB in 3-byte addressing.

This should be the part of this patch:
"sf: Add bank address access support"
(sha1: 5b00fc8b7fbf422bdc18de2bfa414db38026094f)

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agosf: Do not use SZ_16M for Microblaze
Michal Simek [Wed, 6 Feb 2013 06:57:46 +0000 (07:57 +0100)] 
sf: Do not use SZ_16M for Microblaze

Microblaze doesn't define asm/sizes.h that's why SZ_16M
can't be used. Use direct value instead.

This should be the part of this patch.
"sf: Add bank address access support"
(sha1: 5b00fc8b7fbf422bdc18de2bfa414db38026094f)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agosf: Do not use SZ_16M for Microblaze
Michal Simek [Wed, 6 Feb 2013 06:57:46 +0000 (07:57 +0100)] 
sf: Do not use SZ_16M for Microblaze

Microblaze doesn't define asm/sizes.h that's why SZ_16M
can't be used. Use direct value instead.

This should be the part of this patch.
"sf: Add bank address access support"
(sha1: 5b00fc8b7fbf422bdc18de2bfa414db38026094f)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agoMerge branch 'xilinx/master-next' into petalinux/master-next
Michal Simek [Mon, 4 Feb 2013 10:48:51 +0000 (11:48 +0100)] 
Merge branch 'xilinx/master-next' into petalinux/master-next

Change MMC configuration and using new gem driver.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agozynq: Removed Xilinx Boot ROM header support
Jagannadha Sutradharudu Teki [Wed, 30 Jan 2013 07:18:40 +0000 (12:48 +0530)] 
zynq: Removed Xilinx Boot ROM header support

Xilinx Boot ROM header support in u-boot is used on ep107
boards for testing XIP images.

This support is removed, as current u-boot is not
supporting ep107 boards and the current zynq boards are
not using/testing XIP as of now.

Removed.
- CONFIG_ZYNQ_XILINX_FLASH_HEADER references
- xromhdr.pl

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agosf: stmicro: Add support for N25Q256A
Jagannadha Sutradharudu Teki [Tue, 29 Jan 2013 11:43:38 +0000 (17:13 +0530)] 
sf: stmicro: Add support for N25Q256A

Add support for Numonyx N25Q256A SPI flash.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agosf: stmicro: Add support for N25Q32A
Jagannadha Sutradharudu Teki [Tue, 29 Jan 2013 11:43:37 +0000 (17:13 +0530)] 
sf: stmicro: Add support for N25Q32A

Add support for Numonyx N25Q32A SPI flash.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agosf: stmicro: Add support for N25Q32
Jagannadha Sutradharudu Teki [Tue, 29 Jan 2013 11:43:36 +0000 (17:13 +0530)] 
sf: stmicro: Add support for N25Q32

Add support for Numonyx N25Q32 SPI flash.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq_common: Enable VFAT support
Michal Simek [Mon, 28 Jan 2013 09:49:38 +0000 (10:49 +0100)] 
zynq_common: Enable VFAT support

Just for sure enable VFAT.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agozynq: sdhci: Add a delay quirk during completion of sdhci_send_cmd
Jagannadha Sutradharudu Teki [Fri, 25 Jan 2013 17:17:25 +0000 (18:17 +0100)] 
zynq: sdhci: Add a delay quirk during completion of sdhci_send_cmd

This patch provides to added delay quirk between the every sdhci_send_cmd()
execution.

Without this delay, MMC initialization on zynq board fails with
following error messages.

Controller never released inhibit bit(s).

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: Removed CONFIG_SYS_MMC_MAX_BLK_COUNT
Jagannadha Sutradharudu Teki [Fri, 25 Jan 2013 17:04:12 +0000 (22:34 +0530)] 
zynq: Removed CONFIG_SYS_MMC_MAX_BLK_COUNT

Removed CONFIG_SYS_MMC_MAX_BLK_COUNT, which is for single block reads

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agozynq: mmc: Support the sdhci instead of zynq_mmc
Jagannadha Sutradharudu Teki [Fri, 25 Jan 2013 17:16:36 +0000 (18:16 +0100)] 
zynq: mmc: Support the sdhci instead of zynq_mmc

This patch provides a support to use the generic sdhci interface
for zynq soc, hence removed the the existing zynq_mmc.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
12 years agofpga: zynq: Fix devcfg driver
Michal Simek [Mon, 28 Jan 2013 07:43:48 +0000 (08:43 +0100)] 
fpga: zynq: Fix devcfg driver

- Move slcr functionality to slcr driver
- Use register maps
- Fix coding style

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agonet: axi_emac: Remove compilation warnings
Michal Simek [Fri, 25 Jan 2013 13:46:35 +0000 (14:46 +0100)] 
net: axi_emac: Remove compilation warnings

Remove compilation warnings:
xilinx_axi_emac.c: In function 'setup_phy':
xilinx_axi_emac.c:274:26: warning: unused variable 'ret' [-Wunused-variable]
xilinx_axi_emac.c:274:6: warning: unused variable 'i' [-Wunused-variable]
xilinx_axi_emac.c:273:6: warning: unused variable 'phyreg' [-Wunused-variable]
xilinx_axi_emac.c: In function 'axi_dma_init':
xilinx_axi_emac.c:484:7: warning: suggest parentheses around operand of
 '!' or change '&' to '&&' or '!' to '~' [-Wparentheses]
xilinx_axi_emac.c: In function 'axiemac_send':
xilinx_axi_emac.c:593:4: warning: suggest parentheses around operand of
 '!' or change '&' to '&&' or '!' to '~' [-Wparentheses]

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agoarm: Do not change memory node setting to the kernel
Michal Simek [Wed, 23 Jan 2013 07:55:16 +0000 (08:55 +0100)] 
arm: Do not change memory node setting to the kernel

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agomtd: cfi_flash: Revert Xilinx specific hack
Nathan Rossi [Wed, 7 Nov 2012 07:10:52 +0000 (17:10 +1000)] 
mtd: cfi_flash: Revert Xilinx specific hack

Revert the hack to force the write buffer size to 256 bits. The
hack breaks any flash devices that have a write buffer that is not
256bits (e.g. JS28F256P30T95, on the ML507).

Signed-off-by: Jason Wu <huanyu@xilinx.com>
Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
---
Reverting this patch it is causing the problem on zc770-xm012
flash timeout issue

12 years agowatchdog: Rewrite microblaze watchdog implementation
Michal Simek [Fri, 25 Jan 2013 13:41:04 +0000 (14:41 +0100)] 
watchdog: Rewrite microblaze watchdog implementation

- Move watchdog to drivers/watchdog
- Update documentation
- Change watchdog initialization (here is small problem
  because watchdog uses IRQ that's why must be initialized
  after intc initialization - which can be problematic
  in cases where problem happen between start and watchdog init)
- Rewrite to u-boot coding style
- Disable watchdog in reset function

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agozynq: gem: Add support for setup slcr gem clk speed
Michal Simek [Fri, 25 Jan 2013 11:16:39 +0000 (12:16 +0100)] 
zynq: gem: Add support for setup slcr gem clk speed

Fix problem with not setup proper clock for gem1.
This is generic approach for clk setup.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agozynq: gem: Simplify return path in zynq_gem_recv
Michal Simek [Fri, 25 Jan 2013 07:24:18 +0000 (08:24 +0100)] 
zynq: gem: Simplify return path in zynq_gem_recv

Remove one return from the code.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agospi: zynq: Code cleanup on qspips driver
Jagannadha Sutradharudu Teki [Tue, 22 Jan 2013 14:12:47 +0000 (19:42 +0530)] 
spi: zynq: Code cleanup on qspips driver

This patch cleans up zynq_qspi.c:
- removed the code under spin_lock_irqsave, spin_unlock_irqrestore
- removed the code under spin_lock, spin_unlock
- removed XIo_In32 and XIo_Out32, add __raw_readl and__raw_writel instead
- remove spaces
- add tabs
- comments cleanup
- removed few unnecessary variables

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agospi: zynq: Code cleanup on qspi driver
Jagannadha Sutradharudu Teki [Thu, 24 Jan 2013 12:44:47 +0000 (13:44 +0100)] 
spi: zynq: Code cleanup on qspi driver

Cleanups on.
- Renamed PSS with PS
- Renamed zynq_qspi with zynq_qspips

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agospi: zynq: Code style cleanup
Jagannadha Sutradharudu Teki [Sat, 19 Jan 2013 14:44:51 +0000 (20:14 +0530)] 
spi: zynq: Code style cleanup

This patch cleans up zynq_qspi.c:
- removed the code under the macro LINUX_ONLY_NOT_UBOOT
- remove spaces.
- remove DEBUG macros and add debug func
- add tabs

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
12 years agozynq: spi: Removed zynq_qspi_wrap.c file
Jagannadha Sutradharudu Teki [Thu, 24 Jan 2013 12:32:49 +0000 (13:32 +0100)] 
zynq: spi: Removed zynq_qspi_wrap.c file

Moved the code from zynq_qspi_wrap.c to zynq_qspi.c and
removed the zynq_qspi_wrap.c file to make single driver
for zynq qspi ps.

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