linux-gbmc: Fix FLASH_LAYOUT_SIZE size check
Make sure the flash size check is done properly to prevent the issue
where all system are running with gbmc-flash-layout-64.dtsi.
Tested:
On a gBMC with FLASH_SIZE of 32768.
```
$ cat ./tmp/work-shared/gbmc/kernel-source/arch/arm/boot/dts/npcm7xx-gbmc.dtsi
#include "gbmc-flash-layout-32.dtsi"
```
Google-Bug-Id: 383236243
Fusion-Link: fusion2 N/A. This reverts back to the expected layout.
Change-Id: I603e69f9d8115772d1dc142e58ae00b5bef1fd18
Signed-off-by: Willy Tu <wltu@google.com>
Platforms-Affected: 32MB FLASH size systems
(cherry picked from commit 5a38c29e42af6fd89fca5080c24a54f7cf7663eb)
1 file changed