mtd: rawnand: stm32_fmc2: get resources from parent node
authorChristophe Kerello <christophe.kerello@st.com>
Fri, 12 Jun 2020 15:22:42 +0000 (17:22 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 7 Jul 2020 18:58:21 +0000 (20:58 +0200)
commitfbd9b5437b668900f6d8c8e29c8aabf4955189ff
tree651f0633bc680d5d33b871078cad410ddcabd7cc
parent51c88a8d3b02cfd4d9209c282b815336c5952619
mtd: rawnand: stm32_fmc2: get resources from parent node

FMC2 EBI support has been added. Common resources (registers base
address and clock) can now be shared between the 2 drivers using
"st,stm32mp1-fmc2-nfc" compatible string. It means that the
common resources should now be found in the parent device when EBI
node is available.

Signed-off-by: Christophe Kerello <christophe.kerello@st.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/1591975362-22009-7-git-send-email-christophe.kerello@st.com
drivers/mtd/nand/raw/Kconfig
drivers/mtd/nand/raw/stm32_fmc2_nand.c