]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
timers: atmel_pit: introduce CONFIG_SPL_ATMEL_PIT_TIMER
authorEugen Hristev <eugen.hristev@microchip.com>
Mon, 4 Apr 2022 08:35:51 +0000 (11:35 +0300)
committerEugen Hristev <eugen.hristev@microchip.com>
Tue, 26 Apr 2022 06:54:41 +0000 (09:54 +0300)
This commit allows the ATMEL_PIT_TIMER 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 0.3 KBytes.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
20 files changed:
configs/gardena-smart-gateway-at91sam_defconfig
configs/sama5d27_giantboard_defconfig
configs/sama5d27_som1_ek_mmc1_defconfig
configs/sama5d27_som1_ek_mmc_defconfig
configs/sama5d27_som1_ek_qspiflash_defconfig
configs/sama5d27_wlsom1_ek_mmc_defconfig
configs/sama5d27_wlsom1_ek_qspiflash_defconfig
configs/sama5d3_xplained_mmc_defconfig
configs/sama5d3_xplained_nandflash_defconfig
configs/sama5d3xek_mmc_defconfig
configs/sama5d3xek_nandflash_defconfig
configs/sama5d3xek_spiflash_defconfig
configs/sama5d4_xplained_mmc_defconfig
configs/sama5d4_xplained_nandflash_defconfig
configs/sama5d4_xplained_spiflash_defconfig
configs/sama5d4ek_mmc_defconfig
configs/sama5d4ek_nandflash_defconfig
configs/sama5d4ek_spiflash_defconfig
drivers/timer/Kconfig
drivers/timer/Makefile

index 9c000d10b2f323ba34a682c69b1a425f03d8a8f2..dd61b834a92711132c09ea4ff5f974786594818e 100644 (file)
@@ -101,6 +101,7 @@ CONFIG_ATMEL_USART=y
 CONFIG_TIMER=y
 CONFIG_SPL_TIMER=y
 CONFIG_ATMEL_PIT_TIMER=y
+CONFIG_SPL_ATMEL_PIT_TIMER=y
 # CONFIG_SYS_WHITE_ON_BLACK is not set
 CONFIG_WDT=y
 CONFIG_WDT_AT91=y
index 83646853a2ac2fd3145e3ecea694ec40a33c6e29..4855e0f072df60f38b048d5184ea4b7b301ed10a 100644 (file)
@@ -77,6 +77,7 @@ CONFIG_DM_SPI=y
 CONFIG_TIMER=y
 CONFIG_SPL_TIMER=y
 CONFIG_ATMEL_PIT_TIMER=y
+CONFIG_SPL_ATMEL_PIT_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
index cee060b916654a5a33c1350fadffe8e670d9ec0e..d0ff6a901264b8f1dc0fc0c799f2eb7ae4c0488e 100644 (file)
@@ -95,6 +95,7 @@ CONFIG_SYSRESET_CMD_RESET=y
 CONFIG_SYSRESET_AT91=y
 CONFIG_SPL_TIMER=y
 CONFIG_ATMEL_PIT_TIMER=y
+CONFIG_SPL_ATMEL_PIT_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
index 3a7b338deba45364f9384c0330ce628e125bea64..8096ec7b61dfe410e8d216ac8924dcf4e623a3fb 100644 (file)
@@ -95,6 +95,7 @@ CONFIG_SYSRESET_CMD_RESET=y
 CONFIG_SYSRESET_AT91=y
 CONFIG_SPL_TIMER=y
 CONFIG_ATMEL_PIT_TIMER=y
+CONFIG_SPL_ATMEL_PIT_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
index acc0dc116e19893227e972303fcc825f0aead11a..e0b11e91981e5fe37f4fc4fe4eeca4d3c73a1afe 100644 (file)
@@ -94,6 +94,7 @@ CONFIG_SYSRESET_CMD_RESET=y
 CONFIG_SYSRESET_AT91=y
 CONFIG_SPL_TIMER=y
 CONFIG_ATMEL_PIT_TIMER=y
+CONFIG_SPL_ATMEL_PIT_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
index d86974341b71f3abfc48400626951fc993165991..a0e37fa74d87d1f0286a7b31f390feba119d5a0a 100644 (file)
@@ -100,6 +100,7 @@ CONFIG_SYSRESET_CMD_RESET=y
 CONFIG_SYSRESET_AT91=y
 CONFIG_SPL_TIMER=y
 CONFIG_ATMEL_PIT_TIMER=y
+CONFIG_SPL_ATMEL_PIT_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
index c029fd51927aade50cb02f2a6aaa8ac78522ecd8..8acb8f22421cd3b25641b3f79b17a3111d4234ef 100644 (file)
@@ -104,6 +104,7 @@ CONFIG_SYSRESET_CMD_RESET=y
 CONFIG_SYSRESET_AT91=y
 CONFIG_SPL_TIMER=y
 CONFIG_ATMEL_PIT_TIMER=y
+CONFIG_SPL_ATMEL_PIT_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
index 04d6214817108ddc03eca077a48dbe6b61549ab5..ff74988f46f46f2279c2c11821348b015d3e3df0 100644 (file)
@@ -90,6 +90,7 @@ CONFIG_SYSRESET_CMD_RESET=y
 CONFIG_SYSRESET_AT91=y
 CONFIG_SPL_TIMER=y
 CONFIG_ATMEL_PIT_TIMER=y
+CONFIG_SPL_ATMEL_PIT_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
index 9a1a6376fd751b91590ee5492f0081fd6f124988..ba7ffd47d7b140f1b13f2ca60b5d993967447102 100644 (file)
@@ -93,6 +93,7 @@ CONFIG_SYSRESET_CMD_RESET=y
 CONFIG_SYSRESET_AT91=y
 CONFIG_SPL_TIMER=y
 CONFIG_ATMEL_PIT_TIMER=y
