]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: Rename STM32MP15x
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Mon, 15 Jan 2024 14:05:57 +0000 (15:05 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 19 Jan 2024 13:38:59 +0000 (14:38 +0100)
CONFIG options must not use lower-case letter. Convert this and related
ones to upper case.

Signed-off-by: Simon Glass <sjg@chromium.org
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
20 files changed:
arch/arm/dts/Makefile
arch/arm/dts/stm32mp15-u-boot.dtsi
arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi
arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi
arch/arm/dts/stm32mp157c-ev1-u-boot.dtsi
arch/arm/mach-stm32mp/Kconfig
arch/arm/mach-stm32mp/Kconfig.15x
arch/arm/mach-stm32mp/Makefile
arch/arm/mach-stm32mp/cmd_stm32key.c
arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.h
arch/arm/mach-stm32mp/include/mach/stm32.h
arch/arm/mach-stm32mp/stm32mp1/Makefile
arch/arm/mach-stm32mp/stm32mp1/fdt.c
board/st/common/Kconfig
board/st/stm32mp1/Kconfig
board/st/stm32mp1/stm32mp1.c
configs/stm32mp15_basic_defconfig
configs/stm32mp15_defconfig
configs/stm32mp15_trusted_defconfig
drivers/clk/stm32/Kconfig

index 9542303639767b32d33848a4b842db3f3e7c88bf..7bb60c3309eceab26a9927a7384462a7ef3e62a4 100644 (file)
@@ -1364,7 +1364,7 @@ dtb-$(CONFIG_ARCH_STI) += stih410-b2260.dtb
 dtb-$(CONFIG_STM32MP13X) += \
        stm32mp135f-dk.dtb
 
-dtb-$(CONFIG_STM32MP15x) += \
+dtb-$(CONFIG_STM32MP15X) += \
        stm32mp157a-dk1.dtb \
        stm32mp157a-dk1-scmi.dtb \
        stm32mp157a-icore-stm32mp1-ctouch2.dtb \
index 573dd4d3ed5651c30851f5842e8ac25d800ef24a..fe56f05616a04c8400ac01e5cd1290125e0c1078 100644 (file)
        resets = <&rcc UART8_R>;
 };
 
