Convert CONFIG_SYS_TIMER_COUNTS_DOWN to Kconfig

This converts the following to Kconfig:
   CONFIG_SYS_TIMER_COUNTS_DOWN

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Tom Rini 2022-11-16 13:10:38 -05:00
parent aa6e94deab
commit 3b8dfc42a2
40 changed files with 36 additions and 6 deletions

View File

@ -52,7 +52,6 @@
/* Use common timer */ /* Use common timer */
#ifndef CONFIG_TIMER #ifndef CONFIG_TIMER
#define CONFIG_SYS_TIMER_COUNTS_DOWN
#define CONFIG_SYS_TIMER_COUNTER (MVEBU_TIMER_BASE + 0x14) #define CONFIG_SYS_TIMER_COUNTER (MVEBU_TIMER_BASE + 0x14)
#define CONFIG_SYS_TIMER_RATE CONFIG_SYS_TCLK #define CONFIG_SYS_TIMER_RATE CONFIG_SYS_TCLK
#endif #endif

View File

@ -9,7 +9,6 @@
#include <asm/processor.h> #include <asm/processor.h>
/* Timer */ /* Timer */
#define CONFIG_SYS_TIMER_COUNTS_DOWN
#define CONFIG_SYS_TIMER_COUNTER (TMU_BASE + 0xc) /* TCNT0 */ #define CONFIG_SYS_TIMER_COUNTER (TMU_BASE + 0xc) /* TCNT0 */
#define CONFIG_SYS_TIMER_RATE (get_board_sys_clk() / 4) #define CONFIG_SYS_TIMER_RATE (get_board_sys_clk() / 4)

View File

@ -105,3 +105,4 @@ CONFIG_USB=y
CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_PCI=y CONFIG_USB_EHCI_PCI=y
CONFIG_USB_STORAGE=y CONFIG_USB_STORAGE=y
CONFIG_SYS_TIMER_COUNTS_DOWN=y

View File

@ -93,4 +93,5 @@ CONFIG_ZYNQ_SERIAL=y
# CONFIG_WATCHDOG is not set # CONFIG_WATCHDOG is not set
CONFIG_WDT=y CONFIG_WDT=y
CONFIG_WDT_CDNS=y CONFIG_WDT_CDNS=y
CONFIG_SYS_TIMER_COUNTS_DOWN=y
# CONFIG_EFI_LOADER is not set # CONFIG_EFI_LOADER is not set

View File

@ -81,3 +81,4 @@ CONFIG_USB=y
CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_PCI=y CONFIG_USB_EHCI_PCI=y
CONFIG_USB_STORAGE=y CONFIG_USB_STORAGE=y
CONFIG_SYS_TIMER_COUNTS_DOWN=y

View File

@ -103,3 +103,4 @@ CONFIG_USB=y
CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_PCI=y CONFIG_USB_EHCI_PCI=y
CONFIG_USB_STORAGE=y CONFIG_USB_STORAGE=y
CONFIG_SYS_TIMER_COUNTS_DOWN=y

View File

@ -103,3 +103,4 @@ CONFIG_USB=y
CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_PCI=y CONFIG_USB_EHCI_PCI=y
CONFIG_USB_STORAGE=y CONFIG_USB_STORAGE=y
CONFIG_SYS_TIMER_COUNTS_DOWN=y

View File

@ -105,3 +105,4 @@ CONFIG_USB=y
CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_PCI=y CONFIG_USB_EHCI_PCI=y
CONFIG_USB_STORAGE=y CONFIG_USB_STORAGE=y
CONFIG_SYS_TIMER_COUNTS_DOWN=y

View File

@ -103,3 +103,4 @@ CONFIG_USB=y
CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_PCI=y CONFIG_USB_EHCI_PCI=y
CONFIG_USB_STORAGE=y CONFIG_USB_STORAGE=y
CONFIG_SYS_TIMER_COUNTS_DOWN=y

View File

@ -57,4 +57,5 @@ CONFIG_SPECIFY_CONSOLE_INDEX=y
CONFIG_DM_SERIAL=y CONFIG_DM_SERIAL=y
CONFIG_SERIAL_RX_BUFFER=y CONFIG_SERIAL_RX_BUFFER=y
CONFIG_SCIF_CONSOLE=y CONFIG_SCIF_CONSOLE=y
CONFIG_SYS_TIMER_COUNTS_DOWN=y
CONFIG_USE_PRIVATE_LIBGCC=y CONFIG_USE_PRIVATE_LIBGCC=y

