2021-02-09 22:02:30 -07:00
|
|
|
# CONFIG_CPU_ISOLATION is not set
|
|
|
|
CONFIG_LOG_BUF_SHIFT=13
|
|
|
|
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
|
|
|
|
# CONFIG_SYSFS_SYSCALL is not set
|
|
|
|
# CONFIG_FHANDLE is not set
|
2024-05-05 01:03:43 -07:00
|
|
|
CONFIG_BASE_SMALL=y
|
2021-02-09 22:02:30 -07:00
|
|
|
# CONFIG_FUTEX is not set
|
|
|
|
# CONFIG_EPOLL is not set
|
|
|
|
# CONFIG_SIGNALFD is not set
|
|
|
|
# CONFIG_TIMERFD is not set
|
|
|
|
# CONFIG_EVENTFD is not set
|
|
|
|
# CONFIG_AIO is not set
|
|
|
|
# CONFIG_IO_URING is not set
|
|
|
|
# CONFIG_ADVISE_SYSCALLS is not set
|
|
|
|
# CONFIG_KALLSYMS is not set
|
2023-08-15 22:50:10 -07:00
|
|
|
CONFIG_EXPERT=y
|
2021-02-09 22:02:30 -07:00
|
|
|
# CONFIG_VM_EVENT_COUNTERS is not set
|
|
|
|
# CONFIG_COMPAT_BRK is not set
|
2022-11-11 03:04:55 -07:00
|
|
|
CONFIG_SLUB=y
|
|
|
|
CONFIG_SLUB_TINY=y
|
2021-02-09 22:02:30 -07:00
|
|
|
# CONFIG_MMU is not set
|
riscv: Kconfig.socs: Split ARCH_CANAAN and SOC_CANAAN_K210
Since SOC_FOO should be deprecated from patch [1], and cleanup for other
SoCs is already in the mailing list [2,3,4], we remove the use of
SOC_CANAAN and use ARCH_CANAAN for SoCs vendored by Canaan instead from now
on. And allows ARCH_CANAAN to be selected for other Canaan SoCs. However,
we should keep the config SOC_CANAAN and use def_bool to redirect the
symbol temporarily to avoid potential conflict.
Since we now have Canaan Kendryte K230 with MMU, ARCH_CANAAN is no longer
referred to as K210. There are some special features for K210, like M-Mode
No MMU and loader.bin in arch/riscv/Makefile. If we keep ARCH_CANAAN for
other Canaan SoCs and remove the K210, the depends on !MMU in Kconfig may
confuse some users who try to boot Kernel with MMU on K210, as Damien
mentioned in the list [5]. Thus, we introduce a new symbol SOC_CANAAN_K210
for any conditional code or driver selection specific to the K210, so users
will not try to build some K210-specific things when MMU is enabled and see
it fails to boot on K210.
[1] https://lore.kernel.org/linux-riscv/20221121221414.109965-1-conor@kernel.org/
[2] https://lore.kernel.org/linux-riscv/20240305-praying-clad-c4fbcaa7ed0a@spud/
[3] https://lore.kernel.org/linux-riscv/20240305-fled-undrilled-41dc0c46bb29@spud/
[4] https://lore.kernel.org/linux-riscv/20240305-stress-earflap-d7ddb8655a4d@spud/
[5] https://lore.kernel.org/linux-riscv/2b0511af-1b5b-4c90-a673-c9113bb58142@kernel.org/
Signed-off-by: Yangyu Chen <cyy@cyyself.name>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
2024-03-28 10:06:09 -07:00
|
|
|
CONFIG_ARCH_CANAAN=y
|
|
|
|
CONFIG_SOC_CANAAN_K210=y
|
2022-05-21 12:33:57 -07:00
|
|
|
CONFIG_NONPORTABLE=y
|
2021-02-09 22:02:30 -07:00
|
|
|
CONFIG_SMP=y
|
|
|
|
CONFIG_NR_CPUS=2
|
2022-02-08 20:56:23 -07:00
|
|
|
CONFIG_CMDLINE="earlycon console=ttySIF0 root=/dev/mmcblk0p1 rootwait ro"
|
2021-02-09 22:02:30 -07:00
|
|
|
CONFIG_CMDLINE_FORCE=y
|
2024-02-28 01:52:54 -07:00
|
|
|
CONFIG_BUILTIN_DTB=y
|
|
|
|
CONFIG_BUILTIN_DTB_SOURCE="canaan/k210_generic"
|
2021-02-09 22:02:30 -07:00
|
|
|
# CONFIG_SECCOMP is not set
|
|
|
|
# CONFIG_STACKPROTECTOR is not set
|
|
|
|
# CONFIG_GCC_PLUGINS is not set
|
|
|
|
# CONFIG_MQ_IOSCHED_DEADLINE is not set
|
|
|
|
# CONFIG_MQ_IOSCHED_KYBER is not set
|
|
|
|
CONFIG_BINFMT_FLAT=y
|
|
|
|
# CONFIG_COREDUMP is not set
|
|
|
|
CONFIG_DEVTMPFS=y
|
|
|
|
CONFIG_DEVTMPFS_MOUNT=y
|
|
|
|
# CONFIG_FW_LOADER is not set
|
|
|
|
# CONFIG_ALLOW_DEV_COREDUMP is not set
|
|
|
|
# CONFIG_BLK_DEV is not set
|
|
|
|
# CONFIG_INPUT is not set
|
|
|
|
# CONFIG_SERIO is not set
|
|
|
|
# CONFIG_VT is not set
|
|
|
|
# CONFIG_LEGACY_PTYS is not set
|
|
|
|
# CONFIG_LDISC_AUTOLOAD is not set
|
|
|
|
# CONFIG_HW_RANDOM is not set
|
|
|
|
# CONFIG_DEVMEM is not set
|
|
|
|
CONFIG_I2C=y
|
|
|
|
CONFIG_I2C_CHARDEV=y
|
|
|
|
# CONFIG_I2C_HELPER_AUTO is not set
|
2024-09-03 07:25:04 -07:00
|
|
|
CONFIG_I2C_DESIGNWARE_CORE=y
|
2021-02-09 22:02:30 -07:00
|
|
|
CONFIG_I2C_DESIGNWARE_PLATFORM=y
|
|
|
|
CONFIG_SPI=y
|
|
|
|
# CONFIG_SPI_MEM is not set
|
|
|
|
CONFIG_SPI_DESIGNWARE=y
|
|
|
|
CONFIG_SPI_DW_MMIO=y
|
|
|
|
# CONFIG_GPIO_CDEV_V1 is not set
|
|
|
|
CONFIG_GPIO_DWAPB=y
|
|
|
|
CONFIG_GPIO_SIFIVE=y
|
|
|
|
CONFIG_POWER_RESET=y
|
|
|
|
CONFIG_POWER_RESET_SYSCON=y
|
|
|
|
# CONFIG_HWMON is not set
|
|
|
|
# CONFIG_USB_SUPPORT is not set
|
|
|
|
CONFIG_MMC=y
|
|
|
|
# CONFIG_PWRSEQ_EMMC is not set
|
|
|
|
# CONFIG_PWRSEQ_SIMPLE is not set
|
|
|
|
CONFIG_MMC_SPI=y
|
|
|
|
CONFIG_NEW_LEDS=y
|
|
|
|
CONFIG_LEDS_CLASS=y
|
|
|
|
CONFIG_LEDS_GPIO=y
|
|
|
|
CONFIG_LEDS_USER=y
|
|
|
|
# CONFIG_VIRTIO_MENU is not set
|
|
|
|
# CONFIG_VHOST_MENU is not set
|
|
|
|
CONFIG_EXT2_FS=y
|
|
|
|
# CONFIG_FILE_LOCKING is not set
|
|
|
|
# CONFIG_DNOTIFY is not set
|
|
|
|
# CONFIG_INOTIFY_USER is not set
|
|
|
|
# CONFIG_MISC_FILESYSTEMS is not set
|
|
|
|
CONFIG_LSM="[]"
|
|
|
|
CONFIG_PRINTK_TIME=y
|
|
|
|
# CONFIG_SYMBOLIC_ERRNAME is not set
|
|
|
|
# CONFIG_DEBUG_BUGVERBOSE is not set
|
|
|
|
# CONFIG_SECTION_MISMATCH_WARN_ONLY is not set
|
|
|
|
# CONFIG_FRAME_POINTER is not set
|
|
|
|
# CONFIG_DEBUG_MISC is not set
|
|
|
|
CONFIG_PANIC_ON_OOPS=y
|
|
|
|
# CONFIG_SCHED_DEBUG is not set
|
|
|
|
# CONFIG_RCU_TRACE is not set
|
|
|
|
# CONFIG_FTRACE is not set
|
|
|
|
# CONFIG_RUNTIME_TESTING_MENU is not set
|