ar7240/flash: make jedec id usable

It just read and printf() the value, but doesn't returned it
This commit is contained in:
Alexander Couzens 2015-05-20 14:12:02 +02:00
parent 6ae76c3541
commit 832abd89bb
1 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,7 @@ static void ar7240_spi_write_page(uint32_t addr, uint8_t * data, int len);
#endif
static void ar7240_spi_sector_erase(uint32_t addr);
static void
static u32
ath_spi_read_id(void)
{
u32 rd = 0x777777;
@ -40,6 +40,7 @@ ath_spi_read_id(void)
debug("Flash Manuf Id 0x%x, DeviceId0 0x%x, DeviceId1 0x%x\n",
(rd >> 16) & 0xff, (rd >> 8) & 0xff, (rd >> 0) & 0xff);
return rd;
}