View File

@ -105,3 +105,4 @@ CONFIG_USB=y
CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_PCI=y CONFIG_USB_EHCI_PCI=y
CONFIG_USB_STORAGE=y CONFIG_USB_STORAGE=y
CONFIG_SYS_TIMER_COUNTS_DOWN=y

View File

@ -78,3 +78,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_USB_GADGET_DWC2_OTG=y
CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_USB_GADGET_DOWNLOAD=y
# CONFIG_SPL_WDT is not set # CONFIG_SPL_WDT is not set
CONFIG_SYS_TIMER_COUNTS_DOWN=y

View File

@ -79,3 +79,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_USB_GADGET_DWC2_OTG=y
CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_USB_GADGET_DOWNLOAD=y
# CONFIG_SPL_WDT is not set # CONFIG_SPL_WDT is not set
CONFIG_SYS_TIMER_COUNTS_DOWN=y

View File

@ -82,3 +82,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_USB_GADGET_DWC2_OTG=y
CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_USB_GADGET_DOWNLOAD=y
# CONFIG_SPL_WDT is not set # CONFIG_SPL_WDT is not set
CONFIG_SYS_TIMER_COUNTS_DOWN=y

View File

@ -75,3 +75,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_USB_GADGET_DWC2_OTG=y
CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_USB_GADGET_DOWNLOAD=y
# CONFIG_SPL_WDT is not set # CONFIG_SPL_WDT is not set
CONFIG_SYS_TIMER_COUNTS_DOWN=y

View File

@ -72,3 +72,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_USB_GADGET_DWC2_OTG=y
CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_USB_GADGET_DOWNLOAD=y
# CONFIG_SPL_WDT is not set # CONFIG_SPL_WDT is not set
CONFIG_SYS_TIMER_COUNTS_DOWN=y

View File

@ -72,3 +72,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_USB_GADGET_DWC2_OTG=y
CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_USB_GADGET_DOWNLOAD=y
# CONFIG_SPL_WDT is not set # CONFIG_SPL_WDT is not set
CONFIG_SYS_TIMER_COUNTS_DOWN=y

View File

@ -60,4 +60,5 @@ CONFIG_SPI=y
CONFIG_USB=y CONFIG_USB=y
CONFIG_USB_DWC2=y CONFIG_USB_DWC2=y
# CONFIG_SPL_WDT is not set # CONFIG_SPL_WDT is not set
CONFIG_SYS_TIMER_COUNTS_DOWN=y
# CONFIG_EFI_LOADER is not set # CONFIG_EFI_LOADER is not set

View File

@ -69,3 +69,4 @@ CONFIG_DM_RESET=y
CONFIG_SPI=y CONFIG_SPI=y
CONFIG_CADENCE_QSPI=y CONFIG_CADENCE_QSPI=y
# CONFIG_SPL_WDT is not set # CONFIG_SPL_WDT is not set
CONFIG_SYS_TIMER_COUNTS_DOWN=y

View File

@ -73,3 +73,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_USB_GADGET_DWC2_OTG=y
CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_USB_GADGET_DOWNLOAD=y
# CONFIG_SPL_WDT is not set # CONFIG_SPL_WDT is not set
CONFIG_SYS_TIMER_COUNTS_DOWN=y

View File

@ -112,4 +112,5 @@ CONFIG_DESIGNWARE_SPI=y
CONFIG_WATCHDOG_TIMEOUT_MSECS=60000 CONFIG_WATCHDOG_TIMEOUT_MSECS=60000
CONFIG_DESIGNWARE_WATCHDOG=y CONFIG_DESIGNWARE_WATCHDOG=y
CONFIG_WDT=y CONFIG_WDT=y
CONFIG_SYS_TIMER_COUNTS_DOWN=y
# CONFIG_GZIP is not set # CONFIG_GZIP is not set

View File

@ -79,3 +79,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_USB_GADGET_DWC2_OTG=y
CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_USB_GADGET_DOWNLOAD=y
# CONFIG_SPL_WDT is not set # CONFIG_SPL_WDT is not set
CONFIG_SYS_TIMER_COUNTS_DOWN=y

View File

@ -80,3 +80,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
CONFIG_USB_GADGET_DWC2_OTG=y CONFIG_USB_GADGET_DWC2_OTG=y
CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_USB_GADGET_DOWNLOAD=y
# CONFIG_SPL_WDT is not set # CONFIG_SPL_WDT is not set
CONFIG_SYS_TIMER_COUNTS_DOWN=y

