Skip to content

Commit b210849

Browse files
author
Patrice Chotard
committed
board: stm32mp2: Add Hyperflash support for fdt_update_fwu_mdata()
Add Hyperflash support for fdt_update_fwu_mdata(). Add log info to indicate when a boot device is not supported. Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com> Change-Id: I4c44c66098f93a42e654e0e3706c504d3cd226e8 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/u-boot/+/441193 ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com> Domain-Review: Christophe KERELLO <christophe.kerello@st.com> ACI: CIBUILD <MDG-smet-aci-builds@list.st.com>
1 parent 227ccc9 commit b210849

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

board/st/stm32mp2/stm32mp2.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -805,8 +805,10 @@ void *env_sf_get_env_addr(void)
805805

806806
#if defined(CONFIG_STM32MP21X)
807807
#define SPINAND_NOR_PATH "/soc@0/bus@42080000/spi@40430000/flash@0"
808+
#define HYPERFLASH_PATH "/soc@0/bus@42080000/memory-controller@40430000/flash@0"
808809
#else
809810
#define SPINAND_NOR_PATH "/soc@0/ommanager@40500000/spi@40430000/flash@0"
811+
#define HYPERFLASH_PATH "/soc@0/ommanager@40500000/memory-controller@40430000/flash@0"
810812
#endif
811813

812814
int fdt_update_fwu_properties(void *blob, int nodeoff,
@@ -872,8 +874,14 @@ int fdt_update_fwu_mdata(void *blob)
872874
ret = fdt_update_fwu_properties(blob, nodeoff, "u-boot,fwu-mdata-mtd",
873875
SPINAND_NOR_PATH);
874876
break;
877+
case BOOT_FLASH_HYPERFLASH:
878+
/* flash0 */
879+
ret = fdt_update_fwu_properties(blob, nodeoff, "u-boot,fwu-mdata-mtd",
880+
HYPERFLASH_PATH);
881+
break;
875882
default:
876883
/* TF-A firmware update not supported for other boot device */
884+
log_info("boot device not supported %d\n", bootmode);
877885
ret = fdt_del_node(blob, nodeoff);
878886
}
879887

0 commit comments

Comments
 (0)