18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ciconfig ARCH_OMAP
38c2ecf20Sopenharmony_ci	bool
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ciif ARCH_OMAP
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_cimenu "TI OMAP Common Features"
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ciconfig ARCH_OMAP_OTG
108c2ecf20Sopenharmony_ci	bool
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_cicomment "OMAP Feature Selections"
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ciconfig OMAP_DEBUG_DEVICES
158c2ecf20Sopenharmony_ci	bool
168c2ecf20Sopenharmony_ci	help
178c2ecf20Sopenharmony_ci	  For debug cards on TI reference boards.
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ciconfig OMAP_DEBUG_LEDS
208c2ecf20Sopenharmony_ci	def_bool y if NEW_LEDS
218c2ecf20Sopenharmony_ci	depends on OMAP_DEBUG_DEVICES
228c2ecf20Sopenharmony_ci	select LEDS_CLASS
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ciconfig POWER_AVS_OMAP
258c2ecf20Sopenharmony_ci	bool "AVS(Adaptive Voltage Scaling) support for OMAP IP versions 1&2"
268c2ecf20Sopenharmony_ci	depends on (ARCH_OMAP3 || ARCH_OMAP4) && PM
278c2ecf20Sopenharmony_ci	select POWER_SUPPLY
288c2ecf20Sopenharmony_ci	help
298c2ecf20Sopenharmony_ci	  Say Y to enable AVS(Adaptive Voltage Scaling)
308c2ecf20Sopenharmony_ci	  support on OMAP containing the version 1 or
318c2ecf20Sopenharmony_ci	  version 2 of the SmartReflex IP.
328c2ecf20Sopenharmony_ci	  V1 is the 65nm version used in OMAP3430.
338c2ecf20Sopenharmony_ci	  V2 is the update for the 45nm version of the IP used in OMAP3630
348c2ecf20Sopenharmony_ci	  and OMAP4430
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci	  Please note, that by default SmartReflex is only
378c2ecf20Sopenharmony_ci	  initialized and not enabled. To enable the automatic voltage
388c2ecf20Sopenharmony_ci	  compensation for vdd mpu and vdd core from user space,
398c2ecf20Sopenharmony_ci	  user must write 1 to
408c2ecf20Sopenharmony_ci		/debug/smartreflex/sr_<X>/autocomp,
418c2ecf20Sopenharmony_ci	  where X is mpu_iva or core for OMAP3.
428c2ecf20Sopenharmony_ci	  Optionally autocompensation can be enabled in the kernel
438c2ecf20Sopenharmony_ci	  by default during system init via the enable_on_init flag
448c2ecf20Sopenharmony_ci	  which an be passed as platform data to the smartreflex driver.
458c2ecf20Sopenharmony_ci
468c2ecf20Sopenharmony_ciconfig POWER_AVS_OMAP_CLASS3
478c2ecf20Sopenharmony_ci	bool "Class 3 mode of Smartreflex Implementation"
488c2ecf20Sopenharmony_ci	depends on POWER_AVS_OMAP && TWL4030_CORE
498c2ecf20Sopenharmony_ci	help
508c2ecf20Sopenharmony_ci	  Say Y to enable Class 3 implementation of Smartreflex
518c2ecf20Sopenharmony_ci
528c2ecf20Sopenharmony_ci	  Class 3 implementation of Smartreflex employs continuous hardware
538c2ecf20Sopenharmony_ci	  voltage calibration.
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ciconfig OMAP_RESET_CLOCKS
568c2ecf20Sopenharmony_ci	bool "Reset unused clocks during boot"
578c2ecf20Sopenharmony_ci	depends on ARCH_OMAP
588c2ecf20Sopenharmony_ci	help
598c2ecf20Sopenharmony_ci	  Say Y if you want to reset unused clocks during boot.
608c2ecf20Sopenharmony_ci	  This option saves power, but assumes all drivers are
618c2ecf20Sopenharmony_ci	  using the clock framework. Broken drivers that do not
628c2ecf20Sopenharmony_ci	  yet use clock framework may not work with this option.
638c2ecf20Sopenharmony_ci	  If you are booting from another operating system, you
648c2ecf20Sopenharmony_ci	  probably do not want this option enabled until your
658c2ecf20Sopenharmony_ci	  device drivers work properly.
668c2ecf20Sopenharmony_ci
678c2ecf20Sopenharmony_ciconfig OMAP_MPU_TIMER
688c2ecf20Sopenharmony_ci	bool "Use mpu timer"
698c2ecf20Sopenharmony_ci	depends on ARCH_OMAP1
708c2ecf20Sopenharmony_ci	help
718c2ecf20Sopenharmony_ci	  Select this option if you want to use the OMAP mpu timer. This
728c2ecf20Sopenharmony_ci	  timer provides more intra-tick resolution than the 32KHz timer,
738c2ecf20Sopenharmony_ci	  but consumes more power.
748c2ecf20Sopenharmony_ci
758c2ecf20Sopenharmony_ciconfig OMAP_32K_TIMER
768c2ecf20Sopenharmony_ci	bool "Use 32KHz timer"
778c2ecf20Sopenharmony_ci	depends on ARCH_OMAP16XX || ARCH_OMAP2PLUS
788c2ecf20Sopenharmony_ci	default y if (ARCH_OMAP16XX || ARCH_OMAP2PLUS)
798c2ecf20Sopenharmony_ci	help
808c2ecf20Sopenharmony_ci	  Select this option if you want to enable the OMAP 32KHz timer.
818c2ecf20Sopenharmony_ci	  This timer saves power compared to the OMAP_MPU_TIMER, and has
828c2ecf20Sopenharmony_ci	  support for no tick during idle. The 32KHz timer provides less
838c2ecf20Sopenharmony_ci	  intra-tick resolution than OMAP_MPU_TIMER. The 32KHz timer is
848c2ecf20Sopenharmony_ci	  currently only available for OMAP16XX, 24XX, 34XX, OMAP4/5 and DRA7XX.
858c2ecf20Sopenharmony_ci
868c2ecf20Sopenharmony_ci	  On OMAP2PLUS this value is only used for CONFIG_HZ and
878c2ecf20Sopenharmony_ci	  CLOCK_TICK_RATE compile time calculation.
888c2ecf20Sopenharmony_ci	  The actual timer selection is done in the board file
898c2ecf20Sopenharmony_ci	  through the (DT_)MACHINE_START structure.
908c2ecf20Sopenharmony_ci
918c2ecf20Sopenharmony_ci
928c2ecf20Sopenharmony_ciconfig OMAP3_L2_AUX_SECURE_SAVE_RESTORE
938c2ecf20Sopenharmony_ci	bool "OMAP3 HS/EMU save and restore for L2 AUX control register"
948c2ecf20Sopenharmony_ci	depends on ARCH_OMAP3 && PM
958c2ecf20Sopenharmony_ci	help
968c2ecf20Sopenharmony_ci	  Without this option, L2 Auxiliary control register contents are
978c2ecf20Sopenharmony_ci	  lost during off-mode entry on HS/EMU devices. This feature
988c2ecf20Sopenharmony_ci	  requires support from PPA / boot-loader in HS/EMU devices, which
998c2ecf20Sopenharmony_ci	  currently does not exist by default.
1008c2ecf20Sopenharmony_ci
1018c2ecf20Sopenharmony_ciconfig OMAP3_L2_AUX_SECURE_SERVICE_SET_ID
1028c2ecf20Sopenharmony_ci	int "Service ID for the support routine to set L2 AUX control"
1038c2ecf20Sopenharmony_ci	depends on OMAP3_L2_AUX_SECURE_SAVE_RESTORE
1048c2ecf20Sopenharmony_ci	default 43
1058c2ecf20Sopenharmony_ci	help
1068c2ecf20Sopenharmony_ci	  PPA routine service ID for setting L2 auxiliary control register.
1078c2ecf20Sopenharmony_ci
1088c2ecf20Sopenharmony_ciconfig OMAP_SERIAL_WAKE
1098c2ecf20Sopenharmony_ci	bool "Enable wake-up events for serial ports"
1108c2ecf20Sopenharmony_ci	depends on ARCH_OMAP1 && OMAP_MUX
1118c2ecf20Sopenharmony_ci	default y
1128c2ecf20Sopenharmony_ci	help
1138c2ecf20Sopenharmony_ci	  Select this option if you want to have your system wake up
1148c2ecf20Sopenharmony_ci	  to data on the serial RX line. This allows you to wake the
1158c2ecf20Sopenharmony_ci	  system from serial console.
1168c2ecf20Sopenharmony_ci
1178c2ecf20Sopenharmony_ciendmenu
1188c2ecf20Sopenharmony_ci
1198c2ecf20Sopenharmony_ciendif
120