View File

@ -76,3 +76,4 @@ CONFIG_DM_RESET=y
CONFIG_SPI=y CONFIG_SPI=y
CONFIG_CADENCE_QSPI=y CONFIG_CADENCE_QSPI=y
# CONFIG_SPL_WDT is not set # CONFIG_SPL_WDT is not set
CONFIG_SYS_TIMER_COUNTS_DOWN=y

View File

@ -116,3 +116,4 @@ CONFIG_USB_GADGET_DWC2_OTG=y
CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_USB_GADGET_DOWNLOAD=y
CONFIG_DESIGNWARE_WATCHDOG=y CONFIG_DESIGNWARE_WATCHDOG=y
CONFIG_WDT=y CONFIG_WDT=y
CONFIG_SYS_TIMER_COUNTS_DOWN=y

View File

@ -104,3 +104,4 @@ CONFIG_USB=y
CONFIG_USB_EHCI_HCD=y CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_PCI=y CONFIG_USB_EHCI_PCI=y
CONFIG_USB_STORAGE=y CONFIG_USB_STORAGE=y
CONFIG_SYS_TIMER_COUNTS_DOWN=y

View File

@ -78,3 +78,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
CONFIG_CI_UDC=y CONFIG_CI_UDC=y
CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_USB_GADGET_DOWNLOAD=y
CONFIG_USB_FUNCTION_THOR=y CONFIG_USB_FUNCTION_THOR=y
CONFIG_SYS_TIMER_COUNTS_DOWN=y

View File

@ -78,3 +78,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
CONFIG_CI_UDC=y CONFIG_CI_UDC=y
CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_USB_GADGET_DOWNLOAD=y
CONFIG_USB_FUNCTION_THOR=y CONFIG_USB_FUNCTION_THOR=y
CONFIG_SYS_TIMER_COUNTS_DOWN=y

View File

@ -78,3 +78,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
CONFIG_CI_UDC=y CONFIG_CI_UDC=y
CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_USB_GADGET_DOWNLOAD=y
CONFIG_USB_FUNCTION_THOR=y CONFIG_USB_FUNCTION_THOR=y
CONFIG_SYS_TIMER_COUNTS_DOWN=y

View File

@ -78,3 +78,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
CONFIG_CI_UDC=y CONFIG_CI_UDC=y
CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_USB_GADGET_DOWNLOAD=y
CONFIG_USB_FUNCTION_THOR=y CONFIG_USB_FUNCTION_THOR=y
CONFIG_SYS_TIMER_COUNTS_DOWN=y

View File

@ -54,3 +54,4 @@ CONFIG_SMC911X=y
CONFIG_SMC911X_32_BIT=y CONFIG_SMC911X_32_BIT=y
CONFIG_BAUDRATE=38400 CONFIG_BAUDRATE=38400
CONFIG_CONS_INDEX=0 CONFIG_CONS_INDEX=0
CONFIG_SYS_TIMER_COUNTS_DOWN=y

View File

@ -146,6 +146,7 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
CONFIG_CI_UDC=y CONFIG_CI_UDC=y
CONFIG_USB_GADGET_DOWNLOAD=y CONFIG_USB_GADGET_DOWNLOAD=y
CONFIG_USB_FUNCTION_THOR=y CONFIG_USB_FUNCTION_THOR=y
CONFIG_SYS_TIMER_COUNTS_DOWN=y
CONFIG_SPL_GZIP=y CONFIG_SPL_GZIP=y
CONFIG_EFI_RUNTIME_UPDATE_CAPSULE=y CONFIG_EFI_RUNTIME_UPDATE_CAPSULE=y
CONFIG_EFI_CAPSULE_FIRMWARE_RAW=y CONFIG_EFI_CAPSULE_FIRMWARE_RAW=y

View File

@ -78,5 +78,6 @@ CONFIG_MTD_RAW_NAND=y
CONFIG_NAND_ZYNQ=y CONFIG_NAND_ZYNQ=y
CONFIG_SYS_NAND_ONFI_DETECTION=y CONFIG_SYS_NAND_ONFI_DETECTION=y
CONFIG_ARM_DCC=y CONFIG_ARM_DCC=y
CONFIG_SYS_TIMER_COUNTS_DOWN=y
# CONFIG_GZIP is not set # CONFIG_GZIP is not set
# CONFIG_LMB is not set # CONFIG_LMB is not set

View File