+CONFIG_SPL_ATMEL_PIT_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
index 71c2caec38ec740ca3034c5e786aa74239695a39..4c8294252cd478ef69ca30e9de7e6fc6d85671c2 100644 (file)
@@ -98,6 +98,7 @@ CONFIG_SYSRESET_CMD_RESET=y
 CONFIG_SYSRESET_AT91=y
 CONFIG_SPL_TIMER=y
 CONFIG_ATMEL_PIT_TIMER=y
+CONFIG_SPL_ATMEL_PIT_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
index dd7713a8a9fcf3063385d33630a57a1a0dd25f18..977eafd5c3720d7d234d02268a566b588e607d9f 100644 (file)
@@ -100,6 +100,7 @@ CONFIG_SYSRESET_CMD_RESET=y
 CONFIG_SYSRESET_AT91=y
 CONFIG_SPL_TIMER=y
 CONFIG_ATMEL_PIT_TIMER=y
+CONFIG_SPL_ATMEL_PIT_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
index 838cff6d2d6c221f1610c68a7d2c1513f353eba1..f2c5576c2251ace61f6d1cd581d484e6ef5b8666 100644 (file)
@@ -99,6 +99,7 @@ CONFIG_SYSRESET_CMD_RESET=y
 CONFIG_SYSRESET_AT91=y
 CONFIG_SPL_TIMER=y
 CONFIG_ATMEL_PIT_TIMER=y
+CONFIG_SPL_ATMEL_PIT_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
index 060beb75d0878fdd5c07dd0b9b4cb8abb180fb5d..d147c3e0c35b3efcfea6451970a8e606484537c7 100644 (file)
@@ -91,6 +91,7 @@ CONFIG_SYSRESET_CMD_RESET=y
 CONFIG_SYSRESET_AT91=y
 CONFIG_SPL_TIMER=y
 CONFIG_ATMEL_PIT_TIMER=y
+CONFIG_SPL_ATMEL_PIT_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
index ac662c95f762657448757928bfec9a031a6c1b96..8db8ee36d5b41efa67fd8839b20d4453814fbcd3 100644 (file)
@@ -95,6 +95,7 @@ CONFIG_SYSRESET_CMD_RESET=y
 CONFIG_SYSRESET_AT91=y
 CONFIG_SPL_TIMER=y
 CONFIG_ATMEL_PIT_TIMER=y
+CONFIG_SPL_ATMEL_PIT_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
index 6035105d0277b142a924e777a710732d3a9e7100..0407f7d576aa9855abdd7d094c9d4e1ee5877e4b 100644 (file)
@@ -97,6 +97,7 @@ CONFIG_SYSRESET_CMD_RESET=y
 CONFIG_SYSRESET_AT91=y
 CONFIG_SPL_TIMER=y
 CONFIG_ATMEL_PIT_TIMER=y
+CONFIG_SPL_ATMEL_PIT_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
index 02a3955cc0944777dc74c2516b51d2a088489b1d..d143569c96fbc660da3cb53f1a590e60ed6579ef 100644 (file)
@@ -89,6 +89,7 @@ CONFIG_SYSRESET_CMD_RESET=y
 CONFIG_SYSRESET_AT91=y
 CONFIG_SPL_TIMER=y
 CONFIG_ATMEL_PIT_TIMER=y
+CONFIG_SPL_ATMEL_PIT_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
index e76fe59c90b6b211b2359c9ba31c25db5716c776..3a037b93b909aa271b6e8124281096bd1ed31861 100644 (file)
@@ -93,6 +93,7 @@ CONFIG_SYSRESET_CMD_RESET=y
 CONFIG_SYSRESET_AT91=y
 CONFIG_SPL_TIMER=y
 CONFIG_ATMEL_PIT_TIMER=y
+CONFIG_SPL_ATMEL_PIT_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
index 4472b66ab053b8b113a8f3e22a7a87779f066abc..fb4c58c43413c471931f06282d75ff0f3b8a1118 100644 (file)
@@ -92,6 +92,7 @@ CONFIG_SYSRESET_CMD_RESET=y
 CONFIG_SYSRESET_AT91=y
 CONFIG_SPL_TIMER=y
 CONFIG_ATMEL_PIT_TIMER=y
+CONFIG_SPL_ATMEL_PIT_TIMER=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_STORAGE=y
index 68e90b8660b293c7224e0af97d542e2f05e9fb43..92050179c282f226332b6c5f69ca30142130ae28 100644 (file)
@@ -90,6 +90,15 @@ config ATMEL_PIT_TIMER
          it is designed to offer maximum accuracy and efficient management,
          even for systems with long response time.
 
+config SPL_ATMEL_PIT_TIMER
+       bool "Atmel periodic interval timer support in SPL"
+       depends on SPL_TIMER
+       help
+         Select this to enable a periodic interval timer for Atmel devices,
+         it is designed to offer maximum accuracy and efficient management,
+         even for systems with long response time.
+         Select this to be available in SPL.
+
 config ATMEL_TCB_TIMER
        bool "Atmel timer counter support"
        depends on TIMER
index ae01a258e3d8dab31b6e50eccad95a675a167773..35cc490db1e08f6f2c36e55260d3ec91416fd0db 100644 (file)
@@ -7,7 +7,8 @@ obj-$(CONFIG_ALTERA_TIMER)      += altera_timer.o
 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_ATCPIT100_TIMER) += atcpit100_timer.o
+obj-$(CONFIG_$(SPL_)ATMEL_PIT_TIMER) += atmel_pit_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