ar7240/flash: make jedec id usable
It just read and printf() the value, but doesn't returned it
This commit is contained in:
parent
6ae76c3541
commit
832abd89bb
|
@ -24,7 +24,7 @@ static void ar7240_spi_write_page(uint32_t addr, uint8_t * data, int len);
|
||||||
#endif
|
#endif
|
||||||
static void ar7240_spi_sector_erase(uint32_t addr);
|
static void ar7240_spi_sector_erase(uint32_t addr);
|
||||||
|
|
||||||
static void
|
static u32
|
||||||
ath_spi_read_id(void)
|
ath_spi_read_id(void)
|
||||||
{
|
{
|
||||||
u32 rd = 0x777777;
|
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",
|
debug("Flash Manuf Id 0x%x, DeviceId0 0x%x, DeviceId1 0x%x\n",
|
||||||
(rd >> 16) & 0xff, (rd >> 8) & 0xff, (rd >> 0) & 0xff);
|
(rd >> 16) & 0xff, (rd >> 8) & 0xff, (rd >> 0) & 0xff);
|
||||||
|
return rd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue