diff --git a/zephyr/program/lotus/azalea/overlay.dtsi b/zephyr/program/lotus/azalea/overlay.dtsi index 460503a126..08520e1c9e 100644 --- a/zephyr/program/lotus/azalea/overlay.dtsi +++ b/zephyr/program/lotus/azalea/overlay.dtsi @@ -161,3 +161,22 @@ >; pinctrl-names = "default"; }; + +&binman { + ec-rw { + /* + * Azalea uses the last 0x1000 bytes of flash for non-volatile settings storage. + * Shrink the RW region by that much so that there is no conflict between RW_FWID + * or RW text and non-volatile settings. + */ + size = <0x3f000>; + rw-fw { + rw-fwid { + offset = <(0x3f000 - 32)>; + }; + }; + }; + /* The remaining 0x1000 bytes will be used for non-volatile settings storage. */ + pad-after = <0x1000>; + pad-byte = <0xFF>; +}; diff --git a/zephyr/program/lotus/lotus/overlay.dtsi b/zephyr/program/lotus/lotus/overlay.dtsi index d5991f3197..c4f97aac7c 100644 --- a/zephyr/program/lotus/lotus/overlay.dtsi +++ b/zephyr/program/lotus/lotus/overlay.dtsi @@ -139,3 +139,21 @@ pinctrl-names = "default"; }; +&binman { + ec-rw { + /* + * Lotus uses the last 0x1000 bytes of flash for non-volatile settings storage. + * Shrink the RW region by that much so that there is no conflict between RW_FWID + * or RW text and non-volatile settings. + */ + size = <0x3f000>; + rw-fw { + rw-fwid { + offset = <(0x3f000 - 32)>; + }; + }; + }; + /* The remaining 0x1000 bytes will be used for non-volatile settings storage. */ + pad-after = <0x1000>; + pad-byte = <0xFF>; +}; diff --git a/zephyr/program/lotus/program.conf b/zephyr/program/lotus/program.conf index ccd15ef363..6079b9b263 100644 --- a/zephyr/program/lotus/program.conf +++ b/zephyr/program/lotus/program.conf @@ -16,6 +16,7 @@ CONFIG_PLATFORM_EC_SYSTEM_UNLOCKED=y CONFIG_PLATFORM_EC_WP_DISABLE=y CONFIG_PLATFORM_EC_UNIMPLEMENTED_GPIO=y CONFIG_PLATFORM_EC_I2C_DEBUG=y +CONFIG_CROS_EC_RW_SIZE=0x3F000 # Port80 CONFIG_PLATFORM_EC_PORT80_4_BYTE=y