summaryrefslogtreecommitdiff
path: root/src/commonlib/storage/Kconfig
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2017-05-08 16:56:03 -0700
committerLee Leahy <leroy.p.leahy@intel.com>2017-05-12 18:20:33 +0200
commit48dbc663d75e6b7e45e50cd099acb88b35e65a0a (patch)
treef60c19148b8be447c5350f939ac9d832e379579c /src/commonlib/storage/Kconfig
parentf542aca0908ead68314a6d9603dde8849abcff19 (diff)
downloadcoreboot-48dbc663d75e6b7e45e50cd099acb88b35e65a0a.tar.xz
commonlib: Move drivers/storage into commonlib/storage
Move drivers/storage into commonlib/storage to enable access by libpayload and indirectly by payloads. * Remove SD/MMC specific include files from include/device * Remove files from drivers/storage * Add SD/MMC specific include files to commonlib/include * Add files to commonlib/storage * Fix header file references * Add subdir entry in commonlib/Makefile.inc to build the SD/MMC driver * Add Kconfig source for commonlib/storage * Rename *DEVICE* to *COMMONLIB* * Rename *DRIVERS_STORAGE* to *COMMONLIB_STORAGE* TEST=Build and run on Galileo Gen2 Change-Id: I4339e4378491db9a0da1f2dc34e1906a5ba31ad6 Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com> Reviewed-on: https://review.coreboot.org/19672 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/commonlib/storage/Kconfig')
-rw-r--r--src/commonlib/storage/Kconfig105
1 files changed, 105 insertions, 0 deletions
diff --git a/src/commonlib/storage/Kconfig b/src/commonlib/storage/Kconfig
new file mode 100644
index 0000000000..c7bb70d399
--- /dev/null
+++ b/src/commonlib/storage/Kconfig
@@ -0,0 +1,105 @@
+##
+## This file is part of the coreboot project.
+##
+## Copyright (C) 2017 Intel Corp.
+##
+## This program is free software; you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation; version 2 of the License.
+##
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+##
+
+config COMMONLIB_STORAGE
+ bool
+ default n
+
+if COMMONLIB_STORAGE
+
+config COMMONLIB_STORAGE_MMC
+ bool "Enable MultiMediaCard (MMC) and eMMC device support"
+ default n
+
+config COMMONLIB_STORAGE_SD
+ bool "Enable Secure Digital (SD) memory card support"
+ default n
+
+config STORAGE_ERASE
+ bool "Support SD/MMC erase operations"
+ default n
+ help
+ Select to enable SD/MMC erase oprations
+
+config STORAGE_EARLY_ERASE
+ bool "Enable erase operations in bootblock and verstage"
+ default n
+ depends on STORAGE_ERASE
+
+config STORAGE_WRITE
+ bool "Support SD/MMC write operations"
+ default n
+ help
+ Select to enable SD/MMC write oprations
+
+config STORAGE_EARLY_WRITE
+ bool "Enable write operations in bootblock and verstage"
+ default n
+ depends on STORAGE_WRITE
+
+config SD_MMC_DEBUG
+ bool "Debug SD/MMC card/devices operations"
+ default n
+ help
+ Display overview of SD/MMC card/device operations
+
+config SD_MMC_TRACE
+ bool "Trace SD/MMC card/device operations"
+ default n
+ help
+ Display details of SD/MMC card/device operations
+
+config SDHC_DEBUG
+ bool "Debug SD/MMC controller settings"
+ default n
+ help
+ Display clock speed and bus width settings
+
+config SDHC_TRACE
+ bool "Trace SD/MMC controller operations"
+ default n
+ help
+ Display the operations performed by the SD/MMC controller
+
+config SDHCI_CONTROLLER
+ bool "Support SD host controller"
+ default n
+
+if SDHCI_CONTROLLER
+
+config SDHCI_ADMA_IN_BOOTBLOCK
+ bool
+ default n
+ help
+ Determine if bootblock is able to use ADMA2 or ADMA64
+
+config SDHCI_ADMA_IN_ROMSTAGE
+ bool
+ default n
+ help
+ Determine if romstage is able to use ADMA2 or ADMA64
+
+config SDHCI_ADMA_IN_VERSTAGE
+ bool
+ default n
+ help
+ Determine if verstage is able to use ADMA2 or ADMA64
+
+config SDHCI_BOUNCE_BUFFER
+ bool "Use DMA bounce buffer for SD/MMC controller"
+ default n
+
+endif # SDHCI_CONTROLLER
+endif # COMMONLIB_STORAGE