Skip to content

Commit 5d24b6d

Browse files
swift-tknashif
authored andcommitted
drivers: fix Kconfig.mspi for issue #74349
Fix the Kconfig.mspi under flash and memc so that it don't litter. Signed-off-by: Swift Tian <[email protected]>
1 parent 533f115 commit 5d24b6d

File tree

2 files changed

+13
-18
lines changed

2 files changed

+13
-18
lines changed

drivers/flash/Kconfig.mspi

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,31 @@
11
# Copyright (c) 2024 Ambiq Micro Inc. <www.ambiq.com>
22
# SPDX-License-Identifier: Apache-2.0
33

4+
menu "MSPI flash device driver"
5+
46
config FLASH_MSPI
5-
bool "MSPI flash drivers"
6-
default y
7-
depends on FLASH
7+
bool
88
select FLASH_HAS_DRIVER_ENABLED
99
select MSPI
10-
11-
if FLASH_MSPI
12-
13-
menu "MSPI flash driver"
10+
help
11+
MSPI flash drivers are enabled.
1412

1513
config FLASH_MSPI_EMUL_DEVICE
1614
bool "MSPI flash device emulator"
1715
default y
1816
depends on DT_HAS_ZEPHYR_MSPI_EMUL_FLASH_ENABLED
17+
select FLASH_MSPI
1918
select FLASH_HAS_PAGE_LAYOUT
2019
select FLASH_HAS_EXPLICIT_ERASE
2120

2221
config FLASH_MSPI_ATXP032
2322
bool "MSPI ATXP032 driver"
2423
default y
2524
depends on DT_HAS_MSPI_ATXP032_ENABLED
25+
select FLASH_MSPI
2626
select FLASH_HAS_PAGE_LAYOUT
2727
select FLASH_HAS_EXPLICIT_ERASE
2828
select FLASH_JESD216
2929
select MSPI_AMBIQ_AP3 if SOC_SERIES_APOLLO3X
3030

3131
endmenu
32-
33-
endif # FLASH_MSPI

drivers/memc/Kconfig.mspi

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,19 @@
11
# Copyright (c) 2024, Ambiq Micro Inc. <www.ambiq.com>
22
# SPDX-License-Identifier: Apache-2.0
33

4+
menu "MSPI MEMC device driver"
5+
46
config MEMC_MSPI
5-
bool "MSPI memory controller drivers"
6-
default y
7-
depends on MEMC
7+
bool
88
select MSPI
9-
10-
if MEMC_MSPI
11-
12-
menu "MSPI memory controller driver"
9+
help
10+
MSPI MEMC drivers are enabled.
1311

1412
config MEMC_MSPI_APS6404L
1513
bool "MSPI AP Memory APS6404L pSRAM driver"
1614
default y
1715
depends on DT_HAS_MSPI_APS6404L_ENABLED
16+
select MEMC_MSPI
1817
select MSPI_AMBIQ_AP3 if SOC_SERIES_APOLLO3X
1918

2019
endmenu
21-
22-
endif # MEMC_MSPI

0 commit comments

Comments
 (0)