]> git.baikalelectronics.ru Git - uboot.git/commitdiff
timers: atmel_tcb: introduce CONFIG_SPL_ATMEL_TCB
authorEugen Hristev <eugen.hristev@microchip.com>
Mon, 4 Apr 2022 08:35:50 +0000 (11:35 +0300)
committerEugen Hristev <eugen.hristev@microchip.com>
Tue, 26 Apr 2022 06:53:49 +0000 (09:53 +0300)
This commit allows the ATMEL_TCB driver to be unselected in SPL and be
selected in u-boot proper. The SPL can use a different timer.
By having a separate Kconfig for ATMEL_TCB in SPL, the size of the SPL
decreases by 1 KByte.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
configs/sama5d2_icp_mmc_defconfig
configs/sama5d2_xplained_emmc_defconfig
configs/sama5d2_xplained_mmc_defconfig
configs/sama5d2_xplained_qspiflash_defconfig
configs/sama5d2_xplained_spiflash_defconfig
drivers/timer/Kconfig
drivers/timer/Makefile

index e839d1710a7a959cc78dddae34a091eb746f8f9d..37f2798608bd9ac24f77681f0e267bc36dc9c743 100644 (file)
@@ -86,5 +86,6 @@ CONFIG_SYSRESET_CMD_RESET=y
 CONFIG_SYSRESET_AT91=y
 CONFIG_SPL_TIMER=y
 CONFIG_ATMEL_TCB_TIMER=y
+CONFIG_SPL_ATMEL_TCB_TIMER=y
 CONFIG_OF_LIBFDT_OVERLAY=y
 # CONFIG_EFI_LOADER_HII is not set
index 478a3cfc8ba98ff8363a4f6b1fb3073feaf50017..06b337ef8bdaf4d6f6cd2b67e1f82ed7d0153ff7 100644 (file)
@@ -94,6 +94,7 @@ CONFIG_SYSRESET_CMD_RESET=y
 CONFIG_SYSRESET_AT91=y
 CONFIG_SPL_TIMER=y
 CONFIG_ATMEL_TCB_TIMER=y
+CONFIG_SPL_ATMEL_TCB_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
index 071758fe00b5ef461b5399e0e788166337c7fd3a..871ade2135a50854edbfee93532bfbd12a52b50c 100644 (file)
@@ -96,6 +96,7 @@ CONFIG_SYSRESET_CMD_RESET=y
 CONFIG_SYSRESET_AT91=y
 CONFIG_SPL_TIMER=y
 CONFIG_ATMEL_TCB_TIMER=y
+CONFIG_SPL_ATMEL_TCB_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
index bf7368b512b5b0f4d96e9432b4e66966e48af5ad..59f62c51d77ec36c039d63ff46f352f8db7b6161 100644 (file)
@@ -96,6 +96,7 @@ CONFIG_SYSRESET_CMD_RESET=y
 CONFIG_SYSRESET_AT91=y
 CONFIG_SPL_TIMER=y
 CONFIG_ATMEL_TCB_TIMER=y
+CONFIG_SPL_ATMEL_TCB_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
index e1d01b43fa5487651149e6c824c17bd82a4e6d0d..ec2091d1b0c66acad001958c7e49f6b717f606ff 100644 (file)
@@ -100,6 +100,7 @@ CONFIG_SYSRESET_CMD_RESET=y
 CONFIG_SYSRESET_AT91=y
 CONFIG_SPL_TIMER=y
 CONFIG_ATMEL_TCB_TIMER=y
+CONFIG_SPL_ATMEL_TCB_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
index 672746a181640a7445ae783fa2273206316aabdf..68e90b8660b293c7224e0af97d542e2f05e9fb43 100644 (file)
@@ -98,6 +98,14 @@ config ATMEL_TCB_TIMER
          Select this to enable the use of the timer counter as a monotonic
          counter.
 
+config SPL_ATMEL_TCB_TIMER
+       bool "Atmel timer counter support in SPL"
+       depends on SPL_TIMER
+       depends on ARCH_AT91
+       help
+         Select this to enable the use of the timer counter as a monotonic
+         counter in SPL.
+
 config CADENCE_TTC_TIMER
        bool "Cadence TTC (Triple Timer Counter)"
        depends on TIMER
index 17f9f1d04414ab1fa3ffbfd05e567101dda7801f..ae01a258e3d8dab31b6e50eccad95a675a167773 100644 (file)
@@ -8,7 +8,7 @@ obj-$(CONFIG_ANDES_PLMT_TIMER) += andes_plmt_timer.o
 obj-$(CONFIG_ARC_TIMER)        += arc_timer.o
 obj-$(CONFIG_AST_TIMER)        += ast_timer.o
 obj-$(CONFIG_ATMEL_PIT_TIMER) += atmel_pit_timer.o
-obj-$(CONFIG_ATMEL_TCB_TIMER) += atmel_tcb_timer.o
+obj-$(CONFIG_$(SPL_)ATMEL_TCB_TIMER) += atmel_tcb_timer.o
 obj-$(CONFIG_CADENCE_TTC_TIMER)        += cadence-ttc.o
 obj-$(CONFIG_DESIGNWARE_APB_TIMER)     += dw-apb-timer.o
 obj-$(CONFIG_MPC83XX_TIMER) += mpc83xx_timer.o