summaryrefslogtreecommitdiff
path: root/cpu/mcf5445x/dspi.c
diff options
context:
space:
mode:
authorTsiChung Liew <tsicliew@gmail.com>2009-06-11 15:39:57 +0000
committerTsiChung Liew <Tsi-Chung.Liew@freescale.com>2009-07-14 09:27:14 -0500
commit709b384b6493d9726dce20663ebe31bf7cab2925 (patch)
treee4c685869604d834cc30d67186ec23e55d817c18 /cpu/mcf5445x/dspi.c
parentbbf6bbffcaf694c03504c661e58fbd1aefe5bf64 (diff)
downloadu-boot-imx-709b384b6493d9726dce20663ebe31bf7cab2925.zip
u-boot-imx-709b384b6493d9726dce20663ebe31bf7cab2925.tar.gz
u-boot-imx-709b384b6493d9726dce20663ebe31bf7cab2925.tar.bz2
ColdFire: Update for M54451EVB
Update serial boot DRAM's Internal RAM, vector table and DRAM in start.S, serial flash's read status command over SPI and NOR flash. Signed-off-by: TsiChung Liew <tsicliew@gmail.com>
Diffstat (limited to 'cpu/mcf5445x/dspi.c')
-rw-r--r--cpu/mcf5445x/dspi.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/cpu/mcf5445x/dspi.c b/cpu/mcf5445x/dspi.c
index 6d3ebab..59133e8 100644
--- a/cpu/mcf5445x/dspi.c
+++ b/cpu/mcf5445x/dspi.c
@@ -159,12 +159,10 @@ int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout,
dspi_rx();
return 0;
case 0x05: /* Read Status */
- if (len == 4)
- if ((spi_wr[1] == 0xFF) && (spi_wr[2] == 0xFF)
- && (spi_wr[3] == 0xFF)) {
- dspi_tx(slave->cs, 0x80, *spi_wr);
- dspi_rx();
- }
+ if (len == 1) {
+ dspi_tx(slave->cs, 0x80, *spi_wr);
+ dspi_rx();
+ }
return 0;
case 0x06: /* WREN */
dspi_tx(slave->cs, 0x00, *spi_wr);