18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci#
38c2ecf20Sopenharmony_ci# For a description of the syntax of this configuration file,
48c2ecf20Sopenharmony_ci# see Documentation/kbuild/kconfig-language.rst.
58c2ecf20Sopenharmony_ci#
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ciconfig C6X
88c2ecf20Sopenharmony_ci	def_bool y
98c2ecf20Sopenharmony_ci	select ARCH_32BIT_OFF_T
108c2ecf20Sopenharmony_ci	select ARCH_HAS_BINFMT_FLAT
118c2ecf20Sopenharmony_ci	select ARCH_HAS_SYNC_DMA_FOR_CPU
128c2ecf20Sopenharmony_ci	select ARCH_HAS_SYNC_DMA_FOR_DEVICE
138c2ecf20Sopenharmony_ci	select CLKDEV_LOOKUP
148c2ecf20Sopenharmony_ci	select HAVE_LEGACY_CLK
158c2ecf20Sopenharmony_ci	select GENERIC_ATOMIC64
168c2ecf20Sopenharmony_ci	select GENERIC_IRQ_SHOW
178c2ecf20Sopenharmony_ci	select HAVE_ARCH_TRACEHOOK
188c2ecf20Sopenharmony_ci	select SPARSE_IRQ
198c2ecf20Sopenharmony_ci	select IRQ_DOMAIN
208c2ecf20Sopenharmony_ci	select OF
218c2ecf20Sopenharmony_ci	select OF_EARLY_FLATTREE
228c2ecf20Sopenharmony_ci	select GENERIC_CLOCKEVENTS
238c2ecf20Sopenharmony_ci	select MODULES_USE_ELF_RELA
248c2ecf20Sopenharmony_ci	select MMU_GATHER_NO_RANGE if MMU
258c2ecf20Sopenharmony_ci	select SET_FS
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_ciconfig MMU
288c2ecf20Sopenharmony_ci	def_bool n
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ciconfig FPU
318c2ecf20Sopenharmony_ci	def_bool n
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ciconfig GENERIC_CALIBRATE_DELAY
348c2ecf20Sopenharmony_ci	def_bool y
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ciconfig GENERIC_HWEIGHT
378c2ecf20Sopenharmony_ci	def_bool y
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ciconfig GENERIC_BUG
408c2ecf20Sopenharmony_ci	def_bool y
418c2ecf20Sopenharmony_ci	depends on BUG
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ciconfig C6X_BIG_KERNEL
448c2ecf20Sopenharmony_ci	bool "Build a big kernel"
458c2ecf20Sopenharmony_ci	help
468c2ecf20Sopenharmony_ci	  The C6X function call instruction has a limited range of +/- 2MiB.
478c2ecf20Sopenharmony_ci	  This is sufficient for most kernels, but some kernel configurations
488c2ecf20Sopenharmony_ci	  with lots of compiled-in functionality may require a larger range
498c2ecf20Sopenharmony_ci	  for function calls. Use this option to have the compiler generate
508c2ecf20Sopenharmony_ci	  function calls with 32-bit range. This will make the kernel both
518c2ecf20Sopenharmony_ci	  larger and slower.
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_ci	  If unsure, say N.
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ci# Use the generic interrupt handling code in kernel/irq/
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_ciconfig CMDLINE_BOOL
588c2ecf20Sopenharmony_ci	bool "Default bootloader kernel arguments"
598c2ecf20Sopenharmony_ci
608c2ecf20Sopenharmony_ciconfig CMDLINE
618c2ecf20Sopenharmony_ci	string "Kernel command line"
628c2ecf20Sopenharmony_ci	depends on CMDLINE_BOOL
638c2ecf20Sopenharmony_ci	default "console=ttyS0,57600"
648c2ecf20Sopenharmony_ci	help
658c2ecf20Sopenharmony_ci	  On some architectures there is currently no way for the boot loader
668c2ecf20Sopenharmony_ci	  to pass arguments to the kernel. For these architectures, you should
678c2ecf20Sopenharmony_ci	  supply some command-line options at build time by entering them
688c2ecf20Sopenharmony_ci	  here.
698c2ecf20Sopenharmony_ci
708c2ecf20Sopenharmony_ciconfig CMDLINE_FORCE
718c2ecf20Sopenharmony_ci	bool "Force default kernel command string"
728c2ecf20Sopenharmony_ci	depends on CMDLINE_BOOL
738c2ecf20Sopenharmony_ci	default n
748c2ecf20Sopenharmony_ci	help
758c2ecf20Sopenharmony_ci	  Set this to have arguments from the default kernel command string
768c2ecf20Sopenharmony_ci	  override those passed by the boot loader.
778c2ecf20Sopenharmony_ci
788c2ecf20Sopenharmony_ciconfig CPU_BIG_ENDIAN
798c2ecf20Sopenharmony_ci	bool "Build big-endian kernel"
808c2ecf20Sopenharmony_ci	default n
818c2ecf20Sopenharmony_ci	help
828c2ecf20Sopenharmony_ci	  Say Y if you plan on running a kernel in big-endian mode.
838c2ecf20Sopenharmony_ci	  Note that your board must be properly built and your board
848c2ecf20Sopenharmony_ci	  port must properly enable any big-endian related features
858c2ecf20Sopenharmony_ci	  of your chipset/board/processor.
868c2ecf20Sopenharmony_ci
878c2ecf20Sopenharmony_ciconfig FORCE_MAX_ZONEORDER
888c2ecf20Sopenharmony_ci	int "Maximum zone order"
898c2ecf20Sopenharmony_ci	default "13"
908c2ecf20Sopenharmony_ci	help
918c2ecf20Sopenharmony_ci	  The kernel memory allocator divides physically contiguous memory
928c2ecf20Sopenharmony_ci	  blocks into "zones", where each zone is a power of two number of
938c2ecf20Sopenharmony_ci	  pages.  This option selects the largest power of two that the kernel
948c2ecf20Sopenharmony_ci	  keeps in the memory allocator.  If you need to allocate very large
958c2ecf20Sopenharmony_ci	  blocks of physically contiguous memory, then you may need to
968c2ecf20Sopenharmony_ci	  increase this value.
978c2ecf20Sopenharmony_ci
988c2ecf20Sopenharmony_ci	  This config option is actually maximum order plus one. For example,
998c2ecf20Sopenharmony_ci	  a value of 11 means that the largest free memory block is 2^10 pages.
1008c2ecf20Sopenharmony_ci
1018c2ecf20Sopenharmony_cimenu "Processor type and features"
1028c2ecf20Sopenharmony_ci
1038c2ecf20Sopenharmony_cisource "arch/c6x/platforms/Kconfig"
1048c2ecf20Sopenharmony_ci
1058c2ecf20Sopenharmony_ciconfig KERNEL_RAM_BASE_ADDRESS
1068c2ecf20Sopenharmony_ci	hex "Virtual address of memory base"
1078c2ecf20Sopenharmony_ci	default 0xe0000000 if SOC_TMS320C6455
1088c2ecf20Sopenharmony_ci	default 0xe0000000 if SOC_TMS320C6457
1098c2ecf20Sopenharmony_ci	default 0xe0000000 if SOC_TMS320C6472
1108c2ecf20Sopenharmony_ci	default 0x80000000
1118c2ecf20Sopenharmony_ci
1128c2ecf20Sopenharmony_cisource "kernel/Kconfig.hz"
1138c2ecf20Sopenharmony_ci
1148c2ecf20Sopenharmony_ciendmenu
115