imx: kontron-sl-mx8mm: Use eMMC boot part for environment if booting from eMMC
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Tue, 7 Oct 2025 08:16:03 +0000 (10:16 +0200)
committerFabio Estevam <festevam@gmail.com>
Tue, 7 Oct 2025 11:58:28 +0000 (08:58 -0300)
commit83a18f82417137a8cd40dd3718ad21ecfdc03aa3
tree7affb4851259dcd5748b5695d7ee324e6f0d60e8
parent6679a9404084f03afa790c310174969ac50d6306
imx: kontron-sl-mx8mm: Use eMMC boot part for environment if booting from eMMC

Depending on the MMC boot device, select the proper location for the
environment.

* SD card and eMMC main partition: use offsets from CONFIG_ENV_OFFSET
  and CONFIG_ENV_OFFSET_REDUND.
* eMMC boot partition: use offset -2*ENV_SIZE and -ENV_SIZE from the
  end of the partition.

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
board/kontron/sl-mx8mm/sl-mx8mm.c