stm32mp1: support dynamic MTDPARTS
authorPatrice Chotard <patrice.chotard@st.com>
Thu, 2 May 2019 16:07:14 +0000 (18:07 +0200)
committerPatrice Chotard <patrice.chotard@st.com>
Thu, 6 Jun 2019 15:40:12 +0000 (17:40 +0200)
commit87471649a561404a36e9e854d45be95d1599b1c0
treee0e5e34eca0426dc5cb429881ffffac657f0a745
parentc4a739ad50f59a8b924c99b46aec7d31bb26d125
stm32mp1: support dynamic MTDPARTS

This patch configure the default value for mtdids and mtparts
dynamically according the presence of nor and nand in
the board device tree

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Signed-off-by: Christophe Kerello <christophe.kerello@st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
board/st/stm32mp1/stm32mp1.c
include/configs/stm32mp1.h