From 1cb2de5b96c18f595129bb0b5c522856241ff1d1 Mon Sep 17 00:00:00 2001
From: Angus Gratton <gus@projectgus.com>
Date: Fri, 7 Aug 2015 18:19:09 +1000
Subject: [PATCH] spi_flash.h: Correct comment regarding flashchip structure

From ed0a079d9bc9
---
 include/espressif/spi_flash.h | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/include/espressif/spi_flash.h b/include/espressif/spi_flash.h
index 61ca32d..1805cc7 100644
--- a/include/espressif/spi_flash.h
+++ b/include/espressif/spi_flash.h
@@ -23,10 +23,13 @@ sdk_SpiFlashOpResult sdk_spi_flash_read(uint32_t src_addr, uint32_t *des_addr, u
 
 /* SDK uses this structure internally to account for flash size.
 
+   chip_size field is initialised during startup from the flash size
+   saved in the image header (on the first 8 bytes of SPI flash).
+
+   Other field are initialised to hardcoded values by the SDK.
+
    Based on RE work by @foogod at
    http://esp8266-re.foogod.com/wiki/Flashchip_%28IoT_RTOS_SDK_0.9.9%29
-
-   Note that the only field the SDK actually uses appears to be chip_size
 */
 typedef struct {
     uint32_t device_id;