From 709b384b6493d9726dce20663ebe31bf7cab2925 Mon Sep 17 00:00:00 2001 From: TsiChung Liew Date: Thu, 11 Jun 2009 15:39:57 +0000 Subject: 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 --- cpu/mcf5445x/dspi.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'cpu/mcf5445x/dspi.c') 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); -- cgit v1.1