-#if defined(CONFIG_STM32MP15x_STM32IMAGE)
+#if defined(CONFIG_STM32MP15X_STM32IMAGE)
 &binman {
        u-boot-stm32 {
                filename = "u-boot.stm32";
index 2623cebf21a4cc1153fe3319c0583f37e7edec4c..a16358266a2d3e25913c1e49a9fb27ed79319eb0 100644 (file)
                st,stm32prog-gpios = <&gpioa 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
        };
 
-#if defined(CONFIG_STM32MP15x_STM32IMAGE) || defined(CONFIG_SPL)
+#if defined(CONFIG_STM32MP15X_STM32IMAGE) || defined(CONFIG_SPL)
        config {
                u-boot,mmc-env-partition = "ssbl";
        };
 #endif
 
-#ifdef CONFIG_STM32MP15x_STM32IMAGE
+#ifdef CONFIG_STM32MP15X_STM32IMAGE
        /* only needed for boot with TF-A, witout FIP support */
        firmware {
                optee {
index b8288273ddb56fc90c9c77ac898ec0882b90bad5..ef91088aa375d6c6251ba22bdae399b0b0b1fa89 100644 (file)
                st,stm32prog-gpios = <&gpioa 14 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
        };
 
-#if defined(CONFIG_STM32MP15x_STM32IMAGE) || defined(CONFIG_SPL)
+#if defined(CONFIG_STM32MP15X_STM32IMAGE) || defined(CONFIG_SPL)
        config {
                u-boot,mmc-env-partition = "ssbl";
        };
 #endif
 
-#ifdef CONFIG_STM32MP15x_STM32IMAGE
+#ifdef CONFIG_STM32MP15X_STM32IMAGE
        /* only needed for boot with TF-A, witout FIP support */
        firmware {
                optee {
index eb283cacd27dce27763c1dc7e70861bad27c4d49..139940bd5d47bec0437a5dd2a80a63b81e5fa5c4 100644 (file)
@@ -28,7 +28,7 @@
                #address-cells = <1>;
                #size-cells = <1>;
 
-#if defined(CONFIG_STM32MP15x_STM32IMAGE) || defined(CONFIG_SPL)
+#if defined(CONFIG_STM32MP15X_STM32IMAGE) || defined(CONFIG_SPL)
                partition@0 {
                        label = "fsbl1";
                        reg = <0x00000000 0x00040000>;
@@ -82,7 +82,7 @@
                                #address-cells = <1>;
                                #size-cells = <1>;
 
-#if defined(CONFIG_STM32MP15x_STM32IMAGE) || defined(CONFIG_SPL)
+#if defined(CONFIG_STM32MP15X_STM32IMAGE) || defined(CONFIG_SPL)
                                partition@0 {
                                        label = "fsbl";
                                        reg = <0x00000000 0x00200000>;
index 241fcf3e0d22a42316e78eaff9dc5ee664834084..a1763ff19993385503d1abdf93fdb6834adc87e8 100644 (file)
@@ -35,7 +35,7 @@ config ENV_SIZE
 
 choice
        prompt "Select STMicroelectronics STM32MPxxx Soc"
-       default STM32MP15x
+       default STM32MP15X
 
 config STM32MP13X
        bool "Support STMicroelectronics STM32MP13x Soc"
@@ -55,7 +55,7 @@ config STM32MP13X
                support of STMicroelectronics SOC STM32MP13x family
                STMicroelectronics MPU with core ARMv7
 
-config STM32MP15x
+config STM32MP15X
        bool "Support STMicroelectronics STM32MP15x Soc"
        select ARCH_SUPPORT_PSCI
        select BINMAN
@@ -127,7 +127,7 @@ config SYS_MMCSD_RAW_MODE_U_BOOT_PARTITION_MMC2
 
 config STM32_ETZPC
        bool "STM32 Extended TrustZone Protection"
-       depends on STM32MP15x || STM32MP13X
+       depends on STM32MP15X || STM32MP13X
        default y
        imply BOOTP_SERVERIP
        help
index 1d32f8bf339524888ae442732480f9a977fd2fa1..71c14eb4955f2078fc155e1381d0ee1c84cb9e67 100644 (file)
@@ -1,6 +1,6 @@
-if STM32MP15x
+if STM32MP15X
 
-config STM32MP15x_STM32IMAGE
+config STM32MP15X_STM32IMAGE
        bool "Support STM32 image for generated U-Boot image"
        depends on TFABOOT
        help
@@ -11,7 +11,7 @@ choice
        prompt "STM32MP15x board select"
        optional
 
-config TARGET_ST_STM32MP15x
+config TARGET_ST_STM32MP15X
        bool "STMicroelectronics STM32MP15x boards"
        imply BOOTSTAGE
        imply CMD_BOOTSTAGE
index 3d194de0631c94f35106133764d6c7fdc4e68f6f..ee8a5428feba44debc3fc6bbaaacf0ad103d54a7 100644 (file)
@@ -8,7 +8,7 @@ obj-y += syscon.o
 obj-y += bsec.o
 obj-y += soc.o
 
-obj-$(CONFIG_STM32MP15x) += stm32mp1/
+obj-$(CONFIG_STM32MP15X) += stm32mp1/
 obj-$(CONFIG_STM32MP13X) += stm32mp1/
 obj-$(CONFIG_STM32MP25X) += stm32mp2/
 
index dcef6ac4fb829786527be1d9bec9c2775d43deb7..c7fe232f86e0cdff6faff1e20f1cccb9c56f8c3e 100644 (file)
@@ -20,7 +20,7 @@
  */
 #define STM32_OTP_CLOSE_ID             0
 #define STM32_OTP_STM32MP13X_CLOSE_MASK        0x3F
-#define STM32_OTP_STM32MP15x_CLOSE_MASK        BIT(6)
+#define STM32_OTP_STM32MP15X_CLOSE_MASK        BIT(6)
 
 /* PKH is the first element of the key list */
 #define STM32KEY_PKH 0
@@ -64,7 +64,7 @@ static u8 get_key_nb(void)
        if (IS_ENABLED(CONFIG_STM32MP13X))
                return ARRAY_SIZE(stm32mp13_list);
 
-       if (IS_ENABLED(CONFIG_STM32MP15x))
+       if (IS_ENABLED(CONFIG_STM32MP15X))
                return ARRAY_SIZE(stm32mp15_list);
 }
 
@@ -73,7 +73,7 @@ static const struct stm32key *get_key(u8 index)
        if (IS_ENABLED(CONFIG_STM32MP13X))
                return &stm32mp13_list[index];
 
-       if (IS_ENABLED(CONFIG_STM32MP15x))
+       if (IS_ENABLED(CONFIG_STM32MP15X))
                return &stm32mp15_list[index];
 }
 
@@ -82,8 +82,8 @@ static u32 get_otp_close_mask(void)
        if (IS_ENABLED(CONFIG_STM32MP13X))
                return STM32_OTP_STM32MP13X_CLOSE_MASK;
 
-       if (IS_ENABLED(CONFIG_STM32MP15x))
-               return STM32_OTP_STM32MP15x_CLOSE_MASK;
+       if (IS_ENABLED(CONFIG_STM32MP15X))
+               return STM32_OTP_STM32MP15X_CLOSE_MASK;
 }
 
 static int get_misc_dev(struct udevice **dev)
index 934ffb1105a052562b438ab1b4ea08c8c3e5fb55..bf184c8a8846f571c5750037944b446f5d587751 100644 (file)
 
 #define CMD_SIZE               512
 /* SMC is only supported in SPMIN for STM32MP15x */
-#ifdef CONFIG_STM32MP15x
+#ifdef CONFIG_STM32MP15X
 #define OTP_SIZE_SMC           1024
 #else
 #define OTP_SIZE_SMC           0
 #endif
 /* size of the OTP struct in NVMEM PTA */
 #define _OTP_SIZE_TA(otp)      (((otp) * 2 + 2) * 4)
-#if defined(CONFIG_STM32MP13X) || defined(CONFIG_STM32MP15x)
+#if defined(CONFIG_STM32MP13X) || defined(CONFIG_STM32MP15X)
 /* STM32MP1 with BSEC2 */
 #define OTP_SIZE_TA            _OTP_SIZE_TA(96)
 #else
index 2d7d973368c1b96f590092fab92590a7d5517428..f598da99fbab9badcaa72e15c12a2907279b58cc 100644 (file)
@@ -71,11 +71,11 @@ enum forced_boot_mode {
  * only address used before device tree parsing
  */
 
-#if defined(CONFIG_STM32MP15x) || defined(CONFIG_STM32MP13X)
+#if defined(CONFIG_STM32MP15X) || defined(CONFIG_STM32MP13X)
 #define STM32_RCC_BASE                 0x50000000
 #define STM32_PWR_BASE                 0x50001000
 #define STM32_SYSCFG_BASE              0x50020000
-#ifdef CONFIG_STM32MP15x
+#ifdef CONFIG_STM32MP15X
 #define STM32_DBGMCU_BASE              0x50081000
 #endif
 #define STM32_FMC2_BASE                        0x58002000
@@ -88,7 +88,7 @@ enum forced_boot_mode {
 #define STM32_STGEN_BASE               0x5C008000
 #define STM32_TAMP_BASE                        0x5C00A000
 
-#ifdef CONFIG_STM32MP15x
+#ifdef CONFIG_STM32MP15X
 #define STM32_USART1_BASE              0x5C000000
 #define STM32_USART2_BASE              0x4000E000
 #endif
@@ -107,7 +107,7 @@ enum forced_boot_mode {
 #define STM32_SDMMC2_BASE              0x58007000
 #define STM32_SDMMC3_BASE              0x48004000
 
-#ifdef CONFIG_STM32MP15x
+#ifdef CONFIG_STM32MP15X
 #define STM32_SYSRAM_BASE              0x2FFC0000
 #define STM32_SYSRAM_SIZE              SZ_256K
 #endif
@@ -129,7 +129,7 @@ enum forced_boot_mode {
 /* TAMP registers */
 #define TAMP_BACKUP_REGISTER(x)                (STM32_TAMP_BASE + 0x100 + 4 * x)
 
-#ifdef CONFIG_STM32MP15x
+#ifdef CONFIG_STM32MP15X
 #define TAMP_BACKUP_MAGIC_NUMBER       TAMP_BACKUP_REGISTER(4)
 #define TAMP_BACKUP_BRANCH_ADDRESS     TAMP_BACKUP_REGISTER(5)
 #define TAMP_FWU_BOOT_INFO_REG         TAMP_BACKUP_REGISTER(10)
@@ -181,7 +181,7 @@ enum forced_boot_mode {
 #define STM32_BSEC_LOCK(id)            (STM32_BSEC_LOCK_OFFSET + (id) * 4)
 
 /* BSEC OTP index */
-#ifdef CONFIG_STM32MP15x
+#ifdef CONFIG_STM32MP15X
 #define BSEC_OTP_RPN   1
 #define BSEC_OTP_SERIAL        13
 #define BSEC_OTP_PKG   16
index e74342d0c608e3309bba57cef30fad5740ed7807..857148747ef7a7a1df97b0a7de11473572380bf1 100644 (file)
@@ -6,7 +6,7 @@
 obj-y += cpu.o
 
 obj-$(CONFIG_STM32MP13X) += stm32mp13x.o
-obj-$(CONFIG_STM32MP15x) += stm32mp15x.o
+obj-$(CONFIG_STM32MP15X) += stm32mp15x.o
 
 obj-$(CONFIG_STM32_ECDSA_VERIFY) += ecdsa_romapi.o
 ifdef CONFIG_SPL_BUILD
index 9436b872e31e71a4e9e1572170faf76816d65b29..d0b6c3cc5a5595ba301c4c97e0045c848c994ffd 100644 (file)
@@ -275,7 +275,7 @@ static int stm32_fdt_fixup_etzpc(void *fdt, int soc_node)
                array_size = ARRAY_SIZE(stm32mp13_ip_addr);
        }
 
-       if (IS_ENABLED(CONFIG_STM32MP15x)) {
+       if (IS_ENABLED(CONFIG_STM32MP15X)) {
                array = stm32mp15_ip_addr;
                array_size = ARRAY_SIZE(stm32mp15_ip_addr);
        }
@@ -494,7 +494,7 @@ int ft_system_setup(void *blob, struct bd_info *bd)
        if (IS_ENABLED(CONFIG_STM32MP13X))
                stm32mp13_fdt_fixup(blob, soc, cpu, name);
 
-       if (IS_ENABLED(CONFIG_STM32MP15x)) {
+       if (IS_ENABLED(CONFIG_STM32MP15X)) {
                stm32mp15_fdt_fixup(blob, soc, cpu, name);
 
                /*
@@ -505,7 +505,7 @@ int ft_system_setup(void *blob, struct bd_info *bd)
                 * under CONFIG_STM32MP15x_STM32IMAGE only for compatibility
                 * when FIP is not used by TF-A
                 */
-               if (IS_ENABLED(CONFIG_STM32MP15x_STM32IMAGE) &&
+               if (IS_ENABLED(CONFIG_STM32MP15X_STM32IMAGE) &&
                    !tee_find_device(NULL, NULL, NULL, NULL))
                        stm32_fdt_disable_optee(blob);
        }
index 6d1b76ba43a810cd4e94fb638c61b0297290bb3e..5efac658cf4ddb0227f9d8b20a530e72194a3baa 100644 (file)
@@ -1,7 +1,7 @@
 config CMD_STBOARD
        bool "stboard - command for OTP board information"
        depends on ARCH_STM32MP
-       default y if TARGET_ST_STM32MP25X || TARGET_ST_STM32MP15x || TARGET_ST_STM32MP13X
+       default y if TARGET_ST_STM32MP25X || TARGET_ST_STM32MP15X || TARGET_ST_STM32MP13X
        help
          This compile the stboard command to
          read and write the board in the OTP.
index 7d0d41bfea05ba4e027fcb8ed950c46da06d0f8d..96de41546f1db0276f849aaee3f6392129dc0b89 100644 (file)
@@ -1,4 +1,4 @@
-if TARGET_ST_STM32MP15x
+if TARGET_ST_STM32MP15X
 
 config SYS_BOARD
        default "stm32mp1"
index 8f5719c28b333e8ef9faf582fc33dedd5508a9ed..a17c314daeb84f14a8cda942c378124111496044 100644 (file)
@@ -114,7 +114,7 @@ int checkboard(void)
        int fdt_compat_len;
 
        if (IS_ENABLED(CONFIG_TFABOOT)) {
-               if (IS_ENABLED(CONFIG_STM32MP15x_STM32IMAGE))
+               if (IS_ENABLED(CONFIG_STM32MP15X_STM32IMAGE))
                        mode = "trusted - stm32image";
                else
                        mode = "trusted";
@@ -616,7 +616,7 @@ error:
 
 static bool board_is_stm32mp15x_dk2(void)
 {
-       if (CONFIG_IS_ENABLED(TARGET_ST_STM32MP15x) &&
+       if (CONFIG_IS_ENABLED(TARGET_ST_STM32MP15X) &&
            of_machine_is_compatible("st,stm32mp157c-dk2"))
                return true;
 
@@ -625,7 +625,7 @@ static bool board_is_stm32mp15x_dk2(void)
 
 static bool board_is_stm32mp15x_ev1(void)
 {
-       if (CONFIG_IS_ENABLED(TARGET_ST_STM32MP15x) &&
+       if (CONFIG_IS_ENABLED(TARGET_ST_STM32MP15X) &&
            (of_machine_is_compatible("st,stm32mp157a-ev1") ||
             of_machine_is_compatible("st,stm32mp157c-ev1") ||
             of_machine_is_compatible("st,stm32mp157d-ev1") ||
index 3032d83b992ea95216a45db09e5fb22f9d900cea..005f1d55f80eb505868a410710d851e87b535c85 100644 (file)
@@ -13,7 +13,7 @@ CONFIG_SPL_STACK=0x30000000
 CONFIG_SPL=y
 CONFIG_CMD_STM32KEY=y
 CONFIG_TYPEC_STUSB160X=y
-CONFIG_TARGET_ST_STM32MP15x=y
+CONFIG_TARGET_ST_STM32MP15X=y
 CONFIG_ENV_OFFSET_REDUND=0x2C0000
 CONFIG_CMD_STM32PROG=y
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
index 4aff6398846f514f44ad35f863ddc5136409ea8d..3302b3069965f6a7155d79003420a5ad21b9822e 100644 (file)
@@ -9,7 +9,7 @@ CONFIG_DEFAULT_DEVICE_TREE="stm32mp157c-ev1"
 CONFIG_DDR_CACHEABLE_SIZE=0x8000000
 CONFIG_CMD_STM32KEY=y
 CONFIG_TYPEC_STUSB160X=y
-CONFIG_TARGET_ST_STM32MP15x=y
+CONFIG_TARGET_ST_STM32MP15X=y
 CONFIG_ENV_OFFSET_REDUND=0x940000
 CONFIG_CMD_STM32PROG=y
 # CONFIG_ARMV7_NONSEC is not set
index ec32f1ea0f2cd0d1e0aa693da3ea3a9a6c956f14..84b0854b5573300938fa2695a48a44f1e26bcdf4 100644 (file)
@@ -9,8 +9,8 @@ CONFIG_DEFAULT_DEVICE_TREE="stm32mp157c-ev1"
 CONFIG_DDR_CACHEABLE_SIZE=0x10000000
 CONFIG_CMD_STM32KEY=y
 CONFIG_TYPEC_STUSB160X=y
-CONFIG_STM32MP15x_STM32IMAGE=y
-CONFIG_TARGET_ST_STM32MP15x=y
+CONFIG_STM32MP15X_STM32IMAGE=y
+CONFIG_TARGET_ST_STM32MP15X=y
 CONFIG_ENV_OFFSET_REDUND=0x2C0000
 CONFIG_CMD_STM32PROG=y
 # CONFIG_ARMV7_NONSEC is not set
index 7dbddd032b893e36d03f67f84c50da67207be8ec..c05015efe8b4f59ab185b952aa8817450efe321e 100644 (file)
@@ -23,7 +23,7 @@ config CLK_STM32_CORE
 config CLK_STM32MP1
        bool "Enable RCC clock driver for STM32MP15"
        depends on ARCH_STM32MP && CLK
-       default y if STM32MP15x
+       default y if STM32MP15X
        help
          Enable the STM32 clock (RCC) driver. Enable support for
          manipulating STM32MP15's on-SoC clocks.