forked from Minki/linux
dc9cfd2692
lib/devres.c, which implements devm_ioremap_resource(), is only built
when CONFIG_HAS_IOMEM is set/enabled, so MTD_HYPERBUS should depend
on HAS_IOMEM. Fixes a build error and a Kconfig warning (as seen on
UML builds):
WARNING: unmet direct dependencies detected for MTD_COMPLEX_MAPPINGS
Depends on [n]: MTD [=m] && HAS_IOMEM [=n]
Selected by [m]:
- MTD_HYPERBUS [=m] && MTD [=m]
ERROR: "devm_ioremap_resource" [drivers/mtd/hyperbus/hyperbus-core.ko] undefined!
Fixes: dcc7d3446a
("mtd: Add support for HyperBus memory devices")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Vignesh Raghavendra <vigneshr@ti.com>
Cc: Miquel Raynal <miquel.raynal@bootlin.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: linux-mtd@lists.infradead.org
Acked-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
26 lines
628 B
Plaintext
26 lines
628 B
Plaintext
menuconfig MTD_HYPERBUS
|
|
tristate "HyperBus support"
|
|
depends on HAS_IOMEM
|
|
select MTD_CFI
|
|
select MTD_MAP_BANK_WIDTH_2
|
|
select MTD_CFI_AMDSTD
|
|
select MTD_COMPLEX_MAPPINGS
|
|
help
|
|
This is the framework for the HyperBus which can be used by
|
|
the HyperBus Controller driver to communicate with
|
|
HyperFlash. See Cypress HyperBus specification for more
|
|
details
|
|
|
|
if MTD_HYPERBUS
|
|
|
|
config HBMC_AM654
|
|
tristate "HyperBus controller driver for AM65x SoC"
|
|
depends on ARM64 || COMPILE_TEST
|
|
select MULTIPLEXER
|
|
imply MUX_MMIO
|
|
help
|
|
This is the driver for HyperBus controller on TI's AM65x and
|
|
other SoCs
|
|
|
|
endif # MTD_HYPERBUS
|