@ -80,5 +80,6 @@ CONFIG_SYS_FLASH_USE_BUFFER_WRITE=y
CONFIG_SYS_FLASH_CFI=y CONFIG_SYS_FLASH_CFI=y
CONFIG_SYS_FLASH_QUIET_TEST=y CONFIG_SYS_FLASH_QUIET_TEST=y
CONFIG_ARM_DCC=y CONFIG_ARM_DCC=y
CONFIG_SYS_TIMER_COUNTS_DOWN=y
# CONFIG_GZIP is not set # CONFIG_GZIP is not set
# CONFIG_LMB is not set # CONFIG_LMB is not set

View File

@ -90,5 +90,6 @@ CONFIG_SPI_FLASH_WINBOND=y
# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
CONFIG_ARM_DCC=y CONFIG_ARM_DCC=y
CONFIG_ZYNQ_QSPI=y CONFIG_ZYNQ_QSPI=y
CONFIG_SYS_TIMER_COUNTS_DOWN=y
# CONFIG_GZIP is not set # CONFIG_GZIP is not set
# CONFIG_LMB is not set # CONFIG_LMB is not set

View File

@ -22,7 +22,6 @@
/* Timer */ /* Timer */
#define CONFIG_TMU_TIMER #define CONFIG_TMU_TIMER
#define CONFIG_SYS_TIMER_COUNTS_DOWN
#define CONFIG_SYS_TIMER_COUNTER (TMU_BASE + 0xc) /* TCNT0 */ #define CONFIG_SYS_TIMER_COUNTER (TMU_BASE + 0xc) /* TCNT0 */
#define CONFIG_SYS_TIMER_RATE (get_board_sys_clk() / 8) #define CONFIG_SYS_TIMER_RATE (get_board_sys_clk() / 8)

View File

@ -55,7 +55,6 @@
*/ */
#ifndef CONFIG_TIMER #ifndef CONFIG_TIMER
#define CONFIG_SYS_TIMERBASE SOCFPGA_OSC1TIMER0_ADDRESS #define CONFIG_SYS_TIMERBASE SOCFPGA_OSC1TIMER0_ADDRESS
#define CONFIG_SYS_TIMER_COUNTS_DOWN
#define CONFIG_SYS_TIMER_COUNTER (CONFIG_SYS_TIMERBASE + 0x4) #define CONFIG_SYS_TIMER_COUNTER (CONFIG_SYS_TIMERBASE + 0x4)
#ifndef CONFIG_SYS_TIMER_RATE #ifndef CONFIG_SYS_TIMER_RATE
#define CONFIG_SYS_TIMER_RATE 25000000 #define CONFIG_SYS_TIMER_RATE 25000000

View File

@ -114,7 +114,6 @@
#define CONFIG_SYS_TIMER_RATE 1000000 #define CONFIG_SYS_TIMER_RATE 1000000
#define CONFIG_SYS_TIMER_COUNTER (V2M_TIMER01 + 0x4) #define CONFIG_SYS_TIMER_COUNTER (V2M_TIMER01 + 0x4)
#define CONFIG_SYS_TIMER_COUNTS_DOWN
/* PL011 Serial Configuration */ /* PL011 Serial Configuration */
#define CONFIG_PL011_CLOCK 24000000 #define CONFIG_PL011_CLOCK 24000000

View File

@ -16,7 +16,6 @@
#define ZYNQ_SCUTIMER_BASEADDR 0xF8F00600 #define ZYNQ_SCUTIMER_BASEADDR 0xF8F00600
#define CONFIG_SYS_TIMERBASE ZYNQ_SCUTIMER_BASEADDR #define CONFIG_SYS_TIMERBASE ZYNQ_SCUTIMER_BASEADDR
#define CONFIG_SYS_TIMER_COUNTS_DOWN
#define CONFIG_SYS_TIMER_COUNTER (CONFIG_SYS_TIMERBASE + 0x4) #define CONFIG_SYS_TIMER_COUNTER (CONFIG_SYS_TIMERBASE + 0x4)
/* GUIDs for capsule updatable firmware images */ /* GUIDs for capsule updatable firmware images */

View File

@ -15,6 +15,9 @@ config SYS_NUM_ADDR_MAP
help help
Sets the number of entries in the virtual-physical mapping table. Sets the number of entries in the virtual-physical mapping table.
config SYS_TIMER_COUNTS_DOWN
bool "System timer counts down rathe than up"
config PHYSMEM config PHYSMEM
bool "Access to physical memory region (> 4G)" bool "Access to physical memory region (> 4G)"
help help