stm32f1: remove stm32f1 support
Subsystems (4)
PATCH 1/1 stm32f1: remove stm32f1 support
From: Patrice Chotard <[email protected]>
A few years ago STM32F1 SoCs support has been added :0144caf22ce6acd5c gpio: stm32: add stm32f1 support 2d18ef2364fd3561a ARMv7M: add STM32F1 support
But neither STM32F1 dedicated defconfig nor board was associated to these commits.
Got confirmation from Tom Rini and Matt Porter to remove all this code [1]
[1] http://u-boot.10912.n7.nabble.com/Remove-STM32F1-support-td301603.html
--- arch/arm/include/asm/arch-stm32f1/gpio.h | 118 ------------------ arch/arm/include/asm/arch-stm32f1/stm32.h | 124 ------------------- arch/arm/mach-stm32/Kconfig | 4 - arch/arm/mach-stm32/Makefile | 1 - arch/arm/mach-stm32/stm32f1/Kconfig | 3 - arch/arm/mach-stm32/stm32f1/Makefile | 14 --- arch/arm/mach-stm32/stm32f1/clock.c | 196 ------------------------------ arch/arm/mach-stm32/stm32f1/flash.c | 180 --------------------------- arch/arm/mach-stm32/stm32f1/soc.c | 36 ------ arch/arm/mach-stm32/stm32f1/timer.c | 121 ------------------ drivers/gpio/stm32_gpio.c | 94 -------------- include/flash.h | 1 - 12 files changed, 892 deletions(-) delete mode 100644 arch/arm/include/asm/arch-stm32f1/gpio.h delete mode 100644 arch/arm/include/asm/arch-stm32f1/stm32.h delete mode 100644 arch/arm/mach-stm32/stm32f1/Kconfig delete mode 100644 arch/arm/mach-stm32/stm32f1/Makefile delete mode 100644 arch/arm/mach-stm32/stm32f1/clock.c delete mode 100644 arch/arm/mach-stm32/stm32f1/flash.c delete mode 100644 arch/arm/mach-stm32/stm32f1/soc.c delete mode 100644 arch/arm/mach-stm32/stm32f1/timer.c
arch/arm/include/asm/arch-stm32f1/gpio.h deleted +0 -118
@@ -1,118 +0,0 @@ -/* -* (C) Copyright 2011 -* Yuri Tikhonov, Emcraft Systems, yur at emcraft.com -* -* (C) Copyright 2015 -* Kamil Lulko, <[email protected]> -* -* Copyright 2015 ATS Advanced Telematics Systems GmbH -* Copyright 2015 Konsulko Group, Matt Porter <[email protected]> -* -* SPDX-License-Identifier: GPL-2.0+ -*/ - -#ifndef _STM32_GPIO_H_ -#define _STM32_GPIO_H_ - -enum stm32_gpio_port { -STM32_GPIO_PORT_A =0 , -STM32_GPIO_PORT_B , -STM32_GPIO_PORT_C , -STM32_GPIO_PORT_D , -STM32_GPIO_PORT_E , -STM32_GPIO_PORT_F , -STM32_GPIO_PORT_G , -}; - -enum stm32_gpio_pin { -STM32_GPIO_PIN_0 =0 , -STM32_GPIO_PIN_1 , -STM32_GPIO_PIN_2 , -STM32_GPIO_PIN_3 , -STM32_GPIO_PIN_4 , -STM32_GPIO_PIN_5 , -STM32_GPIO_PIN_6 , -STM32_GPIO_PIN_7 , -STM32_GPIO_PIN_8 , -STM32_GPIO_PIN_9 , -STM32_GPIO_PIN_10 , -STM32_GPIO_PIN_11 , -STM32_GPIO_PIN_12 , -STM32_GPIO_PIN_13 , -STM32_GPIO_PIN_14 , -STM32_GPIO_PIN_15 -}; - -enum stm32_gpio_icnf { -STM32_GPIO_ICNF_AN =0 , -STM32_GPIO_ICNF_IN_FLT , -STM32_GPIO_ICNF_IN_PUD , -STM32_GPIO_ICNF_RSVD -}; - -enum stm32_gpio_ocnf { -STM32_GPIO_OCNF_GP_PP =0 , -STM32_GPIO_OCNF_GP_OD , -STM32_GPIO_OCNF_AF_PP , -STM32_GPIO_OCNF_AF_OD -}; - -enum stm32_gpio_pupd { -STM32_GPIO_PUPD_DOWN =0 , -STM32_GPIO_PUPD_UP , -}; - -enum stm32_gpio_mode { -STM32_GPIO_MODE_IN =0 , -STM32_GPIO_MODE_OUT_10M , -STM32_GPIO_MODE_OUT_2M , -STM32_GPIO_MODE_OUT_50M -}; - -enum stm32_gpio_af { -STM32_GPIO_AF0 =0 , -STM32_GPIO_AF1 , -STM32_GPIO_AF2 , -STM32_GPIO_AF3 , -STM32_GPIO_AF4 , -STM32_GPIO_AF5 , -STM32_GPIO_AF6 , -STM32_GPIO_AF7 , -STM32_GPIO_AF8 , -STM32_GPIO_AF9 , -STM32_GPIO_AF10 , -STM32_GPIO_AF11 , -STM32_GPIO_AF12 , -STM32_GPIO_AF13 , -STM32_GPIO_AF14 , -STM32_GPIO_AF15 -}; - -struct stm32_gpio_dsc { -enum stm32_gpio_port port; -enum stm32_gpio_pin pin; -}; - -struct stm32_gpio_ctl { -enum stm32_gpio_icnf icnf; -enum stm32_gpio_ocnf ocnf; -enum stm32_gpio_mode mode; -enum stm32_gpio_pupd pupd; -enum stm32_gpio_af af; -}; - -static inline unsigned stm32_gpio_to_port (unsigned gpio) -{ -return gpio /16 ; -} - -static inline unsigned stm32_gpio_to_pin (unsigned gpio) -{ -return gpio %16 ; -} - -int stm32_gpio_config (const struct stm32_gpio_dsc *gpio_dsc, -const struct stm32_gpio_ctl *gpio_ctl); -int stm32_gpout_set (const struct stm32_gpio_dsc *gpio_dsc,int state); - -#endif /* _STM32_GPIO_H_ */
arch/arm/include/asm/arch-stm32f1/stm32.h deleted +0 -124
124 lines not on this page · raw message
arch/arm/mach-stm32/Kconfig +0 -4
@@ -3,9 +3,6 @@ if STM32 config STM32F4 bool "stm32f4 family" -config STM32F1 - bool "stm32f1 family" - config STM32F7 bool "stm32f7 family" select SUPPORT_SPL
@@ -29,7 +26,6 @@ config STM32F7 select SPL_XIP_SUPPORT source "arch/arm/mach-stm32/stm32f4/Kconfig" -source "arch/arm/mach-stm32/stm32f1/Kconfig" source "arch/arm/mach-stm32/stm32f7/Kconfig" endif
arch/arm/mach-stm32/Makefile +0 -1
@@ -5,6 +5,5 @@ # SPDX-License-Identifier: GPL-2.0+ # -obj-$(CONFIG_STM32F1) += stm32f1/ obj-$(CONFIG_STM32F4) += stm32f4/ obj-$(CONFIG_STM32F7) += stm32f7/
arch/arm/mach-stm32/stm32f1/Kconfig deleted +0 -3
@@ -1,3 +0,0 @@ -if STM32F1 - -endif
arch/arm/mach-stm32/stm32f1/Makefile deleted +0 -14
@@ -1,14 +0,0 @@ -# -# (C) Copyright 2000-2006 -# Wolfgang Denk, DENX Software Engineering, wd at denx.de. -# -# (C) Copyright 2015 -# Kamil Lulko, <[email protected]> -# -# Copyright 2015 ATS Advanced Telematics Systems GmbH -# Copyright 2015 Konsulko Group, Matt Porter <[email protected]> -# -# SPDX-License-Identifier: GPL-2.0+ -# - -obj-y += soc.o clock.o timer.o flash.o
arch/arm/mach-stm32/stm32f1/clock.c deleted +0 -196
196 lines not on this page · raw message
arch/arm/mach-stm32/stm32f1/flash.c deleted +0 -180
180 lines not on this page · raw message
arch/arm/mach-stm32/stm32f1/soc.c deleted +0 -36
@@ -1,36 +0,0 @@ -/* -* (C) Copyright 2015 -* Kamil Lulko, <[email protected]> -* -* Copyright 2015 ATS Advanced Telematics Systems GmbH -* Copyright 2015 Konsulko Group, Matt Porter <[email protected]> -* -* SPDX-License-Identifier: GPL-2.0+ -*/ - -#include <common.h> -#include <asm/io.h> -#include <asm/armv7m.h> -#include <asm/arch/stm32.h> - -u32 get_cpu_rev (void ) -{ -return 0 ; -} - -int arch_cpu_init (void ) -{ -configure_clocks (); - -/* -* Configure the memory protection unit (MPU) to allow full access to -* the whole 4GB address space. -*/ -writel (0 , &V7M_MPU ->rnr); -writel (0 , &V7M_MPU ->rbar); -writel ((V7M_MPU_RASR_AP_RW_RW |V7M_MPU_RASR_SIZE_4GB - |V7M_MPU_RASR_EN ), &V7M_MPU ->rasr); -writel (V7M_MPU_CTRL_ENABLE |V7M_MPU_CTRL_HFNMIENA , &V7M_MPU ->ctrl); - -return 0 ; -}
arch/arm/mach-stm32/stm32f1/timer.c deleted +0 -121
121 lines not on this page · raw message
drivers/gpio/stm32_gpio.c +0 -94
127 lines not on this page · raw message
include/flash.h +0 -1
@@ -469,7 +469,6 @@ extern flash_info_t *flash_get_info(ulong base);#define FLASH_S29GL128N 0x00F1/* Spansion S29GL128N */ #define FLASH_STM32 0x00F2/* STM32 Embedded Flash */ -#define FLASH_STM32F1 0x00F3/* STM32F1 Embedded Flash */ #define FLASH_UNKNOWN 0xFFFF/* unknown flash type */
Signature · 1 line
1.9.1
PATCH 1/1 stm32f1: remove stm32f1 support
Quoted 9 lines · patrice.chotard at st.com
From: Patrice Chotard <[email protected]>
A few years ago STM32F1 SoCs support has been added :
0144caf22ce6acd5cgpio: stm32: add stm32f1 support2d18ef2364fd3561aARMv7M: add STM32F1 supportBut neither STM32F1 dedicated defconfig nor board was associated to these commits.
Quoted 6 lines
Got confirmation from Tom Rini and Matt Porter to remove all this code [1]
[1] http://u-boot.10912.n7.nabble.com/Remove-STM32F1-support-td301603.html
Signed-off-by Patrice Chotard <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170809/bff7f74f/attachment.sig>
PATCH 1/1 stm32f1: remove stm32f1 support
In reply to patrice.chotard at st.comQuoted 9 lines · Patrice Chotard
From: Patrice Chotard <[email protected]>
A few years ago STM32F1 SoCs support has been added :
0144caf22ce6acd5cgpio: stm32: add stm32f1 support2d18ef2364fd3561aARMv7M: add STM32F1 supportBut neither STM32F1 dedicated defconfig nor board was associated to these commits.
Quoted 7 lines
Got confirmation from Tom Rini and Matt Porter to remove all this code [1]
[1] http://u-boot.10912.n7.nabble.com/Remove-STM32F1-support-td301603.html
Signed-off-by Patrice Chotard <[email protected]>Reviewed-by Tom Rini <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170813/24f5f264/attachment.sig>