From 832abd89bbe79b0dae11aa4f31b69a54a261ebc3 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Wed, 20 May 2015 14:12:02 +0200 Subject: [PATCH] ar7240/flash: make jedec id usable It just read and printf() the value, but doesn't returned it --- u-boot/board/ar7240/common/ar7240_flash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/u-boot/board/ar7240/common/ar7240_flash.c b/u-boot/board/ar7240/common/ar7240_flash.c index c11f538e08..076e18bde8 100644 --- a/u-boot/board/ar7240/common/ar7240_flash.c +++ b/u-boot/board/ar7240/common/ar7240_flash.c @@ -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; }