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:
parent
aa6e94deab
commit
3b8dfc42a2
@ -52,7 +52,6 @@
|
||||
|
||||
/* Use common timer */
|
||||
#ifndef CONFIG_TIMER
|
||||
#define CONFIG_SYS_TIMER_COUNTS_DOWN
|
||||
#define CONFIG_SYS_TIMER_COUNTER (MVEBU_TIMER_BASE + 0x14)
|
||||
#define CONFIG_SYS_TIMER_RATE CONFIG_SYS_TCLK
|
||||
#endif
|
||||
|
@ -9,7 +9,6 @@
|
||||
#include <asm/processor.h>
|
||||
|
||||
/* Timer */
|
||||
#define CONFIG_SYS_TIMER_COUNTS_DOWN
|
||||
#define CONFIG_SYS_TIMER_COUNTER (TMU_BASE + 0xc) /* TCNT0 */
|
||||
#define CONFIG_SYS_TIMER_RATE (get_board_sys_clk() / 4)
|
||||
|
||||
|
@ -105,3 +105,4 @@ CONFIG_USB=y
|
||||
CONFIG_USB_EHCI_HCD=y
|
||||
CONFIG_USB_EHCI_PCI=y
|
||||
CONFIG_USB_STORAGE=y
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
|
@ -93,4 +93,5 @@ CONFIG_ZYNQ_SERIAL=y
|
||||
# CONFIG_WATCHDOG is not set
|
||||
CONFIG_WDT=y
|
||||
CONFIG_WDT_CDNS=y
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
# CONFIG_EFI_LOADER is not set
|
||||
|
@ -81,3 +81,4 @@ CONFIG_USB=y
|
||||
CONFIG_USB_EHCI_HCD=y
|
||||
CONFIG_USB_EHCI_PCI=y
|
||||
CONFIG_USB_STORAGE=y
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
|
@ -103,3 +103,4 @@ CONFIG_USB=y
|
||||
CONFIG_USB_EHCI_HCD=y
|
||||
CONFIG_USB_EHCI_PCI=y
|
||||
CONFIG_USB_STORAGE=y
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
|
@ -103,3 +103,4 @@ CONFIG_USB=y
|
||||
CONFIG_USB_EHCI_HCD=y
|
||||
CONFIG_USB_EHCI_PCI=y
|
||||
CONFIG_USB_STORAGE=y
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
|
@ -105,3 +105,4 @@ CONFIG_USB=y
|
||||
CONFIG_USB_EHCI_HCD=y
|
||||
CONFIG_USB_EHCI_PCI=y
|
||||
CONFIG_USB_STORAGE=y
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
|
@ -103,3 +103,4 @@ CONFIG_USB=y
|
||||
CONFIG_USB_EHCI_HCD=y
|
||||
CONFIG_USB_EHCI_PCI=y
|
||||
CONFIG_USB_STORAGE=y
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
|
@ -57,4 +57,5 @@ CONFIG_SPECIFY_CONSOLE_INDEX=y
|
||||
CONFIG_DM_SERIAL=y
|
||||
CONFIG_SERIAL_RX_BUFFER=y
|
||||
CONFIG_SCIF_CONSOLE=y
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
CONFIG_USE_PRIVATE_LIBGCC=y
|
||||
|
@ -105,3 +105,4 @@ CONFIG_USB=y
|
||||
CONFIG_USB_EHCI_HCD=y
|
||||
CONFIG_USB_EHCI_PCI=y
|
||||
CONFIG_USB_STORAGE=y
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
|
@ -78,3 +78,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
|
||||
CONFIG_USB_GADGET_DWC2_OTG=y
|
||||
CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
# CONFIG_SPL_WDT is not set
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
|
@ -79,3 +79,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
|
||||
CONFIG_USB_GADGET_DWC2_OTG=y
|
||||
CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
# CONFIG_SPL_WDT is not set
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
|
@ -82,3 +82,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
|
||||
CONFIG_USB_GADGET_DWC2_OTG=y
|
||||
CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
# CONFIG_SPL_WDT is not set
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
|
@ -75,3 +75,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
|
||||
CONFIG_USB_GADGET_DWC2_OTG=y
|
||||
CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
# CONFIG_SPL_WDT is not set
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
|
@ -72,3 +72,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
|
||||
CONFIG_USB_GADGET_DWC2_OTG=y
|
||||
CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
# CONFIG_SPL_WDT is not set
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
|
@ -72,3 +72,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
|
||||
CONFIG_USB_GADGET_DWC2_OTG=y
|
||||
CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
# CONFIG_SPL_WDT is not set
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
|
@ -60,4 +60,5 @@ CONFIG_SPI=y
|
||||
CONFIG_USB=y
|
||||
CONFIG_USB_DWC2=y
|
||||
# CONFIG_SPL_WDT is not set
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
# CONFIG_EFI_LOADER is not set
|
||||
|
@ -69,3 +69,4 @@ CONFIG_DM_RESET=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_CADENCE_QSPI=y
|
||||
# CONFIG_SPL_WDT is not set
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
|
@ -73,3 +73,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
|
||||
CONFIG_USB_GADGET_DWC2_OTG=y
|
||||
CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
# CONFIG_SPL_WDT is not set
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
|
@ -112,4 +112,5 @@ CONFIG_DESIGNWARE_SPI=y
|
||||
CONFIG_WATCHDOG_TIMEOUT_MSECS=60000
|
||||
CONFIG_DESIGNWARE_WATCHDOG=y
|
||||
CONFIG_WDT=y
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
# CONFIG_GZIP is not set
|
||||
|
@ -79,3 +79,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
|
||||
CONFIG_USB_GADGET_DWC2_OTG=y
|
||||
CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
# CONFIG_SPL_WDT is not set
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
|
@ -80,3 +80,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
|
||||
CONFIG_USB_GADGET_DWC2_OTG=y
|
||||
CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
# CONFIG_SPL_WDT is not set
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
|
@ -76,3 +76,4 @@ CONFIG_DM_RESET=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_CADENCE_QSPI=y
|
||||
# CONFIG_SPL_WDT is not set
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
|
@ -116,3 +116,4 @@ CONFIG_USB_GADGET_DWC2_OTG=y
|
||||
CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
CONFIG_DESIGNWARE_WATCHDOG=y
|
||||
CONFIG_WDT=y
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
|
@ -104,3 +104,4 @@ CONFIG_USB=y
|
||||
CONFIG_USB_EHCI_HCD=y
|
||||
CONFIG_USB_EHCI_PCI=y
|
||||
CONFIG_USB_STORAGE=y
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
|
@ -78,3 +78,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
|
||||
CONFIG_CI_UDC=y
|
||||
CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
CONFIG_USB_FUNCTION_THOR=y
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
|
@ -78,3 +78,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
|
||||
CONFIG_CI_UDC=y
|
||||
CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
CONFIG_USB_FUNCTION_THOR=y
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
|
@ -78,3 +78,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
|
||||
CONFIG_CI_UDC=y
|
||||
CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
CONFIG_USB_FUNCTION_THOR=y
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
|
@ -78,3 +78,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
|
||||
CONFIG_CI_UDC=y
|
||||
CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
CONFIG_USB_FUNCTION_THOR=y
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
|
@ -54,3 +54,4 @@ CONFIG_SMC911X=y
|
||||
CONFIG_SMC911X_32_BIT=y
|
||||
CONFIG_BAUDRATE=38400
|
||||
CONFIG_CONS_INDEX=0
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
|
@ -146,6 +146,7 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x0300
|
||||
CONFIG_CI_UDC=y
|
||||
CONFIG_USB_GADGET_DOWNLOAD=y
|
||||
CONFIG_USB_FUNCTION_THOR=y
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
CONFIG_SPL_GZIP=y
|
||||
CONFIG_EFI_RUNTIME_UPDATE_CAPSULE=y
|
||||
CONFIG_EFI_CAPSULE_FIRMWARE_RAW=y
|
||||
|
@ -78,5 +78,6 @@ CONFIG_MTD_RAW_NAND=y
|
||||
CONFIG_NAND_ZYNQ=y
|
||||
CONFIG_SYS_NAND_ONFI_DETECTION=y
|
||||
CONFIG_ARM_DCC=y
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
# CONFIG_GZIP is not set
|
||||
# CONFIG_LMB is not set
|
||||
|
@ -80,5 +80,6 @@ CONFIG_SYS_FLASH_USE_BUFFER_WRITE=y
|
||||
CONFIG_SYS_FLASH_CFI=y
|
||||
CONFIG_SYS_FLASH_QUIET_TEST=y
|
||||
CONFIG_ARM_DCC=y
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
# CONFIG_GZIP is not set
|
||||
# CONFIG_LMB is not set
|
||||
|
@ -90,5 +90,6 @@ CONFIG_SPI_FLASH_WINBOND=y
|
||||
# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
|
||||
CONFIG_ARM_DCC=y
|
||||
CONFIG_ZYNQ_QSPI=y
|
||||
CONFIG_SYS_TIMER_COUNTS_DOWN=y
|
||||
# CONFIG_GZIP is not set
|
||||
# CONFIG_LMB is not set
|
||||
|
@ -22,7 +22,6 @@
|
||||
|
||||
/* Timer */
|
||||
#define CONFIG_TMU_TIMER
|
||||
#define CONFIG_SYS_TIMER_COUNTS_DOWN
|
||||
#define CONFIG_SYS_TIMER_COUNTER (TMU_BASE + 0xc) /* TCNT0 */
|
||||
#define CONFIG_SYS_TIMER_RATE (get_board_sys_clk() / 8)
|
||||
|
||||
|
@ -55,7 +55,6 @@
|
||||
*/
|
||||
#ifndef CONFIG_TIMER
|
||||
#define CONFIG_SYS_TIMERBASE SOCFPGA_OSC1TIMER0_ADDRESS
|
||||
#define CONFIG_SYS_TIMER_COUNTS_DOWN
|
||||
#define CONFIG_SYS_TIMER_COUNTER (CONFIG_SYS_TIMERBASE + 0x4)
|
||||
#ifndef CONFIG_SYS_TIMER_RATE
|
||||
#define CONFIG_SYS_TIMER_RATE 25000000
|
||||
|
@ -114,7 +114,6 @@
|
||||
|
||||
#define CONFIG_SYS_TIMER_RATE 1000000
|
||||
#define CONFIG_SYS_TIMER_COUNTER (V2M_TIMER01 + 0x4)
|
||||
#define CONFIG_SYS_TIMER_COUNTS_DOWN
|
||||
|
||||
/* PL011 Serial Configuration */
|
||||
#define CONFIG_PL011_CLOCK 24000000
|
||||
|
@ -16,7 +16,6 @@
|
||||
|
||||
#define ZYNQ_SCUTIMER_BASEADDR 0xF8F00600
|
||||
#define CONFIG_SYS_TIMERBASE ZYNQ_SCUTIMER_BASEADDR
|
||||
#define CONFIG_SYS_TIMER_COUNTS_DOWN
|
||||
#define CONFIG_SYS_TIMER_COUNTER (CONFIG_SYS_TIMERBASE + 0x4)
|
||||
|
||||
/* GUIDs for capsule updatable firmware images */
|
||||
|
@ -15,6 +15,9 @@ config SYS_NUM_ADDR_MAP
|
||||
help
|
||||
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
|
||||
bool "Access to physical memory region (> 4G)"
|
||||
help
|
||||
|
Loading…
Reference in New Issue
Block a user