Skip to contentSkip to conversation

Clean up of bad Kconfig options

PATCH Superseded Simon Glass 14 participants 117 messages Jan 23, 2023 – Feb 22, 2023 1 message not in the archive Page 1 of 2

Subsystems (44)
Network drivers Arm (32-bit) x86 USB +40 more subsystems

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover Clean up of bad Kconfig options

This series adds source scanning to moveconfig.py so that it can look for Kconfig options mentioned in the source which do not appear in Kconfig, and vice versa.

This tool is then used to clean up the unused or obsolete options mentioned in Makefiles, along with any attached source code.

No functional change is intended.

This should make it easier to move to the new kconfig approach.

Simon Glass (88):
moveconfig: Add an option to compare Kconfig against source
treewide: Correct invalid Kconfig syntax and warnings
power: Drop fg_max77693
nand: Drop CONFIG_NAND_SPEAR
power: Drop pmic_max77693.c
gpio: Drop adi_gpio2
Makefile: Drop CONFIG_AIS_CONFIG_FILE
misc: Drop ali512x
sandbox: Drop reference to CONFIG_ARCH_DEVICE_TREE Rename ARCH_NPCM7xx
arm: mvebu: Correct reference to ARMADA_370
arm: mvebu: Drop reference to CONFIG_ARMADA_39X
ppc: Drop bat_rw
rockchip: Correct a reference to CONFIG_BOOT_MODE_REG
cmd: Add an option to enable the ini command
cmd: Drop mfsl command
Correct CONFIG_CONTROLCENTERDC
Drop dataflash_mmc_mux command
Drop CONFIG_DM644X_GPIO
Makefile: Avoid use of invalid CONFIG_ option
env: Drop ENV_IS_IN_SATA
samsung: Drop CONFIG_EXYNOS_PWM_BL
fpga: Add a LATTICE option
fpga: Add a FPGA_STRATIX_II option
misc: Drop mc9sdz60 driver
freescale: Drop unused pixis code
freescale: Drop unused ftpmu010 driver
rcar: Drop timer
i2c: Rename I2C_MUX_PCA954x
imx: Drop unused CONFIG_IMX
arm: Drop old kona code
video: Drop unused lg4573 driver
m68k: Drop unused CONFIG_M52277
m68k: Rename MCF5301x
m68k: Rename MCF532x
m68k: Rename MCF5441x
m68k: Drop unused CONFIG_MACH_DAVINCI_DA830_EVM
arm: Drop CONFIG_MMU
arc: Drop CONFIG_MMU
ppc: Rename MPC83xx
gpio: Drop unused mpc83xx_gpio driver
ppc: Rename MPC85xx
powerpc: Rename MPC86xx
imx: Rename CONFIG_MXS to CFG_MXS
nand: Drop unused actl_nand driver
mtd: Drop unused fsl_upm driver
mtd: Drop unused fsmc_nand driver
mtd: Drop unused kb9202_nand driver
mtd: Drop unused nand_plat driver
Makefile: Drop CONFIG_OF_EARLY_FLATTREE
omap: Drop unused CONFIG_OMAP_USB_PHY
mtd: Drop unused CONFIG_ONENAND_U_BOOT
ppc: Drop unused CONFIG_P2020DS
gpio: Drop unused pca9698 driver
samsung: Rename PINCTRL_EXYNOS78x0
power: Drop unused bat_trats driver and battery code
power: Drop unused fg_max17042 driver and fuel gauge code
power: Drop unused muic_max77693 driver and mfd code
power: Drop unused muic_max8997 driver
freescale: Drop unused pq-mds-pib driver
rmobile: Drop CONFIG_RMOBILE
rtc: Drop old and unused drivers
mtd: Drop unused CONFIG_S32V234
mtd: Drop unused scf0403_lcd driver
rmobile: Drop CONFIG_SH73A0 and associated code
sh4: Drop unused pci_sh7780 driver
Drop ubsha1 tool
arm: Rename STM32MP13x
arm: Rename STM32MP15x
sysreset: at91: Correct Makefile rule for SYSRESET_AT91
gdsys: Drop unused fpga file
sh4: Drop unused kona_i2c driver
compulab: Drop CONFIG_TARGET_MCM_IMX8M_MINI
freescale: Drop CONFIG_TARGET_MPC8536DS et al
sh4: Drop unused twl6030 driver
ppc: Makefile: Drop unused ppc4xx code
armada: usb: net: Drop unused USB drivers
usb: Drop unused ehci-faraday driver
usb: Drop unused fotg210 gadget
rmobile: Drop unused ehci-rmobile driver
usb: Drop unused ehci-vct driver
usb: Drop unused sl811-hcd driver
imx: Drop CONFIG_USE_PLUGIN
freescale: Drop unused vsc3316_3308 driver
watchdog: Rename WDT_MPC8xx
tools: Drop xway-swap-bytes tool
freescale: Drop unused zm7300 driver
fdt: Drop use of non-existent OF_PLATDATA option

 Kconfig                                       |    2 +-
 Makefile                                      |   24 +-
 README                                        |    7 -
 api/api_platform-powerpc.c                    |    4 +-
 arch/Kconfig                                  |    6 +-
 arch/Kconfig.nxp                              |    6 +-
 arch/arc/Kconfig                              |   14 +-
 arch/arc/config.mk                            |    4 -
 arch/arc/lib/ints_low.S                       |    5 -
 arch/arm/Kconfig                              |    6 +-
 arch/arm/cpu/arm920t/Makefile                 |    2 -
 arch/arm/cpu/armv7/Makefile                   |    2 -
 arch/arm/cpu/armv7/kona-common/Makefile       |    8 -
 arch/arm/cpu/armv7/kona-common/clk-stubs.c    |   25 -
 .../arm/cpu/armv7/kona-common/hwinit-common.c |   17 -
 arch/arm/cpu/armv7/kona-common/reset.S        |   25 -
 arch/arm/cpu/armv7/kona-common/s_init.c       |   11 -
 arch/arm/cpu/armv8/Makefile                   |    1 -
 arch/arm/dts/Makefile                         |    6 +-
 arch/arm/dts/stm32mp15-u-boot.dtsi            |    2 +-
 arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi      |    4 +-
 arch/arm/dts/stm32mp157c-ed1-u-boot.dtsi      |    4 +-
 arch/arm/lib/debug.S                          |   21 -
 arch/arm/mach-exynos/Kconfig                  |    6 +-
 arch/arm/mach-mvebu/Kconfig                   |    2 +-
 arch/arm/mach-mvebu/Makefile                  |    4 +-
 arch/arm/mach-nexell/Kconfig                  |    2 +-
 arch/arm/mach-npcm/Kconfig                    |    4 +-
 arch/arm/mach-npcm/Makefile                   |    2 +-
 arch/arm/mach-npcm/npcm7xx/Kconfig            |    2 +-
 arch/arm/mach-rmobile/Kconfig.64              |    8 +-
 arch/arm/mach-rmobile/Makefile                |    2 -
 arch/arm/mach-rmobile/cpu_info-sh73a0.c       |   43 -
 arch/arm/mach-rmobile/cpu_info.c              |    1 -
 .../mach-rmobile/include/mach/ehci-rmobile.h  |  146 -
 arch/arm/mach-rmobile/include/mach/gpio.h     |    5 +-
 arch/arm/mach-rmobile/include/mach/rmobile.h  |    5 +-
 .../mach-rmobile/include/mach/sh73a0-gpio.h   |  553 ----
 arch/arm/mach-rmobile/include/mach/sh73a0.h   |  289 --
 arch/arm/mach-rmobile/pfc-sh73a0.c            | 2807 -----------------
 arch/arm/mach-rmobile/timer.c                 |   87 -
 arch/arm/mach-rockchip/Makefile               |    2 +-
 arch/arm/mach-rockchip/rv1108/Kconfig         |    4 +-
 arch/arm/mach-rockchip/rv1126/Kconfig         |    2 +-
 arch/arm/mach-stm32mp/Kconfig                 |    8 +-
 arch/arm/mach-stm32mp/Kconfig.13x             |    4 +-
 arch/arm/mach-stm32mp/Kconfig.15x             |    6 +-
 arch/arm/mach-stm32mp/Makefile                |    4 +-
 arch/arm/mach-stm32mp/cmd_stm32key.c          |   20 +-
 .../cmd_stm32prog/cmd_stm32prog.c             |    2 +-
 .../mach-stm32mp/cmd_stm32prog/stm32prog.c    |    4 +-
 .../mach-stm32mp/cmd_stm32prog/stm32prog.h    |    6 +-
 arch/arm/mach-stm32mp/fdt.c                   |   12 +-
 arch/arm/mach-stm32mp/include/mach/stm32.h    |   16 +-
 .../arm/mach-stm32mp/include/mach/stm32prog.h |    2 +-
 arch/m68k/Kconfig                             |   14 +-
 arch/m68k/Makefile                            |    9 +-
 arch/m68k/cpu/mcf532x/cpu.c                   |    4 +-
 arch/m68k/cpu/mcf532x/cpu_init.c              |    8 +-
 arch/m68k/cpu/mcf532x/speed.c                 |   28 +-
 arch/m68k/cpu/mcf532x/start.S                 |    2 +-
 arch/m68k/cpu/mcf5445x/cpu_init.c             |   12 +-
 arch/m68k/cpu/mcf5445x/dspi.c                 |    4 +-
 arch/m68k/cpu/mcf5445x/speed.c                |    4 +-
 arch/m68k/cpu/mcf5445x/start.S                |    8 +-
 arch/m68k/include/asm/cache.h                 |    8 +-
 arch/m68k/include/asm/coldfire/skha.h         |    2 +-
 arch/m68k/include/asm/global_data.h           |    2 +-
 arch/m68k/include/asm/immap.h                 |    2 +-
 arch/m68k/include/asm/immap_5301x.h           |    2 +-
 arch/m68k/include/asm/immap_5441x.h           |    2 +-
 arch/mips/mach-octeon/octeon_fdt.c            |   43 +-
 arch/powerpc/Kconfig                          |   14 +-
 arch/powerpc/Makefile                         |    2 +-
 arch/powerpc/cpu/Makefile                     |    6 +-
 arch/powerpc/cpu/mpc83xx/Kconfig              |    4 +-
 arch/powerpc/cpu/mpc83xx/cpu.c                |    4 +-
 arch/powerpc/cpu/mpc83xx/start.S              |    2 +-
 arch/powerpc/cpu/mpc85xx/Kconfig              |   16 +-
 arch/powerpc/cpu/mpc85xx/bsc9132_serdes.c     |    6 +-
 arch/powerpc/cpu/mpc85xx/c29x_serdes.c        |    6 +-
 arch/powerpc/cpu/mpc85xx/cpu.c                |   10 +-
 arch/powerpc/cpu/mpc85xx/cpu_init.c           |   34 +-
 arch/powerpc/cpu/mpc85xx/cpu_init_early.c     |   14 +-
 arch/powerpc/cpu/mpc85xx/fdt.c                |    6 +-
 .../powerpc/cpu/mpc85xx/fsl_corenet2_serdes.c |    4 +-
 arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c |   10 +-
 arch/powerpc/cpu/mpc85xx/interrupts.c         |    8 +-
 arch/powerpc/cpu/mpc85xx/mp.c                 |   32 +-
 arch/powerpc/cpu/mpc85xx/mpc8536_serdes.c     |    8 +-
 arch/powerpc/cpu/mpc85xx/mpc8544_serdes.c     |   10 +-
 arch/powerpc/cpu/mpc85xx/mpc8548_serdes.c     |    6 +-
 arch/powerpc/cpu/mpc85xx/p1010_serdes.c       |    6 +-
 arch/powerpc/cpu/mpc85xx/p1021_serdes.c       |    8 +-
 arch/powerpc/cpu/mpc85xx/p1023_serdes.c       |    6 +-
 arch/powerpc/cpu/mpc85xx/p2020_serdes.c       |    6 +-
 arch/powerpc/cpu/mpc85xx/qe_io.c              |    2 +-
 arch/powerpc/cpu/mpc85xx/speed.c              |   14 +-
 arch/powerpc/cpu/mpc85xx/spl_minimal.c        |    6 +-
 arch/powerpc/cpu/mpc85xx/start.S              |   28 +-
 arch/powerpc/cpu/mpc8xxx/Makefile             |    4 +-
 arch/powerpc/cpu/mpc8xxx/cpu.c                |   14 +-
 arch/powerpc/cpu/mpc8xxx/fdt.c                |    4 +-
 arch/powerpc/cpu/mpc8xxx/fsl_lbc.c            |    6 +-
 arch/powerpc/cpu/mpc8xxx/law.c                |    2 +-
 arch/powerpc/cpu/mpc8xxx/srio.c               |   20 +-
 arch/powerpc/include/asm/config.h             |    4 +-
 arch/powerpc/include/asm/config_mpc85xx.h     |    8 +-
 arch/powerpc/include/asm/fsl_dma.h            |    4 +-
 arch/powerpc/include/asm/fsl_lbc.h            |    6 +-
 arch/powerpc/include/asm/fsl_liodn.h          |   26 +-
 arch/powerpc/include/asm/fsl_pci.h            |    4 +-
 arch/powerpc/include/asm/global_data.h        |   12 +-
 arch/powerpc/include/asm/immap_83xx.h         |   14 +-
 arch/powerpc/include/asm/immap_85xx.h         |  728 ++---
 arch/powerpc/include/asm/mpc85xx_gpio.h       |    4 +-
 arch/powerpc/include/asm/ppc.h                |   20 +-
 arch/powerpc/include/asm/processor.h          |   18 +-
 arch/powerpc/lib/Makefile                     |    1 -
 arch/powerpc/lib/bat_rw.c                     |  244 --
 arch/powerpc/lib/bdinfo.c                     |    4 +-
 arch/powerpc/lib/bootm.c                      |    4 +-
 arch/powerpc/lib/ppccache.S                   |    4 +-
 arch/powerpc/lib/stack.c                      |    2 +-
 arch/sandbox/config.mk                        |    2 -
 arch/sh/include/asm/pci.h                     |    2 -
 arch/x86/cpu/apollolake/Kconfig               |    2 +-
 .../compulab/imx8mm-cl-iot-gate/ddr/Makefile  |    4 -
 board/davinci/da8xxevm/Makefile               |    1 -
 board/efi/Kconfig                             |    4 +-
 board/freescale/common/Makefile               |    8 -
 board/freescale/common/fsl_chain_of_trust.c   |   12 +-
 board/freescale/common/fsl_validate.c         |    8 +-
 board/freescale/common/mpc85xx_sleep.c        |    6 +-
 board/freescale/common/pixis.c                |  470 ---
 board/freescale/common/pixis.h                |   54 -
 board/freescale/common/pq-mds-pib.c           |   60 -
 board/freescale/common/pq-mds-pib.h           |    9 -
 board/freescale/common/via.h                  |    4 +-
 board/freescale/common/vid.c                  |    2 +-
 board/freescale/common/vsc3316_3308.c         |  530 ----
 board/freescale/common/zm7300.c               |  232 --
 board/freescale/common/zm7300.h               |   21 -
 board/freescale/m53017evb/README              |    6 +-
 board/freescale/m5373evb/README               |    2 +-
 board/freescale/mpc837xerdb/README            |    2 +-
 board/freescale/mpc8548cds/mpc8548cds.c       |    6 +-
 board/freescale/mx7ulp_evk/Makefile           |    4 -
 board/freescale/p1010rdb/p1010rdb.c           |   28 +-
 board/freescale/p1010rdb/spl.c                |    6 +-
 board/freescale/p1010rdb/spl_minimal.c        |    4 +-
 board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c   |   20 +-
 board/freescale/p1_p2_rdb_pc/spl.c            |    8 +-
 board/freescale/p1_p2_rdb_pc/spl_minimal.c    |    4 +-
 board/freescale/p2041rdb/p2041rdb.c           |    4 +-
 board/freescale/t102xrdb/eth_t102xrdb.c       |    2 +-
 board/freescale/t102xrdb/spl.c                |    6 +-
 board/freescale/t102xrdb/t102xrdb.c           |   16 +-
 board/freescale/t104xrdb/spl.c                |    2 +-
 board/freescale/t104xrdb/t104xrdb.c           |    2 +-
 board/freescale/t208xqds/eth_t208xqds.c       |    6 +-
 board/freescale/t208xqds/spl.c                |    2 +-
 board/freescale/t208xqds/t208xqds.c           |    2 +-
 board/freescale/t208xrdb/spl.c                |    2 +-
 board/freescale/t4rdb/eth.c                   |    2 +-
 board/freescale/t4rdb/spl.c                   |    2 +-
 board/gdsys/a38x/hre.c                        |    1 -
 board/gdsys/common/Makefile                   |    3 +-
 board/gdsys/common/fpga.c                     |   28 -
 board/keymile/Kconfig                         |    8 +-
 board/keymile/km83xx/Kconfig                  |    2 +-
 board/keymile/kmcent2/kmcent2.c               |    6 +-
 board/openpiton/riscv64/Kconfig               |    2 +-
 board/siemens/iot2050/Kconfig                 |    2 +-
 board/socrates/socrates.c                     |    6 +-
 board/st/common/Kconfig                       |   14 +-
 board/st/common/stm32mp_mtdparts.c            |   18 +-
 board/st/stm32mp1/Kconfig                     |    4 +-
 board/st/stm32mp1/stm32mp1.c                  |    6 +-
 board/ti/am62ax/Kconfig                       |    4 +-
 board/ti/am62x/Kconfig                        |    4 +-
 board/ti/am64x/Kconfig                        |    4 +-
 board/ti/am65x/Kconfig                        |    4 +-
 board/ti/j721e/Kconfig                        |    8 +-
 board/ti/j721s2/Kconfig                       |    4 +-
 board/xes/common/Makefile                     |    7 +-
 board/xes/common/actl_nand.c                  |   49 -
 board/xes/common/fsl_8xxx_clk.c               |   10 +-
 board/xes/common/fsl_8xxx_misc.c              |    6 +-
 boot/Kconfig                                  |    4 +-
 cmd/Kconfig                                   |   11 +-
 cmd/Makefile                                  |    2 -
 cmd/dataflash_mmc_mux.c                       |   48 -
 cmd/mfsl.c                                    |  387 ---
 cmd/nvedit.c                                  |    1 -
 common/Kconfig                                |    2 +-
 common/board_r.c                              |    2 +-
 common/memsize.c                              |    2 +-
 common/usb_hub.c                              |   18 -
 configs/MPC837XERDB_defconfig                 |    2 +-
 configs/MPC8548CDS_36BIT_defconfig            |    2 +-
 configs/MPC8548CDS_defconfig                  |    2 +-
 configs/MPC8548CDS_legacy_defconfig           |    2 +-
 configs/P1010RDB-PA_36BIT_NAND_defconfig      |    2 +-
 configs/P1010RDB-PA_36BIT_NOR_defconfig       |    2 +-
 configs/P1010RDB-PA_36BIT_SDCARD_defconfig    |    2 +-
 configs/P1010RDB-PA_36BIT_SPIFLASH_defconfig  |    2 +-
 configs/P1010RDB-PA_NAND_defconfig            |    2 +-
 configs/P1010RDB-PA_NOR_defconfig             |    2 +-
 configs/P1010RDB-PA_SDCARD_defconfig          |    2 +-
 configs/P1010RDB-PA_SPIFLASH_defconfig        |    2 +-
 configs/P1010RDB-PB_36BIT_NAND_defconfig      |    2 +-
 configs/P1010RDB-PB_36BIT_NOR_defconfig       |    2 +-
 configs/P1010RDB-PB_36BIT_SDCARD_defconfig    |    2 +-
 configs/P1010RDB-PB_36BIT_SPIFLASH_defconfig  |    2 +-
 configs/P1010RDB-PB_NAND_defconfig            |    2 +-
 configs/P1010RDB-PB_NOR_defconfig             |    2 +-
 configs/P1010RDB-PB_SDCARD_defconfig          |    2 +-
 configs/P1010RDB-PB_SPIFLASH_defconfig        |    2 +-
 configs/P1020RDB-PC_36BIT_NAND_defconfig      |    2 +-
 configs/P1020RDB-PC_36BIT_SDCARD_defconfig    |    2 +-
 configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig  |    2 +-
 configs/P1020RDB-PC_36BIT_defconfig           |    2 +-
 configs/P1020RDB-PC_NAND_defconfig            |    2 +-
 configs/P1020RDB-PC_SDCARD_defconfig          |    2 +-
 configs/P1020RDB-PC_SPIFLASH_defconfig        |    2 +-
 configs/P1020RDB-PC_defconfig                 |    2 +-
 configs/P1020RDB-PD_NAND_defconfig            |    2 +-
 configs/P1020RDB-PD_SDCARD_defconfig          |    2 +-
 configs/P1020RDB-PD_SPIFLASH_defconfig        |    2 +-
 configs/P1020RDB-PD_defconfig                 |    2 +-
 configs/P2020RDB-PC_36BIT_NAND_defconfig      |    2 +-
 configs/P2020RDB-PC_36BIT_SDCARD_defconfig    |    2 +-
 configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig  |    2 +-
 configs/P2020RDB-PC_36BIT_defconfig           |    2 +-
 configs/P2020RDB-PC_NAND_defconfig            |    2 +-
 configs/P2020RDB-PC_SDCARD_defconfig          |    2 +-
 configs/P2020RDB-PC_SPIFLASH_defconfig        |    2 +-
 configs/P2020RDB-PC_defconfig                 |    2 +-
 configs/P2041RDB_NAND_defconfig               |    2 +-
 configs/P2041RDB_SDCARD_defconfig             |    2 +-
 configs/P2041RDB_SPIFLASH_defconfig           |    2 +-
 configs/P2041RDB_defconfig                    |    2 +-
 configs/SBx81LIFKW_defconfig                  |    2 +-
 configs/SBx81LIFXCAT_defconfig                |    2 +-
 configs/T1024RDB_NAND_defconfig               |    2 +-
 configs/T1024RDB_SDCARD_defconfig             |    2 +-
 configs/T1024RDB_SPIFLASH_defconfig           |    2 +-
 configs/T1024RDB_defconfig                    |    2 +-
 configs/T1042D4RDB_NAND_defconfig             |    2 +-
 configs/T1042D4RDB_SDCARD_defconfig           |    2 +-
 configs/T1042D4RDB_SPIFLASH_defconfig         |    2 +-
 configs/T1042D4RDB_defconfig                  |    2 +-
 configs/T2080QDS_NAND_defconfig               |    2 +-
 configs/T2080QDS_SDCARD_defconfig             |    2 +-
 configs/T2080QDS_SECURE_BOOT_defconfig        |    2 +-
 configs/T2080QDS_SPIFLASH_defconfig           |    2 +-
 configs/T2080QDS_SRIO_PCIE_BOOT_defconfig     |    2 +-
 configs/T2080QDS_defconfig                    |    2 +-
 configs/T2080RDB_NAND_defconfig               |    2 +-
 configs/T2080RDB_SDCARD_defconfig             |    2 +-
 configs/T2080RDB_SPIFLASH_defconfig           |    2 +-
 configs/T2080RDB_defconfig                    |    2 +-
 configs/T2080RDB_revD_NAND_defconfig          |    2 +-
 configs/T2080RDB_revD_SDCARD_defconfig        |    2 +-
 configs/T2080RDB_revD_SPIFLASH_defconfig      |    2 +-
 configs/T2080RDB_revD_defconfig               |    2 +-
 configs/T4240RDB_SDCARD_defconfig             |    2 +-
 configs/T4240RDB_defconfig                    |    2 +-
 ...edev_cc_v1_0_ultrazedev_som_v1_0_defconfig |    2 +-
 configs/cgtqmx8_defconfig                     |    2 +-
 configs/gazerbeam_defconfig                   |    2 +-
 configs/ge_bx50v3_defconfig                   |    2 +-
 configs/imx8qm_mek_defconfig                  |    2 +-
 configs/imx8qm_rom7720_a1_4G_defconfig        |    2 +-
 configs/imx8qxp_mek_defconfig                 |    2 +-
 configs/kmcent2_defconfig                     |    4 +-
 configs/kmcoge5ne_defconfig                   |    4 +-
 configs/kmeter1_defconfig                     |    4 +-
 configs/kmopti2_defconfig                     |    4 +-
 configs/kmsupx5_defconfig                     |    4 +-
 configs/kmtepr2_defconfig                     |    4 +-
 configs/ls1028aqds_tfa_SECURE_BOOT_defconfig  |    2 +-
 configs/ls1028aqds_tfa_defconfig              |    2 +-
 configs/ls1028aqds_tfa_lpuart_defconfig       |    2 +-
 configs/ls1028ardb_tfa_SECURE_BOOT_defconfig  |    2 +-
 configs/ls1028ardb_tfa_defconfig              |    2 +-
 configs/ls1088aqds_tfa_defconfig              |    2 +-
 configs/ls1088ardb_tfa_SECURE_BOOT_defconfig  |    2 +-
 configs/ls1088ardb_tfa_defconfig              |    2 +-
 configs/ls2088aqds_tfa_defconfig              |    2 +-
 configs/ls2088ardb_tfa_SECURE_BOOT_defconfig  |    2 +-
 configs/ls2088ardb_tfa_defconfig              |    2 +-
 configs/lx2160aqds_tfa_SECURE_BOOT_defconfig  |    2 +-
 configs/lx2160aqds_tfa_defconfig              |    2 +-
 configs/lx2162aqds_tfa_SECURE_BOOT_defconfig  |    2 +-
 configs/lx2162aqds_tfa_defconfig              |    2 +-
 .../lx2162aqds_tfa_verified_boot_defconfig    |    2 +-
 configs/mvebu_puzzle-m801-88f8040_defconfig   |    2 +-
 configs/mx53ppd_defconfig                     |    2 +-
 configs/octeontx2_96xx_defconfig              |    2 +-
 configs/qemu-ppce500_defconfig                |    2 +-
 configs/socrates_defconfig                    |    2 +-
 configs/stm32mp13_defconfig                   |    4 +-
 configs/stm32mp15_basic_defconfig             |    2 +-
 configs/stm32mp15_defconfig                   |    2 +-
 configs/stm32mp15_trusted_defconfig           |    4 +-
 configs/tuge1_defconfig                       |    4 +-
 configs/tuxx1_defconfig                       |    4 +-
 configs/x530_defconfig                        |    2 +-
 configs/xilinx_versal_net_virt_defconfig      |    2 +-
 configs/xilinx_versal_virt_defconfig          |    2 +-
 configs/xilinx_zynq_virt_defconfig            |    2 +-
 configs/xilinx_zynqmp_virt_defconfig          |    2 +-
 drivers/Makefile                              |    1 -
 drivers/ata/fsl_sata.c                        |    2 +-
 drivers/clk/Kconfig                           |   14 +-
 drivers/clk/mpc83xx_clk.c                     |    4 +-
 drivers/clk/mpc83xx_clk.h                     |   20 +-
 drivers/clk/nuvoton/Makefile                  |    2 +-
 drivers/clk/stm32/Kconfig                     |    4 +-
 drivers/cpu/Kconfig                           |    6 +-
 drivers/cpu/mpc83xx_cpu.c                     |   14 +-
 drivers/cpu/mpc83xx_cpu.h                     |    8 +-
 drivers/crypto/Kconfig                        |    8 +-
 drivers/ddr/fsl/Kconfig                       |   10 +-
 drivers/ddr/fsl/ctrl_regs.c                   |    2 +-
 drivers/ddr/fsl/main.c                        |    2 +-
 drivers/ddr/fsl/mpc85xx_ddr_gen2.c            |    4 +-
 drivers/ddr/fsl/mpc85xx_ddr_gen3.c            |    2 +-
 drivers/ddr/imx/imx8ulp/Kconfig               |    2 +-
 drivers/dma/fsl_dma.c                         |   28 +-
 drivers/fpga/Kconfig                          |   12 +
 drivers/gpio/Makefile                         |    5 -
 drivers/gpio/adi_gpio2.c                      |  425 ---
 drivers/gpio/kona_gpio.c                      |  141 -
 drivers/gpio/mpc83xx_gpio.c                   |  183 --
 drivers/gpio/pca9698.c                        |  127 -
 drivers/i2c/Kconfig                           |    2 +-
 drivers/i2c/Makefile                          |    1 -
 drivers/i2c/kona_i2c.c                        |  728 -----
 drivers/i2c/muxes/Kconfig                     |    2 +-
 drivers/i2c/muxes/Makefile                    |    2 +-
 drivers/i2c/sh_i2c.c                          |    5 -
 drivers/input/Makefile                        |    1 -
 drivers/input/twl6030.c                       |   47 -
 drivers/misc/Kconfig                          |    4 +-
 drivers/misc/Makefile                         |    2 -
 drivers/misc/ali512x.c                        |  401 ---
 drivers/misc/mc9sdz60.c                       |   34 -
 drivers/misc/mpc83xx_serdes.c                 |    4 +-
 drivers/misc/npcm_otp.c                       |    2 +-
 drivers/mmc/fsl_esdhc_imx.c                   |   12 +-
 drivers/mtd/nand/raw/Makefile                 |    5 -
 drivers/mtd/nand/raw/fsl_elbc_spl.c           |    2 +-
 drivers/mtd/nand/raw/fsl_upm.c                |  187 --
 drivers/mtd/nand/raw/fsmc_nand.c              |  470 ---
 drivers/mtd/nand/raw/kb9202_nand.c            |  134 -
 drivers/mtd/nand/raw/nand_plat.c              |   65 -
 drivers/net/fm/b4860.c                        |    8 +-
 drivers/net/fm/p1023.c                        |   18 +-
 drivers/net/fm/p4080.c                        |    8 +-
 drivers/net/fm/p5020.c                        |    8 +-
 drivers/net/fm/p5040.c                        |    8 +-
 drivers/net/fm/t1024.c                        |    6 +-
 drivers/net/fm/t1040.c                        |    2 +-
 drivers/net/fm/t2080.c                        |    6 +-
 drivers/net/fm/t4240.c                        |    8 +-
 drivers/pci/Kconfig                           |    4 +-
 drivers/pci/Makefile                          |    1 -
 drivers/pci/pci_sh7780.c                      |   92 -
 drivers/pinctrl/exynos/Kconfig                |    2 +-
 drivers/pinctrl/exynos/Makefile               |    2 +-
 drivers/pinctrl/intel/Kconfig                 |    2 +-
 drivers/pinctrl/nuvoton/Kconfig               |    2 +-
 drivers/power/Makefile                        |    4 -
 drivers/power/battery/Makefile                |    7 -
 drivers/power/battery/bat_trats.c             |   91 -
 drivers/power/battery/bat_trats2.c            |   65 -
 drivers/power/ftpmu010.c                      |   87 -
 drivers/power/fuel_gauge/Makefile             |    6 -
 drivers/power/fuel_gauge/fg_max17042.c        |  287 --
 drivers/power/mfd/Makefile                    |    8 -
 drivers/power/mfd/fg_max77693.c               |  137 -
 drivers/power/mfd/muic_max77693.c             |   77 -
 drivers/power/mfd/pmic_max77693.c             |   96 -
 drivers/power/pmic/Makefile                   |    1 -
 drivers/power/pmic/muic_max8997.c             |   74 -
 drivers/qe/qe.c                               |   14 +-
 drivers/ram/Kconfig                           |    2 +-
 drivers/ram/mpc83xx_sdram.c                   |    2 +-
 drivers/rtc/Makefile                          |   14 -
 drivers/rtc/at91sam9_rtt.c                    |   78 -
 drivers/rtc/ds1302.c                          |  329 --
 drivers/rtc/ds1306.c                          |  438 ---
 drivers/rtc/ftrtc010.c                        |  122 -
 drivers/rtc/imxdi.c                           |  223 --
 drivers/rtc/max6900.c                         |  105 -
 drivers/rtc/mk48t59.c                         |  175 -
 drivers/rtc/mx27rtc.c                         |   64 -
 drivers/rtc/rs5c372.c                         |  256 --
 drivers/rtc/s3c24x0_rtc.c                     |  149 -
 drivers/rtc/x1205.c                           |  161 -
 drivers/serial/serial_sh.h                    |   10 +-
 drivers/spi/fsl_espi.c                        |    2 +-
 drivers/spi/mpc8xxx_spi.c                     |    2 +-
 drivers/sysreset/Kconfig                      |    4 +-
 drivers/sysreset/Makefile                     |    2 +-
 drivers/timer/Kconfig                         |    4 +-
 drivers/timer/mpc83xx_timer.c                 |    2 +-
 drivers/usb/gadget/Makefile                   |    3 +-
 drivers/usb/gadget/fotg210.c                  |  964 ------
 drivers/usb/gadget/gadget_chips.h             |    8 -
 drivers/usb/host/Kconfig                      |    4 +-
 drivers/usb/host/Makefile                     |    5 -
 drivers/usb/host/ehci-armada100.c             |   48 -
 drivers/usb/host/ehci-faraday.c               |  144 -
 drivers/usb/host/ehci-hcd.c                   |    5 -
 drivers/usb/host/ehci-rmobile.c               |  129 -
 drivers/usb/host/ehci-vct.c                   |   44 -
 drivers/usb/host/sl811-hcd.c                  |  714 -----
 drivers/usb/host/sl811.h                      |  104 -
 drivers/usb/host/utmi-armada100.c             |   80 -
 drivers/video/Makefile                        |    2 -
 drivers/video/exynos/Makefile                 |    1 -
 drivers/video/lg4573.c                        |  331 --
 drivers/video/scf0403_lcd.c                   |  297 --
 drivers/watchdog/Kconfig                      |    6 +-
 drivers/watchdog/Makefile                     |    2 +-
 dts/Kconfig                                   |    4 +-
 env/Kconfig                                   |    4 +-
 env/Makefile                                  |    1 -
 env/env.c                                     |    3 -
 env/sata.c                                    |  122 -
 include/asm-generic/u-boot.h                  |    4 +-
 include/configs/MPC837XERDB.h                 |    2 +-
 include/configs/P1010RDB.h                    |    2 +-
 include/configs/P2041RDB.h                    |    2 +-
 include/configs/T102xRDB.h                    |    2 +-
 include/configs/T104xRDB.h                    |    2 +-
 include/configs/T208xQDS.h                    |    2 +-
 include/configs/T208xRDB.h                    |    2 +-
 include/configs/T4240RDB.h                    |    2 +-
 include/configs/p1_p2_rdb_pc.h                |    2 +-
 include/configs/socrates.h                    |    2 +-
 include/e500.h                                |    2 +-
 include/faraday/ftpmu010.h                    |  234 --
 include/fsl_ddr_sdram.h                       |    2 +-
 include/fsl_fman.h                            |    2 +-
 include/ioports.h                             |    2 +-
 include/linux/immap_qe.h                      |    2 +-
 include/linux/mtd/fsl_upm.h                   |   44 -
 include/linux/mtd/fsmc_nand.h                 |   84 -
 include/mpc85xx.h                             |    6 +-
 include/mpc86xx.h                             |    8 +-
 include/netdev.h                              |    1 -
 include/pca9698.h                             |   17 -
 include/pci.h                                 |    2 +-
 include/post.h                                |    4 +-
 include/power/fg_battery_cell_params.h        |   73 -
 include/scf0403_lcd.h                         |   10 -
 include/serial.h                              |    4 +-
 include/usb/fotg210.h                         |  362 ---
 include/usb/fusbh200.h                        |   59 -
 include/watchdog.h                            |    2 +-
 lib/Kconfig                                   |   18 +-
 lib/efi_loader/Kconfig                        |    2 +-
 post/Makefile                                 |    2 +-
 tools/.gitignore                              |    1 -
 tools/Makefile                                |   14 +-
 tools/moveconfig.py                           |  334 ++
 tools/mxsimage.c                              |    2 +-
 tools/ubsha1.c                                |   83 -
 tools/xway-swap-bytes.c                       |   38 -
 474 files changed, 1571 insertions(+), 17654 deletions(-)
 delete mode 100644 arch/arm/cpu/armv7/kona-common/Makefile
 delete mode 100644 arch/arm/cpu/armv7/kona-common/clk-stubs.c
 delete mode 100644 arch/arm/cpu/armv7/kona-common/hwinit-common.c
 delete mode 100644 arch/arm/cpu/armv7/kona-common/reset.S
 delete mode 100644 arch/arm/cpu/armv7/kona-common/s_init.c
 delete mode 100644 arch/arm/mach-rmobile/cpu_info-sh73a0.c
 delete mode 100644 arch/arm/mach-rmobile/include/mach/ehci-rmobile.h
 delete mode 100644 arch/arm/mach-rmobile/include/mach/sh73a0-gpio.h
 delete mode 100644 arch/arm/mach-rmobile/include/mach/sh73a0.h
 delete mode 100644 arch/arm/mach-rmobile/pfc-sh73a0.c
 delete mode 100644 arch/arm/mach-rmobile/timer.c
 delete mode 100644 arch/powerpc/lib/bat_rw.c
 delete mode 100644 board/freescale/common/pixis.c
 delete mode 100644 board/freescale/common/pixis.h
 delete mode 100644 board/freescale/common/pq-mds-pib.c
 delete mode 100644 board/freescale/common/pq-mds-pib.h
 delete mode 100644 board/freescale/common/vsc3316_3308.c
 delete mode 100644 board/freescale/common/zm7300.c
 delete mode 100644 board/freescale/common/zm7300.h
 delete mode 100644 board/gdsys/common/fpga.c
 delete mode 100644 board/xes/common/actl_nand.c
 delete mode 100644 cmd/dataflash_mmc_mux.c
 delete mode 100644 cmd/mfsl.c
 delete mode 100644 drivers/gpio/adi_gpio2.c
 delete mode 100644 drivers/gpio/kona_gpio.c
 delete mode 100644 drivers/gpio/mpc83xx_gpio.c
 delete mode 100644 drivers/gpio/pca9698.c
 delete mode 100644 drivers/i2c/kona_i2c.c
 delete mode 100644 drivers/input/twl6030.c
 delete mode 100644 drivers/misc/ali512x.c
 delete mode 100644 drivers/misc/mc9sdz60.c
 delete mode 100644 drivers/mtd/nand/raw/fsl_upm.c
 delete mode 100644 drivers/mtd/nand/raw/fsmc_nand.c
 delete mode 100644 drivers/mtd/nand/raw/kb9202_nand.c
 delete mode 100644 drivers/mtd/nand/raw/nand_plat.c
 delete mode 100644 drivers/pci/pci_sh7780.c
 delete mode 100644 drivers/power/battery/Makefile
 delete mode 100644 drivers/power/battery/bat_trats.c
 delete mode 100644 drivers/power/battery/bat_trats2.c
 delete mode 100644 drivers/power/ftpmu010.c
 delete mode 100644 drivers/power/fuel_gauge/Makefile
 delete mode 100644 drivers/power/fuel_gauge/fg_max17042.c
 delete mode 100644 drivers/power/mfd/Makefile
 delete mode 100644 drivers/power/mfd/fg_max77693.c
 delete mode 100644 drivers/power/mfd/muic_max77693.c
 delete mode 100644 drivers/power/mfd/pmic_max77693.c
 delete mode 100644 drivers/power/pmic/muic_max8997.c
 delete mode 100644 drivers/rtc/at91sam9_rtt.c
 delete mode 100644 drivers/rtc/ds1302.c
 delete mode 100644 drivers/rtc/ds1306.c
 delete mode 100644 drivers/rtc/ftrtc010.c
 delete mode 100644 drivers/rtc/imxdi.c
 delete mode 100644 drivers/rtc/max6900.c
 delete mode 100644 drivers/rtc/mk48t59.c
 delete mode 100644 drivers/rtc/mx27rtc.c
 delete mode 100644 drivers/rtc/rs5c372.c
 delete mode 100644 drivers/rtc/s3c24x0_rtc.c
 delete mode 100644 drivers/rtc/x1205.c
 delete mode 100644 drivers/usb/gadget/fotg210.c
 delete mode 100644 drivers/usb/host/ehci-armada100.c
 delete mode 100644 drivers/usb/host/ehci-faraday.c
 delete mode 100644 drivers/usb/host/ehci-rmobile.c
 delete mode 100644 drivers/usb/host/ehci-vct.c
 delete mode 100644 drivers/usb/host/sl811-hcd.c
 delete mode 100644 drivers/usb/host/sl811.h
 delete mode 100644 drivers/usb/host/utmi-armada100.c
 delete mode 100644 drivers/video/lg4573.c
 delete mode 100644 drivers/video/scf0403_lcd.c
 delete mode 100644 env/sata.c
 delete mode 100644 include/faraday/ftpmu010.h
 delete mode 100644 include/linux/mtd/fsl_upm.h
 delete mode 100644 include/linux/mtd/fsmc_nand.h
 delete mode 100644 include/pca9698.h
 delete mode 100644 include/power/fg_battery_cell_params.h
 delete mode 100644 include/scf0403_lcd.h
 delete mode 100644 include/usb/fotg210.h
 delete mode 100644 include/usb/fusbh200.h
 delete mode 100644 tools/ubsha1.c
 delete mode 100644 tools/xway-swap-bytes.c
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#1 lore raw

PATCH 1/88 moveconfig: Add an option to compare Kconfig against source

Sometimes the Makefile rules or source code refers to Kconfig options which don't exist. Update the moveconfig tool to check this and produce a series of reports about inconsistencies.

This can then be used to generate patches to correct the problems.

---

 lib/efi_loader/Kconfig |   2 +-
 tools/moveconfig.py    | 334 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 335 insertions(+), 1 deletion(-)
lib/efi_loader/Kconfig +1 -1
index c56904afc2e..9fe9a2df9ea 100644
@@ -84,7 +84,7 @@ if EFI_VARIABLES_PRESEED
 
 config EFI_VAR_SEED_FILE
 	string "File with initial values of non-volatile UEFI variables"
-	default ubootefi.var
+	default "ubootefi.var"
 	help
 	  File with initial values of non-volatile UEFI variables. The file must
 	  be in the same format as the storage in the EFI system partition. The
tools/moveconfig.py +334 -0

368 lines not on this page · raw message

Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#2 lore raw

PATCH 2/88 treewide: Correct invalid Kconfig syntax and warnings

In reply to Simon Glass

In several places a 'select' is used to select a choice, which is not supported by Kconfig. In other places, the filename for the 'source' command is not in quites.

Fix these two problems throughout the tree, so that kconfiglib does not show any more warnings.

---

 arch/Kconfig                          |  4 ++--
 arch/arc/Kconfig                      | 14 +++++++-------
 arch/arm/Kconfig                      |  6 +++---
 arch/arm/mach-nexell/Kconfig          |  2 +-
 arch/arm/mach-rmobile/Kconfig.64      |  8 ++++----
 arch/arm/mach-rockchip/rv1108/Kconfig |  4 ++--
 arch/arm/mach-rockchip/rv1126/Kconfig |  2 +-
 arch/x86/cpu/apollolake/Kconfig       |  2 +-
 board/efi/Kconfig                     |  4 ++--
 board/openpiton/riscv64/Kconfig       |  2 +-
 board/siemens/iot2050/Kconfig         |  2 +-
 board/ti/am62ax/Kconfig               |  4 ++--
 board/ti/am62x/Kconfig                |  4 ++--
 board/ti/am64x/Kconfig                |  4 ++--
 board/ti/am65x/Kconfig                |  4 ++--
 board/ti/j721e/Kconfig                |  8 ++++----
 board/ti/j721s2/Kconfig               |  4 ++--
 cmd/Kconfig                           |  4 ++--
 drivers/clk/Kconfig                   | 10 +++++-----
 drivers/crypto/Kconfig                |  8 ++++----
 drivers/ddr/imx/imx8ulp/Kconfig       |  2 +-
 drivers/pinctrl/intel/Kconfig         |  2 +-
 drivers/usb/host/Kconfig              |  2 +-
 lib/Kconfig                           | 18 +++++++++---------
 24 files changed, 62 insertions(+), 62 deletions(-)
arch/Kconfig +2 -2
index d30676ae817..3b95fbe9b36 100644
@@ -53,8 +53,8 @@ config ARC
 	select SUPPORT_OF_CONTROL
 	select SYS_CACHE_SHIFT_7
 	select TIMER
-	select SYS_BIG_ENDIAN if CPU_BIG_ENDIAN
-	select SYS_LITTLE_ENDIAN if !CPU_BIG_ENDIAN
+	# select SYS_BIG_ENDIAN if CPU_BIG_ENDIAN
+	# select SYS_LITTLE_ENDIAN if !CPU_BIG_ENDIAN
 
 config ARM
 	bool "ARM architecture"
arch/arc/Kconfig +7 -7
index 6ae66bb163c..8c0d1c8a3ee 100644
@@ -32,35 +32,35 @@ choice
 config CPU_ARC750D
 	bool "ARC 750D"
 	depends on ISA_ARCOMPACT
-	select ARC_MMU_V2
+	# select ARC_MMU_V2
 	help
 	  Choose this option to build an U-Boot for ARC750D CPU.
 
 config CPU_ARC770D
 	bool "ARC 770D"
 	depends on ISA_ARCOMPACT
-	select ARC_MMU_V3
+	# select ARC_MMU_V3
 	help
 	  Choose this option to build an U-Boot for ARC770D CPU.
 
 config CPU_ARCEM6
 	bool "ARC EM6"
 	depends on ISA_ARCV2
-	select ARC_MMU_ABSENT
+	# select ARC_MMU_ABSENT
 	help
 	  Next Generation ARC Core based on ISA-v2 ISA without MMU.
 
 config CPU_ARCHS36
 	bool "ARC HS36"
 	depends on ISA_ARCV2
-	select ARC_MMU_ABSENT
+	# select ARC_MMU_ABSENT
 	help
 	  Next Generation ARC Core based on ISA-v2 ISA without MMU.
 
 config CPU_ARCHS38
 	bool "ARC HS38"
 	depends on ISA_ARCV2
-	select ARC_MMU_V4
+	# select ARC_MMU_V4
 	help
 	  Next Generation ARC Core based on ISA-v2 ISA with MMU.
 
@@ -172,14 +172,14 @@ config TARGET_AXS103
 
 config TARGET_EMSDP
 	bool "Synopsys EM Software Development Platform"
-	select CPU_ARCEM6
+	# select CPU_ARCEM6
 
 config TARGET_HSDK
 	bool "Support Synopsys HSDK or HSDK-4xD board"
 
 config TARGET_IOT_DEVKIT
 	bool "Synopsys Brite IoT Development kit"
-	select CPU_ARCEM6
+	# select CPU_ARCEM6
 
 endchoice
 
arch/arm/Kconfig +3 -3
index c9a44ebc221..b18af584770 100644
@@ -598,7 +598,7 @@ config ARCH_MVEBU
 	select SPL_TIMER if SPL
 	select TIMER if !ARM64
 	select OF_CONTROL
-	select OF_SEPARATE
+	# select OF_SEPARATE
 	select SPI
 	imply CMD_DM
 
@@ -1038,7 +1038,7 @@ config ARCH_SNAPDRAGON
 	select GPIO_EXTRA_HEADER
 	select MSM_SMEM
 	select OF_CONTROL
-	select OF_SEPARATE
+	# select OF_SEPARATE
 	select SMEM
 	select SPMI
 	imply CMD_DM
@@ -1107,7 +1107,7 @@ config ARCH_SUNXI
 	select GPIO_EXTRA_HEADER
 	select OF_BOARD_SETUP
 	select OF_CONTROL
-	select OF_SEPARATE
+	# select OF_SEPARATE
 	select PINCTRL
 	select SPECIFY_CONSOLE_INDEX
 	select SPL_SEPARATE_BSS if SPL
arch/arm/mach-nexell/Kconfig +1 -1
index 16324e15206..fd6c7774f68 100644
@@ -4,7 +4,7 @@ config ARCH_S5P4418
 	bool "Nexell S5P4418 SoC"
 	select CPU_V7A
 	select OF_CONTROL
-	select OF_SEPARATE
+	# select OF_SEPARATE
 	select NX_GPIO
 	select DM_SERIAL
 	select PL01X_SERIAL
arch/arm/mach-rmobile/Kconfig.64 +4 -4
index 007eaad251d..0e8a49deeb6 100644
@@ -93,7 +93,7 @@ config TARGET_BEACON_RZG2M
 	select PINCTRL_PFC_R8A774B1
 	select PINCTRL_PFC_R8A774E1
 	imply MULTI_DTB_FIT
-	imply MULTI_DTB_FIT_USER_DEFINED_AREA
+	# imply MULTI_DTB_FIT_USER_DEFINED_AREA
 	imply CLK_VERSACLOCK
 	imply CLK_CCF
 
@@ -135,7 +135,7 @@ config TARGET_HIHOPE_RZG2
 	imply RZ_G2
 	imply SYS_MALLOC_F
 	imply MULTI_DTB_FIT
-	imply MULTI_DTB_FIT_USER_DEFINED_AREA
+	# imply MULTI_DTB_FIT_USER_DEFINED_AREA
 	help
           Support for RZG2 HiHope platform
 
@@ -153,7 +153,7 @@ config TARGET_SALVATOR_X
 	imply R8A77965
 	imply SYS_MALLOC_F
 	imply MULTI_DTB_FIT
-	imply MULTI_DTB_FIT_USER_DEFINED_AREA
+	# imply MULTI_DTB_FIT_USER_DEFINED_AREA
 	help
           Support for Renesas R-Car Gen3 platform
 
@@ -164,7 +164,7 @@ config TARGET_ULCB
 	imply R8A77965
 	imply SYS_MALLOC_F
 	imply MULTI_DTB_FIT
-	imply MULTI_DTB_FIT_USER_DEFINED_AREA
+	# imply MULTI_DTB_FIT_USER_DEFINED_AREA
 	help
           Support for Renesas R-Car Gen3 ULCB platform
 
arch/arm/mach-rockchip/rv1108/Kconfig +2 -2
index a12216dccf6..28ed0b24581 100644
@@ -36,7 +36,7 @@ config SYS_SOC
 config SYS_MALLOC_F_LEN
 	default 0x400
 
-source board/rockchip/evb_rv1108/Kconfig
-source board/elgin/elgin_rv1108/Kconfig
+source "board/rockchip/evb_rv1108/Kconfig"
+source "board/elgin/elgin_rv1108/Kconfig"
 
 endif
arch/arm/mach-rockchip/rv1126/Kconfig +1 -1
index 7382c559966..e13d4093688 100644
@@ -54,6 +54,6 @@ config SYS_MALLOC_F_LEN
 config TEXT_BASE
 	default 0x600000
 
-source board/edgeble/neural-compute-module-2/Kconfig
+source "board/edgeble/neural-compute-module-2/Kconfig"
 
 endif
arch/x86/cpu/apollolake/Kconfig +1 -1
index c7f26d171cb..5fea952188a 100644
@@ -5,7 +5,7 @@
 
 config INTEL_APOLLOLAKE
 	bool
-	select FSP_VERSION2
+	# select FSP_VERSION2
 	select HAVE_FSP
 	select ARCH_MISC_INIT
 	select USE_CAR
board/efi/Kconfig +2 -2
index 3df6e31c8ba..688cb9d82d2 100644
@@ -6,7 +6,7 @@ choice
 
 config TARGET_EFI_APP32
 	bool "32-bit efi application"
-	select EFI_APP
+	# select EFI_APP
 	help
 	  This target is used for running U-Boot on top of EFI. In
 	  this case EFI does the early initialisation, and U-Boot
@@ -15,7 +15,7 @@ config TARGET_EFI_APP32
 
 config TARGET_EFI_APP64
 	bool "64-bit efi application"
-	select EFI_APP
+	# select EFI_APP
 	select X86_64
 	help
 	  This target is used for running U-Boot on top of EFI in 64-bit mode.
board/openpiton/riscv64/Kconfig +1 -1
index eb0db8a64c8..02ad27309aa 100644
@@ -35,6 +35,6 @@ config BOARD_SPECIFIC_OPTIONS # dummy
 	imply SPL_SMP
 	imply SPL_MMC
 	imply SMP
-	imply SPL_RISCV_MMODE
+	# imply SPL_RISCV_MMODE
 
 endif
board/siemens/iot2050/Kconfig +1 -1
index 063142a43bf..096102bd370 100644
@@ -9,7 +9,7 @@
 config TARGET_IOT2050_A53
 	bool "IOT2050 running on A53"
 	select ARM64
-	select SOC_K3_AM654
+	# select SOC_K3_AM654
 	select BOARD_LATE_INIT
 	select SYS_DISABLE_DCACHE_OPS
 	select BINMAN
board/ti/am62ax/Kconfig +2 -2
index 2c18cd49b5d..db3bdc5f35c 100644
@@ -10,7 +10,7 @@ choice
 config TARGET_AM62A7_A53_EVM
 	bool "TI K3 based AM62A7 EVM running on A53"
 	select ARM64
-	select SOC_K3_AM62A7
+	# select SOC_K3_AM62A7
 	imply BOARD
 	imply SPL_BOARD
 	imply TI_I2C_BOARD_DETECT
@@ -20,7 +20,7 @@ config TARGET_AM62A7_R5_EVM
 	select CPU_V7R
 	select SYS_THUMB_BUILD
 	select K3_LOAD_SYSFW
-	select SOC_K3_AM62A7
+	# select SOC_K3_AM62A7
 	select RAM
 	select SPL_RAM
 	select K3_DDRSS
board/ti/am62x/Kconfig +2 -2
index 87fed44df17..090ece3315a 100644
@@ -10,14 +10,14 @@ choice
 config TARGET_AM625_A53_EVM
 	bool "TI K3 based AM625 EVM running on A53"
 	select ARM64
-	select SOC_K3_AM625
+	# select SOC_K3_AM625
 
 config TARGET_AM625_R5_EVM
 	bool "TI K3 based AM625 EVM running on R5"
 	select CPU_V7R
 	select SYS_THUMB_BUILD
 	select K3_LOAD_SYSFW
-	select SOC_K3_AM625
+	# select SOC_K3_AM625
 	select RAM
 	select SPL_RAM
 	select K3_DDRSS
board/ti/am64x/Kconfig +2 -2
index 8036947e345..f642109686f 100644
@@ -9,7 +9,7 @@ choice
 config TARGET_AM642_A53_EVM
 	bool "TI K3 based AM642 EVM running on A53"
 	select ARM64
-	select SOC_K3_AM642
+	# select SOC_K3_AM642
 	imply BOARD
 	imply SPL_BOARD
 	imply TI_I2C_BOARD_DETECT
@@ -19,7 +19,7 @@ config TARGET_AM642_R5_EVM
 	select CPU_V7R
 	select SYS_THUMB_BUILD
 	select K3_LOAD_SYSFW
-	select SOC_K3_AM642
+	# select SOC_K3_AM642
 	select RAM
 	select SPL_RAM
 	select K3_DDRSS
board/ti/am65x/Kconfig +2 -2
index 4765b13ba0c..dcdc46f0b59 100644
@@ -10,7 +10,7 @@ choice
 config TARGET_AM654_A53_EVM
 	bool "TI K3 based AM654 EVM running on A53"
 	select ARM64
-	select SOC_K3_AM654
+	# select SOC_K3_AM654
 	select SYS_DISABLE_DCACHE_OPS
 	select BOARD_LATE_INIT
 	imply TI_I2C_BOARD_DETECT
@@ -19,7 +19,7 @@ config TARGET_AM654_R5_EVM
 	bool "TI K3 based AM654 EVM running on R5"
 	select CPU_V7R
 	select SYS_THUMB_BUILD
-	select SOC_K3_AM654
+	# select SOC_K3_AM654
 	select K3_LOAD_SYSFW
 	select K3_AM654_DDRSS
 	imply SYS_K3_SPL_ATF
board/ti/j721e/Kconfig +4 -4
index d19d30d59ef..f997741fe5a 100644
@@ -10,7 +10,7 @@ choice
 config TARGET_J721E_A72_EVM
 	bool "TI K3 based J721E EVM running on A72"
 	select ARM64
-	select SOC_K3_J721E
+	# select SOC_K3_J721E
 	select BOARD_LATE_INIT
 	imply TI_I2C_BOARD_DETECT
 	select SYS_DISABLE_DCACHE_OPS
@@ -19,7 +19,7 @@ config TARGET_J721E_R5_EVM
 	bool "TI K3 based J721E EVM running on R5"
 	select CPU_V7R
 	select SYS_THUMB_BUILD
-	select SOC_K3_J721E
+	# select SOC_K3_J721E
 	select K3_LOAD_SYSFW
 	select RAM
 	select SPL_RAM
@@ -30,7 +30,7 @@ config TARGET_J721E_R5_EVM
 config TARGET_J7200_A72_EVM
 	bool "TI K3 based J7200 EVM running on A72"
 	select ARM64
-	select SOC_K3_J721E
+	# select SOC_K3_J721E
 	select BOARD_LATE_INIT
 	imply TI_I2C_BOARD_DETECT
 	select SYS_DISABLE_DCACHE_OPS
@@ -39,7 +39,7 @@ config TARGET_J7200_R5_EVM
 	bool "TI K3 based J7200 EVM running on R5"
 	select CPU_V7R
 	select SYS_THUMB_BUILD
-	select SOC_K3_J721E
+	# select SOC_K3_J721E
 	select K3_LOAD_SYSFW
 	select RAM
 	select SPL_RAM
board/ti/j721s2/Kconfig +2 -2
index 6141798333c..1631778eaed 100644
@@ -10,7 +10,7 @@ choice
 config TARGET_J721S2_A72_EVM
 	bool "TI K3 based J721S2 EVM running on A72"
 	select ARM64
-	select SOC_K3_J721S2
+	# select SOC_K3_J721S2
 	select BOARD_LATE_INIT
 	imply TI_I2C_BOARD_DETECT
 	select SYS_DISABLE_DCACHE_OPS
@@ -19,7 +19,7 @@ config TARGET_J721S2_R5_EVM
 	bool "TI K3 based J721S2 EVM running on R5"
 	select CPU_V7R
 	select SYS_THUMB_BUILD
-	select SOC_K3_J721S2
+	# select SOC_K3_J721S2
 	select K3_LOAD_SYSFW
 	select RAM
 	select SPL_RAM
cmd/Kconfig +2 -2
index 4fe2c75de25..b3c1fcaf6e6 100644
@@ -394,7 +394,7 @@ config CMD_BOOTEFI_HELLO
 	  for testing that EFI is working at a basic level, and for bringing
 	  up EFI support on a new architecture.
 
-source lib/efi_selftest/Kconfig
+source "lib/efi_selftest/Kconfig"
 
 config CMD_BOOTMENU
 	bool "bootmenu"
@@ -1876,7 +1876,7 @@ config CMD_DNS
 
 config CMD_LINK_LOCAL
 	bool "linklocal"
-	select LIB_RAND
+	# select LIB_RAND
 	help
 	  Acquire a network IP address using the link-local protocol
 
drivers/clk/Kconfig +5 -5
index 09aa97ee8c0..a7409a0cb34 100644
@@ -57,27 +57,27 @@ config CLK_BOSTON
 	  Enable this to support the clocks
 
 config SPL_CLK_CCF
-	bool "SPL Common Clock Framework [CCF] support "
+	bool "SPL Common Clock Framework [CCF] support"
 	depends on SPL
 	help
 	  Enable this option if you want to (re-)use the Linux kernel's Common
 	  Clock Framework [CCF] code in U-Boot's SPL.
 
 config SPL_CLK_COMPOSITE_CCF
-	bool "SPL Common Clock Framework [CCF] composite clk support "
+	bool "SPL Common Clock Framework [CCF] composite clk support"
 	depends on SPL_CLK_CCF
 	help
 	  Enable this option if you want to (re-)use the Linux kernel's Common
 	  Clock Framework [CCF] composite code in U-Boot's SPL.
 
 config CLK_CCF
-	bool "Common Clock Framework [CCF] support "
+	bool "Common Clock Framework [CCF] support"
 	help
 	  Enable this option if you want to (re-)use the Linux kernel's Common
 	  Clock Framework [CCF] code in U-Boot's clock driver.
 
 config CLK_COMPOSITE_CCF
-	bool "Common Clock Framework [CCF] composite clk support "
+	bool "Common Clock Framework [CCF] composite clk support"
 	depends on CLK_CCF
 	help
 	  Enable this option if you want to (re-)use the Linux kernel's Common
@@ -151,7 +151,7 @@ config CLK_OCTEON
 	  Enable this to support the clocks on Octeon MIPS platforms.
 
 config SANDBOX_CLK_CCF
-	bool "Sandbox Common Clock Framework [CCF] support "
+	bool "Sandbox Common Clock Framework [CCF] support"
 	depends on SANDBOX
 	select CLK_CCF
 	help
drivers/crypto/Kconfig +4 -4
index 12ef84ca05c..8b49997030b 100644
@@ -1,11 +1,11 @@
 menu "Hardware crypto devices"
 
-source drivers/crypto/hash/Kconfig
+source "drivers/crypto/hash/Kconfig"
 
-source drivers/crypto/fsl/Kconfig
+source "drivers/crypto/fsl/Kconfig"
 
-source drivers/crypto/aspeed/Kconfig
+source "drivers/crypto/aspeed/Kconfig"
 
-source drivers/crypto/nuvoton/Kconfig
+source "drivers/crypto/nuvoton/Kconfig"
 
 endmenu
drivers/ddr/imx/imx8ulp/Kconfig +1 -1
index 42848863aae..90407982de9 100644
@@ -5,7 +5,7 @@ config IMX8ULP_DRAM
 	bool "imx8m dram"
 
 config IMX8ULP_DRAM_PHY_PLL_BYPASS
-	bool "Enable the DDR PHY PLL bypass mode, so PHY clock is from DDR_CLK "
+	bool "Enable the DDR PHY PLL bypass mode, so PHY clock is from DDR_CLK"
 	depends on IMX8ULP_DRAM
 
 config SAVED_DRAM_TIMING_BASE
drivers/pinctrl/intel/Kconfig +1 -1
index 316a8fe27fd..233289c9be8 100644
@@ -9,7 +9,7 @@ config INTEL_PINCTRL_DUAL_ROUTE_SUPPORT
 	default y
 
 config INTEL_PINCTRL_PADCFG_PADTOL
-	bool n
+	bool
 
 config INTEL_PINCTRL_IOSTANDBY
 	bool
drivers/usb/host/Kconfig +1 -1
index 6213b3c95fa..d7209637479 100644
@@ -252,7 +252,7 @@ endif
 config USB_EHCI_MSM
 	bool "Support for Qualcomm on-chip EHCI USB controller"
 	depends on DM_USB
-	select USB_ULPI_VIEWPORT
+	# select USB_ULPI_VIEWPORT
 	select MSM8916_USB_PHY
 	---help---
 	  Enables support for the on-chip EHCI controller on Qualcomm
lib/Kconfig +9 -9
index 549bd357785..efb0cbccc83 100644
@@ -389,7 +389,7 @@ config TRACE_EARLY_ADDR
 config CIRCBUF
 	bool "Enable circular buffer support"
 
-source lib/dhry/Kconfig
+source "lib/dhry/Kconfig"
 
 menu "Security support"
 
@@ -402,10 +402,10 @@ config AES
 	  supported by the algorithm but only a 128-bit key is supported at
 	  present.
 
-source lib/ecdsa/Kconfig
-source lib/rsa/Kconfig
-source lib/crypto/Kconfig
-source lib/crypt/Kconfig
+source "lib/ecdsa/Kconfig"
+source "lib/rsa/Kconfig"
+source "lib/crypto/Kconfig"
+source "lib/crypt/Kconfig"
 
 config TPM
 	bool "Trusted Platform Module (TPM) Support"
@@ -1001,9 +1001,9 @@ config SMBIOS_PARSER
 	help
 	  A simple parser for SMBIOS data.
 
-source lib/efi/Kconfig
-source lib/efi_loader/Kconfig
-source lib/optee/Kconfig
+source "lib/efi/Kconfig"
+source "lib/efi_loader/Kconfig"
+source "lib/optee/Kconfig"
 
 config TEST_FDTDEC
 	bool "enable fdtdec test"
@@ -1071,6 +1071,6 @@ endmenu
 
 menu "FWU Multi Bank Updates"
 
-source lib/fwu_updates/Kconfig
+source "lib/fwu_updates/Kconfig"
 
 endmenu
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#3 lore raw

Re: [PATCH 02/88] treewide: Correct invalid Kconfig syntax and warnings

Hi Simon

Quoted 424 lines · Simon Glass

In several places a 'select' is used to select a choice, which is not supported by Kconfig. In other places, the filename for the 'source' command is not in quites.

Fix these two problems throughout the tree, so that kconfiglib does not show any more warnings.

---

  arch/Kconfig                          |  4 ++--
  arch/arc/Kconfig                      | 14 +++++++-------
  arch/arm/Kconfig                      |  6 +++---
  arch/arm/mach-nexell/Kconfig          |  2 +-
  arch/arm/mach-rmobile/Kconfig.64      |  8 ++++----
  arch/arm/mach-rockchip/rv1108/Kconfig |  4 ++--
  arch/arm/mach-rockchip/rv1126/Kconfig |  2 +-
  arch/x86/cpu/apollolake/Kconfig       |  2 +-
  board/efi/Kconfig                     |  4 ++--
  board/openpiton/riscv64/Kconfig       |  2 +-
  board/siemens/iot2050/Kconfig         |  2 +-
  board/ti/am62ax/Kconfig               |  4 ++--
  board/ti/am62x/Kconfig                |  4 ++--
  board/ti/am64x/Kconfig                |  4 ++--
  board/ti/am65x/Kconfig                |  4 ++--
  board/ti/j721e/Kconfig                |  8 ++++----
  board/ti/j721s2/Kconfig               |  4 ++--
  cmd/Kconfig                           |  4 ++--
  drivers/clk/Kconfig                   | 10 +++++-----
  drivers/crypto/Kconfig                |  8 ++++----
  drivers/ddr/imx/imx8ulp/Kconfig       |  2 +-
  drivers/pinctrl/intel/Kconfig         |  2 +-
  drivers/usb/host/Kconfig              |  2 +-
  lib/Kconfig                           | 18 +++++++++---------
  24 files changed, 62 insertions(+), 62 deletions(-)
arch/Kconfig +2 -2
index d30676ae817..3b95fbe9b36 100644
@@ -53,8 +53,8 @@ config ARC
  	select SUPPORT_OF_CONTROL
  	select SYS_CACHE_SHIFT_7
  	select TIMER
-	select SYS_BIG_ENDIAN if CPU_BIG_ENDIAN
-	select SYS_LITTLE_ENDIAN if !CPU_BIG_ENDIAN
+	# select SYS_BIG_ENDIAN if CPU_BIG_ENDIAN
+	# select SYS_LITTLE_ENDIAN if !CPU_BIG_ENDIAN
 
  config ARM
  	bool "ARM architecture"
arch/arc/Kconfig +7 -7
index 6ae66bb163c..8c0d1c8a3ee 100644
@@ -32,35 +32,35 @@ choice
  config CPU_ARC750D
  	bool "ARC 750D"
  	depends on ISA_ARCOMPACT
-	select ARC_MMU_V2
+	# select ARC_MMU_V2
  	help
  	  Choose this option to build an U-Boot for ARC750D CPU.
 
  config CPU_ARC770D
  	bool "ARC 770D"
  	depends on ISA_ARCOMPACT
-	select ARC_MMU_V3
+	# select ARC_MMU_V3
  	help
  	  Choose this option to build an U-Boot for ARC770D CPU.
 
  config CPU_ARCEM6
  	bool "ARC EM6"
  	depends on ISA_ARCV2
-	select ARC_MMU_ABSENT
+	# select ARC_MMU_ABSENT
  	help
  	  Next Generation ARC Core based on ISA-v2 ISA without MMU.
 
  config CPU_ARCHS36
  	bool "ARC HS36"
  	depends on ISA_ARCV2
-	select ARC_MMU_ABSENT
+	# select ARC_MMU_ABSENT
  	help
  	  Next Generation ARC Core based on ISA-v2 ISA without MMU.
 
  config CPU_ARCHS38
  	bool "ARC HS38"
  	depends on ISA_ARCV2
-	select ARC_MMU_V4
+	# select ARC_MMU_V4
  	help
  	  Next Generation ARC Core based on ISA-v2 ISA with MMU.
 
@@ -172,14 +172,14 @@ config TARGET_AXS103
 
  config TARGET_EMSDP
  	bool "Synopsys EM Software Development Platform"
-	select CPU_ARCEM6
+	# select CPU_ARCEM6
 
  config TARGET_HSDK
  	bool "Support Synopsys HSDK or HSDK-4xD board"
 
  config TARGET_IOT_DEVKIT
  	bool "Synopsys Brite IoT Development kit"
-	select CPU_ARCEM6
+	# select CPU_ARCEM6
 
  endchoice
 
arch/arm/Kconfig +3 -3
index c9a44ebc221..b18af584770 100644
@@ -598,7 +598,7 @@ config ARCH_MVEBU
  	select SPL_TIMER if SPL
  	select TIMER if !ARM64
  	select OF_CONTROL
-	select OF_SEPARATE
+	# select OF_SEPARATE
  	select SPI
  	imply CMD_DM
 
@@ -1038,7 +1038,7 @@ config ARCH_SNAPDRAGON
  	select GPIO_EXTRA_HEADER
  	select MSM_SMEM
  	select OF_CONTROL
-	select OF_SEPARATE
+	# select OF_SEPARATE
  	select SMEM
  	select SPMI
  	imply CMD_DM
@@ -1107,7 +1107,7 @@ config ARCH_SUNXI
  	select GPIO_EXTRA_HEADER
  	select OF_BOARD_SETUP
  	select OF_CONTROL
-	select OF_SEPARATE
+	# select OF_SEPARATE
  	select PINCTRL
  	select SPECIFY_CONSOLE_INDEX
  	select SPL_SEPARATE_BSS if SPL
arch/arm/mach-nexell/Kconfig +1 -1
index 16324e15206..fd6c7774f68 100644
@@ -4,7 +4,7 @@ config ARCH_S5P4418
  	bool "Nexell S5P4418 SoC"
  	select CPU_V7A
  	select OF_CONTROL
-	select OF_SEPARATE
+	# select OF_SEPARATE
  	select NX_GPIO
  	select DM_SERIAL
  	select PL01X_SERIAL
arch/arm/mach-rmobile/Kconfig.64 +4 -4
index 007eaad251d..0e8a49deeb6 100644
@@ -93,7 +93,7 @@ config TARGET_BEACON_RZG2M
  	select PINCTRL_PFC_R8A774B1
  	select PINCTRL_PFC_R8A774E1
  	imply MULTI_DTB_FIT
-	imply MULTI_DTB_FIT_USER_DEFINED_AREA
+	# imply MULTI_DTB_FIT_USER_DEFINED_AREA
  	imply CLK_VERSACLOCK
  	imply CLK_CCF
 
@@ -135,7 +135,7 @@ config TARGET_HIHOPE_RZG2
  	imply RZ_G2
  	imply SYS_MALLOC_F
  	imply MULTI_DTB_FIT
-	imply MULTI_DTB_FIT_USER_DEFINED_AREA
+	# imply MULTI_DTB_FIT_USER_DEFINED_AREA
  	help
            Support for RZG2 HiHope platform
 
@@ -153,7 +153,7 @@ config TARGET_SALVATOR_X
  	imply R8A77965
  	imply SYS_MALLOC_F
  	imply MULTI_DTB_FIT
-	imply MULTI_DTB_FIT_USER_DEFINED_AREA
+	# imply MULTI_DTB_FIT_USER_DEFINED_AREA
  	help
            Support for Renesas R-Car Gen3 platform
 
@@ -164,7 +164,7 @@ config TARGET_ULCB
  	imply R8A77965
  	imply SYS_MALLOC_F
  	imply MULTI_DTB_FIT
-	imply MULTI_DTB_FIT_USER_DEFINED_AREA
+	# imply MULTI_DTB_FIT_USER_DEFINED_AREA
  	help
            Support for Renesas R-Car Gen3 ULCB platform
 
arch/arm/mach-rockchip/rv1108/Kconfig +2 -2
index a12216dccf6..28ed0b24581 100644
@@ -36,7 +36,7 @@ config SYS_SOC
  config SYS_MALLOC_F_LEN
  	default 0x400
 
-source board/rockchip/evb_rv1108/Kconfig
-source board/elgin/elgin_rv1108/Kconfig
+source "board/rockchip/evb_rv1108/Kconfig"
+source "board/elgin/elgin_rv1108/Kconfig"
 
  endif
arch/arm/mach-rockchip/rv1126/Kconfig +1 -1
index 7382c559966..e13d4093688 100644
@@ -54,6 +54,6 @@ config SYS_MALLOC_F_LEN
  config TEXT_BASE
  	default 0x600000
 
-source board/edgeble/neural-compute-module-2/Kconfig
+source "board/edgeble/neural-compute-module-2/Kconfig"
 
  endif
arch/x86/cpu/apollolake/Kconfig +1 -1
index c7f26d171cb..5fea952188a 100644
@@ -5,7 +5,7 @@
 
  config INTEL_APOLLOLAKE
  	bool
-	select FSP_VERSION2
+	# select FSP_VERSION2
  	select HAVE_FSP
  	select ARCH_MISC_INIT
  	select USE_CAR
board/efi/Kconfig +2 -2
index 3df6e31c8ba..688cb9d82d2 100644
@@ -6,7 +6,7 @@ choice
 
  config TARGET_EFI_APP32
  	bool "32-bit efi application"
-	select EFI_APP
+	# select EFI_APP
  	help
  	  This target is used for running U-Boot on top of EFI. In
  	  this case EFI does the early initialisation, and U-Boot
@@ -15,7 +15,7 @@ config TARGET_EFI_APP32
 
  config TARGET_EFI_APP64
  	bool "64-bit efi application"
-	select EFI_APP
+	# select EFI_APP
  	select X86_64
  	help
  	  This target is used for running U-Boot on top of EFI in 64-bit mode.
board/openpiton/riscv64/Kconfig +1 -1
index eb0db8a64c8..02ad27309aa 100644
@@ -35,6 +35,6 @@ config BOARD_SPECIFIC_OPTIONS # dummy
  	imply SPL_SMP
  	imply SPL_MMC
  	imply SMP
-	imply SPL_RISCV_MMODE
+	# imply SPL_RISCV_MMODE
 
  endif
board/siemens/iot2050/Kconfig +1 -1
index 063142a43bf..096102bd370 100644
@@ -9,7 +9,7 @@
  config TARGET_IOT2050_A53
  	bool "IOT2050 running on A53"
  	select ARM64
-	select SOC_K3_AM654
+	# select SOC_K3_AM654
  	select BOARD_LATE_INIT
  	select SYS_DISABLE_DCACHE_OPS
  	select BINMAN
board/ti/am62ax/Kconfig +2 -2
index 2c18cd49b5d..db3bdc5f35c 100644
@@ -10,7 +10,7 @@ choice
  config TARGET_AM62A7_A53_EVM
  	bool "TI K3 based AM62A7 EVM running on A53"
  	select ARM64
-	select SOC_K3_AM62A7
+	# select SOC_K3_AM62A7
  	imply BOARD
  	imply SPL_BOARD
  	imply TI_I2C_BOARD_DETECT
@@ -20,7 +20,7 @@ config TARGET_AM62A7_R5_EVM
  	select CPU_V7R
  	select SYS_THUMB_BUILD
  	select K3_LOAD_SYSFW
-	select SOC_K3_AM62A7
+	# select SOC_K3_AM62A7
  	select RAM
  	select SPL_RAM
  	select K3_DDRSS
board/ti/am62x/Kconfig +2 -2
index 87fed44df17..090ece3315a 100644
@@ -10,14 +10,14 @@ choice
  config TARGET_AM625_A53_EVM
  	bool "TI K3 based AM625 EVM running on A53"
  	select ARM64
-	select SOC_K3_AM625
+	# select SOC_K3_AM625
 
  config TARGET_AM625_R5_EVM
  	bool "TI K3 based AM625 EVM running on R5"
  	select CPU_V7R
  	select SYS_THUMB_BUILD
  	select K3_LOAD_SYSFW
-	select SOC_K3_AM625
+	# select SOC_K3_AM625
  	select RAM
  	select SPL_RAM
  	select K3_DDRSS
board/ti/am64x/Kconfig +2 -2
index 8036947e345..f642109686f 100644
@@ -9,7 +9,7 @@ choice
  config TARGET_AM642_A53_EVM
  	bool "TI K3 based AM642 EVM running on A53"
  	select ARM64
-	select SOC_K3_AM642
+	# select SOC_K3_AM642
  	imply BOARD
  	imply SPL_BOARD
  	imply TI_I2C_BOARD_DETECT
@@ -19,7 +19,7 @@ config TARGET_AM642_R5_EVM
  	select CPU_V7R
  	select SYS_THUMB_BUILD
  	select K3_LOAD_SYSFW
-	select SOC_K3_AM642
+	# select SOC_K3_AM642
  	select RAM
  	select SPL_RAM
  	select K3_DDRSS
board/ti/am65x/Kconfig +2 -2
index 4765b13ba0c..dcdc46f0b59 100644
@@ -10,7 +10,7 @@ choice
  config TARGET_AM654_A53_EVM
  	bool "TI K3 based AM654 EVM running on A53"
  	select ARM64
-	select SOC_K3_AM654
+	# select SOC_K3_AM654
  	select SYS_DISABLE_DCACHE_OPS
  	select BOARD_LATE_INIT
  	imply TI_I2C_BOARD_DETECT
@@ -19,7 +19,7 @@ config TARGET_AM654_R5_EVM
  	bool "TI K3 based AM654 EVM running on R5"
  	select CPU_V7R
  	select SYS_THUMB_BUILD
-	select SOC_K3_AM654
+	# select SOC_K3_AM654
  	select K3_LOAD_SYSFW
  	select K3_AM654_DDRSS
  	imply SYS_K3_SPL_ATF
board/ti/j721e/Kconfig +4 -4
index d19d30d59ef..f997741fe5a 100644
@@ -10,7 +10,7 @@ choice
  config TARGET_J721E_A72_EVM
  	bool "TI K3 based J721E EVM running on A72"
  	select ARM64
-	select SOC_K3_J721E
+	# select SOC_K3_J721E
  	select BOARD_LATE_INIT
  	imply TI_I2C_BOARD_DETECT
  	select SYS_DISABLE_DCACHE_OPS
@@ -19,7 +19,7 @@ config TARGET_J721E_R5_EVM
  	bool "TI K3 based J721E EVM running on R5"
  	select CPU_V7R
  	select SYS_THUMB_BUILD
-	select SOC_K3_J721E
+	# select SOC_K3_J721E
  	select K3_LOAD_SYSFW
  	select RAM
  	select SPL_RAM
@@ -30,7 +30,7 @@ config TARGET_J721E_R5_EVM
  config TARGET_J7200_A72_EVM
  	bool "TI K3 based J7200 EVM running on A72"
  	select ARM64
-	select SOC_K3_J721E
+	# select SOC_K3_J721E
  	select BOARD_LATE_INIT
  	imply TI_I2C_BOARD_DETECT
  	select SYS_DISABLE_DCACHE_OPS
@@ -39,7 +39,7 @@ config TARGET_J7200_R5_EVM
  	bool "TI K3 based J7200 EVM running on R5"
  	select CPU_V7R
  	select SYS_THUMB_BUILD
-	select SOC_K3_J721E
+	# select SOC_K3_J721E
  	select K3_LOAD_SYSFW
  	select RAM
  	select SPL_RAM
board/ti/j721s2/Kconfig +1 -1
index 6141798333c..1631778eaed 100644
@@ -10,7 +10,7 @@ choice
  config TARGET_J721S2_A72_EVM
  	bool "TI K3 based J721S2 EVM running on A72"
  	select ARM64
-	select SOC_K3_J721S2
+	# select SOC_K3_J721S2
  	select BOARD_LATE_INIT
  	imply TI_I2C_BOARD_DETECT
  	select SYS_DISABLE_DCACHE_OPS

board/ti/j721s2/Kconfig config TARGET_J721S2_R5_EVM · line 25

Quoted 8 lines
board/ti/j721s2/Kconfig +1 -1
@@ -19,7 +19,7 @@ config TARGET_J721S2_R5_EVM
  	bool "TI K3 based J721S2 EVM running on R5"
  	select CPU_V7R
  	select SYS_THUMB_BUILD
-	select SOC_K3_J721S2
+	# select SOC_K3_J721S2
  	select K3_LOAD_SYSFW
  	select RAM
  	select SPL_RAM

This commit will break board support for these K3 devices. Understanding that choices can't be selected, can we keep this patch on hold till we can clean it up without breaking anything?

Quoted 175 lines
cmd/Kconfig +2 -2
index 4fe2c75de25..b3c1fcaf6e6 100644
@@ -394,7 +394,7 @@ config CMD_BOOTEFI_HELLO
  	  for testing that EFI is working at a basic level, and for bringing
  	  up EFI support on a new architecture.
 
-source lib/efi_selftest/Kconfig
+source "lib/efi_selftest/Kconfig"
 
  config CMD_BOOTMENU
  	bool "bootmenu"
@@ -1876,7 +1876,7 @@ config CMD_DNS
 
  config CMD_LINK_LOCAL
  	bool "linklocal"
-	select LIB_RAND
+	# select LIB_RAND
  	help
  	  Acquire a network IP address using the link-local protocol
 
drivers/clk/Kconfig +5 -5
index 09aa97ee8c0..a7409a0cb34 100644
@@ -57,27 +57,27 @@ config CLK_BOSTON
  	  Enable this to support the clocks
 
  config SPL_CLK_CCF
-	bool "SPL Common Clock Framework [CCF] support "
+	bool "SPL Common Clock Framework [CCF] support"
  	depends on SPL
  	help
  	  Enable this option if you want to (re-)use the Linux kernel's Common
  	  Clock Framework [CCF] code in U-Boot's SPL.
 
  config SPL_CLK_COMPOSITE_CCF
-	bool "SPL Common Clock Framework [CCF] composite clk support "
+	bool "SPL Common Clock Framework [CCF] composite clk support"
  	depends on SPL_CLK_CCF
  	help
  	  Enable this option if you want to (re-)use the Linux kernel's Common
  	  Clock Framework [CCF] composite code in U-Boot's SPL.
 
  config CLK_CCF
-	bool "Common Clock Framework [CCF] support "
+	bool "Common Clock Framework [CCF] support"
  	help
  	  Enable this option if you want to (re-)use the Linux kernel's Common
  	  Clock Framework [CCF] code in U-Boot's clock driver.
 
  config CLK_COMPOSITE_CCF
-	bool "Common Clock Framework [CCF] composite clk support "
+	bool "Common Clock Framework [CCF] composite clk support"
  	depends on CLK_CCF
  	help
  	  Enable this option if you want to (re-)use the Linux kernel's Common
@@ -151,7 +151,7 @@ config CLK_OCTEON
  	  Enable this to support the clocks on Octeon MIPS platforms.
 
  config SANDBOX_CLK_CCF
-	bool "Sandbox Common Clock Framework [CCF] support "
+	bool "Sandbox Common Clock Framework [CCF] support"
  	depends on SANDBOX
  	select CLK_CCF
  	help
drivers/crypto/Kconfig +4 -4
index 12ef84ca05c..8b49997030b 100644
@@ -1,11 +1,11 @@
  menu "Hardware crypto devices"
 
-source drivers/crypto/hash/Kconfig
+source "drivers/crypto/hash/Kconfig"
 
-source drivers/crypto/fsl/Kconfig
+source "drivers/crypto/fsl/Kconfig"
 
-source drivers/crypto/aspeed/Kconfig
+source "drivers/crypto/aspeed/Kconfig"
 
-source drivers/crypto/nuvoton/Kconfig
+source "drivers/crypto/nuvoton/Kconfig"
 
  endmenu
drivers/ddr/imx/imx8ulp/Kconfig +1 -1
index 42848863aae..90407982de9 100644
@@ -5,7 +5,7 @@ config IMX8ULP_DRAM
  	bool "imx8m dram"
 
  config IMX8ULP_DRAM_PHY_PLL_BYPASS
-	bool "Enable the DDR PHY PLL bypass mode, so PHY clock is from DDR_CLK "
+	bool "Enable the DDR PHY PLL bypass mode, so PHY clock is from DDR_CLK"
  	depends on IMX8ULP_DRAM
 
  config SAVED_DRAM_TIMING_BASE
drivers/pinctrl/intel/Kconfig +1 -1
index 316a8fe27fd..233289c9be8 100644
@@ -9,7 +9,7 @@ config INTEL_PINCTRL_DUAL_ROUTE_SUPPORT
  	default y
 
  config INTEL_PINCTRL_PADCFG_PADTOL
-	bool n
+	bool
 
  config INTEL_PINCTRL_IOSTANDBY
  	bool
drivers/usb/host/Kconfig +1 -1
index 6213b3c95fa..d7209637479 100644
@@ -252,7 +252,7 @@ endif
  config USB_EHCI_MSM
  	bool "Support for Qualcomm on-chip EHCI USB controller"
  	depends on DM_USB
-	select USB_ULPI_VIEWPORT
+	# select USB_ULPI_VIEWPORT
  	select MSM8916_USB_PHY
  	---help---
  	  Enables support for the on-chip EHCI controller on Qualcomm
lib/Kconfig +9 -9
index 549bd357785..efb0cbccc83 100644
@@ -389,7 +389,7 @@ config TRACE_EARLY_ADDR
  config CIRCBUF
  	bool "Enable circular buffer support"
 
-source lib/dhry/Kconfig
+source "lib/dhry/Kconfig"
 
  menu "Security support"
 
@@ -402,10 +402,10 @@ config AES
  	  supported by the algorithm but only a 128-bit key is supported at
  	  present.
 
-source lib/ecdsa/Kconfig
-source lib/rsa/Kconfig
-source lib/crypto/Kconfig
-source lib/crypt/Kconfig
+source "lib/ecdsa/Kconfig"
+source "lib/rsa/Kconfig"
+source "lib/crypto/Kconfig"
+source "lib/crypt/Kconfig"
 
  config TPM
  	bool "Trusted Platform Module (TPM) Support"
@@ -1001,9 +1001,9 @@ config SMBIOS_PARSER
  	help
  	  A simple parser for SMBIOS data.
 
-source lib/efi/Kconfig
-source lib/efi_loader/Kconfig
-source lib/optee/Kconfig
+source "lib/efi/Kconfig"
+source "lib/efi_loader/Kconfig"
+source "lib/optee/Kconfig"
 
  config TEST_FDTDEC
  	bool "enable fdtdec test"
@@ -1071,6 +1071,6 @@ endmenu
 
  menu "FWU Multi Bank Updates"
 
-source lib/fwu_updates/Kconfig
+source "lib/fwu_updates/Kconfig"
 
  endmenu
Signature · 2 lines
Thanking You
Neha Malcom Francis
#4 lore raw

Re: [PATCH 02/88] treewide: Correct invalid Kconfig syntax and warnings

Quoted 406 lines · Neha Malcom Francis

Hi Simon

Quoted 403 lines · Simon Glass

In several places a 'select' is used to select a choice, which is not supported by Kconfig. In other places, the filename for the 'source' command is not in quites.

Fix these two problems throughout the tree, so that kconfiglib does not show any more warnings.

---

  arch/Kconfig                          |  4 ++--
  arch/arc/Kconfig                      | 14 +++++++-------
  arch/arm/Kconfig                      |  6 +++---
  arch/arm/mach-nexell/Kconfig          |  2 +-
  arch/arm/mach-rmobile/Kconfig.64      |  8 ++++----
  arch/arm/mach-rockchip/rv1108/Kconfig |  4 ++--
  arch/arm/mach-rockchip/rv1126/Kconfig |  2 +-
  arch/x86/cpu/apollolake/Kconfig       |  2 +-
  board/efi/Kconfig                     |  4 ++--
  board/openpiton/riscv64/Kconfig       |  2 +-
  board/siemens/iot2050/Kconfig         |  2 +-
  board/ti/am62ax/Kconfig               |  4 ++--
  board/ti/am62x/Kconfig                |  4 ++--
  board/ti/am64x/Kconfig                |  4 ++--
  board/ti/am65x/Kconfig                |  4 ++--
  board/ti/j721e/Kconfig                |  8 ++++----
  board/ti/j721s2/Kconfig               |  4 ++--
  cmd/Kconfig                           |  4 ++--
  drivers/clk/Kconfig                   | 10 +++++-----
  drivers/crypto/Kconfig                |  8 ++++----
  drivers/ddr/imx/imx8ulp/Kconfig       |  2 +-
  drivers/pinctrl/intel/Kconfig         |  2 +-
  drivers/usb/host/Kconfig              |  2 +-
  lib/Kconfig                           | 18 +++++++++---------
  24 files changed, 62 insertions(+), 62 deletions(-)
arch/Kconfig +2 -2
index d30676ae817..3b95fbe9b36 100644
@@ -53,8 +53,8 @@ config ARC
  	select SUPPORT_OF_CONTROL
  	select SYS_CACHE_SHIFT_7
  	select TIMER
-	select SYS_BIG_ENDIAN if CPU_BIG_ENDIAN
-	select SYS_LITTLE_ENDIAN if !CPU_BIG_ENDIAN
+	# select SYS_BIG_ENDIAN if CPU_BIG_ENDIAN
+	# select SYS_LITTLE_ENDIAN if !CPU_BIG_ENDIAN
  config ARM
  	bool "ARM architecture"
arch/arc/Kconfig +7 -7
index 6ae66bb163c..8c0d1c8a3ee 100644
@@ -32,35 +32,35 @@ choice
  config CPU_ARC750D
  	bool "ARC 750D"
  	depends on ISA_ARCOMPACT
-	select ARC_MMU_V2
+	# select ARC_MMU_V2
  	help
  	  Choose this option to build an U-Boot for ARC750D CPU.
  config CPU_ARC770D
  	bool "ARC 770D"
  	depends on ISA_ARCOMPACT
-	select ARC_MMU_V3
+	# select ARC_MMU_V3
  	help
  	  Choose this option to build an U-Boot for ARC770D CPU.
  config CPU_ARCEM6
  	bool "ARC EM6"
  	depends on ISA_ARCV2
-	select ARC_MMU_ABSENT
+	# select ARC_MMU_ABSENT
  	help
  	  Next Generation ARC Core based on ISA-v2 ISA without MMU.
  config CPU_ARCHS36
  	bool "ARC HS36"
  	depends on ISA_ARCV2
-	select ARC_MMU_ABSENT
+	# select ARC_MMU_ABSENT
  	help
  	  Next Generation ARC Core based on ISA-v2 ISA without MMU.
  config CPU_ARCHS38
  	bool "ARC HS38"
  	depends on ISA_ARCV2
-	select ARC_MMU_V4
+	# select ARC_MMU_V4
  	help
  	  Next Generation ARC Core based on ISA-v2 ISA with MMU.
@@ -172,14 +172,14 @@ config TARGET_AXS103
  config TARGET_EMSDP
  	bool "Synopsys EM Software Development Platform"
-	select CPU_ARCEM6
+	# select CPU_ARCEM6
  config TARGET_HSDK
  	bool "Support Synopsys HSDK or HSDK-4xD board"
  config TARGET_IOT_DEVKIT
  	bool "Synopsys Brite IoT Development kit"
-	select CPU_ARCEM6
+	# select CPU_ARCEM6
  endchoice
arch/arm/Kconfig +3 -3
index c9a44ebc221..b18af584770 100644
@@ -598,7 +598,7 @@ config ARCH_MVEBU
  	select SPL_TIMER if SPL
  	select TIMER if !ARM64
  	select OF_CONTROL
-	select OF_SEPARATE
+	# select OF_SEPARATE
  	select SPI
  	imply CMD_DM
@@ -1038,7 +1038,7 @@ config ARCH_SNAPDRAGON
  	select GPIO_EXTRA_HEADER
  	select MSM_SMEM
  	select OF_CONTROL
-	select OF_SEPARATE
+	# select OF_SEPARATE
  	select SMEM
  	select SPMI
  	imply CMD_DM
@@ -1107,7 +1107,7 @@ config ARCH_SUNXI
  	select GPIO_EXTRA_HEADER
  	select OF_BOARD_SETUP
  	select OF_CONTROL
-	select OF_SEPARATE
+	# select OF_SEPARATE
  	select PINCTRL
  	select SPECIFY_CONSOLE_INDEX
  	select SPL_SEPARATE_BSS if SPL
arch/arm/mach-nexell/Kconfig +1 -1
index 16324e15206..fd6c7774f68 100644
@@ -4,7 +4,7 @@ config ARCH_S5P4418
  	bool "Nexell S5P4418 SoC"
  	select CPU_V7A
  	select OF_CONTROL
-	select OF_SEPARATE
+	# select OF_SEPARATE
  	select NX_GPIO
  	select DM_SERIAL
  	select PL01X_SERIAL
arch/arm/mach-rmobile/Kconfig.64 +4 -4
index 007eaad251d..0e8a49deeb6 100644
@@ -93,7 +93,7 @@ config TARGET_BEACON_RZG2M
  	select PINCTRL_PFC_R8A774B1
  	select PINCTRL_PFC_R8A774E1
  	imply MULTI_DTB_FIT
-	imply MULTI_DTB_FIT_USER_DEFINED_AREA
+	# imply MULTI_DTB_FIT_USER_DEFINED_AREA
  	imply CLK_VERSACLOCK
  	imply CLK_CCF
@@ -135,7 +135,7 @@ config TARGET_HIHOPE_RZG2
  	imply RZ_G2
  	imply SYS_MALLOC_F
  	imply MULTI_DTB_FIT
-	imply MULTI_DTB_FIT_USER_DEFINED_AREA
+	# imply MULTI_DTB_FIT_USER_DEFINED_AREA
  	help
            Support for RZG2 HiHope platform
@@ -153,7 +153,7 @@ config TARGET_SALVATOR_X
  	imply R8A77965
  	imply SYS_MALLOC_F
  	imply MULTI_DTB_FIT
-	imply MULTI_DTB_FIT_USER_DEFINED_AREA
+	# imply MULTI_DTB_FIT_USER_DEFINED_AREA
  	help
            Support for Renesas R-Car Gen3 platform
@@ -164,7 +164,7 @@ config TARGET_ULCB
  	imply R8A77965
  	imply SYS_MALLOC_F
  	imply MULTI_DTB_FIT
-	imply MULTI_DTB_FIT_USER_DEFINED_AREA
+	# imply MULTI_DTB_FIT_USER_DEFINED_AREA
  	help
            Support for Renesas R-Car Gen3 ULCB platform
arch/arm/mach-rockchip/rv1108/Kconfig +2 -2
index a12216dccf6..28ed0b24581 100644
@@ -36,7 +36,7 @@ config SYS_SOC
  config SYS_MALLOC_F_LEN
  	default 0x400
-source board/rockchip/evb_rv1108/Kconfig
-source board/elgin/elgin_rv1108/Kconfig
+source "board/rockchip/evb_rv1108/Kconfig"
+source "board/elgin/elgin_rv1108/Kconfig"
  endif
arch/arm/mach-rockchip/rv1126/Kconfig +1 -1
index 7382c559966..e13d4093688 100644
@@ -54,6 +54,6 @@ config SYS_MALLOC_F_LEN
  config TEXT_BASE
  	default 0x600000
-source board/edgeble/neural-compute-module-2/Kconfig
+source "board/edgeble/neural-compute-module-2/Kconfig"
  endif
arch/x86/cpu/apollolake/Kconfig +1 -1
index c7f26d171cb..5fea952188a 100644
@@ -5,7 +5,7 @@
  config INTEL_APOLLOLAKE
  	bool
-	select FSP_VERSION2
+	# select FSP_VERSION2
  	select HAVE_FSP
  	select ARCH_MISC_INIT
  	select USE_CAR
board/efi/Kconfig +2 -2
index 3df6e31c8ba..688cb9d82d2 100644
@@ -6,7 +6,7 @@ choice
  config TARGET_EFI_APP32
  	bool "32-bit efi application"
-	select EFI_APP
+	# select EFI_APP
  	help
  	  This target is used for running U-Boot on top of EFI. In
  	  this case EFI does the early initialisation, and U-Boot
@@ -15,7 +15,7 @@ config TARGET_EFI_APP32
  config TARGET_EFI_APP64
  	bool "64-bit efi application"
-	select EFI_APP
+	# select EFI_APP
  	select X86_64
  	help
  	  This target is used for running U-Boot on top of EFI in 64-bit mode.
board/openpiton/riscv64/Kconfig +1 -1
index eb0db8a64c8..02ad27309aa 100644
@@ -35,6 +35,6 @@ config BOARD_SPECIFIC_OPTIONS # dummy
  	imply SPL_SMP
  	imply SPL_MMC
  	imply SMP
-	imply SPL_RISCV_MMODE
+	# imply SPL_RISCV_MMODE
  endif
board/siemens/iot2050/Kconfig +1 -1
index 063142a43bf..096102bd370 100644
@@ -9,7 +9,7 @@
  config TARGET_IOT2050_A53
  	bool "IOT2050 running on A53"
  	select ARM64
-	select SOC_K3_AM654
+	# select SOC_K3_AM654
  	select BOARD_LATE_INIT
  	select SYS_DISABLE_DCACHE_OPS
  	select BINMAN
board/ti/am62ax/Kconfig +2 -2
index 2c18cd49b5d..db3bdc5f35c 100644
@@ -10,7 +10,7 @@ choice
  config TARGET_AM62A7_A53_EVM
  	bool "TI K3 based AM62A7 EVM running on A53"
  	select ARM64
-	select SOC_K3_AM62A7
+	# select SOC_K3_AM62A7
  	imply BOARD
  	imply SPL_BOARD
  	imply TI_I2C_BOARD_DETECT
@@ -20,7 +20,7 @@ config TARGET_AM62A7_R5_EVM
  	select CPU_V7R
  	select SYS_THUMB_BUILD
  	select K3_LOAD_SYSFW
-	select SOC_K3_AM62A7
+	# select SOC_K3_AM62A7
  	select RAM
  	select SPL_RAM
  	select K3_DDRSS
board/ti/am62x/Kconfig +2 -2
index 87fed44df17..090ece3315a 100644
@@ -10,14 +10,14 @@ choice
  config TARGET_AM625_A53_EVM
  	bool "TI K3 based AM625 EVM running on A53"
  	select ARM64
-	select SOC_K3_AM625
+	# select SOC_K3_AM625
  config TARGET_AM625_R5_EVM
  	bool "TI K3 based AM625 EVM running on R5"
  	select CPU_V7R
  	select SYS_THUMB_BUILD
  	select K3_LOAD_SYSFW
-	select SOC_K3_AM625
+	# select SOC_K3_AM625
  	select RAM
  	select SPL_RAM
  	select K3_DDRSS
board/ti/am64x/Kconfig +2 -2
index 8036947e345..f642109686f 100644
@@ -9,7 +9,7 @@ choice
  config TARGET_AM642_A53_EVM
  	bool "TI K3 based AM642 EVM running on A53"
  	select ARM64
-	select SOC_K3_AM642
+	# select SOC_K3_AM642
  	imply BOARD
  	imply SPL_BOARD
  	imply TI_I2C_BOARD_DETECT
@@ -19,7 +19,7 @@ config TARGET_AM642_R5_EVM
  	select CPU_V7R
  	select SYS_THUMB_BUILD
  	select K3_LOAD_SYSFW
-	select SOC_K3_AM642
+	# select SOC_K3_AM642
  	select RAM
  	select SPL_RAM
  	select K3_DDRSS
board/ti/am65x/Kconfig +2 -2
index 4765b13ba0c..dcdc46f0b59 100644
@@ -10,7 +10,7 @@ choice
  config TARGET_AM654_A53_EVM
  	bool "TI K3 based AM654 EVM running on A53"
  	select ARM64
-	select SOC_K3_AM654
+	# select SOC_K3_AM654
  	select SYS_DISABLE_DCACHE_OPS
  	select BOARD_LATE_INIT
  	imply TI_I2C_BOARD_DETECT
@@ -19,7 +19,7 @@ config TARGET_AM654_R5_EVM
  	bool "TI K3 based AM654 EVM running on R5"
  	select CPU_V7R
  	select SYS_THUMB_BUILD
-	select SOC_K3_AM654
+	# select SOC_K3_AM654
  	select K3_LOAD_SYSFW
  	select K3_AM654_DDRSS
  	imply SYS_K3_SPL_ATF
board/ti/j721e/Kconfig +4 -4
index d19d30d59ef..f997741fe5a 100644
@@ -10,7 +10,7 @@ choice
  config TARGET_J721E_A72_EVM
  	bool "TI K3 based J721E EVM running on A72"
  	select ARM64
-	select SOC_K3_J721E
+	# select SOC_K3_J721E
  	select BOARD_LATE_INIT
  	imply TI_I2C_BOARD_DETECT
  	select SYS_DISABLE_DCACHE_OPS
@@ -19,7 +19,7 @@ config TARGET_J721E_R5_EVM
  	bool "TI K3 based J721E EVM running on R5"
  	select CPU_V7R
  	select SYS_THUMB_BUILD
-	select SOC_K3_J721E
+	# select SOC_K3_J721E
  	select K3_LOAD_SYSFW
  	select RAM
  	select SPL_RAM
@@ -30,7 +30,7 @@ config TARGET_J721E_R5_EVM
  config TARGET_J7200_A72_EVM
  	bool "TI K3 based J7200 EVM running on A72"
  	select ARM64
-	select SOC_K3_J721E
+	# select SOC_K3_J721E
  	select BOARD_LATE_INIT
  	imply TI_I2C_BOARD_DETECT
  	select SYS_DISABLE_DCACHE_OPS
@@ -39,7 +39,7 @@ config TARGET_J7200_R5_EVM
  	bool "TI K3 based J7200 EVM running on R5"
  	select CPU_V7R
  	select SYS_THUMB_BUILD
-	select SOC_K3_J721E
+	# select SOC_K3_J721E
  	select K3_LOAD_SYSFW
  	select RAM
  	select SPL_RAM
board/ti/j721s2/Kconfig +1 -2
index 6141798333c..1631778eaed 100644
@@ -10,7 +10,7 @@ choice
  config TARGET_J721S2_A72_EVM
  	bool "TI K3 based J721S2 EVM running on A72"
  	select ARM64
-	select SOC_K3_J721S2
+	# select SOC_K3_J721S2
  	select BOARD_LATE_INIT
  	imply TI_I2C_BOARD_DETECT
  	select SYS_DISABLE_DCACHE_OPS
@@ -19,7 +19,7 @@ config TARGET_J721S2_R5_EVM
  	bool "TI K3 based J721S2 EVM running on R5"
  	select CPU_V7R
  	select SYS_THUMB_BUILD
-	select SOC_K3_J721S2
Quoted 8 lines

board/ti/j721s2/Kconfig config TARGET_J721S2_R5_EVM · line 25

Quoted 4 lines
board/ti/j721s2/Kconfig +1 -0
+	# select SOC_K3_J721S2
  	select K3_LOAD_SYSFW
  	select RAM
  	select SPL_RAM

This commit will break board support for these K3 devices. Understanding that choices can't be selected, can we keep this patch on hold till we can clean it up without breaking anything?

Yeah, pretty much every one of the changes to comment out a line is wrong and the underlying why needs to be fixed. For the BE/LE one for example, there's a conflict between how MIPS does it, and how ARC does it. For these SOC ones, the options likely shouldn't be asked about at all, and be select'd by the TARGET in the board choice selection.

Signature · 1 line
Tom
#5 lore raw

Re: [PATCH 02/88] treewide: Correct invalid Kconfig syntax and warnings

In reply to Simon Glass
Quoted 8 lines · Simon Glass

In several places a 'select' is used to select a choice, which is not supported by Kconfig. In other places, the filename for the 'source' command is not in quites.

Fix these two problems throughout the tree, so that kconfiglib does not show any more warnings.

OK, to summarize what I just said in another email and clarify future work. Please first split this patch in to its own series that corrects each type of problem, per commit. The missing quotes for example, and then the extra whitespace ones. Next, commenting out a select is wrong, and each case needs to be better understood / fixed. I'm honestly not sure if asking endianness for MIPS is right and if we should select that from boards too, like ARC, but probably. The ARC_MMU one also should just not be asked, I suspect, but as a separate patch where you cc Alexey, we'll find out :) And so on, for each. Thanks.

Signature · 1 line
Tom
#6 lore raw

Re: [PATCH 02/88] treewide: Correct invalid Kconfig syntax and warnings

Quoted 11 lines · Tom Rini
Quoted 8 lines · Simon Glass

In several places a 'select' is used to select a choice, which is not supported by Kconfig. In other places, the filename for the 'source' command is not in quites.

Fix these two problems throughout the tree, so that kconfiglib does not show any more warnings.

Quoted 10 lines

OK, to summarize what I just said in another email and clarify future work. Please first split this patch in to its own series that corrects each type of problem, per commit. The missing quotes for example, and then the extra whitespace ones. Next, commenting out a select is wrong, and each case needs to be better understood / fixed. I'm honestly not sure if asking endianness for MIPS is right and if we should select that from boards too, like ARC, but probably. The ARC_MMU one also should just not be asked, I suspect, but as a separate patch where you cc Alexey, we'll find out :) And so on, for each. Thanks.

For MIPS the endianess (and also architecture/ISA level) needs to be able to be set by the user via menuconfig as most MIPS cores or SoCs can support multiple variants. The idea is that the specific SoC or machine just sets the supported options to restrict the options the user can choose. The board's defconfig should set the required default value for each option but must not *select* it.

See the Boston board for example:

config TARGET_BOSTON

	bool "Support Boston"
	...
	select SUPPORTS_BIG_ENDIAN
	select SUPPORTS_CPU_MIPS32_R1
	select SUPPORTS_CPU_MIPS32_R2
	select SUPPORTS_CPU_MIPS32_R6
	select SUPPORTS_CPU_MIPS64_R1
	select SUPPORTS_CPU_MIPS64_R2
	select SUPPORTS_CPU_MIPS64_R6
	select SUPPORTS_LITTLE_ENDIAN

A possible fix for ARC could be:

arch/Kconfig +3 -5
@@ -53,8 +53,6 @@ config ARC
        select SUPPORT_OF_CONTROL
        select SYS_CACHE_SHIFT_7
        select TIMER
-       select SYS_BIG_ENDIAN if CPU_BIG_ENDIAN
-       select SYS_LITTLE_ENDIAN if !CPU_BIG_ENDIAN
 
 config ARM
        bool "ARM architecture"
@@ -490,7 +488,7 @@ endif
 
 source "board/keymile/Kconfig"
 
-if MIPS || MICROBLAZE
+if MIPS || MICROBLAZE || ARC
 
 choice
        prompt "Endianness selection"
@@ -502,11 +500,11 @@ choice
 
 config SYS_BIG_ENDIAN
        bool "Big endian"
-       depends on (SUPPORTS_BIG_ENDIAN && MIPS) || MICROBLAZE
+       depends on (SUPPORTS_BIG_ENDIAN && MIPS) || MICROBLAZE || (CPU_BIG_ENDIAN && ARC)
 
 config SYS_LITTLE_ENDIAN
        bool "Little endian"
-       depends on (SUPPORTS_LITTLE_ENDIAN && MIPS) || MICROBLAZE
+       depends on (SUPPORTS_LITTLE_ENDIAN && MIPS) || MICROBLAZE || (CPU_LITTLE_ENDIAN && ARC)
 
 endchoice
 

A *make savedefconfig* should than automatically add *CONFIG_SYS_LITTLE_ENDIAN=y* or *CONFIG_SYS_BIG_ENDIAN=y* to the ARC board defconfig's.

Signature · 1 line
- Daniel
#7 lore raw

Re: [PATCH 02/88] treewide: Correct invalid Kconfig syntax and warnings

Quoted 79 lines · Daniel Schwierzeck
Quoted 11 lines · Tom Rini
Quoted 8 lines · Simon Glass

In several places a 'select' is used to select a choice, which is not supported by Kconfig. In other places, the filename for the 'source' command is not in quites.

Fix these two problems throughout the tree, so that kconfiglib does not show any more warnings.

Quoted 10 lines

OK, to summarize what I just said in another email and clarify future work. Please first split this patch in to its own series that corrects each type of problem, per commit. The missing quotes for example, and then the extra whitespace ones. Next, commenting out a select is wrong, and each case needs to be better understood / fixed. I'm honestly not sure if asking endianness for MIPS is right and if we should select that from boards too, like ARC, but probably. The ARC_MMU one also should just not be asked, I suspect, but as a separate patch where you cc Alexey, we'll find out :) And so on, for each. Thanks.

For MIPS the endianess (and also architecture/ISA level) needs to be able to be set by the user via menuconfig as most MIPS cores or SoCs can support multiple variants. The idea is that the specific SoC or machine just sets the supported options to restrict the options the user can choose. The board's defconfig should set the required default value for each option but must not *select* it.

See the Boston board for example:

config TARGET_BOSTON

	bool "Support Boston"
	...
	select SUPPORTS_BIG_ENDIAN
	select SUPPORTS_CPU_MIPS32_R1
	select SUPPORTS_CPU_MIPS32_R2
	select SUPPORTS_CPU_MIPS32_R6
	select SUPPORTS_CPU_MIPS64_R1
	select SUPPORTS_CPU_MIPS64_R2
	select SUPPORTS_CPU_MIPS64_R6
	select SUPPORTS_LITTLE_ENDIAN

A possible fix for ARC could be:

arch/Kconfig +3 -5
@@ -53,8 +53,6 @@ config ARC
        select SUPPORT_OF_CONTROL
        select SYS_CACHE_SHIFT_7
        select TIMER
-       select SYS_BIG_ENDIAN if CPU_BIG_ENDIAN
-       select SYS_LITTLE_ENDIAN if !CPU_BIG_ENDIAN
 config ARM
        bool "ARM architecture"
@@ -490,7 +488,7 @@ endif
 source "board/keymile/Kconfig"
-if MIPS || MICROBLAZE
+if MIPS || MICROBLAZE || ARC
 choice
        prompt "Endianness selection"
@@ -502,11 +500,11 @@ choice
 config SYS_BIG_ENDIAN
        bool "Big endian"
-       depends on (SUPPORTS_BIG_ENDIAN && MIPS) || MICROBLAZE
+       depends on (SUPPORTS_BIG_ENDIAN && MIPS) || MICROBLAZE || (CPU_BIG_ENDIAN && ARC)
 config SYS_LITTLE_ENDIAN
        bool "Little endian"
-       depends on (SUPPORTS_LITTLE_ENDIAN && MIPS) || MICROBLAZE
+       depends on (SUPPORTS_LITTLE_ENDIAN && MIPS) || MICROBLAZE || (CPU_LITTLE_ENDIAN && ARC)
 endchoice
 
 
 
Quoted 2 lines

A *make savedefconfig* should than automatically add *CONFIG_SYS_LITTLE_ENDIAN=y* or *CONFIG_SYS_BIG_ENDIAN=y* to the ARC board defconfig's.

Thanks for explaining.

Signature · 1 line
Tom
#8 lore raw

Re: [PATCH 02/88] treewide: Correct invalid Kconfig syntax and warnings

Hi,

Quoted 81 lines · Tom Rini
Quoted 79 lines · Daniel Schwierzeck
Quoted 11 lines · Tom Rini
Quoted 8 lines · Simon Glass

In several places a 'select' is used to select a choice, which is not supported by Kconfig. In other places, the filename for the 'source' command is not in quites.

Fix these two problems throughout the tree, so that kconfiglib does not show any more warnings.

Quoted 10 lines

OK, to summarize what I just said in another email and clarify future work. Please first split this patch in to its own series that corrects each type of problem, per commit. The missing quotes for example, and then the extra whitespace ones. Next, commenting out a select is wrong, and each case needs to be better understood / fixed. I'm honestly not sure if asking endianness for MIPS is right and if we should select that from boards too, like ARC, but probably. The ARC_MMU one also should just not be asked, I suspect, but as a separate patch where you cc Alexey, we'll find out :) And so on, for each. Thanks.

For MIPS the endianess (and also architecture/ISA level) needs to be able to be set by the user via menuconfig as most MIPS cores or SoCs can support multiple variants. The idea is that the specific SoC or machine just sets the supported options to restrict the options the user can choose. The board's defconfig should set the required default value for each option but must not *select* it.

See the Boston board for example:

config TARGET_BOSTON
bool "Support Boston"
...
select SUPPORTS_BIG_ENDIAN
select SUPPORTS_CPU_MIPS32_R1
select SUPPORTS_CPU_MIPS32_R2
select SUPPORTS_CPU_MIPS32_R6
select SUPPORTS_CPU_MIPS64_R1
select SUPPORTS_CPU_MIPS64_R2
select SUPPORTS_CPU_MIPS64_R6
select SUPPORTS_LITTLE_ENDIAN

A possible fix for ARC could be:

arch/Kconfig +3 -5
@@ -53,8 +53,6 @@ config ARC
        select SUPPORT_OF_CONTROL
        select SYS_CACHE_SHIFT_7
        select TIMER
-       select SYS_BIG_ENDIAN if CPU_BIG_ENDIAN
-       select SYS_LITTLE_ENDIAN if !CPU_BIG_ENDIAN
 config ARM
        bool "ARM architecture"
@@ -490,7 +488,7 @@ endif
 source "board/keymile/Kconfig"
-if MIPS || MICROBLAZE
+if MIPS || MICROBLAZE || ARC
 choice
        prompt "Endianness selection"
@@ -502,11 +500,11 @@ choice
 config SYS_BIG_ENDIAN
        bool "Big endian"
-       depends on (SUPPORTS_BIG_ENDIAN && MIPS) || MICROBLAZE
+       depends on (SUPPORTS_BIG_ENDIAN && MIPS) || MICROBLAZE || (CPU_BIG_ENDIAN && ARC)
 config SYS_LITTLE_ENDIAN
        bool "Little endian"
-       depends on (SUPPORTS_LITTLE_ENDIAN && MIPS) || MICROBLAZE
+       depends on (SUPPORTS_LITTLE_ENDIAN && MIPS) || MICROBLAZE || (CPU_LITTLE_ENDIAN && ARC)
 endchoice
 
 
 
Quoted 7 lines
Quoted 2 lines

A *make savedefconfig* should than automatically add *CONFIG_SYS_LITTLE_ENDIAN=y* or *CONFIG_SYS_BIG_ENDIAN=y* to the ARC board defconfig's.

Thanks for explaining.

--
Tom

Just to say I haven't got back to this. But perhaps maintainers could pick it up?

Regards,
Simon

#9 lore raw

Re: [PATCH 02/88] treewide: Correct invalid Kconfig syntax and warnings

In reply to Daniel Schwierzeck

Hi Tom, Daniel, all,

Quoted 12 lines · Tom Rini
Quoted 11 lines · Simon Glass
Quoted 9 lines

In several places a 'select' is used to select a choice, which is not supported by Kconfig. In other places, the filename for the 'source' command is not in quites.

Fix these two problems throughout the tree, so that kconfiglib does not show any more warnings.

Quoted 10 lines
Quoted 10 lines

OK, to summarize what I just said in another email and clarify future work. Please first split this patch in to its own series that corrects each type of problem, per commit. The missing quotes for example, and then the extra whitespace ones. Next, commenting out a select is wrong, and each case needs to be better understood / fixed. I'm honestly not sure if asking endianness for MIPS is right and if we should select that from boards too, like ARC, but probably. The ARC_MMU one also should just not be asked, I suspect, but as a separate patch where you cc Alexey, we'll find out :) And so on, for each. Thanks.

Sorry for not chiming-in sooner, but I'm here now ;)

Quoted 22 lines

For MIPS the endianess (and also architecture/ISA level) needs to be able to be set by the user via menuconfig as most MIPS cores or SoCs can support multiple variants. The idea is that the specific SoC or machine just sets the supported options to restrict the options the user can choose. The board's defconfig should set the required default value for each option but must not *select* it.

See the Boston board for example:

config TARGET_BOSTON
bool "Support Boston"
...
select SUPPORTS_BIG_ENDIAN
select SUPPORTS_CPU_MIPS32_R1
select SUPPORTS_CPU_MIPS32_R2
select SUPPORTS_CPU_MIPS32_R6
select SUPPORTS_CPU_MIPS64_R1
select SUPPORTS_CPU_MIPS64_R2
select SUPPORTS_CPU_MIPS64_R6
select SUPPORTS_LITTLE_ENDIAN

Quoted 1 line

A possible fix for ARC could be:

To be honest I don't quite understand what's a problem which we try to fix here and so it's not clear what to advise.

ARC cores as opposed to MIPS are configured in IP design process and so if a particular chip is designed as little-endian and already produced in silicon, it cannot be turned into big-endian.

Still ARCompact (AKA ARCv1) & ARCv2 processors could be configured as either little- or big-endian, thus we used to support both variants in U-Boot. And it's still there, so hopefully we may keep it.

Quoted 36 lines
arch/Kconfig +3 -5
@@ -53,8 +53,6 @@ config ARC
         select SUPPORT_OF_CONTROL
         select SYS_CACHE_SHIFT_7
         select TIMER
-       select SYS_BIG_ENDIAN if CPU_BIG_ENDIAN
-       select SYS_LITTLE_ENDIAN if !CPU_BIG_ENDIAN
 
  config ARM
         bool "ARM architecture"
@@ -490,7 +488,7 @@ endif
 
  source "board/keymile/Kconfig"
 
-if MIPS || MICROBLAZE
+if MIPS || MICROBLAZE || ARC
 
  choice
         prompt "Endianness selection"
@@ -502,11 +500,11 @@ choice
 
  config SYS_BIG_ENDIAN
         bool "Big endian"
-       depends on (SUPPORTS_BIG_ENDIAN && MIPS) || MICROBLAZE
+       depends on (SUPPORTS_BIG_ENDIAN && MIPS) || MICROBLAZE || (CPU_BIG_ENDIAN && ARC)
 
  config SYS_LITTLE_ENDIAN
         bool "Little endian"
-       depends on (SUPPORTS_LITTLE_ENDIAN && MIPS) || MICROBLAZE
+       depends on (SUPPORTS_LITTLE_ENDIAN && MIPS) || MICROBLAZE || (CPU_LITTLE_ENDIAN && ARC)
 
  endchoice
 
Quoted 2 lines

A *make savedefconfig* should than automatically add *CONFIG_SYS_LITTLE_ENDIAN=y* or *CONFIG_SYS_BIG_ENDIAN=y* to the ARC board defconfig's.

That proposal looks reasonable and allows to keep existing code as it is, but can we just have only 1 config option which is used for endianess selection? I.e. why having both "SYS_BIG_ENDIAN" & "CPU_BIG_ENDIAN"?

-Alexey

#10 lore raw

Re: [PATCH 02/88] treewide: Correct invalid Kconfig syntax and warnings

Quoted 49 lines · Alexey Brodkin

Hi Tom, Daniel, all,

Quoted 12 lines · Tom Rini
Quoted 11 lines · Simon Glass
Quoted 9 lines

In several places a 'select' is used to select a choice, which is not supported by Kconfig. In other places, the filename for the 'source' command is not in quites.

Fix these two problems throughout the tree, so that kconfiglib does not show any more warnings.

Quoted 10 lines
Quoted 10 lines

OK, to summarize what I just said in another email and clarify future work. Please first split this patch in to its own series that corrects each type of problem, per commit. The missing quotes for example, and then the extra whitespace ones. Next, commenting out a select is wrong, and each case needs to be better understood / fixed. I'm honestly not sure if asking endianness for MIPS is right and if we should select that from boards too, like ARC, but probably. The ARC_MMU one also should just not be asked, I suspect, but as a separate patch where you cc Alexey, we'll find out :) And so on, for each. Thanks.

Sorry for not chiming-in sooner, but I'm here now ;)

Quoted 22 lines

For MIPS the endianess (and also architecture/ISA level) needs to be able to be set by the user via menuconfig as most MIPS cores or SoCs can support multiple variants. The idea is that the specific SoC or machine just sets the supported options to restrict the options the user can choose. The board's defconfig should set the required default value for each option but must not *select* it.

See the Boston board for example:

config TARGET_BOSTON
bool "Support Boston"
...
select SUPPORTS_BIG_ENDIAN
select SUPPORTS_CPU_MIPS32_R1
select SUPPORTS_CPU_MIPS32_R2
select SUPPORTS_CPU_MIPS32_R6
select SUPPORTS_CPU_MIPS64_R1
select SUPPORTS_CPU_MIPS64_R2
select SUPPORTS_CPU_MIPS64_R6
select SUPPORTS_LITTLE_ENDIAN

Quoted 4 lines
Quoted 1 line

A possible fix for ARC could be:

To be honest I don't quite understand what's a problem which we try to fix here and so it's not clear what to advise.

The way we (rather than the Linux kernel) do Kconfig, all architectures worth of Kconfigs are loaded at once. And using "select" on a symbol that's defined in a choice isn't strictly legal (but it doesn't fail to work, today).

Quoted 7 lines

ARC cores as opposed to MIPS are configured in IP design process and so if a particular chip is designed as little-endian and already produced in silicon, it cannot be turned into big-endian.

Still ARCompact (AKA ARCv1) & ARCv2 processors could be configured as either little- or big-endian, thus we used to support both variants in U-Boot. And it's still there, so hopefully we may keep it.

OK.

Quoted 36 lines
Quoted 36 lines
arch/Kconfig +3 -5
@@ -53,8 +53,6 @@ config ARC
         select SUPPORT_OF_CONTROL
         select SYS_CACHE_SHIFT_7
         select TIMER
-       select SYS_BIG_ENDIAN if CPU_BIG_ENDIAN
-       select SYS_LITTLE_ENDIAN if !CPU_BIG_ENDIAN
 
  config ARM
         bool "ARM architecture"
@@ -490,7 +488,7 @@ endif
 
  source "board/keymile/Kconfig"
 
-if MIPS || MICROBLAZE
+if MIPS || MICROBLAZE || ARC
 
  choice
         prompt "Endianness selection"
@@ -502,11 +500,11 @@ choice
 
  config SYS_BIG_ENDIAN
         bool "Big endian"
-       depends on (SUPPORTS_BIG_ENDIAN && MIPS) || MICROBLAZE
+       depends on (SUPPORTS_BIG_ENDIAN && MIPS) || MICROBLAZE || (CPU_BIG_ENDIAN && ARC)
 
  config SYS_LITTLE_ENDIAN
         bool "Little endian"
-       depends on (SUPPORTS_LITTLE_ENDIAN && MIPS) || MICROBLAZE
+       depends on (SUPPORTS_LITTLE_ENDIAN && MIPS) || MICROBLAZE || (CPU_LITTLE_ENDIAN && ARC)
 
  endchoice
 
Quoted 6 lines
Quoted 2 lines

A *make savedefconfig* should than automatically add *CONFIG_SYS_LITTLE_ENDIAN=y* or *CONFIG_SYS_BIG_ENDIAN=y* to the ARC board defconfig's.

That proposal looks reasonable and allows to keep existing code as it is, but can we just have only 1 config option which is used for endianess selection? I.e. why having both "SYS_BIG_ENDIAN" & "CPU_BIG_ENDIAN"?

Today, ARC is the one that uses both SYS_x_ENDIAN and CPU_BIG_ENDIAN (set or lack of being set), so if you can update the ARC side?

Signature · 1 line
Tom
#11 lore raw

PATCH 3/88 power: Drop fg_max77693

In reply to Simon Glass

This is not used in U-Boot. Drop it.

---

 drivers/power/mfd/Makefile      |   1 -
 drivers/power/mfd/fg_max77693.c | 137 --------------------------------
 2 files changed, 138 deletions(-)
 delete mode 100644 drivers/power/mfd/fg_max77693.c
drivers/power/mfd/Makefile +0 -1
index a8eb7f81e72..5dfbdbd1b0f 100644
@@ -5,4 +5,3 @@
 
 obj-$(CONFIG_POWER_PMIC_MAX77693) += pmic_max77693.o
 obj-$(CONFIG_POWER_MUIC_MAX77693) += muic_max77693.o
-obj-$(CONFIG_POWER_FG_MAX77693) += fg_max77693.o
drivers/power/mfd/fg_max77693.c deleted +0 -137

137 lines not on this page · raw message

Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
Reviewed-by on v1 3/88
#12 lore raw

Re: [PATCH 03/88] power: Drop fg_max77693

Quoted 3 lines · Simon Glass

This is not used in U-Boot. Drop it.

Best Regards,
Jaehoon Chung

Quoted 159 lines

---

 drivers/power/mfd/Makefile      |   1 -
 drivers/power/mfd/fg_max77693.c | 137 --------------------------------
 2 files changed, 138 deletions(-)
 delete mode 100644 drivers/power/mfd/fg_max77693.c
drivers/power/mfd/Makefile +0 -1
index a8eb7f81e72..5dfbdbd1b0f 100644
@@ -5,4 +5,3 @@
 
 obj-$(CONFIG_POWER_PMIC_MAX77693) += pmic_max77693.o
 obj-$(CONFIG_POWER_MUIC_MAX77693) += muic_max77693.o
-obj-$(CONFIG_POWER_FG_MAX77693) += fg_max77693.o
drivers/power/mfd/fg_max77693.c deleted +0 -137
deleted file mode 100644
index 983a6d4a2bd..00000000000
@@ -1,137 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Copyright (C) 2013 Samsung Electronics
- * Piotr Wilczek <[email protected]>
- */
-
-#include <common.h>
-#include <log.h>
-#include <power/pmic.h>
-#include <power/max77693_fg.h>
-#include <i2c.h>
-#include <power/power_chrg.h>
-#include <power/battery.h>
-#include <power/fg_battery_cell_params.h>
-#include <errno.h>
-
-static int max77693_get_vcell(u32 *vcell)
-{
-	u16 value;
-	u8 ret;
-
-	ret = i2c_read(MAX77693_FUEL_I2C_ADDR, MAX77693_VCELL, 1,
-		       (u8 *)&value, 2);
-	if (ret)
-		return ret;
-
-	*vcell = (u32)(value >> 3);
-	*vcell = *vcell * 625;
-
-	return 0;
-}
-
-static int max77693_get_soc(u32 *soc)
-{
-	u16 value;
-	u8 ret;
-
-	ret = i2c_read(MAX77693_FUEL_I2C_ADDR, MAX77693_VFSOC, 1,
-		       (u8 *)&value, 2);
-	if (ret)
-		return ret;
-
-	*soc = (u32)(value >> 8);
-
-	return 0;
-}
-
-static int power_update_battery(struct pmic *p, struct pmic *bat)
-{
-	struct power_battery *pb = bat->pbat;
-	int ret;
-
-	if (pmic_probe(p)) {
-		puts("Can't find max77693 fuel gauge\n");
-		return -ENODEV;
-	}
-
-	ret = max77693_get_soc(&pb->bat->state_of_chrg);
-	if (ret)
-		return ret;
-
-	max77693_get_vcell(&pb->bat->voltage_uV);
-
-	return 0;
-}
-
-static int power_check_battery(struct pmic *p, struct pmic *bat)
-{
-	struct power_battery *pb = bat->pbat;
-	unsigned int val;
-	int ret = 0;
-
-	if (pmic_probe(p)) {
-		puts("Can't find max77693 fuel gauge\n");
-		return -ENODEV;
-	}
-
-	ret = pmic_reg_read(p, MAX77693_STATUS, &val);
-	if (ret)
-		return ret;
-	debug("fg status: 0x%x\n", val);
-
-	ret = pmic_reg_read(p, MAX77693_VERSION, &pb->bat->version);
-	if (ret)
-		return ret;
-
-	ret = power_update_battery(p, bat);
-	if (ret)
-		return ret;
-	debug("fg ver: 0x%x\n", pb->bat->version);
-	printf("BAT: state_of_charge(SOC):%d%%\n",
-	       pb->bat->state_of_chrg);
-
-	printf("     voltage: %d.%6.6d [V] (expected to be %d [mAh])\n",
-	       pb->bat->voltage_uV / 1000000,
-	       pb->bat->voltage_uV % 1000000,
-	       pb->bat->capacity);
-
-	if (pb->bat->voltage_uV > 3850000)
-		pb->bat->state = EXT_SOURCE;
-	else if (pb->bat->voltage_uV < 3600000 || pb->bat->state_of_chrg < 5)
-		pb->bat->state = CHARGE;
-	else
-		pb->bat->state = NORMAL;
-
-	return 0;
-}
-
-static struct power_fg power_fg_ops = {
-	.fg_battery_check = power_check_battery,
-	.fg_battery_update = power_update_battery,
-};
-
-int power_fg_init(unsigned char bus)
-{
-	static const char name[] = "MAX77693_FG";
-	struct pmic *p = pmic_alloc();
-
-	if (!p) {
-		printf("%s: POWER allocation error!\n", __func__);
-		return -ENOMEM;
-	}
-
-	debug("Board Fuel Gauge init\n");
-
-	p->name = name;
-	p->interface = PMIC_I2C;
-	p->number_of_regs = FG_NUM_OF_REGS;
-	p->hw.i2c.addr = MAX77693_FUEL_I2C_ADDR;
-	p->hw.i2c.tx_num = 2;
-	p->sensor_byte_order = PMIC_SENSOR_BYTE_ORDER_BIG;
-	p->bus = bus;
-
-	p->fg = &power_fg_ops;
-
-	return 0;
-}
#13 lore raw

PATCH 4/88 nand: Drop CONFIG_NAND_SPEAR

In reply to Simon Glass

This is not used anymore. Drop it.

---

 drivers/mtd/nand/raw/Makefile | 1 -
 1 file changed, 1 deletion(-)
drivers/mtd/nand/raw/Makefile +0 -1
index 7320d581e2f..4c59903aa8c 100644
@@ -70,7 +70,6 @@ obj-$(CONFIG_NAND_MXS_DT) += mxs_nand_dt.o
 obj-$(CONFIG_NAND_OCTEONTX) += octeontx_nand.o
 obj-$(CONFIG_NAND_OCTEONTX_HW_ECC) += octeontx_bch.o
 obj-$(CONFIG_NAND_PXA3XX) += pxa3xx_nand.o
-obj-$(CONFIG_NAND_SPEAR) += spr_nand.o
 obj-$(CONFIG_TEGRA_NAND) += tegra_nand.o
 obj-$(CONFIG_NAND_OMAP_GPMC) += omap_gpmc.o
 obj-$(CONFIG_NAND_OMAP_ELM) += omap_elm.o
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
Reviewed-by on v1 4/88
#14 lore raw

Re: [PATCH 04/88] nand: Drop CONFIG_NAND_SPEAR

Hi

Quoted 22 lines · Simon Glass

This is not used anymore. Drop it.

---

 drivers/mtd/nand/raw/Makefile | 1 -
 1 file changed, 1 deletion(-)
drivers/mtd/nand/raw/Makefile +0 -2
index 7320d581e2f..4c59903aa8c 100644
@@ -70,7 +70,6 @@ obj-$(CONFIG_NAND_MXS_DT) += mxs_nand_dt.o
 obj-$(CONFIG_NAND_OCTEONTX) += octeontx_nand.o
 obj-$(CONFIG_NAND_OCTEONTX_HW_ECC) += octeontx_bch.o
 obj-$(CONFIG_NAND_PXA3XX) += pxa3xx_nand.o
-obj-$(CONFIG_NAND_SPEAR) += spr_nand.o
 obj-$(CONFIG_TEGRA_NAND) += tegra_nand.o
 obj-$(CONFIG_NAND_OMAP_GPMC) += omap_gpmc.o
 obj-$(CONFIG_NAND_OMAP_ELM) += omap_elm.o
--
Quoted 2 lines

2.39.1.456.gfc5497dd1b-goog

Signature · 11 lines
Michael Nazzareno Trimarchi
Co-Founder & Chief Executive Officer
M. +39 347 913 2170
[email protected]
__________________________________

Amarula Solutions BV
Joop Geesinkweg 125, 1114 AB, Amsterdam, NL
T. +31 (0)85 111 9172
[email protected]
www.amarulasolutions.com
#15 lore raw

PATCH 5/88 power: Drop pmic_max77693.c

In reply to Simon Glass

Drop this driver and the associated CONFIG option, as it is not used.

---

 drivers/power/mfd/Makefile        |  1 -
 drivers/power/mfd/pmic_max77693.c | 96 -------------------------------
 2 files changed, 97 deletions(-)
 delete mode 100644 drivers/power/mfd/pmic_max77693.c
drivers/power/mfd/Makefile +0 -1
index 5dfbdbd1b0f..b5ec8f00bb0 100644
@@ -3,5 +3,4 @@
 # Copyright (C) 2013 Samsung Electronics
 # Piotr Wilczek <[email protected]>
 
-obj-$(CONFIG_POWER_PMIC_MAX77693) += pmic_max77693.o
 obj-$(CONFIG_POWER_MUIC_MAX77693) += muic_max77693.o
drivers/power/mfd/pmic_max77693.c deleted +0 -96

96 lines not on this page · raw message

Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
Reviewed-by on v1 5/88
#16 lore raw

Re: [PATCH 05/88] power: Drop pmic_max77693.c

Quoted 3 lines · Simon Glass

Drop this driver and the associated CONFIG option, as it is not used.

Best Regards,
Jaehoon Chung

Quoted 119 lines

---

 drivers/power/mfd/Makefile        |  1 -
 drivers/power/mfd/pmic_max77693.c | 96 -------------------------------
 2 files changed, 97 deletions(-)
 delete mode 100644 drivers/power/mfd/pmic_max77693.c
drivers/power/mfd/Makefile +0 -1
index 5dfbdbd1b0f..b5ec8f00bb0 100644
@@ -3,5 +3,4 @@
 # Copyright (C) 2013 Samsung Electronics
 # Piotr Wilczek <[email protected]>
 
-obj-$(CONFIG_POWER_PMIC_MAX77693) += pmic_max77693.o
 obj-$(CONFIG_POWER_MUIC_MAX77693) += muic_max77693.o
drivers/power/mfd/pmic_max77693.c deleted +0 -96
deleted file mode 100644
index e32a9722a40..00000000000
@@ -1,96 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Copyright (C) 2013 Samsung Electronics
- * Piotr Wilczek <[email protected]>
- */
-
-#include <common.h>
-#include <log.h>
-#include <power/pmic.h>
-#include <power/max77693_pmic.h>
-#include <i2c.h>
-#include <errno.h>
-
-static int max77693_charger_state(struct pmic *p, int state, int current)
-{
-	unsigned int val;
-
-	if (pmic_probe(p))
-		return -ENODEV;
-
-	/* unlock write capability */
-	val = MAX77693_CHG_UNLOCK;
-	pmic_reg_write(p, MAX77693_CHG_CNFG_06, val);
-
-	if (state == PMIC_CHARGER_DISABLE) {
-		puts("Disable the charger.\n");
-		pmic_reg_read(p, MAX77693_CHG_CNFG_00, &val);
-		val &= ~0x01;
-		pmic_reg_write(p, MAX77693_CHG_CNFG_00, val);
-		return -ENOTSUPP;
-	}
-
-	if (current < CHARGER_MIN_CURRENT || current > CHARGER_MAX_CURRENT) {
-		printf("%s: Wrong charge current: %d [mA]\n",
-		       __func__, current);
-		return -EINVAL;
-	}
-
-	/* set charging current */
-	pmic_reg_read(p, MAX77693_CHG_CNFG_02, &val);
-	val &= ~MAX77693_CHG_CC;
-	val |= current * 10 / 333;	/* 0.1A/3 steps */
-	pmic_reg_write(p, MAX77693_CHG_CNFG_02, val);
-
-	/* enable charging */
-	val = MAX77693_CHG_MODE_ON;
-	pmic_reg_write(p, MAX77693_CHG_CNFG_00, val);
-
-	/* check charging current */
-	pmic_reg_read(p, MAX77693_CHG_CNFG_02, &val);
-	val &= 0x3f;
-	printf("Enable the charger @ %d [mA]\n", val * 333 / 10);
-
-	return 0;
-}
-
-static int max77693_charger_bat_present(struct pmic *p)
-{
-	unsigned int val;
-
-	if (pmic_probe(p))
-		return -ENODEV;
-
-	pmic_reg_read(p, MAX77693_CHG_INT_OK, &val);
-
-	return !(val & MAX77693_CHG_DETBAT);
-}
-
-static struct power_chrg power_chrg_pmic_ops = {
-	.chrg_bat_present = max77693_charger_bat_present,
-	.chrg_state = max77693_charger_state,
-};
-
-int pmic_init_max77693(unsigned char bus)
-{
-	static const char name[] = "MAX77693_PMIC";
-	struct pmic *p = pmic_alloc();
-
-	if (!p) {
-		printf("%s: POWER allocation error!\n", __func__);
-		return -ENOMEM;
-	}
-
-	debug("Board PMIC init\n");
-
-	p->name = name;
-	p->interface = PMIC_I2C;
-	p->number_of_regs = PMIC_NUM_OF_REGS;
-	p->hw.i2c.addr = MAX77693_PMIC_I2C_ADDR;
-	p->hw.i2c.tx_num = 1;
-	p->bus = bus;
-
-	p->chrg = &power_chrg_pmic_ops;
-
-	return 0;
-}
#17 lore raw

PATCH 6/88 gpio: Drop adi_gpio2

In reply to Simon Glass

Drop this unused driver.

---

 drivers/gpio/Makefile    |   1 -
 drivers/gpio/adi_gpio2.c | 425 ---------------------------------------
 2 files changed, 426 deletions(-)
 delete mode 100644 drivers/gpio/adi_gpio2.c
drivers/gpio/Makefile +0 -1
index 7235714fcc0..57603645c1c 100644
@@ -47,7 +47,6 @@ obj-$(CONFIG_SH_GPIO_PFC)	+= sh_pfc.o
 obj-$(CONFIG_OMAP_GPIO)	+= omap_gpio.o
 obj-$(CONFIG_BCM2835_GPIO)	+= bcm2835_gpio.o
 obj-$(CONFIG_XILINX_GPIO)	+= xilinx_gpio.o
-obj-$(CONFIG_ADI_GPIO2)	+= adi_gpio2.o
 obj-$(CONFIG_TCA642X)		+= tca642x.o
 obj-$(CONFIG_SUNXI_GPIO)	+= sunxi_gpio.o
 obj-$(CONFIG_LPC32XX_GPIO)	+= lpc32xx_gpio.o
drivers/gpio/adi_gpio2.c deleted +0 -425

425 lines not on this page · raw message

Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#18 lore raw

PATCH 7/88 Makefile: Drop CONFIG_AIS_CONFIG_FILE

In reply to Simon Glass

This is not defined anywhere. Drop it.

---

 Makefile | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
Makefile +1 -2
index eb354c045c0..da395274225 100644
@@ -1527,8 +1527,7 @@ MKIMAGEFLAGS_u-boot.ubl = -n $(UBL_CONFIG) -T ublimage -e $(CONFIG_TEXT_BASE)
 u-boot.ubl: u-boot-with-spl.bin FORCE
 	$(call if_changed,mkimage)
 
-MKIMAGEFLAGS_u-boot-spl.ais = -s -n $(if $(CONFIG_AIS_CONFIG_FILE), \
-	$(srctree)/$(CONFIG_AIS_CONFIG_FILE:"%"=%),"/dev/null") \
+MKIMAGEFLAGS_u-boot-spl.ais = -s -n "/dev/null" \
 	-T aisimage -e $(CONFIG_SPL_TEXT_BASE)
 spl/u-boot-spl.ais: spl/u-boot-spl.bin FORCE
 	$(call if_changed,mkimage)
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#19 lore raw

PATCH 8/88 misc: Drop ali512x

In reply to Simon Glass

Drop this unused driver.

---

 drivers/misc/Makefile  |   1 -
 drivers/misc/ali512x.c | 401 -----------------------------------------
 2 files changed, 402 deletions(-)
 delete mode 100644 drivers/misc/ali512x.c
drivers/misc/Makefile +0 -1
index d494639cd95..2de510329d8 100644
@@ -29,7 +29,6 @@ ifdef CONFIG_SPL_BUILD
 obj-$(CONFIG_SANDBOX) += spltest_sandbox.o
 endif
 endif
-obj-$(CONFIG_ALI152X) += ali512x.o
 obj-$(CONFIG_ALTERA_SYSID) += altera_sysid.o
 obj-$(CONFIG_ATSHA204A) += atsha204a-i2c.o
 obj-$(CONFIG_CBMEM_CONSOLE) += cbmem_console.o
drivers/misc/ali512x.c deleted +0 -401

401 lines not on this page · raw message

Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#20 lore raw

PATCH 9/88 sandbox: Drop reference to CONFIG_ARCH_DEVICE_TREE

In reply to Simon Glass

This is not used anywhere. Drop it.

---

 arch/sandbox/config.mk | 2 --
 1 file changed, 2 deletions(-)
arch/sandbox/config.mk +0 -2
index 1284ef390b5..2d184c5f652 100644
@@ -44,8 +44,6 @@ cmd_u-boot-spl = (cd $(obj) && $(CC) -o $(SPL_BIN) -Wl,-T u-boot-spl.lds \
 	-Wl,--no-whole-archive \
 	$(PLATFORM_LIBS) -Wl,-Map -Wl,u-boot-spl.map -Wl,--gc-sections)
 
-CONFIG_ARCH_DEVICE_TREE := sandbox
-
 ifeq ($(HOST_ARCH),$(HOST_ARCH_X86_64))
 EFI_LDS := ${SRCDIR}/../../../arch/x86/lib/elf_x86_64_efi.lds
 EFI_TARGET := --target=efi-app-x86_64
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#21 lore raw

PATCH 10/88 Rename ARCH_NPCM7xx

In reply to Simon Glass

CONFIG options must not use lower-case letter. Convert this to upper case.

---

 arch/arm/dts/Makefile              | 2 +-
 arch/arm/mach-npcm/Kconfig         | 4 ++--
 arch/arm/mach-npcm/Makefile        | 2 +-
 arch/arm/mach-npcm/npcm7xx/Kconfig | 2 +-
 drivers/clk/nuvoton/Makefile       | 2 +-
 drivers/misc/npcm_otp.c            | 2 +-
 drivers/pinctrl/nuvoton/Kconfig    | 2 +-
 7 files changed, 8 insertions(+), 8 deletions(-)
arch/arm/dts/Makefile +1 -1
index 44256d9fa94..c184c802b45 100644
@@ -1286,7 +1286,7 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += \
 	mt8516-pumpkin.dtb \
 	mt8518-ap1-emmc.dtb
 
-dtb-$(CONFIG_ARCH_NPCM7xx) += nuvoton-npcm750-evb.dtb
+dtb-$(CONFIG_ARCH_NPCM7XX) += nuvoton-npcm750-evb.dtb
 dtb-$(CONFIG_ARCH_NPCM8XX) += nuvoton-npcm845-evb.dtb
 dtb-$(CONFIG_XEN) += xenguest-arm64.dtb
 
arch/arm/mach-npcm/Kconfig +2 -2
index 24bd2ad423f..a709e1f2402 100644
@@ -8,9 +8,9 @@ config TEXT_BASE
 
 choice
 	prompt "Nuvoton SoC select"
-	default ARCH_NPCM7xx
+	default ARCH_NPCM7XX
 
-config ARCH_NPCM7xx
+config ARCH_NPCM7XX
 	bool "Support Nuvoton NPCM7xx SoC"
 	select CPU_V7A
 	select OF_CONTROL
arch/arm/mach-npcm/Makefile +1 -1
index b448329dea7..4c15fbb8fe5 100644
@@ -1,2 +1,2 @@
-obj-$(CONFIG_ARCH_NPCM7xx) += npcm7xx/
+obj-$(CONFIG_ARCH_NPCM7XX) += npcm7xx/
 obj-$(CONFIG_ARCH_NPCM8XX) += npcm8xx/
arch/arm/mach-npcm/npcm7xx/Kconfig +1 -1
index 237e7ba7e50..17d0a37e97c 100644
@@ -1,4 +1,4 @@
-if ARCH_NPCM7xx
+if ARCH_NPCM7XX
 
 config SYS_CPU
         default "armv7"
drivers/clk/nuvoton/Makefile +1 -1
index b55dc80de20..1c210a997d4 100644
@@ -1,3 +1,3 @@
 obj-$(CONFIG_ARCH_NPCM) += clk_npcm.o
-obj-$(CONFIG_ARCH_NPCM7xx) += clk_npcm7xx.o
+obj-$(CONFIG_ARCH_NPCM7XX) += clk_npcm7xx.o
 obj-$(CONFIG_ARCH_NPCM8XX) += clk_npcm8xx.o
drivers/misc/npcm_otp.c +1 -1
index 304910888bb..15d016f606b 100644
@@ -484,7 +484,7 @@ static int npcm_otp_bind(struct udevice *dev)
 	}
 	otp_priv->regs[0] = regs;
 
-	if (IS_ENABLED(CONFIG_ARCH_NPCM7xx)) {
+	if (IS_ENABLED(CONFIG_ARCH_NPCM7XX)) {
 		regs = dev_remap_addr_index(dev, 1);
 		if (!regs) {
 			printf("Cannot find reg address (arr #1), binding failed\n");
drivers/pinctrl/nuvoton/Kconfig +1 -1
index e55a0261adb..748d18d40ff 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0-only
 config PINCTRL_NPCM7XX
 	bool "Pinctrl and GPIO driver for Nuvoton NPCM7XX"
-	depends on DM && PINCTRL_GENERIC && ARCH_NPCM7xx
+	depends on DM && PINCTRL_GENERIC && ARCH_NPCM7XX
 	help
 	  Say Y here to enable pin controller and GPIO support
 	  for Nuvoton NPCM750/730/715/705 SoCs.
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#22 lore raw

PATCH 11/88 arm: mvebu: Correct reference to ARMADA_370

In reply to Simon Glass

Presumably this should be ARMADA_3700. Fix it.

---

 arch/arm/mach-mvebu/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-mvebu/Makefile +1 -1
index a23511b113b..1a9dfc047c9 100644
@@ -35,7 +35,7 @@ endif
 
 extra-y += kwbimage.cfg
 
-ifneq ($(CONFIG_ARMADA_370)$(CONFIG_ARMADA_XP),)
+ifneq ($(CONFIG_ARMADA_3700)$(CONFIG_ARMADA_XP),)
 	KWB_REPLACE += CPU
 	KWB_CFG_CPU = SHEEVA
 else ifneq ($(CONFIG_ARMADA_375)$(CONFIG_ARMADA_38X)$(CONFIG_ARMADA_39X),)
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#23 lore raw

Re: [PATCH 11/88] arm: mvebu: Correct reference to ARMADA_370

Hi Simon,

Quoted 1 line · Simon Glass

Presumably this should be ARMADA_3700. Fix it.

No. Please see below.

Quoted 11 lines

---

  arch/arm/mach-mvebu/Makefile | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-mvebu/Makefile +0 -0
index a23511b113b..1a9dfc047c9 100644

arch/arm/mach-mvebu/Makefile endif · line 41

Quoted 8 lines
arch/arm/mach-mvebu/Makefile +1 -1
@@ -35,7 +35,7 @@ endif
 
  extra-y += kwbimage.cfg
 
-ifneq ($(CONFIG_ARMADA_370)$(CONFIG_ARMADA_XP),)
+ifneq ($(CONFIG_ARMADA_3700)$(CONFIG_ARMADA_XP),)
  	KWB_REPLACE += CPU
  	KWB_CFG_CPU = SHEEVA
  else ifneq ($(CONFIG_ARMADA_375)$(CONFIG_ARMADA_38X)$(CONFIG_ARMADA_39X),)

Armada 370 is an older 32bit Marvell SoC and not Armada 3700. Still you have detected a problem with CONFIG_ARMADA_370. AFAICT, it's not referenced anywhere else in the code. So please remove this reference instead of changing it to 3700.

Thanks,
Stefan

#24 lore raw

PATCH 12/88 arm: mvebu: Drop reference to CONFIG_ARMADA_39X

In reply to Simon Glass

This is not defined anywhere. Drop it.

---

 arch/arm/mach-mvebu/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-mvebu/Makefile +1 -1
index 1a9dfc047c9..207ee1b6b89 100644
@@ -38,7 +38,7 @@ extra-y += kwbimage.cfg
 ifneq ($(CONFIG_ARMADA_3700)$(CONFIG_ARMADA_XP),)
 	KWB_REPLACE += CPU
 	KWB_CFG_CPU = SHEEVA
-else ifneq ($(CONFIG_ARMADA_375)$(CONFIG_ARMADA_38X)$(CONFIG_ARMADA_39X),)
+else ifneq ($(CONFIG_ARMADA_375)$(CONFIG_ARMADA_38X),)
 	KWB_REPLACE += CPU
 	KWB_CFG_CPU = A9
 endif
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
Reviewed-by on v1 12/88
#25 lore raw

Re: [PATCH 12/88] arm: mvebu: Drop reference to CONFIG_ARMADA_39X

Quoted 13 lines · Simon Glass

This is not defined anywhere. Drop it.

---

  arch/arm/mach-mvebu/Makefile | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-mvebu/Makefile +0 -0
index 1a9dfc047c9..207ee1b6b89 100644

arch/arm/mach-mvebu/Makefile extra-y += kwbimage.cfg · line 44

Quoted 8 lines
arch/arm/mach-mvebu/Makefile +1 -1
@@ -38,7 +38,7 @@ extra-y += kwbimage.cfg
  ifneq ($(CONFIG_ARMADA_3700)$(CONFIG_ARMADA_XP),)
  	KWB_REPLACE += CPU
  	KWB_CFG_CPU = SHEEVA
-else ifneq ($(CONFIG_ARMADA_375)$(CONFIG_ARMADA_38X)$(CONFIG_ARMADA_39X),)
+else ifneq ($(CONFIG_ARMADA_375)$(CONFIG_ARMADA_38X),)
  	KWB_REPLACE += CPU
  	KWB_CFG_CPU = A9
  endif

Thanks,
Stefan

#26 lore raw

PATCH 13/88 ppc: Drop bat_rw

In reply to Simon Glass

Drop this unused driver.

---

 arch/powerpc/lib/Makefile |   1 -
 arch/powerpc/lib/bat_rw.c | 244 --------------------------------------
 2 files changed, 245 deletions(-)
 delete mode 100644 arch/powerpc/lib/bat_rw.c
arch/powerpc/lib/Makefile +0 -1
index 066d7f408e0..bb819dcbb6c 100644
@@ -34,7 +34,6 @@ obj-y	+= ticks.o
 endif
 obj-y	+= reloc.o
 
-obj-$(CONFIG_BAT_RW) += bat_rw.o
 obj-$(CONFIG_CMD_BOOTM) += bootm.o
 obj-y	+= cache.o
 obj-y	+= extable.o
arch/powerpc/lib/bat_rw.c deleted +0 -244

244 lines not on this page · raw message

Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#27 lore raw

PATCH 14/88 rockchip: Correct a reference to CONFIG_BOOT_MODE_REG

In reply to Simon Glass

This option does not exist and should refer to
CONFIG_ROCKCHIP_BOOT_MODE_REG instead. Fix it.

---

 arch/arm/mach-rockchip/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-rockchip/Makefile +1 -1
index 32138fa723f..e3d4a8b42e4 100644
@@ -18,7 +18,7 @@ obj-spl-$(CONFIG_ROCKCHIP_RK3036) += rk3036-board-spl.o
 ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
 
 # Always include boot_mode.o, as we bypass it (i.e. turn it off)
-# inside of boot_mode.c when CONFIG_BOOT_MODE_REG is 0.  This way,
+# inside of boot_mode.c when CONFIG_ROCKCHIP_BOOT_MODE_REG is 0.  This way,
 # we can have the preprocessor correctly recognise both 0x0 and 0
 # meaning "turn it off".
 obj-y += boot_mode.o
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#28 lore raw

PATCH 15/88 cmd: Add an option to enable the ini command

In reply to Simon Glass

This command has no Kconfig option at present, but seems useful enough to keep around. Add one.

---

 cmd/Kconfig | 7 +++++++
 1 file changed, 7 insertions(+)
cmd/Kconfig +7 -0
index b3c1fcaf6e6..8b8619a18f4 100644
@@ -2015,6 +2015,13 @@ config CMD_LED
 	  with led on/off/togle/blink. Any LED drivers can be controlled with
 	  this command, e.g. led_gpio.
 
+config CMD_INI
+	bool "ini"
+	help
+	  Enable the 'ini' command which allows a .ini file to be parsed and
+	  placed into environment variables. Please check the source code for
+	  this as there is no documentation.
+
 config CMD_DATE
 	bool "date"
 	default y if DM_RTC
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#29 lore raw

PATCH 16/88 cmd: Drop mfsl command

In reply to Simon Glass

This is not used anywhere. Drop it.

---

 cmd/Makefile |   1 -
 cmd/mfsl.c   | 387 ---------------------------------------------------
 2 files changed, 388 deletions(-)
 delete mode 100644 cmd/mfsl.c
cmd/Makefile +0 -1
index 0b6a96c1d91..4adc7530a0a 100644
@@ -108,7 +108,6 @@ obj-$(CONFIG_ID_EEPROM) += mac.o
 obj-$(CONFIG_CMD_MD5SUM) += md5sum.o
 obj-$(CONFIG_CMD_MEMORY) += mem.o
 obj-$(CONFIG_CMD_IO) += io.o
-obj-$(CONFIG_CMD_MFSL) += mfsl.o
 obj-$(CONFIG_CMD_MII) += mii.o
 obj-$(CONFIG_CMD_MISC) += misc.o
 obj-$(CONFIG_CMD_MDIO) += mdio.o
cmd/mfsl.c deleted +0 -387

387 lines not on this page · raw message

Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#30 lore raw

PATCH 17/88 Correct CONFIG_CONTROLCENTERDC

In reply to Simon Glass

This option does not exist but presumably means to point to CONFIG_TARGET_CONTROLCENTERDC. Fix it.

---

 board/gdsys/common/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/gdsys/common/Makefile +1 -1
index dd6d5e69de5..553e2ca50ed 100644
@@ -5,7 +5,7 @@
 
 obj-$(CONFIG_SYS_FPGA_COMMON) += fpga.o
 obj-$(CONFIG_CMD_IOLOOP) += cmd_ioloop.o
-obj-$(CONFIG_CONTROLCENTERD) += dp501.o
+obj-$(CONFIG_TARGET_CONTROLCENTERDC) += dp501.o
 obj-$(CONFIG_TARGET_GAZERBEAM) += osd.o ihs_mdio.o ioep-fpga.o
 
 ifdef CONFIG_OSD
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#31 lore raw

PATCH 18/88 Drop dataflash_mmc_mux command

In reply to Simon Glass

This is not used. Drop it.

---

 cmd/Makefile            |  1 -
 cmd/dataflash_mmc_mux.c | 48 -----------------------------------------
 2 files changed, 49 deletions(-)
 delete mode 100644 cmd/dataflash_mmc_mux.c
cmd/Makefile +0 -1
index 4adc7530a0a..b6888a52f49 100644
@@ -47,7 +47,6 @@ obj-$(CONFIG_CMD_CONFIG) += config.o
 obj-$(CONFIG_CMD_CONITRACE) += conitrace.o
 obj-$(CONFIG_CMD_CONSOLE) += console.o
 obj-$(CONFIG_CMD_CPU) += cpu.o
-obj-$(CONFIG_DATAFLASH_MMC_SELECT) += dataflash_mmc_mux.o
 obj-$(CONFIG_CMD_DATE) += date.o
 obj-$(CONFIG_CMD_DEMO) += demo.o
 obj-$(CONFIG_CMD_DM) += dm.o
cmd/dataflash_mmc_mux.c deleted +0 -48

48 lines not on this page · raw message

Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#32 lore raw

PATCH 19/88 Drop CONFIG_DM644X_GPIO

In reply to Simon Glass

Drop this unused option.

---

 drivers/gpio/Makefile | 1 -
 1 file changed, 1 deletion(-)
drivers/gpio/Makefile +0 -1
index 57603645c1c..07fca7bd33d 100644
@@ -38,7 +38,6 @@ obj-$(CONFIG_SANDBOX_GPIO)	+= sandbox.o sandbox_test.o
 obj-$(CONFIG_TEGRA_GPIO)	+= tegra_gpio.o
 obj-$(CONFIG_TEGRA186_GPIO)	+= tegra186_gpio.o
 obj-$(CONFIG_DA8XX_GPIO)	+= da8xx_gpio.o
-obj-$(CONFIG_DM644X_GPIO)	+= da8xx_gpio.o
 obj-$(CONFIG_ALTERA_PIO)	+= altera_pio.o
 obj-$(CONFIG_MPC83XX_GPIO)	+= mpc83xx_gpio.o
 obj-$(CONFIG_MPC8XXX_GPIO)	+= mpc8xxx_gpio.o
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#33 lore raw

PATCH 20/88 Makefile: Avoid use of invalid CONFIG_ option

In reply to Simon Glass

This appears in a comment but is not a real option. Drop it.

---

 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index da395274225..92a95361982 100644
@@ -1082,7 +1082,7 @@ expect = $(foreach cfg,$(1),y)
 
 # Show a deprecation message
 # Args:
-# 1: List of CONFIG_DM_... to migrate to (e.g. "CONFIG_DM_MMC CONFIG_BLK")
+# 1: List of options to migrate to (e.g. "CONFIG_DM_MMC CONFIG_BLK")
 # 2: Name of component (e.g . "Ethernet drivers")
 # 3: Release deadline (e.g. "v202.07")
 # 4: Condition to require before checking (e.g. "$(CONFIG_NET)")
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#34 lore raw

PATCH 21/88 env: Drop ENV_IS_IN_SATA

In reply to Simon Glass

This is not used anywhere, so drop it.

---

 cmd/nvedit.c |   1 -
 env/Makefile |   1 -
 env/env.c    |   3 --
 env/sata.c   | 122 ---------------------------------------------------
 4 files changed, 127 deletions(-)
 delete mode 100644 env/sata.c
cmd/nvedit.c +0 -1
index 53e6b57b60e..e2a5f0089e9 100644
@@ -51,7 +51,6 @@ DECLARE_GLOBAL_DATA_PTR;
 	defined(CONFIG_ENV_IS_IN_NAND)		|| \
 	defined(CONFIG_ENV_IS_IN_NVRAM)		|| \
 	defined(CONFIG_ENV_IS_IN_ONENAND)	|| \
-	defined(CONFIG_ENV_IS_IN_SATA)		|| \
 	defined(CONFIG_ENV_IS_IN_SPI_FLASH)	|| \
 	defined(CONFIG_ENV_IS_IN_REMOTE)	|| \
 	defined(CONFIG_ENV_IS_IN_UBI)
env/Makefile +0 -1
index bb6e24b396d..673b979fdfa 100644
@@ -16,7 +16,6 @@ extra-$(CONFIG_ENV_IS_IN_FLASH) += embedded.o
 obj-$(CONFIG_ENV_IS_IN_NVRAM) += embedded.o
 obj-$(CONFIG_ENV_IS_IN_NVRAM) += nvram.o
 obj-$(CONFIG_ENV_IS_IN_ONENAND) += onenand.o
-obj-$(CONFIG_ENV_IS_IN_SATA) += sata.o
 obj-$(CONFIG_ENV_IS_IN_REMOTE) += remote.o
 obj-$(CONFIG_ENV_IS_IN_UBI) += ubi.o
 endif
env/env.c +0 -3
index 06078c7f374..0f73ebc08e0 100644
@@ -78,9 +78,6 @@ static enum env_location env_locations[] = {
 #ifdef CONFIG_ENV_IS_IN_REMOTE
 	ENVL_REMOTE,
 #endif
-#ifdef CONFIG_ENV_IS_IN_SATA
-	ENVL_ESATA,
-#endif
 #ifdef CONFIG_ENV_IS_IN_SPI_FLASH
 	ENVL_SPI_FLASH,
 #endif
env/sata.c deleted +0 -122

122 lines not on this page · raw message

Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#35 lore raw

PATCH 22/88 samsung: Drop CONFIG_EXYNOS_PWM_BL

In reply to Simon Glass

This is not defined anywhere. Drop it.

---

 drivers/video/exynos/Makefile | 1 -
 1 file changed, 1 deletion(-)
drivers/video/exynos/Makefile +0 -1
index 0f58954e49c..45067f562cb 100644
@@ -7,4 +7,3 @@ obj-$(CONFIG_EXYNOS_DP) += exynos_dp.o exynos_dp_lowlevel.o
 obj-$(CONFIG_EXYNOS_FB) += exynos_fb.o
 obj-$(CONFIG_EXYNOS_MIPI_DSIM) += exynos_mipi_dsi.o exynos_mipi_dsi_common.o \
 				exynos_mipi_dsi_lowlevel.o
-obj-$(CONFIG_EXYNOS_PWM_BL) += exynos_pwm_bl.o
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#36 lore raw

PATCH 23/88 fpga: Add a LATTICE option

In reply to Simon Glass

There is no Kconfig option for this code, but it seems to be useful. Add one.

---

 drivers/fpga/Kconfig | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/fpga/Kconfig +6 -0
index 4113de230cd..2034d0ebd9c 100644
@@ -54,6 +54,12 @@ config FPGA_INTEL_SDM_MAILBOX
 	  Enable FPGA driver for writing full bitstream into Intel FPGA
 	  devices through SDM (Secure Device Manager) Mailbox.
 
+config FPGA_LATTICE
+	bool "Enable Lattice FPGA driver"
+	help
+	  This is used for the lattice FPGAs. Please check the source code as
+	  there is no documentation for this at present.
+
 config FPGA_XILINX
 	bool "Enable Xilinx FPGA drivers"
 	select FPGA
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#37 lore raw

PATCH 24/88 fpga: Add a FPGA_STRATIX_II option

In reply to Simon Glass

There is no Kconfig option for this code, but it seems to be useful. Add one.

---

 drivers/fpga/Kconfig | 6 ++++++
 1 file changed, 6 insertions(+)
drivers/fpga/Kconfig +6 -0
index 2034d0ebd9c..61490d6d8de 100644
@@ -21,6 +21,12 @@ config FPGA_SOCFPGA
 
 	  This provides common functionality for Gen5 and Arria10 devices.
 
+config FPGA_STRATIX_II
+	bool "Enable Stratix II FPGA drivers"
+	depends on FPGA_ALTERA
+	help
+	  Say Y here to enable the Altera Stratix II FPGA-specific driver.
+
 config FPGA_STRATIX_V
 	bool "Enable Stratix V FPGA drivers"
 	depends on FPGA_ALTERA
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#38 lore raw

PATCH 25/88 misc: Drop mc9sdz60 driver

In reply to Simon Glass

Drop this unused driver.

---

 drivers/misc/Makefile   |  1 -
 drivers/misc/mc9sdz60.c | 34 ----------------------------------
 2 files changed, 35 deletions(-)
 delete mode 100644 drivers/misc/mc9sdz60.c
drivers/misc/Makefile +0 -1
index 2de510329d8..3b792f2a14c 100644
@@ -36,7 +36,6 @@ obj-$(CONFIG_DS4510)  += ds4510.o
 obj-$(CONFIG_FSL_DEVICE_DISABLE) += fsl_devdis.o
 obj-$(CONFIG_FSL_IFC) += fsl_ifc.o
 obj-$(CONFIG_FSL_IIM) += fsl_iim.o
-obj-$(CONFIG_FSL_MC9SDZ60) += mc9sdz60.o
 obj-$(CONFIG_FSL_SEC_MON) += fsl_sec_mon.o
 obj-$(CONFIG_$(SPL_)FS_LOADER) += fs_loader.o
 obj-$(CONFIG_GATEWORKS_SC) += gsc.o
drivers/misc/mc9sdz60.c deleted +0 -34
deleted file mode 100644
index e68a056a559..00000000000
@@ -1,34 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * (C) Copyright 2010 Stefano Babic <[email protected]>
- */
-
-
-#include <config.h>
-#include <common.h>
-#include <linux/errno.h>
-#include <linux/types.h>
-#include <i2c.h>
-#include <mc9sdz60.h>
-
-#ifndef CONFIG_SYS_FSL_MC9SDZ60_I2C_ADDR
-#error "You have to configure I2C address for MC9SDZ60"
-#endif
-
-
-u8 mc9sdz60_reg_read(enum mc9sdz60_reg reg)
-{
-	u8 val;
-
-	if (i2c_read(CONFIG_SYS_FSL_MC9SDZ60_I2C_ADDR, reg, 1, &val, 1)) {
-		puts("Error reading MC9SDZ60 register\n");
-		return -1;
-	}
-
-	return val;
-}
-
-void mc9sdz60_reg_write(enum mc9sdz60_reg reg, u8 val)
-{
-	i2c_write(CONFIG_SYS_FSL_MC9SDZ60_I2C_ADDR, reg, 1, &val, 1);
-}
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#39 lore raw

PATCH 26/88 freescale: Drop unused pixis code

In reply to Simon Glass

Drop this unused code.

---

 board/freescale/common/Makefile |   1 -
 board/freescale/common/pixis.c  | 470 --------------------------------
 board/freescale/common/pixis.h  |  54 ----
 3 files changed, 525 deletions(-)
 delete mode 100644 board/freescale/common/pixis.c
 delete mode 100644 board/freescale/common/pixis.h
board/freescale/common/Makefile +0 -1
index cc1371867d8..fc51d6d3e18 100644
@@ -29,7 +29,6 @@ endif
 obj-$(CONFIG_FSL_CADMUS)	+= cadmus.o
 obj-$(CONFIG_FSL_VIA)		+= cds_via.o
 obj-$(CONFIG_FMAN_ENET)	+= fman.o
-obj-$(CONFIG_FSL_PIXIS)	+= pixis.o
 ifndef CONFIG_SPL_BUILD
 obj-$(CONFIG_FSL_NGPIXIS)	+= ngpixis.o
 endif
board/freescale/common/pixis.c deleted +0 -470

470 lines not on this page · raw message

board/freescale/common/pixis.h deleted +0 -54

54 lines not on this page · raw message

Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#40 lore raw

PATCH 27/88 freescale: Drop unused ftpmu010 driver

In reply to Simon Glass

Drop this unused code.

---

 drivers/power/Makefile     |   1 -
 drivers/power/ftpmu010.c   |  87 --------------
 include/faraday/ftpmu010.h | 234 -------------------------------------
 3 files changed, 322 deletions(-)
 delete mode 100644 drivers/power/ftpmu010.c
 delete mode 100644 include/faraday/ftpmu010.h
drivers/power/Makefile +0 -1
index f805027784d..34a84808a9c 100644
@@ -18,7 +18,6 @@ obj-$(CONFIG_AXP305_POWER)	+= axp305.o
 obj-$(CONFIG_AXP809_POWER)	+= axp809.o
 obj-$(CONFIG_AXP818_POWER)	+= axp818.o
 obj-$(CONFIG_EXYNOS_TMU)	+= exynos-tmu.o
-obj-$(CONFIG_FTPMU010_POWER)	+= ftpmu010.o
 obj-$(CONFIG_SY8106A_POWER)	+= sy8106a.o
 obj-$(CONFIG_TPS6586X_POWER)	+= tps6586x.o
 obj-$(CONFIG_TWL4030_POWER)	+= twl4030.o
drivers/power/ftpmu010.c deleted +0 -87

87 lines not on this page · raw message

include/faraday/ftpmu010.h deleted +0 -234

234 lines not on this page · raw message

Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#41 lore raw

PATCH 28/88 rcar: Drop timer

In reply to Simon Glass

Drop this unused driver.

---

 arch/arm/mach-rmobile/Makefile |  1 -
 arch/arm/mach-rmobile/timer.c  | 87 ----------------------------------
 2 files changed, 88 deletions(-)
 delete mode 100644 arch/arm/mach-rmobile/timer.c
arch/arm/mach-rmobile/Makefile +0 -1
index 195bbeb5c88..3f77760e50d 100644
@@ -7,7 +7,6 @@ obj-y = cpu_info.o
 obj-y += emac.o
 
 obj-$(CONFIG_DISPLAY_BOARDINFO) += board.o
-obj-$(CONFIG_GLOBAL_TIMER) += timer.o
 obj-$(CONFIG_TMU_TIMER) += ../../sh/lib/time.o
 obj-$(CONFIG_SH73A0) += lowlevel_init.o cpu_info-sh73a0.o pfc-sh73a0.o
 obj-$(CONFIG_R8A7740) += lowlevel_init.o cpu_info-r8a7740.o pfc-r8a7740.o
arch/arm/mach-rmobile/timer.c deleted +0 -87

87 lines not on this page · raw message

Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#42 lore raw

PATCH 29/88 i2c: Rename I2C_MUX_PCA954x

In reply to Simon Glass

CONFIG options must not use lower-case letter. Convert this to upper case.

---

 arch/arm/mach-mvebu/Kconfig                                    | 2 +-
 configs/SBx81LIFKW_defconfig                                   | 2 +-
 configs/SBx81LIFXCAT_defconfig                                 | 2 +-
 configs/avnet_ultrazedev_cc_v1_0_ultrazedev_som_v1_0_defconfig | 2 +-
 configs/cgtqmx8_defconfig                                      | 2 +-
 configs/ge_bx50v3_defconfig                                    | 2 +-
 configs/imx8qm_mek_defconfig                                   | 2 +-
 configs/imx8qm_rom7720_a1_4G_defconfig                         | 2 +-
 configs/imx8qxp_mek_defconfig                                  | 2 +-
 configs/kmcent2_defconfig                                      | 2 +-
 configs/kmcoge5ne_defconfig                                    | 2 +-
 configs/kmeter1_defconfig                                      | 2 +-
 configs/kmopti2_defconfig                                      | 2 +-
 configs/kmsupx5_defconfig                                      | 2 +-
 configs/kmtepr2_defconfig                                      | 2 +-
 configs/ls1028aqds_tfa_SECURE_BOOT_defconfig                   | 2 +-
 configs/ls1028aqds_tfa_defconfig                               | 2 +-
 configs/ls1028aqds_tfa_lpuart_defconfig                        | 2 +-
 configs/ls1028ardb_tfa_SECURE_BOOT_defconfig                   | 2 +-
 configs/ls1028ardb_tfa_defconfig                               | 2 +-
 configs/ls1088aqds_tfa_defconfig                               | 2 +-
 configs/ls1088ardb_tfa_SECURE_BOOT_defconfig                   | 2 +-
 configs/ls1088ardb_tfa_defconfig                               | 2 +-
 configs/ls2088aqds_tfa_defconfig                               | 2 +-
 configs/ls2088ardb_tfa_SECURE_BOOT_defconfig                   | 2 +-
 configs/ls2088ardb_tfa_defconfig                               | 2 +-
 configs/lx2160aqds_tfa_SECURE_BOOT_defconfig                   | 2 +-
 configs/lx2160aqds_tfa_defconfig                               | 2 +-
 configs/lx2162aqds_tfa_SECURE_BOOT_defconfig                   | 2 +-
 configs/lx2162aqds_tfa_defconfig                               | 2 +-
 configs/lx2162aqds_tfa_verified_boot_defconfig                 | 2 +-
 configs/mvebu_puzzle-m801-88f8040_defconfig                    | 2 +-
 configs/mx53ppd_defconfig                                      | 2 +-
 configs/octeontx2_96xx_defconfig                               | 2 +-
 configs/tuge1_defconfig                                        | 2 +-
 configs/tuxx1_defconfig                                        | 2 +-
 configs/x530_defconfig                                         | 2 +-
 configs/xilinx_versal_net_virt_defconfig                       | 2 +-
 configs/xilinx_versal_virt_defconfig                           | 2 +-
 configs/xilinx_zynq_virt_defconfig                             | 2 +-
 configs/xilinx_zynqmp_virt_defconfig                           | 2 +-
 drivers/i2c/muxes/Kconfig                                      | 2 +-
 drivers/i2c/muxes/Makefile                                     | 2 +-
 43 files changed, 43 insertions(+), 43 deletions(-)
arch/arm/mach-mvebu/Kconfig +1 -1
index 594e9a03d90..71676be84b2 100644
@@ -133,7 +133,7 @@ config TARGET_TURRIS_OMNIA
 	select BOARD_LATE_INIT
 	select DM_I2C
 	select I2C_MUX
-	select I2C_MUX_PCA954x
+	select I2C_MUX_PCA954X
 	select SPL_DRIVERS_MISC
 	select SPL_I2C_MUX
 	select SPL_SYS_MALLOC_SIMPLE
configs/SBx81LIFKW_defconfig +1 -1
index e53f2489c5d..a94da5a017a 100644
@@ -47,7 +47,7 @@ CONFIG_DM_PCA953X=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_LED=y
 CONFIG_LED_GPIO=y
 # CONFIG_MMC is not set
configs/SBx81LIFXCAT_defconfig +1 -1
index 80dbbb11c9b..da493c29ffc 100644
@@ -47,7 +47,7 @@ CONFIG_DM_PCA953X=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_LED=y
 CONFIG_LED_GPIO=y
 # CONFIG_MMC is not set
configs/avnet_ultrazedev_cc_v1_0_ultrazedev_som_v1_0_defconfig +1 -1
index 0a3d710a8b1..0f8978bc02b 100644
@@ -59,7 +59,7 @@ CONFIG_FPGA_ZYNQMPPL=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_CADENCE=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_MISC=y
 CONFIG_I2C_EEPROM=y
 CONFIG_MMC_SDHCI=y
configs/cgtqmx8_defconfig +1 -1
index 019701010ac..a0d24b4d534 100644
@@ -78,7 +78,7 @@ CONFIG_DM_PCA953X=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_IMX_LPI2C=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_MISC=y
 CONFIG_SUPPORT_EMMC_BOOT=y
 CONFIG_FSL_USDHC=y
configs/ge_bx50v3_defconfig +1 -1
index 82f6cc3f824..80667ee79cd 100644
@@ -54,7 +54,7 @@ CONFIG_DM_BOOTCOUNT_I2C_EEPROM=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_MXC=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_MISC=y
 CONFIG_I2C_EEPROM=y
 CONFIG_SUPPORT_EMMC_BOOT=y
configs/imx8qm_mek_defconfig +1 -1
index 4fc828681b6..ef9c1130ab6 100644
@@ -81,7 +81,7 @@ CONFIG_DM_PCA953X=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_IMX_LPI2C=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_SUPPORT_EMMC_BOOT=y
 CONFIG_FSL_USDHC=y
 CONFIG_PHYLIB=y
configs/imx8qm_rom7720_a1_4G_defconfig +1 -1
index 7819bef8638..0246b2a966a 100644
@@ -68,7 +68,7 @@ CONFIG_DM_PCA953X=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_IMX_LPI2C=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_MISC=y
 CONFIG_SUPPORT_EMMC_BOOT=y
 CONFIG_FSL_USDHC=y
configs/imx8qxp_mek_defconfig +1 -1
index a00951a3b03..ef86485badf 100644
@@ -84,7 +84,7 @@ CONFIG_DM_PCA953X=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_IMX_LPI2C=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_SUPPORT_EMMC_BOOT=y
 CONFIG_FSL_USDHC=y
 CONFIG_PHYLIB=y
configs/kmcent2_defconfig +1 -1
index bd4943006c1..d9aae79bc2b 100644
@@ -69,7 +69,7 @@ CONFIG_SYS_FSL_DDR3=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_FSL=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD=y
 CONFIG_DM_MTD=y
configs/kmcoge5ne_defconfig +1 -1
index 4ea7da8d32c..c8897003c10 100644
@@ -222,7 +222,7 @@ CONFIG_SYS_OR4_PRELIM=0xF0000E25
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_FSL=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 # CONFIG_MMC is not set
 CONFIG_MTD=y
 CONFIG_MTD_NOR_FLASH=y
configs/kmeter1_defconfig +1 -1
index 96298ed0c38..573dc4c5c4e 100644
@@ -188,7 +188,7 @@ CONFIG_SYS_OR3_PRELIM=0xF0000E25
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_FSL=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 # CONFIG_MMC is not set
 CONFIG_MTD=y
 CONFIG_MTD_NOR_FLASH=y
configs/kmopti2_defconfig +1 -1
index db717e4a15d..895ac4649a2 100644
@@ -203,7 +203,7 @@ CONFIG_SYS_OR3_PRELIM=0xF0000040
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_FSL=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 # CONFIG_MMC is not set
 CONFIG_MTD=y
 CONFIG_MTD_NOR_FLASH=y
configs/kmsupx5_defconfig +1 -1
index 69de685bafd..e99c55e47a1 100644
@@ -180,7 +180,7 @@ CONFIG_SYS_OR2_PRELIM=0xF0000C25
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_FSL=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 # CONFIG_MMC is not set
 CONFIG_MTD=y
 CONFIG_MTD_NOR_FLASH=y
configs/kmtepr2_defconfig +1 -1
index 92f2b0adecd..fd206f3d0e6 100644
@@ -202,7 +202,7 @@ CONFIG_SYS_OR3_PRELIM=0xF0000040
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_FSL=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 # CONFIG_MMC is not set
 CONFIG_MTD=y
 CONFIG_MTD_NOR_FLASH=y
configs/ls1028aqds_tfa_SECURE_BOOT_defconfig +1 -1
index 525c7df6d0f..6913addf265 100644
@@ -58,7 +58,7 @@ CONFIG_MPC8XXX_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_SYS_I2C_EEPROM_ADDR=0x57
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD=y
configs/ls1028aqds_tfa_defconfig +1 -1
index dde204eaa0d..43ac651507b 100644
@@ -64,7 +64,7 @@ CONFIG_MPC8XXX_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_SYS_I2C_EEPROM_ADDR=0x57
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD=y
configs/ls1028aqds_tfa_lpuart_defconfig +1 -1
index 8cd90863a1c..10ed3d50131 100644
@@ -63,7 +63,7 @@ CONFIG_MPC8XXX_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_SYS_I2C_EEPROM_ADDR=0x57
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD=y
configs/ls1028ardb_tfa_SECURE_BOOT_defconfig +1 -1
index b8df245025f..49ca58a753b 100644
@@ -56,7 +56,7 @@ CONFIG_MPC8XXX_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_SYS_I2C_EEPROM_ADDR=0x57
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD=y
configs/ls1028ardb_tfa_defconfig +1 -1
index 5b1cf988cf0..4110f7c7ef7 100644
@@ -62,7 +62,7 @@ CONFIG_MPC8XXX_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_SYS_I2C_EEPROM_ADDR=0x57
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD=y
configs/ls1088aqds_tfa_defconfig +1 -1
index c8ab5723539..4310df41ece 100644
@@ -75,7 +75,7 @@ CONFIG_MPC8XXX_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_SYS_I2C_EEPROM_ADDR=0x57
 CONFIG_FSL_ESDHC=y
 CONFIG_ESDHC_DETECT_QUIRK=y
configs/ls1088ardb_tfa_SECURE_BOOT_defconfig +1 -1
index 0ec80be2ea6..f1bb25c7c71 100644
@@ -64,7 +64,7 @@ CONFIG_MPC8XXX_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_SYS_I2C_EEPROM_ADDR=0x57
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD=y
configs/ls1088ardb_tfa_defconfig +1 -1
index 27323be4089..f4aaca00673 100644
@@ -70,7 +70,7 @@ CONFIG_MPC8XXX_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_SYS_I2C_EEPROM_ADDR=0x57
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD=y
configs/ls2088aqds_tfa_defconfig +1 -1
index a9faa1525ac..31c5fa7a2f7 100644
@@ -72,7 +72,7 @@ CONFIG_MPC8XXX_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_SYS_I2C_EEPROM_ADDR=0x57
 CONFIG_FSL_ESDHC=y
 CONFIG_ESDHC_DETECT_QUIRK=y
configs/ls2088ardb_tfa_SECURE_BOOT_defconfig +1 -1
index 1dd7c1dd808..e290dad5711 100644
@@ -67,7 +67,7 @@ CONFIG_MPC8XXX_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_SYS_I2C_EEPROM_ADDR=0x57
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD=y
configs/ls2088ardb_tfa_defconfig +1 -1
index 246ab403754..03c48d7a850 100644
@@ -74,7 +74,7 @@ CONFIG_MPC8XXX_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_SYS_I2C_EEPROM_ADDR=0x57
 CONFIG_FSL_ESDHC=y
 CONFIG_MTD=y
configs/lx2160aqds_tfa_SECURE_BOOT_defconfig +1 -1
index ea3f2acaeb2..b47af2a883c 100644
@@ -67,7 +67,7 @@ CONFIG_MPC8XXX_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_SYS_I2C_EEPROM_ADDR=0x57
 CONFIG_FSL_ESDHC=y
 CONFIG_ESDHC_DETECT_QUIRK=y
configs/lx2160aqds_tfa_defconfig +1 -1
index 9be7ac9c282..11d934509d0 100644
@@ -74,7 +74,7 @@ CONFIG_MPC8XXX_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_SYS_I2C_EEPROM_ADDR=0x57
 CONFIG_FSL_ESDHC=y
 CONFIG_ESDHC_DETECT_QUIRK=y
configs/lx2162aqds_tfa_SECURE_BOOT_defconfig +1 -1
index ad1b1234c01..acd778a624c 100644
@@ -69,7 +69,7 @@ CONFIG_MPC8XXX_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_SYS_I2C_EEPROM_ADDR=0x57
 CONFIG_MMC_HS400_SUPPORT=y
 CONFIG_FSL_ESDHC=y
configs/lx2162aqds_tfa_defconfig +1 -1
index ee37dfd83d8..de43d6c5e1f 100644
@@ -76,7 +76,7 @@ CONFIG_MPC8XXX_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_SYS_I2C_EEPROM_ADDR=0x57
 CONFIG_SUPPORT_EMMC_RPMB=y
 CONFIG_MMC_HS400_SUPPORT=y
configs/lx2162aqds_tfa_verified_boot_defconfig +1 -1
index 0fe96e37999..3cf10e8bab5 100644
@@ -77,7 +77,7 @@ CONFIG_MPC8XXX_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_SYS_I2C_EEPROM_ADDR=0x57
 CONFIG_SUPPORT_EMMC_RPMB=y
 CONFIG_MMC_HS400_SUPPORT=y
configs/mvebu_puzzle-m801-88f8040_defconfig +1 -1
index 06112b373b2..e2b735ee6bb 100644
@@ -57,7 +57,7 @@ CONFIG_DM_PCA953X=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_MISC=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_XENON=y
configs/mx53ppd_defconfig +1 -1
index 055dbcb0335..59ca8b639aa 100644
@@ -49,7 +49,7 @@ CONFIG_DM_BOOTCOUNT_I2C_EEPROM=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_MXC=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_MISC=y
 CONFIG_FSL_IIM=y
 CONFIG_I2C_EEPROM=y
configs/octeontx2_96xx_defconfig +1 -1
index 061464d7903..46e963b1d63 100644
@@ -87,7 +87,7 @@ CONFIG_AHCI_PCI=y
 CONFIG_DM_I2C=y
 CONFIG_I2C_SET_DEFAULT_BUS_NUM=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_MISC=y
 CONFIG_SYS_MMC_MAX_BLK_COUNT=8192
 CONFIG_SUPPORT_EMMC_RPMB=y
configs/tuge1_defconfig +1 -1
index 0c3381461eb..3301a7f936b 100644
@@ -180,7 +180,7 @@ CONFIG_SYS_OR2_PRELIM=0xF0000C25
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_FSL=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 # CONFIG_MMC is not set
 CONFIG_MTD=y
 CONFIG_MTD_NOR_FLASH=y
configs/tuxx1_defconfig +1 -1
index 4f192ad2624..02b369beacf 100644
@@ -204,7 +204,7 @@ CONFIG_SYS_OR3_PRELIM=0xF0000E24
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_FSL=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 # CONFIG_MMC is not set
 CONFIG_MTD=y
 CONFIG_MTD_NOR_FLASH=y
configs/x530_defconfig +1 -1
index 70c08adcde9..c0128f623da 100644
@@ -67,7 +67,7 @@ CONFIG_SPL_OF_TRANSLATE=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_MVTWSI=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 # CONFIG_MMC is not set
 CONFIG_MTD=y
 CONFIG_MTD_RAW_NAND=y
configs/xilinx_versal_net_virt_defconfig +1 -1
index 2fdf99f7cbb..1178e60f498 100644
@@ -67,7 +67,7 @@ CONFIG_ZYNQ_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_CADENCE=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_DM_MAILBOX=y
 CONFIG_ZYNQMP_IPI=y
 CONFIG_MISC=y
configs/xilinx_versal_virt_defconfig +1 -1
index de74b705504..5c0db77cee2 100644
@@ -72,7 +72,7 @@ CONFIG_FPGA_VERSALPL=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_CADENCE=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_DM_MAILBOX=y
 CONFIG_ZYNQMP_IPI=y
 CONFIG_MISC=y
configs/xilinx_zynq_virt_defconfig +1 -1
index 610d9de2a63..803b126cbb4 100644
@@ -101,7 +101,7 @@ CONFIG_FPGA_ZYNQPL=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_CADENCE=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_LED=y
 CONFIG_LED_GPIO=y
 CONFIG_MISC=y
configs/xilinx_zynqmp_virt_defconfig +1 -1
index ab2a5426518..3b52997da4f 100644
@@ -141,7 +141,7 @@ CONFIG_SLG7XL45106_I2C_GPO=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_CADENCE=y
 CONFIG_I2C_MUX=y
-CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_PCA954X=y
 CONFIG_LED=y
 CONFIG_LED_GPIO=y
 CONFIG_MISC=y
drivers/i2c/muxes/Kconfig +1 -1
index 323c4fbe9cc..4882e5909d3 100644
@@ -25,7 +25,7 @@ config I2C_ARB_GPIO_CHALLENGE
 	  response mechanism where masters have to claim the bus by asserting
 	  a GPIO.
 
-config I2C_MUX_PCA954x
+config I2C_MUX_PCA954X
 	tristate "TI PCA954x I2C Mux/switches"
 	depends on I2C_MUX
 	help
drivers/i2c/muxes/Makefile +1 -1
index b690821199f..84abd059580 100644
@@ -3,5 +3,5 @@
 # Copyright (c) 2015 Google, Inc
 obj-$(CONFIG_I2C_ARB_GPIO_CHALLENGE) += i2c-arb-gpio-challenge.o
 obj-$(CONFIG_I2C_MUX) += i2c-mux-uclass.o
-obj-$(CONFIG_I2C_MUX_PCA954x) += pca954x.o
+obj-$(CONFIG_I2C_MUX_PCA954X) += pca954x.o
 obj-$(CONFIG_I2C_MUX_GPIO) += i2c-mux-gpio.o
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
Reviewed-by on v1 29/88
#43 lore raw

Re: [PATCH 29/88] i2c: Rename I2C_MUX_PCA954x

Hi Simon

Quoted 8 lines · Simon Glass

CONFIG options must not use lower-case letter. Convert this to upper case.

---

  configs/SBx81LIFKW_defconfig                                   | 2 +-
  configs/SBx81LIFXCAT_defconfig                                 | 2 +-
  configs/x530_defconfig                                         | 2 +-

For these boards

Reviewed-by on v1 29/88
#44 lore raw

Re: [PATCH 29/88] i2c: Rename I2C_MUX_PCA954x

In reply to Simon Glass

Hello Simon,

Quoted 41 lines · Simon Glass

CONFIG options must not use lower-case letter. Convert this to upper case.

---

 arch/arm/mach-mvebu/Kconfig                                    | 2 +-
 configs/SBx81LIFKW_defconfig                                   | 2 +-
 configs/SBx81LIFXCAT_defconfig                                 | 2 +-
 configs/avnet_ultrazedev_cc_v1_0_ultrazedev_som_v1_0_defconfig | 2 +-
 configs/cgtqmx8_defconfig                                      | 2 +-
 configs/ge_bx50v3_defconfig                                    | 2 +-
 configs/imx8qm_mek_defconfig                                   | 2 +-
 configs/imx8qm_rom7720_a1_4G_defconfig                         | 2 +-
 configs/imx8qxp_mek_defconfig                                  | 2 +-
 configs/kmcent2_defconfig                                      | 2 +-
 configs/kmcoge5ne_defconfig                                    | 2 +-
 configs/kmeter1_defconfig                                      | 2 +-
 configs/kmopti2_defconfig                                      | 2 +-
 configs/kmsupx5_defconfig                                      | 2 +-
 configs/kmtepr2_defconfig                                      | 2 +-
 configs/ls1028aqds_tfa_SECURE_BOOT_defconfig                   | 2 +-
 configs/ls1028aqds_tfa_defconfig                               | 2 +-
 configs/ls1028aqds_tfa_lpuart_defconfig                        | 2 +-
 configs/ls1028ardb_tfa_SECURE_BOOT_defconfig                   | 2 +-
 configs/ls1028ardb_tfa_defconfig                               | 2 +-
 configs/ls1088aqds_tfa_defconfig                               | 2 +-
 configs/ls1088ardb_tfa_SECURE_BOOT_defconfig                   | 2 +-
 configs/ls1088ardb_tfa_defconfig                               | 2 +-
 configs/ls2088aqds_tfa_defconfig                               | 2 +-
 configs/ls2088ardb_tfa_SECURE_BOOT_defconfig                   | 2 +-
 configs/ls2088ardb_tfa_defconfig                               | 2 +-
 configs/lx2160aqds_tfa_SECURE_BOOT_defconfig                   | 2 +-
 configs/lx2160aqds_tfa_defconfig                               | 2 +-
 configs/lx2162aqds_tfa_SECURE_BOOT_defconfig                   | 2 +-
 configs/lx2162aqds_tfa_defconfig                               | 2 +-
 configs/lx2162aqds_tfa_verified_boot_defconfig                 | 2 +-
 configs/mvebu_puzzle-m801-88f8040_defconfig                    | 2 +-
 configs/mx53ppd_defconfig                                      | 2 +-
 configs/octeontx2_96xx_defconfig                               | 2 +-
 configs/tuge1_defconfig                                        | 2 +-
 configs/tuxx1_defconfig                                        | 2 +-
Quoted 8 lines
 configs/x530_defconfig                                         | 2 +-
 configs/xilinx_versal_net_virt_defconfig                       | 2 +-
 configs/xilinx_versal_virt_defconfig                           | 2 +-
 configs/xilinx_zynq_virt_defconfig                             | 2 +-
 configs/xilinx_zynqmp_virt_defconfig                           | 2 +-
 drivers/i2c/muxes/Kconfig                                      | 2 +-
 drivers/i2c/muxes/Makefile                                     | 2 +-
 43 files changed, 43 insertions(+), 43 deletions(-)

Thanks!

bye,
Heiko

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: [email protected]
#45 lore raw

Re: [PATCH 29/88] i2c: Rename I2C_MUX_PCA954x

In reply to Simon Glass

Hi Simon,

Quoted 4 lines · On Mon, 23 Jan 2023 14:59:32 -0700 Simon Glass <[email protected]> wrote:

CONFIG options must not use lower-case letter. Convert this to upper case.

---

...

Quoted 1 line
 configs/avnet_ultrazedev_cc_v1_0_ultrazedev_som_v1_0_defconfig | 2 +-

FYI, this board has been removed from Michal's tree:

https://lore.kernel.org/u-boot/[email protected]/

Signature · 3 lines
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#46 lore raw

PATCH 30/88 imx: Drop unused CONFIG_IMX

In reply to Simon Glass

This option does not exist, so the Makefile rule does nothing. Drop it.

---

 arch/arm/cpu/arm920t/Makefile | 2 --
 1 file changed, 2 deletions(-)
arch/arm/cpu/arm920t/Makefile +0 -2
index b70822c67ab..5ac3740621c 100644
@@ -7,8 +7,6 @@ extra-y	= start.o
 
 obj-y	+= cpu.o
 
-obj-$(CONFIG_IMX) += imx/
-
 # some files can only build in ARM mode
 
 ifdef CONFIG_$(SPL_)SYS_THUMB_BUILD
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#47 lore raw

PATCH 31/88 arm: Drop old kona code

In reply to Simon Glass

The KONA and KONA_GPIO options don't exist anymore, since this commit:

0f6807e77b0 arm: Remove bcm28155_ap board

Drop the dead code.

---

 arch/arm/cpu/armv7/Makefile                   |   1 -
 arch/arm/cpu/armv7/kona-common/Makefile       |   8 -
 arch/arm/cpu/armv7/kona-common/clk-stubs.c    |  25 ----
 .../arm/cpu/armv7/kona-common/hwinit-common.c |  17 ---
 arch/arm/cpu/armv7/kona-common/reset.S        |  25 ----
 arch/arm/cpu/armv7/kona-common/s_init.c       |  11 --
 drivers/gpio/Makefile                         |   1 -
 drivers/gpio/kona_gpio.c                      | 141 ------------------
 8 files changed, 229 deletions(-)
 delete mode 100644 arch/arm/cpu/armv7/kona-common/Makefile
 delete mode 100644 arch/arm/cpu/armv7/kona-common/clk-stubs.c
 delete mode 100644 arch/arm/cpu/armv7/kona-common/hwinit-common.c
 delete mode 100644 arch/arm/cpu/armv7/kona-common/reset.S
 delete mode 100644 arch/arm/cpu/armv7/kona-common/s_init.c
 delete mode 100644 drivers/gpio/kona_gpio.c
arch/arm/cpu/armv7/Makefile +0 -1
index bfbd85ae64e..7d7907601ec 100644
@@ -26,7 +26,6 @@ obj-$(CONFIG_ARMV7_NONSEC)	+= nonsec_virt.o virt-v7.o virt-dt.o
 obj-$(CONFIG_ARMV7_PSCI)	+= psci.o psci-common.o
 
 obj-$(CONFIG_IPROC) += iproc-common/
-obj-$(CONFIG_KONA) += kona-common/
 obj-$(CONFIG_SYS_ARCH_TIMER) += arch_timer.o
 
 ifneq (,$(filter s5pc1xx exynos,$(SOC)))
arch/arm/cpu/armv7/kona-common/Makefile deleted +0 -8
deleted file mode 100644
index 56de3d18e0e..00000000000
@@ -1,8 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# Copyright 2013 Broadcom Corporation.
-
-obj-y	+= s_init.o
-obj-y	+= hwinit-common.o
-obj-y	+= clk-stubs.o
-obj-${CONFIG_KONA_RESET_S} += reset.o
arch/arm/cpu/armv7/kona-common/clk-stubs.c deleted +0 -25
deleted file mode 100644
index 4eddaca8879..00000000000
@@ -1,25 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Copyright 2013 Broadcom Corporation.
- */
-
-#include <common.h>
-
-/*
- * These weak functions are available to kona architectures that don't
- * require clock enables from the driver code.
- */
-int __weak clk_sdio_enable(void *base, u32 rate, u32 *actual_ratep)
-{
-	return 0;
-}
-
-int __weak clk_bsc_enable(void *base)
-{
-	return 0;
-}
-
-int __weak clk_usb_otg_enable(void *base)
-{
-	return 0;
-}
arch/arm/cpu/armv7/kona-common/hwinit-common.c deleted +0 -17
deleted file mode 100644
index cfc7c9fbc64..00000000000
@@ -1,17 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Copyright 2013 Broadcom Corporation.
- */
-
-#include <common.h>
-#include <cpu_func.h>
-#include <asm/cache.h>
-#include <linux/sizes.h>
-
-#if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF)
-void enable_caches(void)
-{
-	/* Enable D-cache. I-cache is already enabled in start.S */
-	dcache_enable();
-}
-#endif
arch/arm/cpu/armv7/kona-common/reset.S deleted +0 -25
deleted file mode 100644
index eea835b341c..00000000000
@@ -1,25 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright 2013 Broadcom Corporation.
- */
-
-.globl reset_cpu
-reset_cpu:
-	ldr	r1, =0x35001f00
-	ldr	r2, [r1]
-	ldr	r4, =0x80000000
-	and	r4, r2, r4
-	ldr	r3, =0xA5A500
-	orr	r4, r4, r3
-	orr	r4, r4, #0x1
-
-	str	r4, [r1]
-
-	ldr	r1, =0x35001f04
-	ldr	r2, [r1]
-	ldr	r4, =0x80000000
-	and	r4, r2, r4
-	str	r4, [r1]
-
-_loop_forever:
-	b	_loop_forever
arch/arm/cpu/armv7/kona-common/s_init.c deleted +0 -11
deleted file mode 100644
index 778b9176fa2..00000000000
@@ -1,11 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Copyright 2014 Broadcom Corporation.
- */
-
-/*
- * Early system init. Currently empty.
- */
-void s_init(void)
-{
-}
drivers/gpio/Makefile +0 -1
index 07fca7bd33d..ec65f70c318 100644
@@ -23,7 +23,6 @@ obj-$(CONFIG_INTEL_ICH6_GPIO)	+= intel_ich6_gpio.o
 obj-$(CONFIG_INTEL_BROADWELL_GPIO)	+= intel_broadwell_gpio.o
 obj-$(CONFIG_IPROC_GPIO)	+= iproc_gpio.o
 obj-$(CONFIG_KIRKWOOD_GPIO)	+= kw_gpio.o
-obj-$(CONFIG_KONA_GPIO)	+= kona_gpio.o
 obj-$(CONFIG_MCP230XX_GPIO)	+= mcp230xx_gpio.o
 obj-$(CONFIG_MXC_GPIO)	+= mxc_gpio.o
 obj-$(CONFIG_MXS_GPIO)	+= mxs_gpio.o
drivers/gpio/kona_gpio.c deleted +0 -141

141 lines not on this page · raw message

Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#48 lore raw

PATCH 32/88 video: Drop unused lg4573 driver

In reply to Simon Glass

This is not used since this commit:

3cf02f5ffa4 imx6: remove not longer supported aristainetos boards

Drop the driver and Kconfig option.

---

 drivers/video/Makefile |   1 -
 drivers/video/lg4573.c | 331 -----------------------------------------
 2 files changed, 332 deletions(-)
 delete mode 100644 drivers/video/lg4573.c
drivers/video/Makefile +0 -1
index 40a871d638e..12b68cdd068 100644
@@ -30,7 +30,6 @@ obj-${CONFIG_VIDEO_TEGRA124} += tegra124/
 obj-$(CONFIG_ATMEL_HLCD) += atmel_hlcdfb.o
 obj-$(CONFIG_ATMEL_LCD) += atmel_lcdfb.o
 obj-$(CONFIG_IHS_VIDEO_OUT) += ihs_video_out.o
-obj-$(CONFIG_LG4573) += lg4573.o
 obj-$(CONFIG_LOGICORE_DP_TX) += logicore_dp_tx.o
 obj-$(CONFIG_NXP_TDA19988) += tda19988.o
 obj-$(CONFIG_OSD) += video_osd-uclass.o
drivers/video/lg4573.c deleted +0 -331

331 lines not on this page · raw message

Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#49 lore raw

PATCH 33/88 m68k: Drop unused CONFIG_M52277

In reply to Simon Glass

This option does not exist, so the Makefile rule does nothing. Drop it.

---

 arch/m68k/Makefile | 1 -
 1 file changed, 1 deletion(-)
arch/m68k/Makefile +0 -1
index 63f18109a57..4a7960bbeb4 100644
@@ -7,7 +7,6 @@ libs-y += arch/m68k/lib/
 
 cpuflags-$(CONFIG_M5208)	:= -mcpu=5208
 cpuflags-$(CONFIG_M5235)	:= -mcpu=5235 -fPIC
-cpuflags-$(CONFIG_M52277)	:= -mcpu=52277 -fPIC
 cpuflags-$(CONFIG_M5249)	:= -mcpu=5249
 cpuflags-$(CONFIG_M5253)	:= -mcpu=5253
 cpuflags-$(CONFIG_M5271)	:= -mcpu=5271
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#50 lore raw

PATCH 34/88 m68k: Rename MCF5301x

In reply to Simon Glass

CONFIG options must not use lower-case letter. Convert this to upper case.

---

 arch/m68k/Kconfig                   |  4 ++--
 arch/m68k/Makefile                  |  2 +-
 arch/m68k/cpu/mcf532x/cpu.c         |  2 +-
 arch/m68k/cpu/mcf532x/cpu_init.c    |  4 ++--
 arch/m68k/cpu/mcf532x/speed.c       | 12 ++++++------
 arch/m68k/cpu/mcf532x/start.S       |  2 +-
 arch/m68k/include/asm/cache.h       |  2 +-
 arch/m68k/include/asm/immap.h       |  2 +-
 arch/m68k/include/asm/immap_5301x.h |  2 +-
 board/freescale/m53017evb/README    |  6 +++---
 10 files changed, 19 insertions(+), 19 deletions(-)
arch/m68k/Kconfig +2 -2
index 76233ef563f..af5540f14a4 100644
@@ -32,7 +32,7 @@ config MCF530x
         select DM_SERIAL
 	bool
 
-config MCF5301x
+config MCF5301X
 	select OF_CONTROL
 	select DM
         select DM_SERIAL
@@ -95,7 +95,7 @@ config M5307
 
 config M53015
 	bool
-	select MCF5301x
+	select MCF5301X
 
 config M5329
 	bool
arch/m68k/Makefile +1 -1
index 4a7960bbeb4..21e5337d309 100644
@@ -14,7 +14,7 @@ cpuflags-$(CONFIG_M5272)	:= -mcpu=5272
 cpuflags-$(CONFIG_M5275)	:= -mcpu=5275
 cpuflags-$(CONFIG_M5282)	:= -mcpu=5282
 cpuflags-$(CONFIG_M5307)	:= -mcpu=5307
-cpuflags-$(CONFIG_MCF5301x)	:= -mcpu=53015 -fPIC
+cpuflags-$(CONFIG_MCF5301X)	:= -mcpu=53015 -fPIC
 cpuflags-$(CONFIG_MCF532x)	:= -mcpu=5329 -fPIC
 cpuflags-$(CONFIG_MCF5441x)	:= -mcpu=54418 -fPIC
 
arch/m68k/cpu/mcf532x/cpu.c +1 -1
index 548cbca36aa..96a9a422f3a 100644
@@ -46,7 +46,7 @@ int print_cpuinfo(void)
 	msk = (in_be16(&ccm->cir) >> 6);
 	ver = (in_be16(&ccm->cir) & 0x003f);
 	switch (msk) {
-#ifdef CONFIG_MCF5301x
+#ifdef CONFIG_MCF5301X
 	case 0x78:
 		id = 53010;
 		break;
arch/m68k/cpu/mcf532x/cpu_init.c +2 -2
index 844d2cd7600..c12cb310e62 100644
@@ -21,7 +21,7 @@
 #include <asm/fec.h>
 #endif
 
-#ifdef CONFIG_MCF5301x
+#ifdef CONFIG_MCF5301X
 void cpu_init_f(void)
 {
 	scm1_t *scm1 = (scm1_t *) MMAP_SCM1;
@@ -207,7 +207,7 @@ int fecpin_setclear(fec_info_t *info, int setclear)
 	return 0;
 }
 #endif				/* CONFIG_CMD_NET */
-#endif				/* CONFIG_MCF5301x */
+#endif				/* CONFIG_MCF5301X */
 
 #ifdef CONFIG_MCF532x
 void cpu_init_f(void)
arch/m68k/cpu/mcf532x/speed.c +6 -6
index 32ffac08135..24b2f937aeb 100644
@@ -23,7 +23,7 @@ DECLARE_GLOBAL_DATA_PTR;
 #define MAX_FSYS	80000	/* KHz */
 #define MIN_FSYS	58333	/* KHz */
 
-#ifdef CONFIG_MCF5301x
+#ifdef CONFIG_MCF5301X
 #define FREF		20000	/* KHz */
 #define MAX_MFD		63	/* Multiplier */
 #define MIN_MFD		0	/* Multiplier */
@@ -58,14 +58,14 @@ int get_sys_clock(void)
 	/* Test to see if device is in LIMP mode */
 	if (in_be16(&ccm->misccr) & CCM_MISCCR_LIMP) {
 		divider = in_be16(&ccm->cdr) & CCM_CDR_LPDIV(0xF);
-#ifdef CONFIG_MCF5301x
+#ifdef CONFIG_MCF5301X
 		return (FREF / (3 * (1 << divider)));
 #endif
 #ifdef CONFIG_MCF532x
 		return (FREF / (2 << divider));
 #endif
 	} else {
-#ifdef CONFIG_MCF5301x
+#ifdef CONFIG_MCF5301X
 		u32 pfdr = (in_be32(&pll->pcr) & 0x3F) + 1;
 		u32 refdiv = (1 << ((in_be32(&pll->pcr) & PLL_PCR_REFDIV(7)) >> 8));
 		u32 busdiv = ((in_be32(&pll->pdr) & 0x00F0) >> 4) + 1;
@@ -151,7 +151,7 @@ int clock_pll(int fsys, int flags)
 
 	if (fsys == 0) {
 		/* Return current PLL output */
-#ifdef CONFIG_MCF5301x
+#ifdef CONFIG_MCF5301X
 		u32 busdiv = ((in_be32(&pll->pdr) >> 4) & 0x0F) + 1;
 		mfd = (in_be32(&pll->pcr) & 0x3F) + 1;
 
@@ -178,7 +178,7 @@ int clock_pll(int fsys, int flags)
 	 * point libraries.
 	 */
 	temp = (100 * fsys) / fref;
-#ifdef CONFIG_MCF5301x
+#ifdef CONFIG_MCF5301X
 	mfd = (BUSDIV * temp) / 100;
 
 	/* Determine the output frequency for selected values */
@@ -209,7 +209,7 @@ int clock_pll(int fsys, int flags)
 	/* Enter LIMP mode */
 	clock_limp(DEFAULT_LPD);
 
-#ifdef CONFIG_MCF5301x
+#ifdef CONFIG_MCF5301X
 	out_be32(&pll->pdr,
 		PLL_PDR_OUTDIV1((BUSDIV / 3) - 1) |
 		PLL_PDR_OUTDIV2(BUSDIV - 1)	|
arch/m68k/cpu/mcf532x/start.S +1 -1
index 72a2f99b7dd..442a91f73ac 100644
@@ -112,7 +112,7 @@ _start:
 	movec	%d0, %ACR0
 	movec	%d0, %ACR1
 
-#ifdef CONFIG_MCF5301x
+#ifdef CONFIG_MCF5301X
 	move.l	#(0xFC0a0010), %a0
 	move.w	(%a0), %d0
 	and.l	%d0, 0xEFFF
arch/m68k/include/asm/cache.h +1 -1
index 8ed2b4dbab4..78ff04fe29b 100644
@@ -15,7 +15,7 @@
 #endif
 
 #if defined(CONFIG_MCF530x) || defined(CONFIG_MCF532x) || \
-    defined(CONFIG_MCF5301x)
+    defined(CONFIG_MCF5301X)
 #define CFG_CF_V3
 #endif
 
arch/m68k/include/asm/immap.h +1 -1
index 8207c8d5b73..ec270fcf579 100644
@@ -210,7 +210,7 @@
 #endif
 #endif                          /* CONFIG_M5307 */
 
-#if defined(CONFIG_MCF5301x)
+#if defined(CONFIG_MCF5301X)
 #include <asm/immap_5301x.h>
 #include <asm/m5301x.h>
 
arch/m68k/include/asm/immap_5301x.h +1 -1
index e1f7858b100..6bfd5c7a840 100644
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0+ */
 /*
- * MCF5301x Internal Memory Map
+ * MCF5301X Internal Memory Map
  *
  * Copyright (C) 2004-2008 Freescale Semiconductor, Inc.
  * TsiChung Liew ([email protected])
board/freescale/m53017evb/README +3 -3
index 34f05f3fdc7..9c14f836cbf 100644
@@ -58,12 +58,12 @@ Changed files:
 - arch/m68k/lib/time.c			Timer functions (Dma timer and PIT)
 - arch/m68k/lib/traps.c			Exception init code
 
-1 MCF5301x specific Options/Settings
+1 MCF5301X specific Options/Settings
 ====================================
 1.1 pre-loader is no longer suppoer in thie coldfire family
 
 1.2 Configuration settings for M53017EVB Development Board
-CONFIG_MCF5301x			-- define for all MCF5301x CPUs
+CONFIG_MCF5301X			-- define for all MCF5301X CPUs
 CONFIG_M53015			-- define for MCF53015 CPUs
 CONFIG_M53017EVB		-- define for M53017EVB board
 
@@ -100,7 +100,7 @@ CFG_SYS_MBAR			-- define MBAR offset
 
 CONFIG_MONITOR_IS_IN_RAM	-- Not support
 
-CFG_SYS_INIT_RAM_ADDR	-- defines the base address of the MCF5301x internal SRAM
+CFG_SYS_INIT_RAM_ADDR	-- defines the base address of the MCF5301X internal SRAM
 
 CONFIG_SYS_CSn_BASE		-- defines the Chip Select Base register
 CONFIG_SYS_CSn_MASK		-- defines the Chip Select Mask register
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#51 lore raw

PATCH 35/88 m68k: Rename MCF532x

In reply to Simon Glass

CONFIG options must not use lower-case letter. Convert this to upper case.

---

 arch/m68k/Kconfig                     |  6 +++---
 arch/m68k/Makefile                    |  2 +-
 arch/m68k/cpu/mcf532x/cpu.c           |  2 +-
 arch/m68k/cpu/mcf532x/cpu_init.c      |  4 ++--
 arch/m68k/cpu/mcf532x/speed.c         | 16 ++++++++--------
 arch/m68k/include/asm/cache.h         |  2 +-
 arch/m68k/include/asm/coldfire/skha.h |  2 +-
 board/freescale/m5373evb/README       |  2 +-
 env/Kconfig                           |  2 +-
 9 files changed, 19 insertions(+), 19 deletions(-)
arch/m68k/Kconfig +3 -3
index af5540f14a4..6781ba28c7a 100644
@@ -38,7 +38,7 @@ config MCF5301X
         select DM_SERIAL
 	bool
 
-config MCF532x
+config MCF532X
 	select OF_CONTROL
 	select DM
         select DM_SERIAL
@@ -99,11 +99,11 @@ config M53015
 
 config M5329
 	bool
-	select MCF532x
+	select MCF532X
 
 config M5373
 	bool
-	select MCF532x
+	select MCF532X
 	select MCF537x
 
 config M54418
arch/m68k/Makefile +1 -1
index 21e5337d309..cf4562c55f1 100644
@@ -15,7 +15,7 @@ cpuflags-$(CONFIG_M5275)	:= -mcpu=5275
 cpuflags-$(CONFIG_M5282)	:= -mcpu=5282
 cpuflags-$(CONFIG_M5307)	:= -mcpu=5307
 cpuflags-$(CONFIG_MCF5301X)	:= -mcpu=53015 -fPIC
-cpuflags-$(CONFIG_MCF532x)	:= -mcpu=5329 -fPIC
+cpuflags-$(CONFIG_MCF532X)	:= -mcpu=5329 -fPIC
 cpuflags-$(CONFIG_MCF5441x)	:= -mcpu=54418 -fPIC
 
 PLATFORM_CPPFLAGS += $(cpuflags-y)
arch/m68k/cpu/mcf532x/cpu.c +1 -1
index 96a9a422f3a..108f3cae6df 100644
@@ -63,7 +63,7 @@ int print_cpuinfo(void)
 		id = 53013;
 		break;
 #endif
-#ifdef CONFIG_MCF532x
+#ifdef CONFIG_MCF532X
 	case 0x54:
 		id = 5329;
 		break;
arch/m68k/cpu/mcf532x/cpu_init.c +2 -2
index c12cb310e62..2ddb5b35e23 100644
@@ -209,7 +209,7 @@ int fecpin_setclear(fec_info_t *info, int setclear)
 #endif				/* CONFIG_CMD_NET */
 #endif				/* CONFIG_MCF5301X */
 
-#ifdef CONFIG_MCF532x
+#ifdef CONFIG_MCF532X
 void cpu_init_f(void)
 {
 	scm1_t *scm1 = (scm1_t *) MMAP_SCM1;
@@ -355,4 +355,4 @@ int fecpin_setclear(fec_info_t *info, int setclear)
 	return 0;
 }
 #endif
-#endif				/* CONFIG_MCF532x */
+#endif				/* CONFIG_MCF532X */
arch/m68k/cpu/mcf532x/speed.c +8 -8
index 24b2f937aeb..a326535561d 100644
@@ -35,7 +35,7 @@ DECLARE_GLOBAL_DATA_PTR;
 #define DEFAULT_LPD	(0)	/* Divider (not encoded) */
 #endif
 
-#ifdef CONFIG_MCF532x
+#ifdef CONFIG_MCF532X
 #define FREF		16000	/* KHz */
 #define MAX_MFD		135	/* Multiplier */
 #define MIN_MFD		88	/* Multiplier */
@@ -61,7 +61,7 @@ int get_sys_clock(void)
 #ifdef CONFIG_MCF5301X
 		return (FREF / (3 * (1 << divider)));
 #endif
-#ifdef CONFIG_MCF532x
+#ifdef CONFIG_MCF532X
 		return (FREF / (2 << divider));
 #endif
 	} else {
@@ -72,7 +72,7 @@ int get_sys_clock(void)
 
 		return (((FREF * pfdr) / refdiv) / busdiv);
 #endif
-#ifdef CONFIG_MCF532x
+#ifdef CONFIG_MCF532X
 		return (FREF * in_8(&pll->pfdr)) / (BUSDIV * 4);
 #endif
 	}
@@ -139,7 +139,7 @@ int clock_exit_limp(void)
  */
 int clock_pll(int fsys, int flags)
 {
-#ifdef CONFIG_MCF532x
+#ifdef CONFIG_MCF532X
 	u32 *sdram_workaround = (u32 *)(MMAP_SDRAM + 0x80);
 #endif
 	sdram_t *sdram = (sdram_t *)(MMAP_SDRAM);
@@ -157,7 +157,7 @@ int clock_pll(int fsys, int flags)
 
 		return (fref * mfd) / busdiv;
 #endif
-#ifdef CONFIG_MCF532x
+#ifdef CONFIG_MCF532X
 		mfd = in_8(&pll->pfdr);
 
 		return (fref * mfd / (BUSDIV * 4));
@@ -184,7 +184,7 @@ int clock_pll(int fsys, int flags)
 	/* Determine the output frequency for selected values */
 	fout = ((fref * mfd) / BUSDIV);
 #endif
-#ifdef CONFIG_MCF532x
+#ifdef CONFIG_MCF532X
 	mfd = (4 * BUSDIV * temp) / 100;
 
 	/* Determine the output frequency for selected values */
@@ -219,7 +219,7 @@ int clock_pll(int fsys, int flags)
 	clrbits_be32(&pll->pcr, ~PLL_PCR_FBDIV_UNMASK);
 	setbits_be32(&pll->pcr, PLL_PCR_FBDIV(mfd - 1));
 #endif
-#ifdef CONFIG_MCF532x
+#ifdef CONFIG_MCF532X
 	/* Reprogram PLL for desired fsys */
 	out_8(&pll->podr,
 		PLL_PODR_CPUDIV(BUSDIV / 3) | PLL_PODR_BUSDIV(BUSDIV));
@@ -234,7 +234,7 @@ int clock_pll(int fsys, int flags)
 	if (in_be32(&sdram->ctrl) & SDRAMC_SDCR_REF)
 		setbits_be32(&sdram->ctrl, SDRAMC_SDCR_CKE);
 
-#ifdef CONFIG_MCF532x
+#ifdef CONFIG_MCF532X
 	/*
 	 * software workaround for SDRAM opeartion after exiting LIMP
 	 * mode errata
arch/m68k/include/asm/cache.h +1 -1
index 78ff04fe29b..4acd677c676 100644
@@ -14,7 +14,7 @@
 #define CFG_CF_V2
 #endif
 
-#if defined(CONFIG_MCF530x) || defined(CONFIG_MCF532x) || \
+#if defined(CONFIG_MCF530x) || defined(CONFIG_MCF532X) || \
     defined(CONFIG_MCF5301X)
 #define CFG_CF_V3
 #endif
arch/m68k/include/asm/coldfire/skha.h +1 -1
index 3b48dc970c9..e0585a5b409 100644
@@ -42,7 +42,7 @@ typedef struct skha_ctrl {
 	u32 c12;		/* 0x9C Context 12 - 5235, 5271, 5272 */
 } skha_t;
 
-#ifdef CONFIG_MCF532x
+#ifdef CONFIG_MCF532X
 #define	SKHA_MODE_CTRM(x)	(((x) & 0x0F) << 9)
 #define	SKHA_MODE_CTRM_MASK	(0xFFFFE1FF)
 #define	SKHA_MODE_DKP		(0x00000100)
board/freescale/m5373evb/README +1 -1
index 7240648796b..80e8e2ddde7 100644
@@ -62,7 +62,7 @@ Changed files:
 1.1 pre-loader is no longer suppoer in thie coldfire family
 
 1.2 Configuration settings for M5373EVB Development Board
-CONFIG_MCF532x		-- define for all MCF532x CPUs
+CONFIG_MCF532X		-- define for all MCF532X CPUs
 CONFIG_M5373		-- define for all Freescale MCF5373 CPUs
 CONFIG_M5373EVB		-- define for M5373EVB board
 
env/Kconfig +1 -1
index c409ea71fe5..688f34841fa 100644
@@ -115,7 +115,7 @@ config ENV_IS_IN_FLASH
 	default y if ARCH_CINTEGRATOR
 	default y if ARCH_INTEGRATOR_CP
 	default y if M548x || M547x || M5282
-	default y if MCF532x || MCF52x2
+	default y if MCF532X || MCF52x2
 	default y if MPC86xx || MPC83xx
 	default y if ARCH_MPC8548
 	default y if SH && !CPU_SH4
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#52 lore raw

PATCH 36/88 m68k: Rename MCF5441x

In reply to Simon Glass

CONFIG options must not use lower-case letter. Convert this to upper case.

---

 arch/m68k/Kconfig                   |  4 ++--
 arch/m68k/Makefile                  |  4 ++--
 arch/m68k/cpu/mcf5445x/cpu_init.c   | 12 ++++++------
 arch/m68k/cpu/mcf5445x/dspi.c       |  4 ++--
 arch/m68k/cpu/mcf5445x/speed.c      |  4 ++--
 arch/m68k/cpu/mcf5445x/start.S      |  8 ++++----
 arch/m68k/include/asm/cache.h       |  4 ++--
 arch/m68k/include/asm/global_data.h |  2 +-
 arch/m68k/include/asm/immap_5441x.h |  2 +-
 drivers/mmc/fsl_esdhc_imx.c         | 12 ++++++------
 10 files changed, 28 insertions(+), 28 deletions(-)
arch/m68k/Kconfig +2 -2
index 6781ba28c7a..4e2a9075b10 100644
@@ -50,7 +50,7 @@ config MCF537x
         select DM_SERIAL
 	bool
 
-config MCF5441x
+config MCF5441X
 	select OF_CONTROL
 	select DM
         select DM_SERIAL
@@ -108,7 +108,7 @@ config M5373
 
 config M54418
 	bool
-	select MCF5441x
+	select MCF5441X
 
 # peripherals
 config CF_DSPI
arch/m68k/Makefile +2 -2
index cf4562c55f1..b44726242d2 100644
@@ -16,12 +16,12 @@ cpuflags-$(CONFIG_M5282)	:= -mcpu=5282
 cpuflags-$(CONFIG_M5307)	:= -mcpu=5307
 cpuflags-$(CONFIG_MCF5301X)	:= -mcpu=53015 -fPIC
 cpuflags-$(CONFIG_MCF532X)	:= -mcpu=5329 -fPIC
-cpuflags-$(CONFIG_MCF5441x)	:= -mcpu=54418 -fPIC
+cpuflags-$(CONFIG_MCF5441X)	:= -mcpu=54418 -fPIC
 
 PLATFORM_CPPFLAGS += $(cpuflags-y)
 
 
-ldflags-$(CONFIG_MCF5441x)	:= --got=single
+ldflags-$(CONFIG_MCF5441X)	:= --got=single
 
 ifneq (,$(findstring -linux-,$(shell $(CC) --version)))
 ifneq (,$(findstring GOT,$(shell $(LD) --help)))
arch/m68k/cpu/mcf5445x/cpu_init.c +6 -6
index 1ce244872f1..a70ecfbae73 100644
@@ -73,7 +73,7 @@ void cfspi_port_conf(void)
 {
 	gpio_t *gpio = (gpio_t *)MMAP_GPIO;
 
-#ifdef CONFIG_MCF5441x
+#ifdef CONFIG_MCF5441X
 	pm_t *pm = (pm_t *)MMAP_PM;
 
 	out_8(&gpio->par_dspi0,
@@ -98,7 +98,7 @@ void cpu_init_f(void)
 {
 	gpio_t *gpio = (gpio_t *) MMAP_GPIO;
 
-#ifdef CONFIG_MCF5441x
+#ifdef CONFIG_MCF5441X
 	scm_t *scm = (scm_t *) MMAP_SCM;
 	pm_t *pm = (pm_t *) MMAP_PM;
 
@@ -203,7 +203,7 @@ void cpu_init_f(void)
 	out_8(&gpio->par_sdhch, 0xff);
 	out_8(&gpio->par_sdhcl, 0xff);
 #endif
-#endif		/* CONFIG_MCF5441x */
+#endif		/* CONFIG_MCF5441X */
 
 	/* FlexBus Chipselect */
 	init_fbcs();
@@ -240,13 +240,13 @@ int cpu_init_r(void)
 void uart_port_conf(int port)
 {
 	gpio_t *gpio = (gpio_t *) MMAP_GPIO;
-#ifdef CONFIG_MCF5441x
+#ifdef CONFIG_MCF5441X
 	pm_t *pm = (pm_t *) MMAP_PM;
 #endif
 
 	/* Setup Ports: */
 	switch (port) {
-#ifdef CONFIG_MCF5441x
+#ifdef CONFIG_MCF5441X
 	case 0:
 		/* UART0 */
 		out_8(&pm->pmcr0, 24);
@@ -340,7 +340,7 @@ int fecpin_setclear(fec_info_t *info, int setclear)
 	if (fec_get_base_addr(0, &fec0_base))
 		return -1;
 
-#ifdef CONFIG_MCF5441x
+#ifdef CONFIG_MCF5441X
 	if (setclear) {
 		out_8(&gpio->par_fec, 0x03);
 		out_8(&gpio->srcr_fec, 0x0F);
arch/m68k/cpu/mcf5445x/dspi.c +2 -2
index 456af171a4e..628be0c8bbb 100644
@@ -15,7 +15,7 @@ void dspi_chip_select(int cs)
 {
 	struct gpio *gpio = (struct gpio *)MMAP_GPIO;
 
-#ifdef CONFIG_MCF5441x
+#ifdef CONFIG_MCF5441X
 	switch (cs) {
 	case 0:
 		clrbits_8(&gpio->par_dspi0,
@@ -37,7 +37,7 @@ void dspi_chip_unselect(int cs)
 {
 	struct gpio *gpio = (struct gpio *)MMAP_GPIO;
 
-#ifdef CONFIG_MCF5441x
+#ifdef CONFIG_MCF5441X
 	if (cs == 1)
 		clrbits_8(&gpio->par_dspiow, GPIO_PAR_DSPIOW_DSPI0PSC1);
 #endif
arch/m68k/cpu/mcf5445x/speed.c +2 -2
index eb73da68c6b..59a6625a4fd 100644
@@ -63,7 +63,7 @@ void clock_exit_limp(void)
 		;
 }
 
-#ifdef CONFIG_MCF5441x
+#ifdef CONFIG_MCF5441X
 void setup_5441x_clocks(void)
 {
 	ccm_t *ccm = (ccm_t *)MMAP_CCM;
@@ -125,7 +125,7 @@ void setup_5441x_clocks(void)
 /* get_clocks() fills in gd->cpu_clock and gd->bus_clk */
 int get_clocks(void)
 {
-#ifdef CONFIG_MCF5441x
+#ifdef CONFIG_MCF5441X
 	setup_5441x_clocks();
 #endif
 
arch/m68k/cpu/mcf5445x/start.S +4 -4
index a083c3d45d2..baf39127b29 100644
@@ -167,7 +167,7 @@ asm_dram_init:
 #endif
 #endif /* CONFIG_CF_SBF */
 
-#ifdef CONFIG_MCF5441x
+#ifdef CONFIG_MCF5441X
 	/* TC: enable all peripherals,
 	in the future only enable certain peripherals */
 	move.l	#0xFC04002D, %a1
@@ -175,7 +175,7 @@ asm_dram_init:
 #if defined(CONFIG_CF_SBF)
 	move.b	#23, (%a1)		/* dspi */
 #endif
-#endif	/* CONFIG_MCF5441x */
+#endif	/* CONFIG_MCF5441X */
 
 	/* mandatory board level ddr-sdram init,
 	 * for both 5441x and 5445x
@@ -193,7 +193,7 @@ asm_dram_init:
 	 */
 	/* Enable pins for DSPI mode - chip-selects are enabled later */
 asm_dspi_init:
-#ifdef CONFIG_MCF5441x
+#ifdef CONFIG_MCF5441X
 	move.l	#0xEC09404E, %a1
 	move.l	#0xEC09404F, %a2
 	move.b	#0xFF, (%a1)
@@ -205,7 +205,7 @@ asm_dspi_init:
 	move.l	#0x80FF0C00, (%a0)	/* Master, clear TX/RX FIFO */
 
 	move.l	#0xFC05C00C, %a0
-#ifdef CONFIG_MCF5441x
+#ifdef CONFIG_MCF5441X
 	move.l	#0x3E000016, (%a0)
 #endif
 
arch/m68k/include/asm/cache.h +2 -2
index 4acd677c676..52d12a68144 100644
@@ -19,7 +19,7 @@
 #define CFG_CF_V3
 #endif
 
-#if defined(CONFIG_MCF5441x)
+#if defined(CONFIG_MCF5441X)
 #define CFG_CF_V4E		/* Four Extra ACRn */
 #endif
 
@@ -94,7 +94,7 @@
 #define CF_CACR_IDSP		(1 << 7)
 #define CF_CACR_EUSP		(1 << 5)
 
-#if defined(CONFIG_MCF5445x) || defined(CONFIG_MCF5441x)
+#if defined(CONFIG_MCF5445x) || defined(CONFIG_MCF5441X)
 #define CF_CACR_IVO		(1 << 20)
 #define CF_CACR_SPA		(1 << 14)
 #else
arch/m68k/include/asm/global_data.h +1 -1
index 273e843c4ae..d63fb8130c4 100644
@@ -20,7 +20,7 @@ struct arch_global_data {
 	unsigned long vco_clk;
 	unsigned long flb_clk;
 #endif
-#ifdef CONFIG_MCF5441x
+#ifdef CONFIG_MCF5441X
 	unsigned long sdhc_clk;
 #endif
 };
arch/m68k/include/asm/immap_5441x.h +1 -1
index 708d0db755a..1beb14ad53b 100644
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0+ */
 /*
- * MCF5441x Internal Memory Map
+ * MCF5441X Internal Memory Map
  *
  * Copyright 2010-2012 Freescale Semiconductor, Inc.
  * TsiChung Liew ([email protected])
drivers/mmc/fsl_esdhc_imx.c +6 -6
index 66caf683f74..da888885474 100644
@@ -383,7 +383,7 @@ static int esdhc_setup_data(struct fsl_esdhc_priv *priv, struct mmc *mmc,
 	return 0;
 }
 
-#if IS_ENABLED(CONFIG_MCF5441x)
+#if IS_ENABLED(CONFIG_MCF5441X)
 /*
  * Swaps 32-bit words to little-endian byte order.
  */
@@ -553,7 +553,7 @@ static int esdhc_send_cmd_common(struct fsl_esdhc_priv *priv, struct mmc *mmc,
 			dma_unmap_single(priv->dma_addr,
 					 data->blocks * data->blocksize,
 					 mmc_get_dma_dir(data));
-			if (IS_ENABLED(CONFIG_MCF5441x) &&
+			if (IS_ENABLED(CONFIG_MCF5441X) &&
 			    (data->flags & MMC_DATA_READ))
 				sd_swap_dma_buff(data);
 		}
@@ -1026,7 +1026,7 @@ static int esdhc_init_common(struct fsl_esdhc_priv *priv, struct mmc *mmc)
 	esdhc_clrbits32(&regs->irqstaten, IRQSTATEN_BRR | IRQSTATEN_BWR);
 
 	/* Put the PROCTL reg back to the default */
-	if (IS_ENABLED(CONFIG_MCF5441x))
+	if (IS_ENABLED(CONFIG_MCF5441X))
 		esdhc_write32(&regs->proctl, PROCTL_INIT | PROCTL_D3CD);
 	else
 		esdhc_write32(&regs->proctl, PROCTL_INIT);
@@ -1168,7 +1168,7 @@ static int fsl_esdhc_init(struct fsl_esdhc_priv *priv,
 		return ret;
 
 	/* ColdFire, using SDHC_DATA[3] for card detection */
-	if (IS_ENABLED(CONFIG_MCF5441x))
+	if (IS_ENABLED(CONFIG_MCF5441X))
 		esdhc_write32(&regs->proctl, PROCTL_INIT | PROCTL_D3CD);
 
 	if (IS_ENABLED(CONFIG_FSL_USDHC)) {
@@ -1194,11 +1194,11 @@ static int fsl_esdhc_init(struct fsl_esdhc_priv *priv,
 	caps = esdhc_read32(&regs->hostcapblt);
 
 	/*
-	 * MCF5441x RM declares in more points that sdhc clock speed must
+	 * MCF5441X RM declares in more points that sdhc clock speed must
 	 * never exceed 25 Mhz. From this, the HS bit needs to be disabled
 	 * from host capabilities.
 	 */
-	if (IS_ENABLED(CONFIG_MCF5441x))
+	if (IS_ENABLED(CONFIG_MCF5441X))
 		caps &= ~HOSTCAPBLT_HSS;
 
 	if (IS_ENABLED(CONFIG_SYS_FSL_ERRATUM_ESDHC135))
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#53 lore raw

PATCH 37/88 m68k: Drop unused CONFIG_MACH_DAVINCI_DA830_EVM

In reply to Simon Glass

This option does not exist, so the Makefile rule does nothing. Drop it.

---

 board/davinci/da8xxevm/Makefile | 1 -
 1 file changed, 1 deletion(-)
board/davinci/da8xxevm/Makefile +0 -1
index 8187c8db22e..fe043d517f2 100644
@@ -5,6 +5,5 @@
 #
 # Copyright (C) 2007 Sergey Kubushyn <[email protected]>
 
-obj-$(CONFIG_MACH_DAVINCI_DA830_EVM)	+= da830evm.o
 obj-$(CONFIG_MACH_DAVINCI_DA850_EVM)	+= da850evm.o
 obj-$(CONFIG_TARGET_OMAPL138_LCDK)	+= omapl138_lcdk.o
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#54 lore raw

PATCH 38/88 arm: Drop CONFIG_MMU

In reply to Simon Glass

This option does not exist, so the #ifdefs do nothing. Drop this code.

---

 arch/arm/lib/debug.S | 21 ---------------------
 1 file changed, 21 deletions(-)
arch/arm/lib/debug.S +0 -21
index 5983f2c04ce..af4beb4d9d2 100644
@@ -21,22 +21,10 @@
 #include CONFIG_DEBUG_LL_INCLUDE
 #endif
 
-#ifdef CONFIG_MMU
-		.macro	addruart_current, rx, tmp1, tmp2
-		addruart	\tmp1, \tmp2, \rx
-		mrc		p15, 0, \rx, c1, c0
-		tst		\rx, #1
-		moveq		\rx, \tmp1
-		movne		\rx, \tmp2
-		.endm
-
-#else /* !CONFIG_MMU */
 		.macro	addruart_current, rx, tmp1, tmp2
 		addruart	\rx, \tmp1, \tmp2
 		.endm
 
-#endif /* CONFIG_MMU */
-
 /*
  * Useful debugging routines
  */
@@ -97,15 +85,6 @@ ENTRY(printch)
 		b	1b
 ENDPROC(printch)
 
-#ifdef CONFIG_MMU
-ENTRY(debug_ll_addr)
-		addruart r2, r3, ip
-		str	r2, [r0]
-		str	r3, [r1]
-		mov	pc, lr
-ENDPROC(debug_ll_addr)
-#endif
-
 #else
 
 ENTRY(printascii)
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#55 lore raw

PATCH 39/88 arc: Drop CONFIG_MMU

In reply to Simon Glass

This option is set in the Makefile but has no effect in the assembly code, i.e. the #ifdef branch is never used. Drop it.

---

 arch/arc/config.mk      | 4 ----
 arch/arc/lib/ints_low.S | 5 -----
 2 files changed, 9 deletions(-)
arch/arc/config.mk +0 -4
index b713fa3054c..b110f7deaf6 100644
@@ -12,10 +12,6 @@ KBUILD_LDFLAGS += -EB
 PLATFORM_CPPFLAGS += -mbig-endian
 endif
 
-ifdef CONFIG_ARC_MMU_VER
-CONFIG_MMU = 1
-endif
-
 PLATFORM_CPPFLAGS += -ffixed-r25 -D__ARC__ -gdwarf-2 -mno-sdata
 PLATFORM_RELFLAGS += -ffunction-sections -fdata-sections -fno-common
 
arch/arc/lib/ints_low.S +0 -5
index 38c45c60a95..fb283f239ea 100644
@@ -76,13 +76,8 @@
 .endm
 
 .macro SAVE_EXCEPTION_SOURCE
-#ifdef CONFIG_MMU
-	/* If MMU exists exception faulting address is loaded in EFA reg */
-	lr	%r0, [%efa]
-#else
 	/* Otherwise in ERET (exception return) reg */
 	lr	%r0, [%eret]
-#endif
 .endm
 
 ENTRY(memory_error)
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#56 lore raw

PATCH 40/88 ppc: Rename MPC83xx

In reply to Simon Glass

CONFIG options must not use lower-case letter. Convert this to upper case.

---

 api/api_platform-powerpc.c             |  2 +-
 arch/Kconfig                           |  2 +-
 arch/powerpc/Kconfig                   |  8 ++++----
 arch/powerpc/cpu/Makefile              |  2 +-
 arch/powerpc/cpu/mpc83xx/Kconfig       |  4 ++--
 arch/powerpc/cpu/mpc83xx/cpu.c         |  2 +-
 arch/powerpc/cpu/mpc83xx/start.S       |  2 +-
 arch/powerpc/cpu/mpc8xxx/fsl_lbc.c     |  2 +-
 arch/powerpc/include/asm/fsl_dma.h     |  4 ++--
 arch/powerpc/include/asm/fsl_lbc.h     |  2 +-
 arch/powerpc/include/asm/global_data.h |  6 +++---
 arch/powerpc/include/asm/immap_83xx.h  | 14 +++++++-------
 arch/powerpc/include/asm/ppc.h         |  6 +++---
 arch/powerpc/include/asm/processor.h   |  4 ++--
 arch/powerpc/lib/bdinfo.c              |  2 +-
 board/freescale/mpc837xerdb/README     |  2 +-
 board/keymile/Kconfig                  |  4 ++--
 board/keymile/km83xx/Kconfig           |  2 +-
 configs/MPC837XERDB_defconfig          |  2 +-
 configs/gazerbeam_defconfig            |  2 +-
 configs/kmcoge5ne_defconfig            |  2 +-
 configs/kmeter1_defconfig              |  2 +-
 configs/kmopti2_defconfig              |  2 +-
 configs/kmsupx5_defconfig              |  2 +-
 configs/kmtepr2_defconfig              |  2 +-
 configs/tuge1_defconfig                |  2 +-
 configs/tuxx1_defconfig                |  2 +-
 drivers/clk/Kconfig                    |  4 ++--
 drivers/clk/mpc83xx_clk.c              |  4 ++--
 drivers/clk/mpc83xx_clk.h              | 20 ++++++++++----------
 drivers/cpu/Kconfig                    |  6 +++---
 drivers/cpu/mpc83xx_cpu.c              | 14 +++++++-------
 drivers/cpu/mpc83xx_cpu.h              |  8 ++++----
 drivers/ddr/fsl/Kconfig                |  4 ++--
 drivers/ddr/fsl/main.c                 |  2 +-
 drivers/dma/fsl_dma.c                  | 16 ++++++++--------
 drivers/gpio/mpc83xx_gpio.c            |  2 +-
 drivers/misc/Kconfig                   |  4 ++--
 drivers/misc/mpc83xx_serdes.c          |  4 ++--
 drivers/mtd/nand/raw/fsl_elbc_spl.c    |  2 +-
 drivers/ram/Kconfig                    |  2 +-
 drivers/ram/mpc83xx_sdram.c            |  2 +-
 drivers/spi/mpc8xxx_spi.c              |  2 +-
 drivers/sysreset/Kconfig               |  4 ++--
 drivers/timer/Kconfig                  |  4 ++--
 drivers/timer/mpc83xx_timer.c          |  2 +-
 env/Kconfig                            |  2 +-
 include/asm-generic/u-boot.h           |  2 +-
 include/configs/MPC837XERDB.h          |  2 +-
 include/linux/immap_qe.h               |  2 +-
 include/serial.h                       |  2 +-
 post/Makefile                          |  2 +-
 52 files changed, 103 insertions(+), 103 deletions(-)
api/api_platform-powerpc.c +1 -1
index 847a4a3015b..8503ba274d6 100644
@@ -31,7 +31,7 @@ int platform_sys_info(struct sys_info *si)
 
 #if defined(CONFIG_MPC8xx) || defined(CONFIG_E500) || defined(CONFIG_MPC86xx)
 #define bi_bar	bi_immr_base
-#elif defined(CONFIG_MPC83xx)
+#elif defined(CONFIG_MPC83XX)
 #define bi_bar	bi_immrbar
 #endif
 
arch/Kconfig +1 -1
index 3b95fbe9b36..1d16b6d4e9a 100644
@@ -370,7 +370,7 @@ config SYS_IMMR
 	depends on PPC || FSL_LSCH2 || FSL_LSCH3 || ARCH_LS1021A
 	default 0xFF000000 if MPC8xx
 	default 0xF0000000 if ARCH_MPC8313
-	default 0xE0000000 if MPC83xx && !ARCH_MPC8313
+	default 0xE0000000 if MPC83XX && !ARCH_MPC8313
 	default 0x01000000 if ARCH_LS1021A || FSL_LSCH2 || FSL_LSCH3
 	default 0xFFE00000 if ARCH_P1010 || ARCH_P1011 || ARCH_P1020 || \
 			      ARCH_P1021 || ARCH_P1024 || ARCH_P1025 || \
arch/powerpc/Kconfig +4 -4
index e0801c25941..eb39a03e997 100644
@@ -8,8 +8,8 @@ choice
 	prompt "CPU select"
 	optional
 
-config MPC83xx
-	bool "MPC83xx"
+config MPC83XX
+	bool "MPC83XX"
 	select CREATE_ARCH_SYMLINK
 	select SYS_FSL_HAS_SEC
 	select SYS_FSL_SEC_BE
@@ -36,7 +36,7 @@ endchoice
 
 config FSL_LBC
 	def_bool y
-	depends on (MPC85xx || MPC83xx) && !FSL_IFC
+	depends on (MPC85xx || MPC83XX) && !FSL_IFC
 
 config HIGH_BATS
 	bool "Enable high BAT registers"
@@ -46,7 +46,7 @@ config HIGH_BATS
 
 config SYS_INIT_RAM_LOCK
 	bool "Lock some portion of L1 for initial ram stack"
-	depends on MPC83xx || MPC85xx
+	depends on MPC83XX || MPC85xx
 
 config SYS_SRIO
 	bool "Serial RapidIO support"
arch/powerpc/cpu/Makefile +1 -1
index e7f64059277..c56f0d78b2d 100644
@@ -1,5 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0+
 
-obj-$(CONFIG_MPC83xx) += mpc8xxx/
+obj-$(CONFIG_MPC83XX) += mpc8xxx/
 obj-$(CONFIG_MPC85xx) += mpc8xxx/
 obj-$(CONFIG_MPC86xx) += mpc8xxx/
arch/powerpc/cpu/mpc83xx/Kconfig +2 -2
index b695c7e4d81..1969117a25b 100644
@@ -1,5 +1,5 @@
 menu "mpc83xx CPU"
-	depends on MPC83xx
+	depends on MPC83XX
 
 config DEFAULT_IMMR
 	hex
@@ -90,7 +90,7 @@ endchoice
 config MPC83XX_QUICC_ENGINE
 	bool
 
-# TODO: Imply MPC83xx PCI driver
+# TODO: Imply MPC83XX PCI driver
 config MPC83XX_PCI_SUPPORT
 	bool
 
arch/powerpc/cpu/mpc83xx/cpu.c +1 -1
index a6c063556e8..5e58023bfa8 100644
@@ -4,7 +4,7 @@
  */
 
 /*
- * CPU specific code for the MPC83xx family.
+ * CPU specific code for the MPC83XX family.
  *
  * Derived from the MPC8260 and MPC85xx.
  */
arch/powerpc/cpu/mpc83xx/start.S +1 -1
index e3878e431fb..032871313d1 100644
@@ -7,7 +7,7 @@
  */
 
 /*
- *  U-Boot - Startup Code for MPC83xx PowerPC based Embedded Boards
+ *  U-Boot - Startup Code for MPC83XX PowerPC based Embedded Boards
  */
 
 #include <asm-offsets.h>
arch/powerpc/cpu/mpc8xxx/fsl_lbc.c +1 -1
index 29489b46e6c..7519b214969 100644
@@ -8,7 +8,7 @@
 #include <init.h>
 #include <asm/fsl_lbc.h>
 
-#ifdef CONFIG_MPC83xx
+#ifdef CONFIG_MPC83XX
 #include "../mpc83xx/elbc/elbc.h"
 #endif
 
arch/powerpc/include/asm/fsl_dma.h +2 -2
index 1459db74bee..fbf61ecae20 100644
@@ -10,7 +10,7 @@
 
 #include <asm/types.h>
 
-#ifdef CONFIG_MPC83xx
+#ifdef CONFIG_MPC83XX
 typedef struct fsl_dma {
 	uint	mr;		/* DMA mode register */
 #define FSL_DMA_MR_CS		0x00000001	/* Channel start */
@@ -111,7 +111,7 @@ typedef struct fsl_dma {
 	uint	dsr;		/* DMA destination stride register */
 	char	res4[56];
 } fsl_dma_t;
-#endif /* !CONFIG_MPC83xx */
+#endif /* !CONFIG_MPC83XX */
 
 #ifdef CONFIG_FSL_DMA
 void dma_init(void);
arch/powerpc/include/asm/fsl_lbc.h +1 -1
index a03f091c305..8d681a1cba6 100644
@@ -324,7 +324,7 @@ void lbc_sdram_init(void);
  */
 #define LCRR_CLKDIV			0x0000001F
 #define LCRR_CLKDIV_SHIFT		0
-#if defined(CONFIG_MPC83xx) || defined(CONFIG_ARCH_MPC8540) || \
+#if defined(CONFIG_MPC83XX) || defined(CONFIG_ARCH_MPC8540) || \
 	defined(CONFIG_ARCH_MPC8560)
 #define LCRR_CLKDIV_2			0x00000002
 #define LCRR_CLKDIV_4			0x00000004
arch/powerpc/include/asm/global_data.h +3 -3
index 6ed21c781fe..2636cbbda88 100644
@@ -21,7 +21,7 @@ struct arch_global_data {
 	unsigned long brg_clk;
 #endif
 	/* TODO: [email protected]: Should these be unslgned long? */
-#if defined(CONFIG_MPC83xx)
+#if defined(CONFIG_MPC83XX)
 #ifdef CONFIG_CLK_MPC83XX
 	u32 core_clk;
 #else
@@ -57,7 +57,7 @@ struct arch_global_data {
 	u32 lbc_clk;
 	void *cpu;
 #endif /* CONFIG_MPC85xx || CONFIG_MPC86xx */
-#if defined(CONFIG_MPC83xx) || defined(CONFIG_MPC85xx) || \
+#if defined(CONFIG_MPC83XX) || defined(CONFIG_MPC85xx) || \
 		defined(CONFIG_MPC86xx)
 	u32 i2c1_clk;
 	u32 i2c2_clk;
@@ -75,7 +75,7 @@ struct arch_global_data {
 	u32 used_tlb_cams[(CONFIG_SYS_NUM_TLBCAMS+31)/32];
 #endif
 	unsigned long reset_status;	/* reset status register at boot */
-#if defined(CONFIG_MPC83xx)
+#if defined(CONFIG_MPC83XX)
 	unsigned long arbiter_event_attributes;
 	unsigned long arbiter_event_address;
 #endif
arch/powerpc/include/asm/immap_83xx.h +7 -7
index 24bd438c143..3ba73113f0b 100644
@@ -2,7 +2,7 @@
 /*
  * Copyright 2004-2011 Freescale Semiconductor, Inc.
  *
- * MPC83xx Internal Memory Map
+ * MPC83XX Internal Memory Map
  *
  * Contributors:
  *	Dave Liu <[email protected]>
@@ -864,12 +864,12 @@ struct ccsr_gpio {
 #define CFG_SYS_MPC8xxx_DDR_OFFSET	(0x2000)
 #define CFG_SYS_FSL_DDR_ADDR \
 			(CONFIG_SYS_IMMR + CFG_SYS_MPC8xxx_DDR_OFFSET)
-#define CFG_SYS_MPC83xx_DMA_OFFSET	(0x8000)
-#define CFG_SYS_MPC83xx_DMA_ADDR \
-			(CONFIG_SYS_IMMR + CFG_SYS_MPC83xx_DMA_OFFSET)
-#define CFG_SYS_MPC83xx_ESDHC_OFFSET	(0x2e000)
-#define CFG_SYS_MPC83xx_ESDHC_ADDR \
-			(CONFIG_SYS_IMMR + CFG_SYS_MPC83xx_ESDHC_OFFSET)
+#define CFG_SYS_MPC83XX_DMA_OFFSET	(0x8000)
+#define CFG_SYS_MPC83XX_DMA_ADDR \
+			(CONFIG_SYS_IMMR + CFG_SYS_MPC83XX_DMA_OFFSET)
+#define CFG_SYS_MPC83XX_ESDHC_OFFSET	(0x2e000)
+#define CFG_SYS_MPC83XX_ESDHC_ADDR \
+			(CONFIG_SYS_IMMR + CFG_SYS_MPC83XX_ESDHC_OFFSET)
 
 #define CFG_SYS_LBC_ADDR (&((immap_t *)CONFIG_SYS_IMMR)->im_lbc)
 
arch/powerpc/include/asm/ppc.h +3 -3
index 2923350bd7b..3b13f7ff166 100644
@@ -19,7 +19,7 @@
 #include <mpc85xx.h>
 #include <asm/immap_85xx.h>
 #endif
-#ifdef CONFIG_MPC83xx
+#ifdef CONFIG_MPC83XX
 #include <mpc83xx.h>
 #include <asm/immap_83xx.h>
 #endif
@@ -52,7 +52,7 @@ static inline uint get_svr(void)
 
 #if defined(CONFIG_MPC85xx)	|| \
 	defined(CONFIG_MPC86xx)	|| \
-	defined(CONFIG_MPC83xx)
+	defined(CONFIG_MPC83XX)
 unsigned char	in8(unsigned int);
 void		out8(unsigned int, unsigned char);
 unsigned short	in16(unsigned int);
@@ -68,7 +68,7 @@ void		ppcDcbi(unsigned long value);
 void		ppcSync(void);
 void		ppcDcbz(unsigned long value);
 #endif
-#if defined(CONFIG_MPC83xx)
+#if defined(CONFIG_MPC83XX)
 void		ppcDWload(unsigned int *addr, unsigned int *ret);
 void		ppcDWstore(unsigned int *addr, unsigned int *value);
 void disable_addr_trans(void);
arch/powerpc/include/asm/processor.h +2 -2
index f7e1a807746..d80b7d75563 100644
@@ -1004,7 +1004,7 @@
 #if defined(CONFIG_MPC85xx)
 #define IS_E_PROCESSOR(svr)	(svr & 0x80000)
 #else
-#if defined(CONFIG_MPC83xx)
+#if defined(CONFIG_MPC83XX)
 #define IS_E_PROCESSOR(spridr)	(!(spridr & 0x00010000))
 #endif
 #endif
@@ -1163,7 +1163,7 @@ int fsl_qoriq_dsp_core_to_cluster(unsigned int core);
 #define CPU_TYPE_ENTRY_MASK(n, v, nc, m) \
 	{ .name = #n, .soc_ver = SVR_##v, .num_cores = (nc), .mask = (m) }
 #else
-#if defined(CONFIG_MPC83xx)
+#if defined(CONFIG_MPC83XX)
 #define CPU_TYPE_ENTRY(x) {#x, SPR_##x}
 #endif
 #endif
arch/powerpc/lib/bdinfo.c +1 -1
index 55dcad5df8e..81cbcf988ff 100644
@@ -20,7 +20,7 @@ int arch_setup_bdinfo(void)
 	bd->bi_immr_base = CONFIG_SYS_IMMR;	/* base  of IMMR register     */
 #endif
 
-#if defined(CONFIG_MPC83xx)
+#if defined(CONFIG_MPC83XX)
 	bd->bi_immrbar = CONFIG_SYS_IMMR;
 #endif
 
board/freescale/mpc837xerdb/README +1 -1
index 12df2f2e756..79accdbe7a9 100644
@@ -52,7 +52,7 @@ Freescale MPC837xE-RDB Board
 
 	include/configs/MPC837XERDB.h
 
-    CONFIG_MPC83xx	    MPC83xx family for both MPC8349 and MPC8360
+    CONFIG_MPC83XX	    MPC83XX family for both MPC8349 and MPC8360
     CONFIG_MPC837x	    MPC837x specific
     CONFIG_MPC837XERDB	    MPC837xE-RDB board specific
 
board/keymile/Kconfig +2 -2
index bf899d005c4..a24d17cf8bf 100644
@@ -34,7 +34,7 @@ config KM_PHRAM
 
 config KM_RESERVED_PRAM
 	hex "Reserved RAM"
-	default 0x0 if MPC83xx
+	default 0x0 if MPC83XX
 	default 0x1000 if MPC85xx || ARCH_LS1021A
 	depends on !ARCH_SOCFPGA
 	help
@@ -78,7 +78,7 @@ config SYS_CLIPS_BASE
 
 config KM_COMMON_ETH_INIT
 	bool "Common Ethernet Initialization"
-	default y if MPC83xx
+	default y if MPC83XX
 	default n if MPC85xx || ARCH_SOCFPGA || ARCH_LS1021A
 	help
 	  Use the Ethernet initialization implemented in common code that
board/keymile/km83xx/Kconfig +1 -1
index f87a2e64163..149a2395777 100644
@@ -1,5 +1,5 @@
 menu "KM 83xx Options"
-	depends on MPC83xx
+	depends on MPC83XX
 
 config KM_ENABLE_FULL_DM_DTS_SUPPORT
 	bool "enable full DM/DTS support for KM 83xx boards"
configs/MPC837XERDB_defconfig +1 -1
index 7287ca6b247..87c89205d12 100644
@@ -7,7 +7,7 @@ CONFIG_DEFAULT_DEVICE_TREE="mpc8379erdb"
 CONFIG_SYS_CLK_FREQ=66666667
 CONFIG_ENV_ADDR=0xFE080000
 # CONFIG_SYS_PCI_64BIT is not set
-CONFIG_MPC83xx=y
+CONFIG_MPC83XX=y
 CONFIG_HIGH_BATS=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_TARGET_MPC837XERDB=y
configs/gazerbeam_defconfig +1 -1
index 9d09d9c37f2..2969a633bf8 100644
@@ -9,7 +9,7 @@ CONFIG_DEFAULT_DEVICE_TREE="gazerbeam"
 CONFIG_IDENT_STRING=" gazerbeam 0.01"
 CONFIG_SYS_CLK_FREQ=33333333
 CONFIG_ENV_ADDR=0xFE080000
-CONFIG_MPC83xx=y
+CONFIG_MPC83XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_TARGET_GAZERBEAM=y
 CONFIG_SYSTEM_PLL_VCO_DIV_2=y
configs/kmcoge5ne_defconfig +1 -1
index c8897003c10..16b3a87849a 100644
@@ -7,7 +7,7 @@ CONFIG_BOOTCOUNT_BOOTLIMIT=3
 CONFIG_SYS_CLK_FREQ=66000000
 CONFIG_SYS_LOAD_ADDR=0x100000
 CONFIG_ENV_ADDR=0xF00C0000
-CONFIG_MPC83xx=y
+CONFIG_MPC83XX=y
 CONFIG_HIGH_BATS=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_TARGET_KMCOGE5NE=y
configs/kmeter1_defconfig +1 -1
index 573dc4c5c4e..a622f61e41f 100644
@@ -8,7 +8,7 @@ CONFIG_BOOTCOUNT_BOOTLIMIT=3
 CONFIG_SYS_CLK_FREQ=66000000
 CONFIG_SYS_LOAD_ADDR=0x100000
 CONFIG_ENV_ADDR=0xF00C0000
-CONFIG_MPC83xx=y
+CONFIG_MPC83XX=y
 CONFIG_HIGH_BATS=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_TARGET_KMETER1=y
configs/kmopti2_defconfig +1 -1
index 895ac4649a2..d25161386dd 100644
@@ -7,7 +7,7 @@ CONFIG_BOOTCOUNT_BOOTLIMIT=3
 CONFIG_SYS_CLK_FREQ=66000000
 CONFIG_SYS_LOAD_ADDR=0x100000
 CONFIG_ENV_ADDR=0xF00C0000
-CONFIG_MPC83xx=y
+CONFIG_MPC83XX=y
 CONFIG_HIGH_BATS=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_TARGET_KMOPTI2=y
configs/kmsupx5_defconfig +1 -1
index e99c55e47a1..b9f334621ca 100644
@@ -7,7 +7,7 @@ CONFIG_BOOTCOUNT_BOOTLIMIT=3
 CONFIG_SYS_CLK_FREQ=66000000
 CONFIG_SYS_LOAD_ADDR=0x100000
 CONFIG_ENV_ADDR=0xF00C0000
-CONFIG_MPC83xx=y
+CONFIG_MPC83XX=y
 CONFIG_HIGH_BATS=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_TARGET_KMSUPX5=y
configs/kmtepr2_defconfig +1 -1
index fd206f3d0e6..3068da218f8 100644
@@ -7,7 +7,7 @@ CONFIG_BOOTCOUNT_BOOTLIMIT=3
 CONFIG_SYS_CLK_FREQ=66000000
 CONFIG_SYS_LOAD_ADDR=0x100000
 CONFIG_ENV_ADDR=0xF00C0000
-CONFIG_MPC83xx=y
+CONFIG_MPC83XX=y
 CONFIG_HIGH_BATS=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_TARGET_KMTEPR2=y
configs/tuge1_defconfig +1 -1
index 3301a7f936b..df317f1e91d 100644
@@ -7,7 +7,7 @@ CONFIG_BOOTCOUNT_BOOTLIMIT=3
 CONFIG_SYS_CLK_FREQ=66000000
 CONFIG_SYS_LOAD_ADDR=0x100000
 CONFIG_ENV_ADDR=0xF00C0000
-CONFIG_MPC83xx=y
+CONFIG_MPC83XX=y
 CONFIG_HIGH_BATS=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_TARGET_TUGE1=y
configs/tuxx1_defconfig +1 -1
index 02b369beacf..22f34cee766 100644
@@ -7,7 +7,7 @@ CONFIG_BOOTCOUNT_BOOTLIMIT=3
 CONFIG_SYS_CLK_FREQ=66000000
 CONFIG_SYS_LOAD_ADDR=0x100000
 CONFIG_ENV_ADDR=0xF00C0000
-CONFIG_MPC83xx=y
+CONFIG_MPC83XX=y
 CONFIG_HIGH_BATS=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_TARGET_TUXX1=y
drivers/clk/Kconfig +2 -2
index a7409a0cb34..e96ba26850c 100644
@@ -138,10 +138,10 @@ config CLK_K210_SET_RATE
 	  feature adds around 1K to U-Boot's final size.
 
 config CLK_MPC83XX
-	bool "Enable MPC83xx clock driver"
+	bool "Enable MPC83XX clock driver"
 	depends on CLK
 	help
-	  Support for the clock driver of the MPC83xx series of SoCs.
+	  Support for the clock driver of the MPC83XX series of SoCs.
 
 config CLK_OCTEON
 	bool "Clock controller driver for Marvell MIPS Octeon"
drivers/clk/mpc83xx_clk.c +2 -2
index 0255ccaf8a4..736fcf09291 100644
@@ -22,7 +22,7 @@
 DECLARE_GLOBAL_DATA_PTR;
 
 /**
- * struct mpc83xx_clk_priv - Private data structure for the MPC83xx clock
+ * struct mpc83xx_clk_priv - Private data structure for the MPC83XX clock
  *			     driver
  * @speed: Array containing the speed values of all system clocks (initialized
  *	   once, then only read back)
@@ -286,7 +286,7 @@ static ulong mpc83xx_clk_get_rate(struct clk *clk)
 
 static int mpc83xx_clk_enable(struct clk *clk)
 {
-	/* MPC83xx clocks are always enabled */
+	/* MPC83XX clocks are always enabled */
 	return 0;
 }
 
drivers/clk/mpc83xx_clk.h +10 -10
index c06a51ecd43..08b2695572f 100644
@@ -172,12 +172,12 @@ static void set_mode(struct clk_mode *mode, u8 low, u8 high, int type)
  * retrieve_mode() - Get the clock mode description for a specific clock
  * @clk:      The identifier of the clock for which the clock description should
  *	      be retrieved
- * @soc_type: The type of MPC83xx SoC for which the clock description should be
+ * @soc_type: The type of MPC83XX SoC for which the clock description should be
  *	      retrieved
  * @mode:     Pointer to a clk_mode structure to be filled with data for the
  *	      clock
  *
- * Since some clock rate are stored in different places on different MPC83xx
+ * Since some clock rate are stored in different places on different MPC83XX
  * SoCs, the SoC type has to be supplied along with the clock's identifier.
  *
  * Return: 0 if OK, -ve on error
@@ -269,7 +269,7 @@ static int retrieve_mode(int clk, int soc_type, struct clk_mode *mode)
 
 /**
  * get_spmr() - Read the SPMR (System PLL Mode Register)
- * @im: Pointer to the MPC83xx main register map in question
+ * @im: Pointer to the MPC83XX main register map in question
  *
  * Return: The SPMR value as a 32-bit number.
  */
@@ -282,7 +282,7 @@ static inline u32 get_spmr(immap_t *im)
 
 /**
  * get_sccr() - Read the SCCR (System Clock Control Register)
- * @im: Pointer to the MPC83xx main register map in question
+ * @im: Pointer to the MPC83XX main register map in question
  *
  * Return: The SCCR value as a 32-bit number.
  */
@@ -295,7 +295,7 @@ static inline u32 get_sccr(immap_t *im)
 
 /**
  * get_lcrr() - Read the LCRR (Clock Ratio Register)
- * @im: Pointer to the MPC83xx main register map in question
+ * @im: Pointer to the MPC83XX main register map in question
  *
  * Return: The LCRR value as a 32-bit number.
  */
@@ -308,7 +308,7 @@ static inline u32 get_lcrr(immap_t *im)
 
 /**
  * get_pci_sync_in() - Read the PCI synchronization clock speed
- * @im: Pointer to the MPC83xx main register map in question
+ * @im: Pointer to the MPC83XX main register map in question
  *
  * Return: The PCI synchronization clock speed value as a 32-bit number.
  */
@@ -322,7 +322,7 @@ static inline u32 get_pci_sync_in(immap_t *im)
 
 /**
  * get_csb_clk() - Read the CSB (Coheren System Bus) clock speed
- * @im: Pointer to the MPC83xx main register map in question
+ * @im: Pointer to the MPC83XX main register map in question
  *
  * Return: The CSB clock speed value as a 32-bit number.
  */
@@ -336,7 +336,7 @@ static inline u32 get_csb_clk(immap_t *im)
 
 /**
  * spmr_field() - Read a specific SPMR field
- * @im:   Pointer to the MPC83xx main register map in question
+ * @im:   Pointer to the MPC83XX main register map in question
  * @mask: A bitmask that describes the bitfield to be read
  *
  * Return: The value of the bit field as a 32-bit number.
@@ -351,7 +351,7 @@ static inline uint spmr_field(immap_t *im, u32 mask)
 
 /**
  * sccr_field() - Read a specific SCCR field
- * @im:   Pointer to the MPC83xx main register map in question
+ * @im:   Pointer to the MPC83XX main register map in question
  * @mask: A bitmask that describes the bitfield to be read
  *
  * Return: The value of the bit field as a 32-bit number.
@@ -366,7 +366,7 @@ static inline uint sccr_field(immap_t *im, u32 mask)
 
 /**
  * lcrr_field() - Read a specific LCRR field
- * @im:   Pointer to the MPC83xx main register map in question
+ * @im:   Pointer to the MPC83XX main register map in question
  * @mask: A bitmask that describes the bitfield to be read
  *
  * Return: The value of the bit field as a 32-bit number.
drivers/cpu/Kconfig +3 -3
index 3bf04105e5e..618776638cd 100644
@@ -8,11 +8,11 @@ config CPU
 	  finding out information about available CPUs and making changes.
 
 config CPU_MPC83XX
-	bool "Enable MPC83xx CPU driver"
-	depends on CPU && MPC83xx
+	bool "Enable MPC83XX CPU driver"
+	depends on CPU && MPC83XX
 	select CLK_MPC83XX
 	help
-	  Support CPU cores for SoCs of the MPC83xx series.
+	  Support CPU cores for SoCs of the MPC83XX series.
 
 config CPU_RISCV
 	bool "Enable RISC-V CPU driver"
drivers/cpu/mpc83xx_cpu.c +7 -7
index e451c11116a..371fb694570 100644
@@ -16,10 +16,10 @@
 #include "mpc83xx_cpu.h"
 
 /**
- * struct mpc83xx_cpu_priv - Private data for MPC83xx CPUs
- * @e300_type:      The e300 core type of the MPC83xx CPU
- * @family:         The MPC83xx family the CPU belongs to
- * @type:           The MPC83xx type of the CPU
+ * struct mpc83xx_cpu_priv - Private data for MPC83XX CPUs
+ * @e300_type:      The e300 core type of the MPC83XX CPU
+ * @family:         The MPC83XX family the CPU belongs to
+ * @type:           The MPC83XX type of the CPU
  * @is_e_processor: Flag indicating whether the CPU is a E processor or not
  * @is_a_variant:   Flag indicating whtther the CPU is a A variant or not
  * @revid:          The revision ID of the CPU
@@ -57,7 +57,7 @@ static inline u32 get_spridr(void)
 }
 
 /**
- * determine_type() - Determine CPU family of MPC83xx device
+ * determine_type() - Determine CPU family of MPC83XX device
  * @dev: CPU device from which to read CPU family from
  */
 static inline void determine_family(const struct udevice *dev)
@@ -92,7 +92,7 @@ static inline void determine_family(const struct udevice *dev)
 }
 
 /**
- * determine_type() - Determine CPU type of MPC83xx device
+ * determine_type() - Determine CPU type of MPC83XX device
  * @dev: CPU device from which to read CPU type from
  */
 static inline void determine_type(const struct udevice *dev)
@@ -166,7 +166,7 @@ static inline void determine_type(const struct udevice *dev)
 }
 
 /**
- * determine_e300_type() - Determine e300 core type of MPC83xx device
+ * determine_e300_type() - Determine e300 core type of MPC83XX device
  * @dev: CPU device from which to read e300 core type from
  */
 static inline void determine_e300_type(const struct udevice *dev)
drivers/cpu/mpc83xx_cpu.h +4 -4
index 2aaa4e18844..2704a0c3178 100644
@@ -33,14 +33,14 @@ static const char * const e300_names[] = {
 };
 
 /**
- * enum mpc83xx_cpu_family - Identifiers for MPC83xx CPU families
+ * enum mpc83xx_cpu_family - Identifiers for MPC83XX CPU families
  * @FAMILY_830X:    Identifier for the MPC830x CPU family
  * @FAMILY_831X:    Identifier for the MPC831x CPU family
  * @FAMILY_832X:    Identifier for the MPC832x CPU family
  * @FAMILY_834X:    Identifier for the MPC834x CPU family
  * @FAMILY_836X:    Identifier for the MPC836x CPU family
  * @FAMILY_837X:    Identifier for the MPC837x CPU family
- * @FAMILY_UNKNOWN: Identifier for an unknown MPC83xx CPU family
+ * @FAMILY_UNKNOWN: Identifier for an unknown MPC83XX CPU family
  */
 enum mpc83xx_cpu_family {
 	FAMILY_830X,
@@ -53,7 +53,7 @@ enum mpc83xx_cpu_family {
 };
 
 /**
- * enum mpc83xx_cpu_type - Identifiers for MPC83xx CPU types
+ * enum mpc83xx_cpu_type - Identifiers for MPC83XX CPU types
  * @TYPE_8308:      Identifier for the MPC8308 CPU type
  * @TYPE_8309:      Identifier for the MPC8309 CPU type
  * @TYPE_8311:      Identifier for the MPC8311 CPU type
@@ -76,7 +76,7 @@ enum mpc83xx_cpu_family {
  * @TYPE_8377:      Identifier for the MPC8377 CPU type
  * @TYPE_8378:      Identifier for the MPC8378 CPU type
  * @TYPE_8379:      Identifier for the MPC8379 CPU type
- * @TYPE_UNKNOWN:   Identifier for an unknown MPC83xx CPU type
+ * @TYPE_UNKNOWN:   Identifier for an unknown MPC83XX CPU type
  */
 enum mpc83xx_cpu_type {
 	TYPE_8308,
drivers/ddr/fsl/Kconfig +2 -2
index 7f8f3570dd8..5c928689a30 100644
@@ -173,7 +173,7 @@ config DDR_ECC
 
 config DDR_ECC_CMD
 	bool "Access the ECC features of the memory controller"
-	depends on DDR_ECC && MPC83xx
+	depends on DDR_ECC && MPC83XX
 	default y
 
 config ECC_INIT_VIA_DDRCONTROLLER
@@ -199,7 +199,7 @@ config SYS_FSL_DDR_INTLV_256B
 endif
 
 menu "PowerPC / M68K initial memory controller definitions (FLASH, SDRAM, etc)"
-	depends on MCF52x2 || MPC8xx || MPC83xx || MPC85xx
+	depends on MCF52x2 || MPC8xx || MPC83XX || MPC85xx
 
 config SYS_BR0_PRELIM_BOOL
 	bool "Define Bank 0"
drivers/ddr/fsl/main.c +1 -1
index cd332718b64..81d081fabb0 100644
@@ -29,7 +29,7 @@
  * 0x80_8000_0000 ~ 0xff_ffff_ffff
  */
 #ifndef CFG_SYS_FSL_DDR_SDRAM_BASE_PHY
-#ifdef CONFIG_MPC83xx
+#ifdef CONFIG_MPC83XX
 #define CFG_SYS_FSL_DDR_SDRAM_BASE_PHY CFG_SYS_SDRAM_BASE
 #else
 #define CFG_SYS_FSL_DDR_SDRAM_BASE_PHY CFG_SYS_DDR_SDRAM_BASE
drivers/dma/fsl_dma.c +8 -8
index 700df2236bd..4f264c83f0c 100644
@@ -16,15 +16,15 @@
 /* Controller can only transfer 2^26 - 1 bytes at a time */
 #define FSL_DMA_MAX_SIZE	(0x3ffffff)
 
-#if defined(CONFIG_MPC83xx)
+#if defined(CONFIG_MPC83XX)
 #define FSL_DMA_MR_DEFAULT (FSL_DMA_MR_CTM_DIRECT | FSL_DMA_MR_DMSEN)
 #else
 #define FSL_DMA_MR_DEFAULT (FSL_DMA_MR_BWC_DIS | FSL_DMA_MR_CTM_DIRECT)
 #endif
 
 
-#if defined(CONFIG_MPC83xx)
-dma83xx_t *dma_base = (void *)(CFG_SYS_MPC83xx_DMA_ADDR);
+#if defined(CONFIG_MPC83XX)
+dma83xx_t *dma_base = (void *)(CFG_SYS_MPC83XX_DMA_ADDR);
 #elif defined(CONFIG_MPC85xx)
 ccsr_dma_t *dma_base = (void *)(CFG_SYS_MPC85xx_DMA_ADDR);
 #elif defined(CONFIG_MPC86xx)
@@ -44,7 +44,7 @@ static void dma_sync(void)
 
 static void out_dma32(volatile unsigned *addr, int val)
 {
-#if defined(CONFIG_MPC83xx)
+#if defined(CONFIG_MPC83XX)
 	out_le32(addr, val);
 #else
 	out_be32(addr, val);
@@ -53,7 +53,7 @@ static void out_dma32(volatile unsigned *addr, int val)
 
 static uint in_dma32(volatile unsigned *addr)
 {
-#if defined(CONFIG_MPC83xx)
+#if defined(CONFIG_MPC83XX)
 	return in_le32(addr);
 #else
 	return in_be32(addr);
@@ -79,7 +79,7 @@ static uint dma_check(void) {
 	return status;
 }
 
-#if !defined(CONFIG_MPC83xx)
+#if !defined(CONFIG_MPC83XX)
 void dma_init(void) {
 	volatile fsl_dma_t *dma = &dma_base->dma[0];
 
@@ -99,7 +99,7 @@ int dmacpy(phys_addr_t dest, phys_addr_t src, phys_size_t count) {
 
 		out_dma32(&dma->dar, (u32) (dest & 0xFFFFFFFF));
 		out_dma32(&dma->sar, (u32) (src & 0xFFFFFFFF));
-#if !defined(CONFIG_MPC83xx)
+#if !defined(CONFIG_MPC83XX)
 		out_dma32(&dma->satr,
 			in_dma32(&dma->satr) | (u32)((u64)src >> 32));
 		out_dma32(&dma->datr,
@@ -131,7 +131,7 @@ int dmacpy(phys_addr_t dest, phys_addr_t src, phys_size_t count) {
 /*
  * 85xx/86xx use dma to initialize SDRAM when !CONFIG_ECC_INIT_VIA_DDRCONTROLLER
  */
-#if ((!defined CONFIG_MPC83xx && defined(CONFIG_DDR_ECC) &&	\
+#if ((!defined CONFIG_MPC83XX && defined(CONFIG_DDR_ECC) &&	\
 	!defined(CONFIG_ECC_INIT_VIA_DDRCONTROLLER)))
 void dma_meminit(uint size)
 {
drivers/gpio/mpc83xx_gpio.c +1 -1
index bf693c8d457..0e3286c915a 100644
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0+
 /*
- * Freescale MPC83xx GPIO handling.
+ * Freescale MPC83XX GPIO handling.
  */
 
 #include <common.h>
drivers/misc/Kconfig +2 -2
index b07261d3db5..5657c39cfb6 100644
@@ -581,10 +581,10 @@ config GDSYS_IOEP
 	  Support gdsys FPGA's IO endpoint driver.
 
 config MPC83XX_SERDES
-	bool "Enable MPC83xx serdes driver"
+	bool "Enable MPC83XX serdes driver"
 	depends on MISC
 	help
-	  Support for serdes found on MPC83xx SoCs.
+	  Support for serdes found on MPC83XX SoCs.
 
 config FS_LOADER
 	bool "Enable loader driver for file system"
drivers/misc/mpc83xx_serdes.c +2 -2
index 93c87e998c4..c117e2aa363 100644
@@ -3,7 +3,7 @@
  * (C) Copyright 2018
  * Mario Six, Guntermann & Drunck GmbH, [email protected]
  *
- * base on the MPC83xx serdes initialization, which is
+ * base on the MPC83XX serdes initialization, which is
  *
  * Copyright 2007,2011 Freescale Semiconductor, Inc.
  * Copyright (C) 2008 MontaVista Software, Inc.
@@ -19,7 +19,7 @@
 #include "mpc83xx_serdes.h"
 
 /**
- * struct mpc83xx_serdes_priv - Private structure for MPC83xx serdes
+ * struct mpc83xx_serdes_priv - Private structure for MPC83XX serdes
  * @regs:  The device's register map
  * @rfcks: Variable to keep the serdes reference clock selection set during
  *	   initialization in (is or'd to every value written to SRDSCR4)
drivers/mtd/nand/raw/fsl_elbc_spl.c +1 -1
index 26aaab08e89..beda275fcf4 100644
@@ -16,7 +16,7 @@
 #include <asm/fsl_lbc.h>
 #include <nand.h>
 
-#ifdef CONFIG_MPC83xx
+#ifdef CONFIG_MPC83XX
 #include "../../../arch/powerpc/cpu/mpc83xx/elbc/elbc.h"
 #endif
 
drivers/ram/Kconfig +1 -1
index e085119963b..016603da52e 100644
@@ -38,7 +38,7 @@ config MPC83XX_SDRAM
 	bool "Enable MPC83XX SDRAM support"
 	depends on RAM
 	help
-	  Enable support for the internal DDR Memory Controller of the MPC83xx
+	  Enable support for the internal DDR Memory Controller of the MPC83XX
 	  family of SoCs. Both static configurations, as well as configuring
 	  the RAM through the use of SPD (Serial Presence Detect) is supported
 	  via device tree settings.
drivers/ram/mpc83xx_sdram.c +1 -1
index 11676d4fae7..9d13ffe3284 100644
@@ -122,7 +122,7 @@ phys_size_t get_effective_memsize(void)
 }
 
 /**
- * struct mpc83xx_sdram_priv - Private data for MPC83xx RAM controllers
+ * struct mpc83xx_sdram_priv - Private data for MPC83XX RAM controllers
  * @total_size: The total size of all RAM modules associated with this RAM
  *		controller in bytes
  */
drivers/spi/mpc8xxx_spi.c +1 -1
index 6869d60d97b..15144b1f1a3 100644
@@ -84,7 +84,7 @@ static int mpc8xxx_spi_probe(struct udevice *dev)
 	spi8xxx_t *spi = priv->spi;
 
 	/*
-	 * SPI pins on the MPC83xx are not muxed, so all we do is initialize
+	 * SPI pins on the MPC83XX are not muxed, so all we do is initialize
 	 * some registers
 	 */
 	out_be32(&priv->spi->mode, SPI_MODE_REV | SPI_MODE_MS);
drivers/sysreset/Kconfig +2 -2
index 03f7fdd5978..87f9e404cff 100644
@@ -189,9 +189,9 @@ config SYSRESET_TPL_X86
 	  Reboot support for generic x86 processor reset in TPL.
 
 config SYSRESET_MPC83XX
-	bool "Enable support MPC83xx SoC family reboot driver"
+	bool "Enable support MPC83XX SoC family reboot driver"
 	help
-	  Reboot support for NXP MPC83xx SoCs.
+	  Reboot support for NXP MPC83XX SoCs.
 
 endif
 
drivers/timer/Kconfig +2 -2
index 6d6665005cf..7e75902a335 100644
@@ -153,11 +153,11 @@ config GXP_TIMER
 	  present on HPE GXP SoCs.
 
 config MPC83XX_TIMER
-	bool "MPC83xx timer support"
+	bool "MPC83XX timer support"
 	depends on TIMER
 	help
 	  Select this to enable support for the timer found on
-	  devices based on the MPC83xx family of SoCs.
+	  devices based on the MPC83XX family of SoCs.
 
 config RENESAS_OSTM_TIMER
 	bool "Renesas RZ/A1 R7S72100 OSTM Timer"
drivers/timer/mpc83xx_timer.c +1 -1
index 7814cb6a5d6..979cac325e1 100644
@@ -25,7 +25,7 @@ DECLARE_GLOBAL_DATA_PTR;
 #endif
 
 /**
- * struct mpc83xx_timer_priv - Private data structure for MPC83xx timer driver
+ * struct mpc83xx_timer_priv - Private data structure for MPC83XX timer driver
  * @decrementer_count: Value to which the decrementer register should be re-set
  *		       to when a timer interrupt occurs, thus determines the
  *		       interrupt frequency (value for 1e6/HZ microseconds)
env/Kconfig +1 -1
index 688f34841fa..e377d88eb2a 100644
@@ -116,7 +116,7 @@ config ENV_IS_IN_FLASH
 	default y if ARCH_INTEGRATOR_CP
 	default y if M548x || M547x || M5282
 	default y if MCF532X || MCF52x2
-	default y if MPC86xx || MPC83xx
+	default y if MPC86xx || MPC83XX
 	default y if ARCH_MPC8548
 	default y if SH && !CPU_SH4
 	help
include/asm-generic/u-boot.h +1 -1
index 70303acd558..64dfb66c7cb 100644
@@ -43,7 +43,7 @@ struct bd_info {
 #if defined(CONFIG_M68K)
 	unsigned long	bi_mbar_base;	/* base of internal registers */
 #endif
-#if defined(CONFIG_MPC83xx)
+#if defined(CONFIG_MPC83XX)
 	unsigned long	bi_immrbar;
 #endif
 	unsigned long	bi_bootflags;	/* boot / reboot flag (Unused) */
include/configs/MPC837XERDB.h +1 -1
index 70b1c399241..c7b95687b61 100644
@@ -175,7 +175,7 @@
 #define CFG_SYS_PCIE2_IO_PHYS	0xD8000000
 
 #ifdef CONFIG_MMC
-#define CFG_SYS_FSL_ESDHC_ADDR	CFG_SYS_MPC83xx_ESDHC_ADDR
+#define CFG_SYS_FSL_ESDHC_ADDR	CFG_SYS_MPC83XX_ESDHC_ADDR
 #endif
 
 /*
include/linux/immap_qe.h +1 -1
index 45307f51c10..a46f001b44e 100644
@@ -11,7 +11,7 @@
 #ifndef __IMMAP_QE_H__
 #define __IMMAP_QE_H__
 
-#ifdef CONFIG_MPC83xx
+#ifdef CONFIG_MPC83XX
 #if defined(CONFIG_ARCH_MPC8360)
 #define QE_MURAM_SIZE		0xc000UL
 #define MAX_QE_RISC		2
include/serial.h +1 -1
index 42bdf3759c0..ceab714f541 100644
@@ -27,7 +27,7 @@ extern struct serial_device serial_smh_device;
 extern struct serial_device serial_scc_device;
 extern struct serial_device *default_serial_console(void);
 
-#if	defined(CONFIG_MPC83xx) || defined(CONFIG_MPC85xx) || \
+#if	defined(CONFIG_MPC83XX) || defined(CONFIG_MPC85xx) || \
 	defined(CONFIG_MPC86xx) || \
 	defined(CONFIG_ARCH_TEGRA) || defined(CONFIG_SYS_COREBOOT) || \
 	defined(CONFIG_MICROBLAZE)
post/Makefile +1 -1
index afd49403c28..e95eb954b43 100644
@@ -8,4 +8,4 @@ obj-y	+= tests.o
 
 obj-y += drivers/
 obj-$(CONFIG_PPC) += lib_powerpc/
-obj-$(CONFIG_MPC83xx) += cpu/mpc83xx/
+obj-$(CONFIG_MPC83XX) += cpu/mpc83xx/
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
Reviewed-by on v1 40/88
#57 lore raw

Re: [PATCH 40/88] ppc: Rename MPC83xx

Hello Simon,

Quoted 50 lines · Simon Glass

CONFIG options must not use lower-case letter. Convert this to upper case.

---

 api/api_platform-powerpc.c             |  2 +-
 arch/Kconfig                           |  2 +-
 arch/powerpc/Kconfig                   |  8 ++++----
 arch/powerpc/cpu/Makefile              |  2 +-
 arch/powerpc/cpu/mpc83xx/Kconfig       |  4 ++--
 arch/powerpc/cpu/mpc83xx/cpu.c         |  2 +-
 arch/powerpc/cpu/mpc83xx/start.S       |  2 +-
 arch/powerpc/cpu/mpc8xxx/fsl_lbc.c     |  2 +-
 arch/powerpc/include/asm/fsl_dma.h     |  4 ++--
 arch/powerpc/include/asm/fsl_lbc.h     |  2 +-
 arch/powerpc/include/asm/global_data.h |  6 +++---
 arch/powerpc/include/asm/immap_83xx.h  | 14 +++++++-------
 arch/powerpc/include/asm/ppc.h         |  6 +++---
 arch/powerpc/include/asm/processor.h   |  4 ++--
 arch/powerpc/lib/bdinfo.c              |  2 +-
 board/freescale/mpc837xerdb/README     |  2 +-
 board/keymile/Kconfig                  |  4 ++--
 board/keymile/km83xx/Kconfig           |  2 +-
 configs/MPC837XERDB_defconfig          |  2 +-
 configs/gazerbeam_defconfig            |  2 +-
 configs/kmcoge5ne_defconfig            |  2 +-
 configs/kmeter1_defconfig              |  2 +-
 configs/kmopti2_defconfig              |  2 +-
 configs/kmsupx5_defconfig              |  2 +-
 configs/kmtepr2_defconfig              |  2 +-
 configs/tuge1_defconfig                |  2 +-
 configs/tuxx1_defconfig                |  2 +-
 drivers/clk/Kconfig                    |  4 ++--
 drivers/clk/mpc83xx_clk.c              |  4 ++--
 drivers/clk/mpc83xx_clk.h              | 20 ++++++++++----------
 drivers/cpu/Kconfig                    |  6 +++---
 drivers/cpu/mpc83xx_cpu.c              | 14 +++++++-------
 drivers/cpu/mpc83xx_cpu.h              |  8 ++++----
 drivers/ddr/fsl/Kconfig                |  4 ++--
 drivers/ddr/fsl/main.c                 |  2 +-
 drivers/dma/fsl_dma.c                  | 16 ++++++++--------
 drivers/gpio/mpc83xx_gpio.c            |  2 +-
 drivers/misc/Kconfig                   |  4 ++--
 drivers/misc/mpc83xx_serdes.c          |  4 ++--
 drivers/mtd/nand/raw/fsl_elbc_spl.c    |  2 +-
 drivers/ram/Kconfig                    |  2 +-
 drivers/ram/mpc83xx_sdram.c            |  2 +-
 drivers/spi/mpc8xxx_spi.c              |  2 +-
 drivers/sysreset/Kconfig               |  4 ++--
 drivers/timer/Kconfig                  |  4 ++--
Quoted 8 lines
 drivers/timer/mpc83xx_timer.c          |  2 +-
 env/Kconfig                            |  2 +-
 include/asm-generic/u-boot.h           |  2 +-
 include/configs/MPC837XERDB.h          |  2 +-
 include/linux/immap_qe.h               |  2 +-
 include/serial.h                       |  2 +-
 post/Makefile                          |  2 +-
 52 files changed, 103 insertions(+), 103 deletions(-)

Thanks!

bye,
Heiko

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: [email protected]
#58 lore raw

PATCH 41/88 gpio: Drop unused mpc83xx_gpio driver

In reply to Simon Glass

This is not used since this commit:

7458f18e5c2 ppc: Remove MPC8313ERDB boards

Drop the driver and Kconfig option.

---

 drivers/gpio/Makefile       |   1 -
 drivers/gpio/mpc83xx_gpio.c | 183 ------------------------------------
 2 files changed, 184 deletions(-)
 delete mode 100644 drivers/gpio/mpc83xx_gpio.c
drivers/gpio/Makefile +0 -1
index ec65f70c318..889a88dc885 100644
@@ -38,7 +38,6 @@ obj-$(CONFIG_TEGRA_GPIO)	+= tegra_gpio.o
 obj-$(CONFIG_TEGRA186_GPIO)	+= tegra186_gpio.o
 obj-$(CONFIG_DA8XX_GPIO)	+= da8xx_gpio.o
 obj-$(CONFIG_ALTERA_PIO)	+= altera_pio.o
-obj-$(CONFIG_MPC83XX_GPIO)	+= mpc83xx_gpio.o
 obj-$(CONFIG_MPC8XXX_GPIO)	+= mpc8xxx_gpio.o
 obj-$(CONFIG_MPC83XX_SPISEL_BOOT)	+= mpc83xx_spisel_boot.o
 obj-$(CONFIG_SH_GPIO_PFC)	+= sh_pfc.o
drivers/gpio/mpc83xx_gpio.c deleted +0 -183

183 lines not on this page · raw message

Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#59 lore raw

PATCH 42/88 ppc: Rename MPC85xx

In reply to Simon Glass

CONFIG options must not use lower-case letter. Convert this to upper case.

---

 Kconfig                                       |   2 +-
 arch/Kconfig.nxp                              |   6 +-
 arch/powerpc/Kconfig                          |   8 +-
 arch/powerpc/Makefile                         |   2 +-
 arch/powerpc/cpu/Makefile                     |   2 +-
 arch/powerpc/cpu/mpc83xx/cpu.c                |   2 +-
 arch/powerpc/cpu/mpc85xx/Kconfig              |  16 +-
 arch/powerpc/cpu/mpc85xx/bsc9132_serdes.c     |   6 +-
 arch/powerpc/cpu/mpc85xx/c29x_serdes.c        |   6 +-
 arch/powerpc/cpu/mpc85xx/cpu.c                |  10 +-
 arch/powerpc/cpu/mpc85xx/cpu_init.c           |  34 +-
 arch/powerpc/cpu/mpc85xx/cpu_init_early.c     |  14 +-
 arch/powerpc/cpu/mpc85xx/fdt.c                |   6 +-
 .../powerpc/cpu/mpc85xx/fsl_corenet2_serdes.c |   4 +-
 arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c |  10 +-
 arch/powerpc/cpu/mpc85xx/interrupts.c         |   8 +-
 arch/powerpc/cpu/mpc85xx/mp.c                 |  32 +-
 arch/powerpc/cpu/mpc85xx/mpc8536_serdes.c     |   8 +-
 arch/powerpc/cpu/mpc85xx/mpc8544_serdes.c     |  10 +-
 arch/powerpc/cpu/mpc85xx/mpc8548_serdes.c     |   6 +-
 arch/powerpc/cpu/mpc85xx/p1010_serdes.c       |   6 +-
 arch/powerpc/cpu/mpc85xx/p1021_serdes.c       |   8 +-
 arch/powerpc/cpu/mpc85xx/p1023_serdes.c       |   6 +-
 arch/powerpc/cpu/mpc85xx/p2020_serdes.c       |   6 +-
 arch/powerpc/cpu/mpc85xx/qe_io.c              |   2 +-
 arch/powerpc/cpu/mpc85xx/speed.c              |  14 +-
 arch/powerpc/cpu/mpc85xx/spl_minimal.c        |   6 +-
 arch/powerpc/cpu/mpc85xx/start.S              |  28 +-
 arch/powerpc/cpu/mpc8xxx/Makefile             |   2 +-
 arch/powerpc/cpu/mpc8xxx/cpu.c                |  12 +-
 arch/powerpc/cpu/mpc8xxx/fdt.c                |   4 +-
 arch/powerpc/cpu/mpc8xxx/fsl_lbc.c            |   4 +-
 arch/powerpc/cpu/mpc8xxx/law.c                |   2 +-
 arch/powerpc/cpu/mpc8xxx/srio.c               |  12 +-
 arch/powerpc/include/asm/config.h             |   2 +-
 arch/powerpc/include/asm/config_mpc85xx.h     |   8 +-
 arch/powerpc/include/asm/fsl_lbc.h            |   4 +-
 arch/powerpc/include/asm/fsl_liodn.h          |  26 +-
 arch/powerpc/include/asm/fsl_pci.h            |   2 +-
 arch/powerpc/include/asm/global_data.h        |   6 +-
 arch/powerpc/include/asm/immap_85xx.h         | 728 +++++++++---------
 arch/powerpc/include/asm/mpc85xx_gpio.h       |   4 +-
 arch/powerpc/include/asm/ppc.h                |   8 +-
 arch/powerpc/include/asm/processor.h          |   8 +-
 arch/powerpc/lib/bootm.c                      |   2 +-
 arch/powerpc/lib/ppccache.S                   |   4 +-
 board/freescale/common/fsl_chain_of_trust.c   |  12 +-
 board/freescale/common/fsl_validate.c         |   8 +-
 board/freescale/common/mpc85xx_sleep.c        |   6 +-
 board/freescale/common/via.h                  |   4 +-
 board/freescale/common/vid.c                  |   2 +-
 board/freescale/mpc8548cds/mpc8548cds.c       |   6 +-
 board/freescale/p1010rdb/p1010rdb.c           |  28 +-
 board/freescale/p1010rdb/spl.c                |   6 +-
 board/freescale/p1010rdb/spl_minimal.c        |   4 +-
 board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c   |  20 +-
 board/freescale/p1_p2_rdb_pc/spl.c            |   8 +-
 board/freescale/p1_p2_rdb_pc/spl_minimal.c    |   4 +-
 board/freescale/p2041rdb/p2041rdb.c           |   4 +-
 board/freescale/t102xrdb/eth_t102xrdb.c       |   2 +-
 board/freescale/t102xrdb/spl.c                |   6 +-
 board/freescale/t102xrdb/t102xrdb.c           |  16 +-
 board/freescale/t104xrdb/spl.c                |   2 +-
 board/freescale/t104xrdb/t104xrdb.c           |   2 +-
 board/freescale/t208xqds/eth_t208xqds.c       |   6 +-
 board/freescale/t208xqds/spl.c                |   2 +-
 board/freescale/t208xqds/t208xqds.c           |   2 +-
 board/freescale/t208xrdb/spl.c                |   2 +-
 board/freescale/t4rdb/eth.c                   |   2 +-
 board/freescale/t4rdb/spl.c                   |   2 +-
 board/keymile/Kconfig                         |   4 +-
 board/keymile/kmcent2/kmcent2.c               |   6 +-
 board/socrates/socrates.c                     |   6 +-
 board/xes/common/Makefile                     |   2 +-
 board/xes/common/fsl_8xxx_clk.c               |   8 +-
 board/xes/common/fsl_8xxx_misc.c              |   4 +-
 boot/Kconfig                                  |   4 +-
 common/Kconfig                                |   2 +-
 common/board_r.c                              |   2 +-
 common/memsize.c                              |   2 +-
 configs/MPC8548CDS_36BIT_defconfig            |   2 +-
 configs/MPC8548CDS_defconfig                  |   2 +-
 configs/MPC8548CDS_legacy_defconfig           |   2 +-
 configs/P1010RDB-PA_36BIT_NAND_defconfig      |   2 +-
 configs/P1010RDB-PA_36BIT_NOR_defconfig       |   2 +-
 configs/P1010RDB-PA_36BIT_SDCARD_defconfig    |   2 +-
 configs/P1010RDB-PA_36BIT_SPIFLASH_defconfig  |   2 +-
 configs/P1010RDB-PA_NAND_defconfig            |   2 +-
 configs/P1010RDB-PA_NOR_defconfig             |   2 +-
 configs/P1010RDB-PA_SDCARD_defconfig          |   2 +-
 configs/P1010RDB-PA_SPIFLASH_defconfig        |   2 +-
 configs/P1010RDB-PB_36BIT_NAND_defconfig      |   2 +-
 configs/P1010RDB-PB_36BIT_NOR_defconfig       |   2 +-
 configs/P1010RDB-PB_36BIT_SDCARD_defconfig    |   2 +-
 configs/P1010RDB-PB_36BIT_SPIFLASH_defconfig  |   2 +-
 configs/P1010RDB-PB_NAND_defconfig            |   2 +-
 configs/P1010RDB-PB_NOR_defconfig             |   2 +-
 configs/P1010RDB-PB_SDCARD_defconfig          |   2 +-
 configs/P1010RDB-PB_SPIFLASH_defconfig        |   2 +-
 configs/P1020RDB-PC_36BIT_NAND_defconfig      |   2 +-
 configs/P1020RDB-PC_36BIT_SDCARD_defconfig    |   2 +-
 configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig  |   2 +-
 configs/P1020RDB-PC_36BIT_defconfig           |   2 +-
 configs/P1020RDB-PC_NAND_defconfig            |   2 +-
 configs/P1020RDB-PC_SDCARD_defconfig          |   2 +-
 configs/P1020RDB-PC_SPIFLASH_defconfig        |   2 +-
 configs/P1020RDB-PC_defconfig                 |   2 +-
 configs/P1020RDB-PD_NAND_defconfig            |   2 +-
 configs/P1020RDB-PD_SDCARD_defconfig          |   2 +-
 configs/P1020RDB-PD_SPIFLASH_defconfig        |   2 +-
 configs/P1020RDB-PD_defconfig                 |   2 +-
 configs/P2020RDB-PC_36BIT_NAND_defconfig      |   2 +-
 configs/P2020RDB-PC_36BIT_SDCARD_defconfig    |   2 +-
 configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig  |   2 +-
 configs/P2020RDB-PC_36BIT_defconfig           |   2 +-
 configs/P2020RDB-PC_NAND_defconfig            |   2 +-
 configs/P2020RDB-PC_SDCARD_defconfig          |   2 +-
 configs/P2020RDB-PC_SPIFLASH_defconfig        |   2 +-
 configs/P2020RDB-PC_defconfig                 |   2 +-
 configs/P2041RDB_NAND_defconfig               |   2 +-
 configs/P2041RDB_SDCARD_defconfig             |   2 +-
 configs/P2041RDB_SPIFLASH_defconfig           |   2 +-
 configs/P2041RDB_defconfig                    |   2 +-
 configs/T1024RDB_NAND_defconfig               |   2 +-
 configs/T1024RDB_SDCARD_defconfig             |   2 +-
 configs/T1024RDB_SPIFLASH_defconfig           |   2 +-
 configs/T1024RDB_defconfig                    |   2 +-
 configs/T1042D4RDB_NAND_defconfig             |   2 +-
 configs/T1042D4RDB_SDCARD_defconfig           |   2 +-
 configs/T1042D4RDB_SPIFLASH_defconfig         |   2 +-
 configs/T1042D4RDB_defconfig                  |   2 +-
 configs/T2080QDS_NAND_defconfig               |   2 +-
 configs/T2080QDS_SDCARD_defconfig             |   2 +-
 configs/T2080QDS_SECURE_BOOT_defconfig        |   2 +-
 configs/T2080QDS_SPIFLASH_defconfig           |   2 +-
 configs/T2080QDS_SRIO_PCIE_BOOT_defconfig     |   2 +-
 configs/T2080QDS_defconfig                    |   2 +-
 configs/T2080RDB_NAND_defconfig               |   2 +-
 configs/T2080RDB_SDCARD_defconfig             |   2 +-
 configs/T2080RDB_SPIFLASH_defconfig           |   2 +-
 configs/T2080RDB_defconfig                    |   2 +-
 configs/T2080RDB_revD_NAND_defconfig          |   2 +-
 configs/T2080RDB_revD_SDCARD_defconfig        |   2 +-
 configs/T2080RDB_revD_SPIFLASH_defconfig      |   2 +-
 configs/T2080RDB_revD_defconfig               |   2 +-
 configs/T4240RDB_SDCARD_defconfig             |   2 +-
 configs/T4240RDB_defconfig                    |   2 +-
 configs/kmcent2_defconfig                     |   2 +-
 configs/qemu-ppce500_defconfig                |   2 +-
 configs/socrates_defconfig                    |   2 +-
 drivers/ata/fsl_sata.c                        |   2 +-
 drivers/ddr/fsl/Kconfig                       |   4 +-
 drivers/ddr/fsl/ctrl_regs.c                   |   2 +-
 drivers/ddr/fsl/mpc85xx_ddr_gen2.c            |   4 +-
 drivers/ddr/fsl/mpc85xx_ddr_gen3.c            |   2 +-
 drivers/dma/fsl_dma.c                         |   6 +-
 drivers/i2c/Kconfig                           |   2 +-
 drivers/net/fm/b4860.c                        |   8 +-
 drivers/net/fm/p1023.c                        |  18 +-
 drivers/net/fm/p4080.c                        |   8 +-
 drivers/net/fm/p5020.c                        |   8 +-
 drivers/net/fm/p5040.c                        |   8 +-
 drivers/net/fm/t1024.c                        |   6 +-
 drivers/net/fm/t1040.c                        |   2 +-
 drivers/net/fm/t2080.c                        |   6 +-
 drivers/net/fm/t4240.c                        |   8 +-
 drivers/pci/Kconfig                           |   4 +-
 drivers/qe/qe.c                               |  14 +-
 drivers/spi/fsl_espi.c                        |   2 +-
 drivers/usb/host/Kconfig                      |   2 +-
 drivers/watchdog/Kconfig                      |   4 +-
 include/configs/P1010RDB.h                    |   2 +-
 include/configs/P2041RDB.h                    |   2 +-
 include/configs/T102xRDB.h                    |   2 +-
 include/configs/T104xRDB.h                    |   2 +-
 include/configs/T208xQDS.h                    |   2 +-
 include/configs/T208xRDB.h                    |   2 +-
 include/configs/T4240RDB.h                    |   2 +-
 include/configs/p1_p2_rdb_pc.h                |   2 +-
 include/configs/socrates.h                    |   2 +-
 include/e500.h                                |   2 +-
 include/fsl_ddr_sdram.h                       |   2 +-
 include/fsl_fman.h                            |   2 +-
 include/ioports.h                             |   2 +-
 include/mpc85xx.h                             |   6 +-
 include/pci.h                                 |   2 +-
 include/post.h                                |   4 +-
 include/serial.h                              |   2 +-
 include/watchdog.h                            |   2 +-
 189 files changed, 802 insertions(+), 802 deletions(-)
Kconfig +1 -1
index a75cce7e28f..530577fbe97 100644
@@ -461,7 +461,7 @@ config BUILD_TARGET
 	default "u-boot.itb" if !BINMAN && SPL_LOAD_FIT && (ARCH_ROCKCHIP || \
 				ARCH_SUNXI || RISCV || ARCH_ZYNQMP)
 	default "u-boot.kwb" if (ARCH_KIRKWOOD || ARMADA_32BIT) && !SPL
-	default "u-boot-with-spl.bin" if MPC85xx && !E500MC && !E5500 && !E6500 && SPL
+	default "u-boot-with-spl.bin" if MPC85XX && !E500MC && !E5500 && !E6500 && SPL
 	default "u-boot-with-spl.bin" if ARCH_AT91 && SPL_NAND_SUPPORT
 	default "u-boot-with-spl.imx" if ARCH_MX6 && SPL
 	help
arch/Kconfig.nxp +3 -3
index 6e1c44b7ea8..90347c964f1 100644
@@ -24,7 +24,7 @@ config CHAIN_OF_TRUST
 	select SHA_HW_ACCEL
 	select SHA_PROG_HW_ACCEL
 	select ENV_IS_NOWHERE
-	select SYS_CPC_REINIT_F if MPC85xx && !SYS_RAMBOOT
+	select SYS_CPC_REINIT_F if MPC85XX && !SYS_RAMBOOT
 	select CMD_EXT4 if ARM
 	select CMD_EXT4_WRITE if ARM
 	imply CMD_BLOB
@@ -246,9 +246,9 @@ endif
 
 config SYS_FSL_NUM_CC_PLLS
 	int "Number of clock control PLLs"
-	depends on MPC85xx || FSL_LSCH2 || FSL_LSCH3 || ARCH_LS1021A || ARCH_LS1028A
+	depends on MPC85XX || FSL_LSCH2 || FSL_LSCH3 || ARCH_LS1021A || ARCH_LS1028A
 	default 2 if ARCH_LS1021A || ARCH_LS1028A || FSL_LSCH2
-	default 6 if FSL_LSCH3 || MPC85xx
+	default 6 if FSL_LSCH3 || MPC85XX
 
 config SYS_FSL_ESDHC_BE
 	bool
arch/powerpc/Kconfig +4 -4
index eb39a03e997..71d5ea50f54 100644
@@ -15,8 +15,8 @@ config MPC83XX
 	select SYS_FSL_SEC_BE
 	select SYS_FSL_SEC_COMPAT_2
 
-config MPC85xx
-	bool "MPC85xx"
+config MPC85XX
+	bool "MPC85XX"
 	select CREATE_ARCH_SYMLINK
 	select SYS_FSL_DDR
 	select SYS_FSL_DDR_BE
@@ -36,7 +36,7 @@ endchoice
 
 config FSL_LBC
 	def_bool y
-	depends on (MPC85xx || MPC83XX) && !FSL_IFC
+	depends on (MPC85XX || MPC83XX) && !FSL_IFC
 
 config HIGH_BATS
 	bool "Enable high BAT registers"
@@ -46,7 +46,7 @@ config HIGH_BATS
 
 config SYS_INIT_RAM_LOCK
 	bool "Lock some portion of L1 for initial ram stack"
-	depends on MPC83XX || MPC85xx
+	depends on MPC83XX || MPC85XX
 
 config SYS_SRIO
 	bool "Serial RapidIO support"
arch/powerpc/Makefile +1 -1
index 5050f387a6e..e7baacf4b01 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0+
 
 head-y := arch/powerpc/cpu/$(CPU)/start.o
-head-$(CONFIG_MPC85xx) += arch/powerpc/cpu/mpc85xx/resetvec.o
+head-$(CONFIG_MPC85XX) += arch/powerpc/cpu/mpc85xx/resetvec.o
 
 libs-y += arch/powerpc/cpu/$(CPU)/
 libs-y += arch/powerpc/cpu/
arch/powerpc/cpu/Makefile +1 -1
index c56f0d78b2d..914f95ca674 100644
@@ -1,5 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0+
 
 obj-$(CONFIG_MPC83XX) += mpc8xxx/
-obj-$(CONFIG_MPC85xx) += mpc8xxx/
+obj-$(CONFIG_MPC85XX) += mpc8xxx/
 obj-$(CONFIG_MPC86xx) += mpc8xxx/
arch/powerpc/cpu/mpc83xx/cpu.c +1 -1
index 5e58023bfa8..27e3437fd8e 100644
@@ -6,7 +6,7 @@
 /*
  * CPU specific code for the MPC83XX family.
  *
- * Derived from the MPC8260 and MPC85xx.
+ * Derived from the MPC8260 and MPC85XX.
  */
 
 #include <common.h>
arch/powerpc/cpu/mpc85xx/Kconfig +8 -8
index e813bf094d1..a31d5f94fd8 100644
@@ -1,5 +1,5 @@
 menu "mpc85xx CPU"
-	depends on MPC85xx
+	depends on MPC85XX
 
 config PPC_SPINTABLE_COMPATIBLE
 	depends on MP
@@ -19,7 +19,7 @@ config SYS_CPU
 
 config CMD_ERRATA
 	bool "Enable the 'errata' command"
-	depends on MPC85xx
+	depends on MPC85XX
 	default y
 	help
 	  This enables the 'errata' command which displays a list of errata
@@ -27,7 +27,7 @@ config CMD_ERRATA
 
 config FSL_PREPBL_ESDHC_BOOT_SECTOR
 	bool "Generate QorIQ pre-PBL eSDHC boot sector"
-	depends on MPC85xx
+	depends on MPC85XX
 	depends on SDCARD
 	help
 	  With this option final image would have prepended QorIQ pre-PBL eSDHC
@@ -943,7 +943,7 @@ config ARCH_T4240
 
 config MPC85XX_HAVE_RESET_VECTOR
 	bool "Indicate reset vector at CFG_RESET_VECTOR_ADDRESS - 0xffc"
-	depends on MPC85xx
+	depends on MPC85XX
 
 config BTB
 	bool "toggle branch predition"
@@ -986,7 +986,7 @@ config HETROGENOUS_CLUSTERS
 	bool
 
 config MAX_CPUS
-	int "Maximum number of CPUs permitted for MPC85xx"
+	int "Maximum number of CPUs permitted for MPC85XX"
 	default 12 if ARCH_T4240
 	default 8 if ARCH_P4080
 	default 4 if ARCH_B4860 || \
@@ -1506,14 +1506,14 @@ config SYS_FSL_USB_DUAL_PHY_ENABLE
 
 config SYS_MPC85XX_NO_RESETVEC
 	bool "Discard resetvec section and move bootpg section up"
-	depends on MPC85xx && !MPC85XX_HAVE_RESET_VECTOR
+	depends on MPC85XX && !MPC85XX_HAVE_RESET_VECTOR
 	help
 	  If this variable is specified, the section .resetvec is not kept and
 	  the section .bootpg is placed in the previous 4k of the .text section.
 
 config SPL_SYS_MPC85XX_NO_RESETVEC
 	bool "Discard resetvec section and move bootpg section up, in SPL"
-	depends on MPC85xx && SPL && !MPC85XX_HAVE_RESET_VECTOR
+	depends on MPC85XX && SPL && !MPC85XX_HAVE_RESET_VECTOR
 	help
 	  If this variable is specified, the section .resetvec is not kept and
 	  the section .bootpg is placed in the previous 4k of the .text section,
@@ -1521,7 +1521,7 @@ config SPL_SYS_MPC85XX_NO_RESETVEC
 
 config TPL_SYS_MPC85XX_NO_RESETVEC
 	bool "Discard resetvec section and move bootpg section up, in TPL"
-	depends on MPC85xx && TPL && !MPC85XX_HAVE_RESET_VECTOR
+	depends on MPC85XX && TPL && !MPC85XX_HAVE_RESET_VECTOR
 	help
 	  If this variable is specified, the section .resetvec is not kept and
 	  the section .bootpg is placed in the previous 4k of the .text section,
arch/powerpc/cpu/mpc85xx/bsc9132_serdes.c +3 -3
index 79213348274..de6afaa2a6a 100644
@@ -76,10 +76,10 @@ int is_serdes_configured(enum srds_prtcl prtcl)
 
 void fsl_serdes_init(void)
 {
-	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	u32 pordevsr = in_be32(&gur->pordevsr);
-	u32 srds_cfg = (pordevsr & MPC85xx_PORDEVSR_IO_SEL) >>
-				MPC85xx_PORDEVSR_IO_SEL_SHIFT;
+	u32 srds_cfg = (pordevsr & MPC85XX_PORDEVSR_IO_SEL) >>
+				MPC85XX_PORDEVSR_IO_SEL_SHIFT;
 	int lane;
 
 	if (serdes1_prtcl_map & (1 << NONE))
arch/powerpc/cpu/mpc85xx/c29x_serdes.c +3 -3
index e53dd43f31f..f7b462f6e6f 100644
@@ -40,10 +40,10 @@ int is_serdes_configured(enum srds_prtcl device)
 
 void fsl_serdes_init(void)
 {
-	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85xx_GUTS_ADDR;
+	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85XX_GUTS_ADDR;
 	u32 pordevsr = in_be32(&gur->pordevsr);
-	u32 srds_cfg = (pordevsr & MPC85xx_PORDEVSR_IO_SEL) >>
-				MPC85xx_PORDEVSR_IO_SEL_SHIFT;
+	u32 srds_cfg = (pordevsr & MPC85XX_PORDEVSR_IO_SEL) >>
+				MPC85XX_PORDEVSR_IO_SEL_SHIFT;
 	const struct serdes_config *ptr;
 	int lane;
 
arch/powerpc/cpu/mpc85xx/cpu.c +5 -5
index e8a3e82765f..9f9742f3aad 100644
@@ -59,7 +59,7 @@ int checkcpu (void)
 #if defined(CONFIG_DYNAMIC_DDR_CLK_FREQ) || \
 	defined(CONFIG_STATIC_DDR_CLK_FREQ) || defined(CONFIG_FSL_CORENET)
 	ccsr_gur_t __iomem *gur =
-		(void __iomem *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+		(void __iomem *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 #endif
 
 	/*
@@ -76,8 +76,8 @@ int checkcpu (void)
 #endif /* CONFIG_SYS_FSL_QORIQ_CHASSIS2 */
 #else	/* CONFIG_FSL_CORENET */
 #if defined(CONFIG_DYNAMIC_DDR_CLK_FREQ) || defined(CONFIG_STATIC_DDR_CLK_FREQ)
-	u32 ddr_ratio = ((gur->porpllsr) & MPC85xx_PORPLLSR_DDR_RATIO)
-		>> MPC85xx_PORPLLSR_DDR_RATIO_SHIFT;
+	u32 ddr_ratio = ((gur->porpllsr) & MPC85XX_PORPLLSR_DDR_RATIO)
+		>> MPC85XX_PORPLLSR_DDR_RATIO_SHIFT;
 #else
 	u32 ddr_ratio = 0;
 #endif /* CONFIG_DYNAMIC_DDR_CLK_FREQ || CONFIG_STATIC_DDR_CLK_FREQ */
@@ -319,7 +319,7 @@ int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
 	val |= 0x70000000;
 	mtspr(DBCR0,val);
 #else
-	volatile ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	volatile ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 
 	/* Call board-specific preparation for reset */
 	board_reset_prepare();
@@ -436,7 +436,7 @@ int dram_init(void)
 
 #if defined(CONFIG_SYS_FSL_ERRATUM_DDR_MSYNC_IN)
 	{
-		ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+		ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 		unsigned int x = 10;
 		unsigned int i;
 
arch/powerpc/cpu/mpc85xx/cpu_init.c +17 -17
index 96183ac2c84..5e3e5a7b526 100644
@@ -313,7 +313,7 @@ static void corenet_tb_init(void)
 #ifdef CONFIG_SYS_FSL_ERRATUM_A007212
 void fsl_erratum_a007212_workaround(void)
 {
-	ccsr_gur_t __iomem *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t __iomem *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	u32 ddr_pll_ratio;
 	u32 __iomem *plldgdcr1 = (void *)(CFG_SYS_DCSRBAR + 0x21c20);
 	u32 __iomem *plldadcr1 = (void *)(CFG_SYS_DCSRBAR + 0x21c28);
@@ -379,13 +379,13 @@ ulong cpu_init_f(void)
 {
 	extern void m8560_cpm_reset (void);
 #ifdef CFG_SYS_DCSRBAR_PHYS
-	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 #endif
 #if defined(CONFIG_NXP_ESBC) && !defined(CONFIG_SYS_RAMBOOT)
 	struct law_entry law;
 #endif
 #ifdef CONFIG_ARCH_MPC8548
-	ccsr_local_ecm_t *ecm = (void *)(CFG_SYS_MPC85xx_ECM_ADDR);
+	ccsr_local_ecm_t *ecm = (void *)(CFG_SYS_MPC85XX_ECM_ADDR);
 	uint svr = get_svr();
 
 	/*
@@ -455,7 +455,7 @@ int enable_cluster_l2(void)
 {
 	int i = 0;
 	u32 cluster, svr = get_svr();
-	ccsr_gur_t *gur = (void __iomem *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void __iomem *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	struct ccsr_cluster_l2 __iomem *l2cache;
 
 	/* only the L2 of first cluster should be enabled as expected on T4080,
@@ -516,7 +516,7 @@ int l2cache_init(void)
 {
 	__maybe_unused u32 svr = get_svr();
 #ifdef CONFIG_L2_CACHE
-	ccsr_l2cache_t *l2cache = (void __iomem *)CFG_SYS_MPC85xx_L2_ADDR;
+	ccsr_l2cache_t *l2cache = (void __iomem *)CFG_SYS_MPC85XX_L2_ADDR;
 #elif defined(CONFIG_SYS_FSL_QORIQ_CHASSIS2) && defined(CONFIG_E6500)
 	struct ccsr_cluster_l2 * l2cache = (void __iomem *)CFG_SYS_FSL_CLUSTER_1_L2;
 #endif
@@ -534,20 +534,20 @@ int l2cache_init(void)
 	cache_ctl = l2cache->l2ctl;
 
 #if defined(CONFIG_SYS_RAMBOOT) && defined(CFG_SYS_INIT_L2_ADDR)
-	if (cache_ctl & MPC85xx_L2CTL_L2E) {
+	if (cache_ctl & MPC85XX_L2CTL_L2E) {
 		/* Clear L2 SRAM memory-mapped base address */
 		out_be32(&l2cache->l2srbar0, 0x0);
 		out_be32(&l2cache->l2srbar1, 0x0);
 
 		/* set MBECCDIS=0, SBECCDIS=0 */
 		clrbits_be32(&l2cache->l2errdis,
-				(MPC85xx_L2ERRDIS_MBECC |
-				 MPC85xx_L2ERRDIS_SBECC));
+				(MPC85XX_L2ERRDIS_MBECC |
+				 MPC85XX_L2ERRDIS_SBECC));
 
 		/* set L2E=0, L2SRAM=0 */
 		clrbits_be32(&l2cache->l2ctl,
-				(MPC85xx_L2CTL_L2E |
-				 MPC85xx_L2CTL_L2SRAM_ENTIRE));
+				(MPC85XX_L2CTL_L2E |
+				 MPC85XX_L2CTL_L2SRAM_ENTIRE));
 	}
 #endif
 
@@ -588,11 +588,11 @@ int l2cache_init(void)
 		break;
 	}
 
-	if (l2cache->l2ctl & MPC85xx_L2CTL_L2E) {
+	if (l2cache->l2ctl & MPC85XX_L2CTL_L2E) {
 		puts("already enabled");
 #if defined(CFG_SYS_INIT_L2_ADDR) && defined(CFG_SYS_FLASH_BASE)
 		u32 l2srbar = l2cache->l2srbar0;
-		if (l2cache->l2ctl & MPC85xx_L2CTL_L2SRAM_ENTIRE
+		if (l2cache->l2ctl & MPC85XX_L2CTL_L2SRAM_ENTIRE
 				&& l2srbar >= CFG_SYS_FLASH_BASE) {
 			l2srbar = CFG_SYS_INIT_L2_ADDR;
 			l2cache->l2srbar0 = l2srbar;
@@ -821,7 +821,7 @@ int cpu_init_r(void)
 #ifdef CONFIG_SYS_FSL_USB1_PHY_ENABLE
 	{
 		struct ccsr_usb_phy __iomem *usb_phy1 =
-			(void *)CFG_SYS_MPC85xx_USB1_PHY_ADDR;
+			(void *)CFG_SYS_MPC85XX_USB1_PHY_ADDR;
 #ifdef CONFIG_SYS_FSL_ERRATUM_A006261
 		if (has_erratum_a006261())
 			fsl_erratum_a006261_workaround(usb_phy1);
@@ -833,7 +833,7 @@ int cpu_init_r(void)
 #ifdef CONFIG_SYS_FSL_USB2_PHY_ENABLE
 	{
 		struct ccsr_usb_phy __iomem *usb_phy2 =
-			(void *)CFG_SYS_MPC85xx_USB2_PHY_ADDR;
+			(void *)CFG_SYS_MPC85XX_USB2_PHY_ADDR;
 #ifdef CONFIG_SYS_FSL_ERRATUM_A006261
 		if (has_erratum_a006261())
 			fsl_erratum_a006261_workaround(usb_phy2);
@@ -859,7 +859,7 @@ int cpu_init_r(void)
 
 #if defined(CONFIG_SYS_FSL_USB_DUAL_PHY_ENABLE)
 		struct ccsr_usb_phy __iomem *usb_phy =
-			(void *)CFG_SYS_MPC85xx_USB1_PHY_ADDR;
+			(void *)CFG_SYS_MPC85XX_USB1_PHY_ADDR;
 		setbits_be32(&usb_phy->pllprg[1],
 			     CFG_SYS_FSL_USB_PLLPRG2_PHY2_CLK_EN |
 			     CFG_SYS_FSL_USB_PLLPRG2_PHY1_CLK_EN |
@@ -928,11 +928,11 @@ int cpu_init_r(void)
 		fsl_sata_reg_t *reg;
 
 		/* first SATA controller */
-		reg = (void *)CFG_SYS_MPC85xx_SATA1_ADDR;
+		reg = (void *)CFG_SYS_MPC85XX_SATA1_ADDR;
 		clrbits_le32(&reg->hcontrol, HCONTROL_ENTERPRISE_EN);
 
 		/* second SATA controller */
-		reg = (void *)CFG_SYS_MPC85xx_SATA2_ADDR;
+		reg = (void *)CFG_SYS_MPC85XX_SATA2_ADDR;
 		clrbits_le32(&reg->hcontrol, HCONTROL_ENTERPRISE_EN);
 	}
 #endif
arch/powerpc/cpu/mpc85xx/cpu_init_early.c +7 -7
index a67f37e3af9..de9dc2e77ea 100644
@@ -85,10 +85,10 @@ void cpu_init_early_f(void *fdt)
 {
 	u32 mas0, mas1, mas2, mas3, mas7;
 #ifdef CONFIG_SYS_FSL_ERRATUM_P1010_A003549
-	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 #endif
 #ifdef CONFIG_A003399_NOR_WORKAROUND
-	ccsr_l2cache_t *l2cache = (void *)CFG_SYS_MPC85xx_L2_ADDR;
+	ccsr_l2cache_t *l2cache = (void *)CFG_SYS_MPC85XX_L2_ADDR;
 	u32  *dst, *src;
 	void (*setup_ifc_sram)(void);
 	int i;
@@ -121,7 +121,7 @@ void cpu_init_early_f(void *fdt)
  * Hence specifically selecting CS3.
  */
 #ifdef CONFIG_SYS_FSL_ERRATUM_P1010_A003549
-	setbits_be32(&gur->pmuxcr, MPC85xx_PMUXCR_LCLK_IFC_CS3);
+	setbits_be32(&gur->pmuxcr, MPC85XX_PMUXCR_LCLK_IFC_CS3);
 #endif
 
 #ifdef CONFIG_FSL_LAW
@@ -147,10 +147,10 @@ void cpu_init_early_f(void *fdt)
 	out_be32(&l2cache->l2srbar0, SRAM_BASE_ADDR);
 
 	out_be32(&l2cache->l2errdis,
-		(MPC85xx_L2ERRDIS_MBECC | MPC85xx_L2ERRDIS_SBECC));
+		(MPC85XX_L2ERRDIS_MBECC | MPC85XX_L2ERRDIS_SBECC));
 
 	out_be32(&l2cache->l2ctl,
-		(MPC85xx_L2CTL_L2E | MPC85xx_L2CTL_L2SRAM_ENTIRE));
+		(MPC85XX_L2CTL_L2E | MPC85XX_L2CTL_L2SRAM_ENTIRE));
 
 	/*
 	 * Copy the code in setup_ifc to L2SRAM. Do a word copy
@@ -170,8 +170,8 @@ void cpu_init_early_f(void *fdt)
 
 	/* CLEANUP */
 	clrbits_be32(&l2cache->l2ctl,
-			(MPC85xx_L2CTL_L2E |
-			 MPC85xx_L2CTL_L2SRAM_ENTIRE));
+			(MPC85XX_L2CTL_L2E |
+			 MPC85XX_L2CTL_L2SRAM_ENTIRE));
 	out_be32(&l2cache->l2srbar0, 0x0);
 #endif
 
arch/powerpc/cpu/mpc85xx/fdt.c +3 -3
index e26436bf570..6bc5afe1126 100644
@@ -220,7 +220,7 @@ static inline void ft_fixup_l2cache_compatible(void *blob, int off)
 /* return size in kilobytes */
 static inline u32 l2cache_size(void)
 {
-	volatile ccsr_l2cache_t *l2cache = (void *)CFG_SYS_MPC85xx_L2_ADDR;
+	volatile ccsr_l2cache_t *l2cache = (void *)CFG_SYS_MPC85XX_L2_ADDR;
 	volatile u32 l2siz_field = (l2cache->l2ctl >> 28) & 0x3;
 	u32 ver = SVR_SOC_VER(get_svr());
 
@@ -507,7 +507,7 @@ static void ft_fixup_qe_snum(void *blob)
 #if defined(CONFIG_ARCH_P4080)
 static void fdt_fixup_usb(void *fdt)
 {
-	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	u32 rcwsr11 = in_be32(&gur->rcwsr[11]);
 	int off;
 
@@ -530,7 +530,7 @@ void fdt_fixup_dma3(void *blob)
 {
 	/* the 3rd DMA is not functional if SRIO2 is chosen */
 	int nodeoff;
-	ccsr_gur_t __iomem *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t __iomem *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 
 #define CFG_SYS_ELO3_DMA3 (0xffe000000 + 0x102300)
 #if defined(CONFIG_ARCH_T2080)
arch/powerpc/cpu/mpc85xx/fsl_corenet2_serdes.c +2 -2
index 9b6577e547e..0862a1c51fe 100644
@@ -122,7 +122,7 @@ int is_serdes_configured(enum srds_prtcl device)
 
 int serdes_get_first_lane(u32 sd, enum srds_prtcl device)
 {
-	const ccsr_gur_t *gur = (void __iomem *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	const ccsr_gur_t *gur = (void __iomem *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	u32 cfg = in_be32(&gur->rcwsr[4]);
 	int i;
 
@@ -193,7 +193,7 @@ int serdes_get_first_lane(u32 sd, enum srds_prtcl device)
 void serdes_init(u32 sd, u32 sd_addr, u32 sd_prctl_mask, u32 sd_prctl_shift,
 		u8 serdes_prtcl_map[SERDES_PRCTL_COUNT])
 {
-	ccsr_gur_t *gur = (void __iomem *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void __iomem *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	u32 cfg;
 	int lane;
 
arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c +5 -5
index 7c2de02c4c5..95f2515390f 100644
@@ -108,7 +108,7 @@ int serdes_get_bank_by_lane(int lane)
 
 int serdes_lane_enabled(int lane)
 {
-	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	serdes_corenet_t *regs = (void *)CFG_SYS_FSL_CORENET_SERDES_ADDR;
 
 	int bank = lanes[lane].bank;
@@ -133,7 +133,7 @@ int serdes_lane_enabled(int lane)
 
 int is_serdes_configured(enum srds_prtcl device)
 {
-	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 
 	/* Is serdes enabled at all? */
 	if (!(in_be32(&gur->rcwsr[5]) & FSL_CORENET_RCWSR5_SRDS_EN))
@@ -169,7 +169,7 @@ int serdes_get_first_lane(enum srds_prtcl device)
 	u32 prtcl;
 	const ccsr_gur_t *gur;
 
-	gur = (typeof(gur))CFG_SYS_MPC85xx_GUTS_ADDR;
+	gur = (typeof(gur))CFG_SYS_MPC85XX_GUTS_ADDR;
 
 	/* Is serdes enabled at all? */
 	if (unlikely((in_be32(&gur->rcwsr[5]) & 0x2000) == 0))
@@ -251,7 +251,7 @@ void serdes_reset_rx(enum srds_prtcl device)
 	if (unlikely(device == NONE))
 		return;
 
-	gur = (typeof(gur))CFG_SYS_MPC85xx_GUTS_ADDR;
+	gur = (typeof(gur))CFG_SYS_MPC85XX_GUTS_ADDR;
 
 	/* Is serdes enabled at all? */
 	if (unlikely((in_be32(&gur->rcwsr[5]) & 0x2000) == 0))
@@ -491,7 +491,7 @@ void soc_serdes_init(void) __attribute__((weak, alias("__soc_serdes_init")));
 
 void fsl_serdes_init(void)
 {
-	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	int cfg;
 	serdes_corenet_t *srds_regs;
 #ifdef CONFIG_ARCH_P5040
arch/powerpc/cpu/mpc85xx/interrupts.c +4 -4
index bcbdfac0279..0fe83e80024 100644
@@ -6,7 +6,7 @@
  * (C) Copyright 2002 (440 port)
  * Scott McNutt, Artesyn Communication Producs, [email protected]
  *
- * (C) Copyright 2003 Motorola Inc. (MPC85xx port)
+ * (C) Copyright 2003 Motorola Inc. (MPC85XX port)
  * Xianghua Xiao ([email protected])
  */
 
@@ -36,10 +36,10 @@ void interrupt_init_cpu(unsigned *decrementer_count)
 	ulong post_word = post_word_load();
 #endif
 
-	out_be32(&pic->gcr, MPC85xx_PICGCR_RST);
-	while (in_be32(&pic->gcr) & MPC85xx_PICGCR_RST)
+	out_be32(&pic->gcr, MPC85XX_PICGCR_RST);
+	while (in_be32(&pic->gcr) & MPC85XX_PICGCR_RST)
 		;
-	out_be32(&pic->gcr, MPC85xx_PICGCR_M);
+	out_be32(&pic->gcr, MPC85XX_PICGCR_M);
 	in_be32(&pic->gcr);
 
 	*decrementer_count = get_tbclk() / CONFIG_SYS_HZ;
arch/powerpc/cpu/mpc85xx/mp.c +16 -16
index 7c47e415f05..3f159cc9d69 100644
@@ -87,7 +87,7 @@ int cpu_status(u32 nr)
 #ifdef CONFIG_FSL_CORENET
 int cpu_disable(u32 nr)
 {
-	volatile ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	volatile ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 
 	setbits_be32(&gur->coredisrl, 1 << nr);
 
@@ -95,7 +95,7 @@ int cpu_disable(u32 nr)
 }
 
 int is_core_disabled(int nr) {
-	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	u32 coredisrl = in_be32(&gur->coredisrl);
 
 	return (coredisrl & (1 << nr));
@@ -103,14 +103,14 @@ int is_core_disabled(int nr) {
 #else
 int cpu_disable(u32 nr)
 {
-	volatile ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	volatile ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 
 	switch (nr) {
 	case 0:
-		setbits_be32(&gur->devdisr, MPC85xx_DEVDISR_CPU0);
+		setbits_be32(&gur->devdisr, MPC85XX_DEVDISR_CPU0);
 		break;
 	case 1:
-		setbits_be32(&gur->devdisr, MPC85xx_DEVDISR_CPU1);
+		setbits_be32(&gur->devdisr, MPC85XX_DEVDISR_CPU1);
 		break;
 	default:
 		printf("Invalid cpu number for disable %d\n", nr);
@@ -121,14 +121,14 @@ int cpu_disable(u32 nr)
 }
 
 int is_core_disabled(int nr) {
-	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	u32 devdisr = in_be32(&gur->devdisr);
 
 	switch (nr) {
 	case 0:
-		return (devdisr & MPC85xx_DEVDISR_CPU0);
+		return (devdisr & MPC85XX_DEVDISR_CPU0);
 	case 1:
-		return (devdisr & MPC85xx_DEVDISR_CPU1);
+		return (devdisr & MPC85XX_DEVDISR_CPU1);
 	default:
 		printf("Invalid cpu number for disable %d\n", nr);
 	}
@@ -264,7 +264,7 @@ static void plat_mp_up(unsigned long bootpg, unsigned int pagesize)
 	u32 mask = cpu_mask();
 	struct law_entry e;
 
-	gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	ccm = (void *)(CFG_SYS_FSL_CORENET_CCM_ADDR);
 	rcpm = (void *)(CFG_SYS_FSL_CORENET_RCPM_ADDR);
 	pic = (void *)(CFG_SYS_MPC8xxx_PIC_ADDR);
@@ -336,8 +336,8 @@ static void plat_mp_up(unsigned long bootpg, unsigned int pagesize)
 	u32 up, cpu_up_mask, whoami;
 	u32 *table = (u32 *)&__spin_table;
 	volatile u32 bpcr;
-	volatile ccsr_local_ecm_t *ecm = (void *)(CFG_SYS_MPC85xx_ECM_ADDR);
-	volatile ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	volatile ccsr_local_ecm_t *ecm = (void *)(CFG_SYS_MPC85XX_ECM_ADDR);
+	volatile ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	volatile ccsr_pic_t *pic = (void *)(CFG_SYS_MPC8xxx_PIC_ADDR);
 	u32 devdisr;
 	int timeout = 10;
@@ -348,9 +348,9 @@ static void plat_mp_up(unsigned long bootpg, unsigned int pagesize)
 	/* disable time base at the platform */
 	devdisr = in_be32(&gur->devdisr);
 	if (whoami)
-		devdisr |= MPC85xx_DEVDISR_TB0;
+		devdisr |= MPC85XX_DEVDISR_TB0;
 	else
-		devdisr |= MPC85xx_DEVDISR_TB1;
+		devdisr |= MPC85XX_DEVDISR_TB1;
 	out_be32(&gur->devdisr, devdisr);
 
 	/* release the hounds */
@@ -382,9 +382,9 @@ static void plat_mp_up(unsigned long bootpg, unsigned int pagesize)
 
 	/* enable time base at the platform */
 	if (whoami)
-		devdisr |= MPC85xx_DEVDISR_TB1;
+		devdisr |= MPC85XX_DEVDISR_TB1;
 	else
-		devdisr |= MPC85xx_DEVDISR_TB0;
+		devdisr |= MPC85XX_DEVDISR_TB0;
 	out_be32(&gur->devdisr, devdisr);
 
 	/* readback to sync write */
@@ -393,7 +393,7 @@ static void plat_mp_up(unsigned long bootpg, unsigned int pagesize)
 	mtspr(SPRN_TBWU, 0);
 	mtspr(SPRN_TBWL, 0);
 
-	devdisr &= ~(MPC85xx_DEVDISR_TB0 | MPC85xx_DEVDISR_TB1);
+	devdisr &= ~(MPC85XX_DEVDISR_TB0 | MPC85XX_DEVDISR_TB1);
 	out_be32(&gur->devdisr, devdisr);
 
 #ifdef CONFIG_MPC8xxx_DISABLE_BPTR
arch/powerpc/cpu/mpc85xx/mpc8536_serdes.c +4 -4
index cbcb57fe3a5..2c45872f075 100644
@@ -89,8 +89,8 @@ int is_serdes_configured(enum srds_prtcl device)
 
 void fsl_serdes_init(void)
 {
-	void *guts = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
-	void *sd = (void *)CFG_SYS_MPC85xx_SERDES2_ADDR;
+	void *guts = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
+	void *sd = (void *)CFG_SYS_MPC85XX_SERDES2_ADDR;
 	u32 pordevsr = in_be32(guts + GUTS_PORDEVSR_OFFS);
 	u32 srds1_io_sel, srds2_io_sel;
 	u32 tmp;
@@ -100,8 +100,8 @@ void fsl_serdes_init(void)
 	    serdes2_prtcl_map & (1 << NONE))
 		return;
 
-	srds1_io_sel = (pordevsr & MPC85xx_PORDEVSR_IO_SEL) >>
-				MPC85xx_PORDEVSR_IO_SEL_SHIFT;
+	srds1_io_sel = (pordevsr & MPC85XX_PORDEVSR_IO_SEL) >>
+				MPC85XX_PORDEVSR_IO_SEL_SHIFT;
 
 	/* parse the SRDS2_IO_SEL of PORDEVSR */
 	srds2_io_sel = (pordevsr & GUTS_PORDEVSR_SERDES2_IO_SEL)
arch/powerpc/cpu/mpc85xx/mpc8544_serdes.c +5 -5
index a48f3c15128..21128ccdbeb 100644
@@ -52,10 +52,10 @@ int is_serdes_configured(enum srds_prtcl device)
 
 void fsl_serdes_init(void)
 {
-	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85xx_GUTS_ADDR;
+	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85XX_GUTS_ADDR;
 	u32 pordevsr = in_be32(&gur->pordevsr);
-	u32 srds_cfg = (pordevsr & MPC85xx_PORDEVSR_IO_SEL) >>
-				MPC85xx_PORDEVSR_IO_SEL_SHIFT;
+	u32 srds_cfg = (pordevsr & MPC85XX_PORDEVSR_IO_SEL) >>
+				MPC85XX_PORDEVSR_IO_SEL_SHIFT;
 	int lane;
 
 	if (serdes1_prtcl_map & (1 << NONE) &&
@@ -86,10 +86,10 @@ void fsl_serdes_init(void)
 		serdes2_prtcl_map |= (1 << lane_prtcl);
 	}
 
-	if (pordevsr & MPC85xx_PORDEVSR_SGMII1_DIS)
+	if (pordevsr & MPC85XX_PORDEVSR_SGMII1_DIS)
 		serdes2_prtcl_map &= ~(1 << SGMII_TSEC1);
 
-	if (pordevsr & MPC85xx_PORDEVSR_SGMII3_DIS)
+	if (pordevsr & MPC85XX_PORDEVSR_SGMII3_DIS)
 		serdes2_prtcl_map &= ~(1 << SGMII_TSEC3);
 
 	/* Set the first bit to indicate serdes has been initialized */
arch/powerpc/cpu/mpc85xx/mpc8548_serdes.c +3 -3
index 479ee085d3a..950ca9f957e 100644
@@ -32,10 +32,10 @@ int is_serdes_configured(enum srds_prtcl prtcl)
 
 void fsl_serdes_init(void)
 {
-	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	u32 pordevsr = in_be32(&gur->pordevsr);
-	u32 srds1_cfg = (pordevsr & MPC85xx_PORDEVSR_IO_SEL) >>
-				MPC85xx_PORDEVSR_IO_SEL_SHIFT;
+	u32 srds1_cfg = (pordevsr & MPC85XX_PORDEVSR_IO_SEL) >>
+				MPC85XX_PORDEVSR_IO_SEL_SHIFT;
 	int lane;
 
 	if (serdes1_prtcl_map & (1 << NONE))
arch/powerpc/cpu/mpc85xx/p1010_serdes.c +3 -3
index 56e5ef6468c..51a57a52523 100644
@@ -51,10 +51,10 @@ int is_serdes_configured(enum srds_prtcl device)
 
 void fsl_serdes_init(void)
 {
-	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85xx_GUTS_ADDR;
+	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85XX_GUTS_ADDR;
 	u32 pordevsr = in_be32(&gur->pordevsr);
-	u32 srds_cfg = (pordevsr & MPC85xx_PORDEVSR_IO_SEL) >>
-				MPC85xx_PORDEVSR_IO_SEL_SHIFT;
+	u32 srds_cfg = (pordevsr & MPC85XX_PORDEVSR_IO_SEL) >>
+				MPC85XX_PORDEVSR_IO_SEL_SHIFT;
 	int lane;
 
 	if (serdes1_prtcl_map & (1 << NONE) &&
arch/powerpc/cpu/mpc85xx/p1021_serdes.c +4 -4
index 47f13e3c1cd..6dce81afa05 100644
@@ -50,12 +50,12 @@ int is_serdes_configured(enum srds_prtcl prtcl)
 
 void fsl_serdes_init(void)
 {
-	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
-	serdes_85xx_t *serdes = (void *)CFG_SYS_MPC85xx_SERDES1_ADDR;
+	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
+	serdes_85xx_t *serdes = (void *)CFG_SYS_MPC85XX_SERDES1_ADDR;
 
 	u32 pordevsr = in_be32(&gur->pordevsr);
-	u32 srds_cfg = (pordevsr & MPC85xx_PORDEVSR_IO_SEL) >>
-				MPC85xx_PORDEVSR_IO_SEL_SHIFT;
+	u32 srds_cfg = (pordevsr & MPC85XX_PORDEVSR_IO_SEL) >>
+				MPC85XX_PORDEVSR_IO_SEL_SHIFT;
 	int lane;
 	u32 mask, val;
 
arch/powerpc/cpu/mpc85xx/p1023_serdes.c +3 -3
index 7a8f653727e..191573f79d6 100644
@@ -35,10 +35,10 @@ int is_serdes_configured(enum srds_prtcl device)
 
 void fsl_serdes_init(void)
 {
-	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85xx_GUTS_ADDR;
+	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85XX_GUTS_ADDR;
 	u32 pordevsr = in_be32(&gur->pordevsr);
-	u32 srds_cfg = (pordevsr & MPC85xx_PORDEVSR_IO_SEL) >>
-				MPC85xx_PORDEVSR_IO_SEL_SHIFT;
+	u32 srds_cfg = (pordevsr & MPC85XX_PORDEVSR_IO_SEL) >>
+				MPC85XX_PORDEVSR_IO_SEL_SHIFT;
 	int lane;
 
 	if (serdes1_prtcl_map & (1 << NONE))
arch/powerpc/cpu/mpc85xx/p2020_serdes.c +3 -3
index 8c5d82ae8ad..dfaa4850e6d 100644
@@ -40,10 +40,10 @@ int is_serdes_configured(enum srds_prtcl prtcl)
 
 void fsl_serdes_init(void)
 {
-	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	u32 pordevsr = in_be32(&gur->pordevsr);
-	u32 srds_cfg = (pordevsr & MPC85xx_PORDEVSR_IO_SEL) >>
-				MPC85xx_PORDEVSR_IO_SEL_SHIFT;
+	u32 srds_cfg = (pordevsr & MPC85XX_PORDEVSR_IO_SEL) >>
+				MPC85XX_PORDEVSR_IO_SEL_SHIFT;
 	int lane;
 
 	if (serdes1_prtcl_map & (1 << NONE))
arch/powerpc/cpu/mpc85xx/qe_io.c +1 -1
index 3cf41ca76d5..3fb80441d99 100644
@@ -20,7 +20,7 @@ void qe_config_iopin(u8 port, u8 pin, int dir, int open_drain, int assign)
 	u32			pin_2bit_assign;
 	u32			pin_1bit_mask;
 	u32			tmp_val;
-	volatile ccsr_gur_t	*gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	volatile ccsr_gur_t	*gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	volatile par_io_t	*par_io = (volatile par_io_t *)
 						&(gur->qe_par_io);
 
arch/powerpc/cpu/mpc85xx/speed.c +7 -7
index 9af40310b46..eb1ff3dbc10 100644
@@ -24,7 +24,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 void get_sys_info(sys_info_t *sys_info)
 {
-	volatile ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	volatile ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 #ifdef CONFIG_FSL_CORENET
 	volatile ccsr_clk_t *clk = (void *)(CFG_SYS_FSL_CORENET_CLK_ADDR);
 	unsigned int cpu;
@@ -537,8 +537,8 @@ void get_sys_info(sys_info_t *sys_info)
 
 #if defined(CONFIG_DYNAMIC_DDR_CLK_FREQ) || defined(CONFIG_STATIC_DDR_CLK_FREQ)
 	{
-		u32 ddr_ratio = ((gur->porpllsr) & MPC85xx_PORPLLSR_DDR_RATIO)
-			>> MPC85xx_PORPLLSR_DDR_RATIO_SHIFT;
+		u32 ddr_ratio = ((gur->porpllsr) & MPC85XX_PORPLLSR_DDR_RATIO)
+			>> MPC85XX_PORPLLSR_DDR_RATIO_SHIFT;
 		if (ddr_ratio != 0x7)
 			sys_info->freq_ddrbus = ddr_ratio * get_board_ddr_clk();
 	}
@@ -548,8 +548,8 @@ void get_sys_info(sys_info_t *sys_info)
 #if defined(CONFIG_ARCH_P1021) || defined(CONFIG_ARCH_P1025)
 	sys_info->freq_qe =  sys_info->freq_systembus;
 #else
-	qe_ratio = ((gur->porpllsr) & MPC85xx_PORPLLSR_QE_RATIO)
-			>> MPC85xx_PORPLLSR_QE_RATIO_SHIFT;
+	qe_ratio = ((gur->porpllsr) & MPC85XX_PORPLLSR_QE_RATIO)
+			>> MPC85XX_PORPLLSR_QE_RATIO_SHIFT;
 	sys_info->freq_qe = qe_ratio * get_board_sys_clk();
 #endif
 #endif
@@ -575,7 +575,7 @@ int get_clocks(void)
 {
 	sys_info_t sys_info;
 #ifdef CONFIG_ARCH_MPC8544
-	volatile ccsr_gur_t *gur = (void *) CFG_SYS_MPC85xx_GUTS_ADDR;
+	volatile ccsr_gur_t *gur = (void *) CFG_SYS_MPC85XX_GUTS_ADDR;
 #endif
 	get_sys_info (&sys_info);
 	gd->cpu_clk = sys_info.freq_processor[0];
@@ -604,7 +604,7 @@ int get_clocks(void)
 	 * 85xx, but only the 8544 has cfg_sec_freq, so it's unknown if the
 	 * PORDEVSR2_SEC_CFG bit is 0 on all 85xx boards that are not an 8544.
 	 */
-	if (gur->pordevsr2 & MPC85xx_PORDEVSR2_SEC_CFG)
+	if (gur->pordevsr2 & MPC85XX_PORDEVSR2_SEC_CFG)
 		gd->arch.i2c1_clk = sys_info.freq_systembus / 3;
 	else
 		gd->arch.i2c1_clk = sys_info.freq_systembus / 2;
arch/powerpc/cpu/mpc85xx/spl_minimal.c +3 -3
index ce2b9c21667..8bf0350bdb6 100644
@@ -15,17 +15,17 @@ DECLARE_GLOBAL_DATA_PTR;
 ulong cpu_init_f(void)
 {
 #ifdef CFG_SYS_INIT_L2_ADDR
-	ccsr_l2cache_t *l2cache = (void *)CFG_SYS_MPC85xx_L2_ADDR;
+	ccsr_l2cache_t *l2cache = (void *)CFG_SYS_MPC85XX_L2_ADDR;
 
 	out_be32(&l2cache->l2srbar0, CFG_SYS_INIT_L2_ADDR);
 
 	/* set MBECCDIS=1, SBECCDIS=1 */
 	out_be32(&l2cache->l2errdis,
-		(MPC85xx_L2ERRDIS_MBECC | MPC85xx_L2ERRDIS_SBECC));
+		(MPC85XX_L2ERRDIS_MBECC | MPC85XX_L2ERRDIS_SBECC));
 
 	/* set L2E=1 & L2SRAM=001 */
 	out_be32(&l2cache->l2ctl,
-		(MPC85xx_L2CTL_L2E | MPC85xx_L2CTL_L2SRAM_ENTIRE));
+		(MPC85XX_L2CTL_L2E | MPC85XX_L2CTL_L2SRAM_ENTIRE));
 #endif
 
 	return 0;
arch/powerpc/cpu/mpc85xx/start.S +14 -14
index 562b6993b9d..21ad14aef35 100644
@@ -80,17 +80,17 @@
 
 /* Definitions from C header file asm/immap_85xx.h */
 
-#define CFG_SYS_MPC85xx_L2_OFFSET		0x20000
+#define CFG_SYS_MPC85XX_L2_OFFSET		0x20000
 
-#define MPC85xx_L2CTL				0x000
-#define MPC85xx_L2CTL_L2E			0x80000000
-#define MPC85xx_L2CTL_L2SRAM_ENTIRE		0x00010000
+#define MPC85XX_L2CTL				0x000
+#define MPC85XX_L2CTL_L2E			0x80000000
+#define MPC85XX_L2CTL_L2SRAM_ENTIRE		0x00010000
 
-#define MPC85xx_L2SRBAR0			0x100
+#define MPC85XX_L2SRBAR0			0x100
 
-#define MPC85xx_L2ERRDIS			0xe44
-#define MPC85xx_L2ERRDIS_MBECC			0x00000008
-#define MPC85xx_L2ERRDIS_SBECC			0x00000004
+#define MPC85XX_L2ERRDIS			0xe44
+#define MPC85XX_L2ERRDIS_MBECC			0x00000008
+#define MPC85XX_L2ERRDIS_SBECC			0x00000004
 
 /* Definitions from C header file fsl_esdhc.h */
 
@@ -127,14 +127,14 @@ bootsect:
 	.org 0x80 /* Start of configuration */
 	.Lconf_pair_start:
 
-	.long CONFIG_SYS_CCSRBAR_DEFAULT + CFG_SYS_MPC85xx_L2_OFFSET + MPC85xx_L2SRBAR0 /* Address: L2 memory-mapped SRAM base addr 0 */
+	.long CONFIG_SYS_CCSRBAR_DEFAULT + CFG_SYS_MPC85XX_L2_OFFSET + MPC85XX_L2SRBAR0 /* Address: L2 memory-mapped SRAM base addr 0 */
 	.long CFG_SYS_INIT_L2_ADDR
 
-	.long CONFIG_SYS_CCSRBAR_DEFAULT + CFG_SYS_MPC85xx_L2_OFFSET + MPC85xx_L2ERRDIS /* Address: L2 cache error disable */
-	.long MPC85xx_L2ERRDIS_MBECC | MPC85xx_L2ERRDIS_SBECC
+	.long CONFIG_SYS_CCSRBAR_DEFAULT + CFG_SYS_MPC85XX_L2_OFFSET + MPC85XX_L2ERRDIS /* Address: L2 cache error disable */
+	.long MPC85XX_L2ERRDIS_MBECC | MPC85XX_L2ERRDIS_SBECC
 
-	.long CONFIG_SYS_CCSRBAR_DEFAULT + CFG_SYS_MPC85xx_L2_OFFSET + MPC85xx_L2CTL /* Address: L2 configuration 0 */
-	.long MPC85xx_L2CTL_L2E | MPC85xx_L2CTL_L2SRAM_ENTIRE
+	.long CONFIG_SYS_CCSRBAR_DEFAULT + CFG_SYS_MPC85XX_L2_OFFSET + MPC85XX_L2CTL /* Address: L2 configuration 0 */
+	.long MPC85XX_L2CTL_L2E | MPC85XX_L2CTL_L2SRAM_ENTIRE
 
 	.long CONFIG_SYS_CCSRBAR_DEFAULT + ESDHCCTL /* Address: eSDHC DMA control */
 	.long ESDHCCTL_SNOOP
@@ -1325,7 +1325,7 @@ ProgramCheck:
 	EXC_XFER_TEMPLATE(0x700, ProgramCheck, ProgramCheckException,
 		MSR_KERNEL, COPY_EE)
 
-	/* No FPU on MPC85xx.  This exception is not supposed to happen.
+	/* No FPU on MPC85XX.  This exception is not supposed to happen.
 	*/
 	STD_EXCEPTION(0x0800, FPUnavailable, UnknownException)
 	STD_EXCEPTION(0x0900, SystemCall, UnknownException)
arch/powerpc/cpu/mpc8xxx/Makefile +1 -1
index e3a536d4f8c..abcde571ac2 100644
@@ -17,7 +17,7 @@ ifdef MINIMAL
 obj-$(CONFIG_FSL_LAW) += law.o
 
 else
-obj-$(CONFIG_MPC85xx) += cpu.o
+obj-$(CONFIG_MPC85XX) += cpu.o
 obj-$(CONFIG_MPC86xx) += cpu.o
 
 obj-$(CONFIG_OF_LIBFDT) += fdt.o
arch/powerpc/cpu/mpc8xxx/cpu.c +6 -6
index 73d28f2a4e2..d4a91622d34 100644
@@ -24,7 +24,7 @@
 DECLARE_GLOBAL_DATA_PTR;
 
 static struct cpu_type cpu_type_list[] = {
-#if defined(CONFIG_MPC85xx)
+#if defined(CONFIG_MPC85XX)
 	CPU_TYPE_ENTRY(8533, 8533, 1),
 	CPU_TYPE_ENTRY(8535, 8535, 1),
 	CPU_TYPE_ENTRY(8536, 8536, 1),
@@ -104,7 +104,7 @@ static struct cpu_type cpu_type_list[] = {
 #ifdef CONFIG_SYS_FSL_QORIQ_CHASSIS2
 static inline u32 init_type(u32 cluster, int init_id)
 {
-	ccsr_gur_t *gur = (void __iomem *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void __iomem *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	u32 idx = (cluster >> (init_id * 8)) & TP_CLUSTER_INIT_MASK;
 	u32 type = in_be32(&gur->tp_ityp[idx]);
 
@@ -116,7 +116,7 @@ static inline u32 init_type(u32 cluster, int init_id)
 
 u32 compute_ppc_cpumask(void)
 {
-	ccsr_gur_t *gur = (void __iomem *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void __iomem *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	int i = 0, count = 0;
 	u32 cluster, type, mask = 0;
 
@@ -140,7 +140,7 @@ u32 compute_ppc_cpumask(void)
 #ifdef CONFIG_HETROGENOUS_CLUSTERS
 u32 compute_dsp_cpumask(void)
 {
-	ccsr_gur_t *gur = (void __iomem *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void __iomem *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	int i = CONFIG_DSP_CLUSTER_START, count = 0;
 	u32 cluster, type, dsp_mask = 0;
 
@@ -163,7 +163,7 @@ u32 compute_dsp_cpumask(void)
 
 int fsl_qoriq_dsp_core_to_cluster(unsigned int core)
 {
-	ccsr_gur_t *gur = (void __iomem *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void __iomem *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	int count = 0, i = CONFIG_DSP_CLUSTER_START;
 	u32 cluster;
 
@@ -186,7 +186,7 @@ int fsl_qoriq_dsp_core_to_cluster(unsigned int core)
 
 int fsl_qoriq_core_to_cluster(unsigned int core)
 {
-	ccsr_gur_t *gur = (void __iomem *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void __iomem *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	int i = 0, count = 0;
 	u32 cluster;
 
arch/powerpc/cpu/mpc8xxx/fdt.c +2 -2
index 30042902487..6055f986b8b 100644
@@ -17,7 +17,7 @@
 #include <phy.h>
 #include <hwconfig.h>
 
-#if defined(CONFIG_MP) && (defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx))
+#if defined(CONFIG_MP) && (defined(CONFIG_MPC85XX) || defined(CONFIG_MPC86xx))
 static int ft_del_cpuhandle(void *blob, int cpuhandle)
 {
 	int off, ret = -FDT_ERR_NOTFOUND;
@@ -69,7 +69,7 @@ void ft_fixup_num_cores(void *blob) {
 	debug ("deleted %d extra core entry entries from device tree\n",
 								del_cores);
 }
-#endif /* defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx) */
+#endif /* defined(CONFIG_MPC85XX) || defined(CONFIG_MPC86xx) */
 
 int fdt_fixup_phy_connection(void *blob, int offset, phy_interface_t phyc)
 {
arch/powerpc/cpu/mpc8xxx/fsl_lbc.c +2 -2
index 7519b214969..7fae2befc35 100644
@@ -12,7 +12,7 @@
 #include "../mpc83xx/elbc/elbc.h"
 #endif
 
-#ifdef CONFIG_MPC85xx
+#ifdef CONFIG_MPC85XX
 /* Boards should provide their own version of this if they use lbc sdram */
 static void __lbc_sdram_init(void)
 {
@@ -44,7 +44,7 @@ void init_early_memctl_regs(void)
 	clrsetbits_be32(&(LBC_BASE_ADDR)->lbcr, LBCR_BMT|LBCR_BMTPS, 0xf);
 #endif
 
-#ifdef CONFIG_MPC85xx
+#ifdef CONFIG_MPC85XX
 	/* if cs1 is already set via debugger, leave cs0/cs1 alone */
 	if (get_lbc_br(1) & BR_V)
 		init_br1 = 0;
arch/powerpc/cpu/mpc8xxx/law.c +1 -1
index 35409dc8824..b0183edb064 100644
@@ -301,7 +301,7 @@ void init_laws(void)
 
 #ifdef CONFIG_SRIO_PCIE_BOOT_SLAVE
 	/* check RCW to get which port is used for boot */
-	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85xx_GUTS_ADDR;
+	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85XX_GUTS_ADDR;
 	u32 bootloc = in_be32(&gur->rcwsr[6]);
 	/*
 	 * in SRIO or PCIE boot we need to set specail LAWs for
arch/powerpc/cpu/mpc8xxx/srio.c +6 -6
index c0b4a1217d3..89ee4ea1ac2 100644
@@ -33,12 +33,12 @@
 	#define _DEVDISR_SRIO2 FSL_CORENET_DEVDISR_SRIO2
 #endif
 	#define _DEVDISR_RMU   FSL_CORENET_DEVDISR_RMU
-	#define CFG_SYS_MPC8xxx_GUTS_ADDR CFG_SYS_MPC85xx_GUTS_ADDR
-#elif defined(CONFIG_MPC85xx)
-	#define _DEVDISR_SRIO1 MPC85xx_DEVDISR_SRIO
-	#define _DEVDISR_SRIO2 MPC85xx_DEVDISR_SRIO
-	#define _DEVDISR_RMU   MPC85xx_DEVDISR_RMSG
-	#define CFG_SYS_MPC8xxx_GUTS_ADDR CFG_SYS_MPC85xx_GUTS_ADDR
+	#define CFG_SYS_MPC8xxx_GUTS_ADDR CFG_SYS_MPC85XX_GUTS_ADDR
+#elif defined(CONFIG_MPC85XX)
+	#define _DEVDISR_SRIO1 MPC85XX_DEVDISR_SRIO
+	#define _DEVDISR_SRIO2 MPC85XX_DEVDISR_SRIO
+	#define _DEVDISR_RMU   MPC85XX_DEVDISR_RMSG
+	#define CFG_SYS_MPC8xxx_GUTS_ADDR CFG_SYS_MPC85XX_GUTS_ADDR
 #elif defined(CONFIG_MPC86xx)
 	#define _DEVDISR_SRIO1 MPC86xx_DEVDISR_SRIO
 	#define _DEVDISR_SRIO2 MPC86xx_DEVDISR_SRIO
arch/powerpc/include/asm/config.h +1 -1
index f0702cab143..3d411eb8661 100644
@@ -6,7 +6,7 @@
 #ifndef _ASM_CONFIG_H_
 #define _ASM_CONFIG_H_
 
-#ifdef CONFIG_MPC85xx
+#ifdef CONFIG_MPC85XX
 #include <asm/config_mpc85xx.h>
 #endif
 
arch/powerpc/include/asm/config_mpc85xx.h +4 -4
index d990ecff96f..ae95d089cdd 100644
@@ -3,10 +3,10 @@
  * Copyright 2011-2012 Freescale Semiconductor, Inc.
  */
 
-#ifndef _ASM_MPC85xx_CONFIG_H_
-#define _ASM_MPC85xx_CONFIG_H_
+#ifndef _ASM_MPC85XX_CONFIG_H_
+#define _ASM_MPC85XX_CONFIG_H_
 
-/* SoC specific defines for Freescale MPC85xx (PQ3) and QorIQ processors */
+/* SoC specific defines for Freescale MPC85XX (PQ3) and QorIQ processors */
 
 #include <fsl_ddrc_version.h>
 
@@ -174,4 +174,4 @@
 
 #endif
 
-#endif /* _ASM_MPC85xx_CONFIG_H_ */
+#endif /* _ASM_MPC85XX_CONFIG_H_ */
arch/powerpc/include/asm/fsl_lbc.h +2 -2
index 8d681a1cba6..3808b2b4bf4 100644
@@ -9,7 +9,7 @@
 #include <config.h>
 #include <common.h>
 
-#ifdef CONFIG_MPC85xx
+#ifdef CONFIG_MPC85XX
 void lbc_sdram_init(void);
 #endif
 
@@ -48,7 +48,7 @@ void lbc_sdram_init(void);
 #endif
 #if defined(CONFIG_ARCH_MPC834X) || defined(CONFIG_ARCH_MPC8360)
 #define BR_MS_SDRAM			0x00000060	/* SDRAM */
-#elif defined(CONFIG_MPC85xx)
+#elif defined(CONFIG_MPC85XX)
 #define BR_MS_SDRAM			0x00000000	/* SDRAM */
 #endif
 #define BR_MS_UPMA			0x00000080	/* UPMA */
arch/powerpc/include/asm/fsl_liodn.h +13 -13
index 0af3d8902ac..93c1dc4ccfe 100644
@@ -18,15 +18,15 @@ struct srio_liodn_id_table {
 #define SET_SRIO_LIODN_1(port, idA) \
 	{ .id = { idA }, .num_ids = 1, .portid = port, \
 	  .reg_offset[0] = offsetof(ccsr_gur_t, rio##port##liodnr) \
-		+ CFG_SYS_MPC85xx_GUTS_OFFSET + CFG_SYS_CCSRBAR, \
+		+ CFG_SYS_MPC85XX_GUTS_OFFSET + CFG_SYS_CCSRBAR, \
 	}
 
 #define SET_SRIO_LIODN_2(port, idA, idB) \
 	{ .id = { idA, idB }, .num_ids = 2, .portid = port, \
 	  .reg_offset[0] = offsetof(ccsr_gur_t, rio##port##liodnr) \
-		+ CFG_SYS_MPC85xx_GUTS_OFFSET + CFG_SYS_CCSRBAR, \
+		+ CFG_SYS_MPC85XX_GUTS_OFFSET + CFG_SYS_CCSRBAR, \
 	  .reg_offset[1] = offsetof(ccsr_gur_t, rio##port##maintliodnr) \
-		+ CFG_SYS_MPC85xx_GUTS_OFFSET + CFG_SYS_CCSRBAR, \
+		+ CFG_SYS_MPC85XX_GUTS_OFFSET + CFG_SYS_CCSRBAR, \
 	}
 
 #define SET_SRIO_LIODN_BASE(port, id_a) \
@@ -90,42 +90,42 @@ extern void fdt_fixup_liodn(void *blob);
 
 #define SET_GUTS_LIODN(compat, liodn, name, compatoff) \
 	SET_LIODN_ENTRY_1(compat, liodn, \
-		offsetof(ccsr_gur_t, name) + CFG_SYS_MPC85xx_GUTS_OFFSET, \
+		offsetof(ccsr_gur_t, name) + CFG_SYS_MPC85XX_GUTS_OFFSET, \
 		compatoff)
 
 #define SET_USB_LIODN(usbNum, compat, liodn) \
 	SET_GUTS_LIODN(compat, liodn, usb##usbNum##liodnr,\
-		CFG_SYS_MPC85xx_USB##usbNum##_OFFSET)
+		CFG_SYS_MPC85XX_USB##usbNum##_OFFSET)
 
 #define SET_SATA_LIODN(sataNum, liodn) \
 	SET_GUTS_LIODN("fsl,pq-sata-v2", liodn, sata##sataNum##liodnr,\
-		CFG_SYS_MPC85xx_SATA##sataNum##_OFFSET)
+		CFG_SYS_MPC85XX_SATA##sataNum##_OFFSET)
 
 #define SET_PCI_LIODN(compat, pciNum, liodn) \
 	SET_GUTS_LIODN(compat, liodn, pex##pciNum##liodnr,\
-		CFG_SYS_MPC85xx_PCIE##pciNum##_OFFSET)
+		CFG_SYS_MPC85XX_PCIE##pciNum##_OFFSET)
 
 #define SET_PCI_LIODN_BASE(compat, pciNum, liodn) \
 	SET_LIODN_ENTRY_1(compat, liodn,\
-		offsetof(ccsr_pcix_t, liodn_base) + CFG_SYS_MPC85xx_PCIE##pciNum##_OFFSET,\
-		CFG_SYS_MPC85xx_PCIE##pciNum##_OFFSET)
+		offsetof(ccsr_pcix_t, liodn_base) + CFG_SYS_MPC85XX_PCIE##pciNum##_OFFSET,\
+		CFG_SYS_MPC85XX_PCIE##pciNum##_OFFSET)
 
 /* reg nodes for DMA start @ 0x300 */
 #define SET_DMA_LIODN(dmaNum, compat, liodn) \
 	SET_GUTS_LIODN(compat, liodn, dma##dmaNum##liodnr,\
-		CFG_SYS_MPC85xx_DMA##dmaNum##_OFFSET + 0x300)
+		CFG_SYS_MPC85XX_DMA##dmaNum##_OFFSET + 0x300)
 
 #define SET_SDHC_LIODN(sdhcNum, liodn) \
 	SET_GUTS_LIODN("fsl,esdhc", liodn, sdmmc##sdhcNum##liodnr,\
-		CFG_SYS_MPC85xx_ESDHC_OFFSET)
+		CFG_SYS_MPC85XX_ESDHC_OFFSET)
 
 #define SET_QE_LIODN(liodn) \
 	SET_GUTS_LIODN("fsl,qe", liodn, qeliodnr,\
-		CFG_SYS_MPC85xx_QE_OFFSET)
+		CFG_SYS_MPC85XX_QE_OFFSET)
 
 #define SET_TDM_LIODN(liodn) \
 	SET_GUTS_LIODN("fsl,tdm1.0", liodn, tdmliodnr,\
-		CFG_SYS_MPC85xx_TDM_OFFSET)
+		CFG_SYS_MPC85XX_TDM_OFFSET)
 
 #define SET_QMAN_LIODN(liodn) \
 	SET_LIODN_ENTRY_1("fsl,qman", liodn, \
arch/powerpc/include/asm/fsl_pci.h +1 -1
index 809ab1d4187..c2f12d76521 100644
@@ -241,7 +241,7 @@ int fsl_pcie_init_board(int busno);
 	FT_FSL_PCIE3_SETUP; \
 	FT_FSL_PCIE4_SETUP;
 #define FT_FSL_PCIE_SETUP FT_FSL_PCI_SETUP
-#elif defined(CONFIG_MPC85xx)
+#elif defined(CONFIG_MPC85XX)
 #define FSL_PCI_COMPAT	"fsl,mpc8540-pci"
 #ifdef CONFIG_SYS_FSL_PCIE_COMPAT
 #define FSL_PCIE_COMPAT	CONFIG_SYS_FSL_PCIE_COMPAT
arch/powerpc/include/asm/global_data.h +3 -3
index 2636cbbda88..404980c1f47 100644
@@ -53,11 +53,11 @@ struct arch_global_data {
 # endif /* CONFIG_ARCH_MPC8360 */
 #endif
 #endif
-#if defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx)
+#if defined(CONFIG_MPC85XX) || defined(CONFIG_MPC86xx)
 	u32 lbc_clk;
 	void *cpu;
-#endif /* CONFIG_MPC85xx || CONFIG_MPC86xx */
-#if defined(CONFIG_MPC83XX) || defined(CONFIG_MPC85xx) || \
+#endif /* CONFIG_MPC85XX || CONFIG_MPC86xx */
+#if defined(CONFIG_MPC83XX) || defined(CONFIG_MPC85XX) || \
 		defined(CONFIG_MPC86xx)
 	u32 i2c1_clk;
 	u32 i2c2_clk;
arch/powerpc/include/asm/immap_85xx.h +364 -364

890 lines not on this page · raw message

arch/powerpc/include/asm/mpc85xx_gpio.h +2 -2
index 0ed6beca387..2643eec7820 100644
@@ -20,7 +20,7 @@
 static inline void mpc85xx_gpio_set(unsigned int mask,
 		unsigned int dir, unsigned int val)
 {
-	ccsr_gpio_t *gpio = (void *)(CFG_SYS_MPC85xx_GPIO_ADDR);
+	ccsr_gpio_t *gpio = (void *)(CFG_SYS_MPC85XX_GPIO_ADDR);
 
 	/* First mask off the unwanted parts of "dir" and "val" */
 	dir &= mask;
@@ -56,7 +56,7 @@ static inline void mpc85xx_gpio_set_high(unsigned int gpios)
 
 static inline unsigned int mpc85xx_gpio_get(unsigned int mask)
 {
-	ccsr_gpio_t *gpio = (void *)(CFG_SYS_MPC85xx_GPIO_ADDR);
+	ccsr_gpio_t *gpio = (void *)(CFG_SYS_MPC85XX_GPIO_ADDR);
 
 	/* Read the requested values */
 	return in_be32(&gpio->gpdat) & mask;
arch/powerpc/include/asm/ppc.h +4 -4
index 3b13f7ff166..708cd3920cc 100644
@@ -15,7 +15,7 @@
 #if defined(CONFIG_MPC8xx)
 #include <asm/immap_8xx.h>
 #endif
-#ifdef CONFIG_MPC85xx
+#ifdef CONFIG_MPC85XX
 #include <mpc85xx.h>
 #include <asm/immap_85xx.h>
 #endif
@@ -50,7 +50,7 @@ static inline uint get_svr(void)
 	return mfspr(SVR);
 }
 
-#if defined(CONFIG_MPC85xx)	|| \
+#if defined(CONFIG_MPC85XX)	|| \
 	defined(CONFIG_MPC86xx)	|| \
 	defined(CONFIG_MPC83XX)
 unsigned char	in8(unsigned int);
@@ -78,8 +78,8 @@ void ddr_enable_ecc(unsigned int dram_size);
 #endif
 #endif
 
-#if defined(CONFIG_MPC85xx)
-typedef MPC85xx_SYS_INFO sys_info_t;
+#if defined(CONFIG_MPC85XX)
+typedef MPC85XX_SYS_INFO sys_info_t;
 void get_sys_info(sys_info_t *);
 void ft_fixup_cpu(void *, u64);
 void ft_fixup_num_cores(void *);
arch/powerpc/include/asm/processor.h +4 -4
index d80b7d75563..2bb2af2cb64 100644
@@ -750,7 +750,7 @@
 #define MAS7	SPRN_MAS7
 #define MAS8	SPRN_MAS8
 
-#if defined(CONFIG_MPC85xx)
+#if defined(CONFIG_MPC85XX)
 #define DAR_DEAR DEAR
 #else
 #define DAR_DEAR DAR
@@ -1001,7 +1001,7 @@
 #define SVR_SOC_VER(svr) (((svr) >> 8) & 0xFFF7FF) /* SOC w/o E bit*/
 
 /* whether MPC8xxxE (i.e. has SEC) */
-#if defined(CONFIG_MPC85xx)
+#if defined(CONFIG_MPC85XX)
 #define IS_E_PROCESSOR(svr)	(svr & 0x80000)
 #else
 #if defined(CONFIG_MPC83XX)
@@ -1156,7 +1156,7 @@ int fixup_cpu(void);
 int fsl_qoriq_core_to_cluster(unsigned int core);
 int fsl_qoriq_dsp_core_to_cluster(unsigned int core);
 
-#if defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx)
+#if defined(CONFIG_MPC85XX) || defined(CONFIG_MPC86xx)
 #define CPU_TYPE_ENTRY(n, v, nc) \
 	{ .name = #n, .soc_ver = SVR_##v, .num_cores = (nc), \
 	  .mask = (1 << (nc)) - 1 }
@@ -1176,7 +1176,7 @@ int prt_83xx_rsr(void);
 
 #endif /* ndef ASSEMBLY*/
 
-#if defined(CONFIG_MPC85xx)
+#if defined(CONFIG_MPC85XX)
  #define EPAPR_MAGIC	(0x45504150)
 #else
  #define EPAPR_MAGIC	(0x65504150)
arch/powerpc/lib/bootm.c +1 -1
index 7b392b06bcb..e5324bf8fc1 100644
@@ -290,7 +290,7 @@ void boot_prep_vxworks(struct bootm_headers *images)
 		fdt_fixup_memory(images->ft_addr, base, size);
 
 #if defined(CONFIG_MP)
-#if defined(CONFIG_MPC85xx)
+#if defined(CONFIG_MPC85XX)
 	ft_fixup_cpu(images->ft_addr, base + size);
 	ft_fixup_num_cores(images->ft_addr);
 #elif defined(CONFIG_MPC86xx)
arch/powerpc/lib/ppccache.S +2 -2
index e55025181f7..472548d494d 100644
@@ -64,7 +64,7 @@ ppcSync:
  * flush_dcache_range(unsigned long start, unsigned long stop)
  */
 _GLOBAL(flush_dcache_range)
-#if defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx)
+#if defined(CONFIG_MPC85XX) || defined(CONFIG_MPC86xx)
 	li	r5,L1_CACHE_BYTES-1
 	andc	r3,r3,r5
 	subf	r4,r3,r4
@@ -88,7 +88,7 @@ _GLOBAL(flush_dcache_range)
  * invalidate_dcache_range(unsigned long start, unsigned long stop)
  */
 _GLOBAL(invalidate_dcache_range)
-#if defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx)
+#if defined(CONFIG_MPC85XX) || defined(CONFIG_MPC86xx)
 	li	r5,L1_CACHE_BYTES-1
 	andc	r3,r3,r5
 	subf	r4,r3,r4
board/freescale/common/fsl_chain_of_trust.c +6 -6
index b47ce052516..fa71abad231 100644
@@ -27,8 +27,8 @@
 #include <asm/arch/immap_ls102xa.h>
 #endif
 
-#if defined(CONFIG_MPC85xx)
-#define CFG_DCFG_ADDR	CFG_SYS_MPC85xx_GUTS_ADDR
+#if defined(CONFIG_MPC85XX)
+#define CFG_DCFG_ADDR	CFG_SYS_MPC85XX_GUTS_ADDR
 #else
 #define CFG_DCFG_ADDR	CFG_SYS_FSL_GUTS_ADDR
 #endif
@@ -50,17 +50,17 @@ int fsl_check_boot_mode_secure(void)
 	if (val == ITS_MASK)
 		return 1;
 
-#if defined(CONFIG_FSL_CORENET) || !defined(CONFIG_MPC85xx)
+#if defined(CONFIG_FSL_CORENET) || !defined(CONFIG_MPC85XX)
 	/* For PBL based platforms check the SB_EN bit in RCWSR */
 	val = gur_in32(&gur->rcwsr[RCW_SB_EN_REG_INDEX - 1]) & RCW_SB_EN_MASK;
 	if (val == RCW_SB_EN_MASK)
 		return 1;
 #endif
 
-#if defined(CONFIG_MPC85xx) && !defined(CONFIG_FSL_CORENET)
+#if defined(CONFIG_MPC85XX) && !defined(CONFIG_FSL_CORENET)
 	/* For Non-PBL Platforms, check the Device Status register 2*/
-	val = gur_in32(&gur->pordevsr2) & MPC85xx_PORDEVSR2_SBC_MASK;
-	if (val != MPC85xx_PORDEVSR2_SBC_MASK)
+	val = gur_in32(&gur->pordevsr2) & MPC85XX_PORDEVSR2_SBC_MASK;
+	if (val != MPC85XX_PORDEVSR2_SBC_MASK)
 		return 1;
 
 #endif
board/freescale/common/fsl_validate.c +4 -4
index bfe6357b0d6..451341ddc04 100644
@@ -73,17 +73,17 @@ static u32 check_ie(struct fsl_secboot_img_priv *img)
 }
 
 /* This function returns the CSF Header Address of uboot
- * For MPC85xx based platforms, the LAW mapping for NOR
+ * For MPC85XX based platforms, the LAW mapping for NOR
  * flash changes in uboot code. Hence the offset needs
  * to be calculated and added to the new NOR flash base
  * address
  */
-#if defined(CONFIG_MPC85xx)
+#if defined(CONFIG_MPC85XX)
 #include <flash.h>
 
 int get_csf_base_addr(u32 *csf_addr, u32 *flash_base_addr)
 {
-	struct ccsr_gur __iomem *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	struct ccsr_gur __iomem *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	u32 csf_hdr_addr = in_be32(&gur->scratchrw[0]);
 	u32 csf_flash_offset = csf_hdr_addr & ~(CFG_SYS_PBI_FLASH_BASE);
 	u32 flash_addr, addr;
@@ -168,7 +168,7 @@ static int get_ie_info_addr(uintptr_t *ie_addr)
 #endif
 
 	/* IE Key Table is the first entry in the SG Table */
-#if defined(CONFIG_MPC85xx)
+#if defined(CONFIG_MPC85XX)
 	*ie_addr = (uintptr_t)((sg_tbl->src_addr &
 			~(CFG_SYS_PBI_FLASH_BASE)) +
 			flash_base_addr);
board/freescale/common/mpc85xx_sleep.c +3 -3
index d3323b9ec1e..6d05935bf97 100644
@@ -24,7 +24,7 @@ void __weak board_sleep_prepare(void)
 
 bool is_warm_boot(void)
 {
-	struct ccsr_gur __iomem *gur = (void *)CFG_SYS_MPC85xx_GUTS_ADDR;
+	struct ccsr_gur __iomem *gur = (void *)CFG_SYS_MPC85XX_GUTS_ADDR;
 
 	if (in_be32(&gur->scrtsr[0]) & DCFG_CCSR_CRSTSR_WDRFR)
 		return 1;
@@ -46,7 +46,7 @@ static void dp_ddr_restore(void)
 {
 	u64 *src, *dst;
 	int i;
-	struct ccsr_scfg __iomem *scfg = (void *)CFG_SYS_MPC85xx_SCFG;
+	struct ccsr_scfg __iomem *scfg = (void *)CFG_SYS_MPC85XX_SCFG;
 
 	/* get the address of ddr date from SPARECR3 */
 	src = (u64 *)(in_be32(&scfg->sparecr[2]) + DDR_BUFF_LEN - 8);
@@ -80,7 +80,7 @@ int fsl_dp_resume(void)
 {
 	u32 start_addr;
 	void (*kernel_resume)(void);
-	struct ccsr_scfg __iomem *scfg = (void *)CFG_SYS_MPC85xx_SCFG;
+	struct ccsr_scfg __iomem *scfg = (void *)CFG_SYS_MPC85XX_SCFG;
 
 	if (!is_warm_boot())
 		return 0;
board/freescale/common/via.h +2 -2
index 77cfacc5261..7f2f64668d2 100644
@@ -1,4 +1,4 @@
-#ifndef _MPC85xx_VIA_H
+#ifndef _MPC85XX_VIA_H
 void mpc85xx_config_via(struct pci_controller* hose, pci_dev_t dev, struct pci_config_table *tab);
 
 /* Function 1, IDE */
@@ -15,4 +15,4 @@ void mpc85xx_config_via_power(struct pci_controller* hose, pci_dev_t dev, struct
 
 /* Function 6, AC97 Interface */
 void mpc85xx_config_via_ac97(struct pci_controller* hose, pci_dev_t dev, struct pci_config_table *tab);
-#endif /* _MPC85xx_VIA_H */
+#endif /* _MPC85XX_VIA_H */
board/freescale/common/vid.c +1 -1
index 5ec3f2a76b1..f35ec9902b6 100644
@@ -542,7 +542,7 @@ int adjust_vdd(ulong vdd_override)
 	struct ccsr_gur *gur = (void *)(CFG_SYS_FSL_GUTS_ADDR);
 #else
 	ccsr_gur_t __iomem *gur =
-		(void __iomem *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+		(void __iomem *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 #endif
 	u8 vid;
 	u32 fusesr;
board/freescale/mpc8548cds/mpc8548cds.c +3 -3
index ec6e3a2d0ab..48f9f6bbc62 100644
@@ -33,8 +33,8 @@ void local_bus_init(void);
 
 int checkboard (void)
 {
-	volatile ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
-	volatile ccsr_local_ecm_t *ecm = (void *)(CFG_SYS_MPC85xx_ECM_ADDR);
+	volatile ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
+	volatile ccsr_local_ecm_t *ecm = (void *)(CFG_SYS_MPC85XX_ECM_ADDR);
 
 	/* PCI slot in USER bits CSR[6:7] by convention. */
 	uint pci_slot = get_pci_slot ();
@@ -68,7 +68,7 @@ int checkboard (void)
 void
 local_bus_init(void)
 {
-	volatile ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	volatile ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	volatile fsl_lbc_t *lbc = LBC_BASE_ADDR;
 
 	uint clkdiv;
board/freescale/p1010rdb/p1010rdb.c +14 -14
index d32274b2481..c6ad33018fb 100644
@@ -82,7 +82,7 @@ struct cpld_data {
 
 int board_early_init_f(void)
 {
-	ccsr_gpio_t *pgpio = (void *)(CFG_SYS_MPC85xx_GPIO_ADDR);
+	ccsr_gpio_t *pgpio = (void *)(CFG_SYS_MPC85XX_GPIO_ADDR);
 	struct fsl_ifc ifc = {(void *)CFG_SYS_IFC_ADDR, (void *)NULL};
 	/* Clock configuration to access CPLD using IFC(GPCM) */
 	setbits_be32(&ifc.gregs->ifc_gcr, 1 << IFC_GCR_TBCTL_TRN_TIME_SHIFT);
@@ -131,7 +131,7 @@ int board_early_init_r(void)
 
 int config_board_mux(int ctrl_type)
 {
-	ccsr_gur_t __iomem *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t __iomem *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	u8 tmp;
 
 #if CONFIG_IS_ENABLED(DM_I2C)
@@ -625,21 +625,21 @@ void board_reset(void)
 
 int misc_init_r(void)
 {
-	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 
 	if (hwconfig_subarg_cmp("fsl_p1010mux", "tdm_can", "can")) {
-		clrbits_be32(&gur->pmuxcr, MPC85xx_PMUXCR_CAN1_TDM |
-				MPC85xx_PMUXCR_CAN1_UART |
-				MPC85xx_PMUXCR_CAN2_TDM |
-				MPC85xx_PMUXCR_CAN2_UART);
+		clrbits_be32(&gur->pmuxcr, MPC85XX_PMUXCR_CAN1_TDM |
+				MPC85XX_PMUXCR_CAN1_UART |
+				MPC85XX_PMUXCR_CAN2_TDM |
+				MPC85XX_PMUXCR_CAN2_UART);
 		config_board_mux(MUX_TYPE_CAN);
 	} else if (hwconfig_subarg_cmp("fsl_p1010mux", "tdm_can", "tdm")) {
-		clrbits_be32(&gur->pmuxcr, MPC85xx_PMUXCR_CAN2_UART |
-				MPC85xx_PMUXCR_CAN1_UART);
-		setbits_be32(&gur->pmuxcr, MPC85xx_PMUXCR_CAN2_TDM |
-				MPC85xx_PMUXCR_CAN1_TDM);
-		clrbits_be32(&gur->pmuxcr2, MPC85xx_PMUXCR2_UART_GPIO);
-		setbits_be32(&gur->pmuxcr2, MPC85xx_PMUXCR2_UART_TDM);
+		clrbits_be32(&gur->pmuxcr, MPC85XX_PMUXCR_CAN2_UART |
+				MPC85XX_PMUXCR_CAN1_UART);
+		setbits_be32(&gur->pmuxcr, MPC85XX_PMUXCR_CAN2_TDM |
+				MPC85XX_PMUXCR_CAN1_TDM);
+		clrbits_be32(&gur->pmuxcr2, MPC85XX_PMUXCR2_UART_GPIO);
+		setbits_be32(&gur->pmuxcr2, MPC85XX_PMUXCR2_UART_TDM);
 		config_board_mux(MUX_TYPE_TDM);
 	} else {
 		/* defaultly spi_cs_sel to flash */
@@ -652,7 +652,7 @@ int misc_init_r(void)
 		config_board_mux(MUX_TYPE_IFC);
 
 #ifdef CONFIG_TARGET_P1010RDB_PB
-	setbits_be32(&gur->pmuxcr2, MPC85xx_PMUXCR2_GPIO01_DRVVBUS);
+	setbits_be32(&gur->pmuxcr2, MPC85XX_PMUXCR2_GPIO01_DRVVBUS);
 #endif
 	return 0;
 }
board/freescale/p1010rdb/spl.c +3 -3
index e450f626e0a..461ba372417 100644
@@ -28,7 +28,7 @@ phys_size_t get_effective_memsize(void)
 void board_init_f(ulong bootflag)
 {
 	u32 plat_ratio;
-	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85xx_GUTS_ADDR;
+	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85XX_GUTS_ADDR;
 	struct fsl_ifc ifc = {(void *)CFG_SYS_IFC_ADDR, (void *)NULL};
 
 	console_init_f();
@@ -37,11 +37,11 @@ void board_init_f(ulong bootflag)
 	setbits_be32(&ifc.gregs->ifc_gcr, 1 << IFC_GCR_TBCTL_TRN_TIME_SHIFT);
 
 #ifdef CONFIG_TARGET_P1010RDB_PB
-	setbits_be32(&gur->pmuxcr2, MPC85xx_PMUXCR2_GPIO01_DRVVBUS);
+	setbits_be32(&gur->pmuxcr2, MPC85XX_PMUXCR2_GPIO01_DRVVBUS);
 #endif
 
 	/* initialize selected port with appropriate baud rate */
-	plat_ratio = in_be32(&gur->porpllsr) & MPC85xx_PORPLLSR_PLAT_RATIO;
+	plat_ratio = in_be32(&gur->porpllsr) & MPC85XX_PORPLLSR_PLAT_RATIO;
 	plat_ratio >>= 1;
 	gd->bus_clk = get_board_sys_clk() * plat_ratio;
 
board/freescale/p1010rdb/spl_minimal.c +2 -2
index 8f0dec4c0ab..54cd7b9aacd 100644
@@ -20,7 +20,7 @@ DECLARE_GLOBAL_DATA_PTR;
 void board_init_f(ulong bootflag)
 {
 	u32 plat_ratio;
-	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85xx_GUTS_ADDR;
+	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85XX_GUTS_ADDR;
 
 #if defined(CFG_SYS_NAND_BR_PRELIM) && defined(CFG_SYS_NAND_OR_PRELIM)
 	set_lbc_br(0, CFG_SYS_NAND_BR_PRELIM);
@@ -28,7 +28,7 @@ void board_init_f(ulong bootflag)
 #endif
 
 	/* initialize selected port with appropriate baud rate */
-	plat_ratio = in_be32(&gur->porpllsr) & MPC85xx_PORPLLSR_PLAT_RATIO;
+	plat_ratio = in_be32(&gur->porpllsr) & MPC85XX_PORPLLSR_PLAT_RATIO;
 	plat_ratio >>= 1;
 	gd->bus_clk = get_board_sys_clk() * plat_ratio;
 
board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c +10 -10
index 602b7f0156b..c3bd2837aa2 100644
@@ -149,7 +149,7 @@ void board_cpld_init(void)
 void board_gpio_init(void)
 {
 #ifdef CONFIG_QE
-	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	par_io_t *par_io = (par_io_t *) &(gur->qe_par_io);
 
 	/* Enable VSC7385 switch */
@@ -159,7 +159,7 @@ void board_gpio_init(void)
 	setbits_be32(&par_io[GPIO_SLIC_PORT].cpdat, GPIO_SLIC_DATA);
 #else
 
-	ccsr_gpio_t *pgpio = (void *)(CFG_SYS_MPC85xx_GPIO_ADDR);
+	ccsr_gpio_t *pgpio = (void *)(CFG_SYS_MPC85XX_GPIO_ADDR);
 
 	/*
 	 * GPIO10 DDR Reset, open drain
@@ -197,17 +197,17 @@ void board_gpio_init(void)
 
 int board_early_init_f(void)
 {
-	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 
-	setbits_be32(&gur->pmuxcr, MPC85xx_PMUXCR_SDHC_CD);
+	setbits_be32(&gur->pmuxcr, MPC85XX_PMUXCR_SDHC_CD);
 #ifndef SDHC_WP_IS_GPIO
-	setbits_be32(&gur->pmuxcr, MPC85xx_PMUXCR_SDHC_WP);
+	setbits_be32(&gur->pmuxcr, MPC85XX_PMUXCR_SDHC_WP);
 #endif
 	clrbits_be32(&gur->sdhcdcr, SDHCDCR_CD_INV);
 
-	clrbits_be32(&gur->pmuxcr, MPC85xx_PMUXCR_SD_DATA);
+	clrbits_be32(&gur->pmuxcr, MPC85XX_PMUXCR_SD_DATA);
 #if defined(CONFIG_TARGET_P1020RDB_PD) || defined(CONFIG_TARGET_P1020RDB_PC)
-	setbits_be32(&gur->pmuxcr, MPC85xx_PMUXCR_TDM_ENA);
+	setbits_be32(&gur->pmuxcr, MPC85XX_PMUXCR_TDM_ENA);
 #endif
 
 	board_gpio_init();
@@ -227,7 +227,7 @@ int board_early_init_f(void)
 int checkboard(void)
 {
 	struct cpld_data *cpld_data = (void *)(CFG_SYS_CPLD_BASE);
-	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	u8 in, out, invert, io_config, val;
 	int bus_num = CONFIG_SYS_SPD_BUS_NUM;
 
@@ -306,7 +306,7 @@ int checkboard(void)
 	puts("\n");
 
 	if (val & 0x1) {
-		setbits_be32(&gur->pmuxcr, MPC85xx_PMUXCR_SD_DATA);
+		setbits_be32(&gur->pmuxcr, MPC85XX_PMUXCR_SD_DATA);
 		puts("SD/MMC : 8-bit Mode\n");
 		puts("eSPI : Disabled\n");
 	} else {
@@ -368,7 +368,7 @@ int board_early_init_r(void)
 static void fix_max6370_watchdog(void *blob)
 {
 	int off = fdt_node_offset_by_compatible(blob, -1, "maxim,max6370");
-	ccsr_gpio_t *pgpio = (void *)(CFG_SYS_MPC85xx_GPIO_ADDR);
+	ccsr_gpio_t *pgpio = (void *)(CFG_SYS_MPC85XX_GPIO_ADDR);
 	u32 gpioval = in_be32(&pgpio->gpdat);
 
 	/*
board/freescale/p1_p2_rdb_pc/spl.c +4 -4
index 6c3f82849e3..e107ddefb0f 100644
@@ -29,7 +29,7 @@ phys_size_t get_effective_memsize(void)
 void board_init_f(ulong bootflag)
 {
 	u32 plat_ratio, bus_clk;
-	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85xx_GUTS_ADDR;
+	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85XX_GUTS_ADDR;
 
 	/*
 	 * Call board_early_init_f() as early as possible as it workarounds
@@ -42,17 +42,17 @@ void board_init_f(ulong bootflag)
 	/* Set pmuxcr to allow both i2c1 and i2c2 */
 	setbits_be32(&gur->pmuxcr, in_be32(&gur->pmuxcr) | 0x1000);
 	setbits_be32(&gur->pmuxcr,
-		     in_be32(&gur->pmuxcr) | MPC85xx_PMUXCR_SD_DATA);
+		     in_be32(&gur->pmuxcr) | MPC85XX_PMUXCR_SD_DATA);
 
 	/* Read back the register to synchronize the write. */
 	in_be32(&gur->pmuxcr);
 
 #ifdef CONFIG_SPL_SPI_BOOT
-	clrbits_be32(&gur->pmuxcr, MPC85xx_PMUXCR_SD_DATA);
+	clrbits_be32(&gur->pmuxcr, MPC85XX_PMUXCR_SD_DATA);
 #endif
 
 	/* initialize selected port with appropriate baud rate */
-	plat_ratio = in_be32(&gur->porpllsr) & MPC85xx_PORPLLSR_PLAT_RATIO;
+	plat_ratio = in_be32(&gur->porpllsr) & MPC85XX_PORPLLSR_PLAT_RATIO;
 	plat_ratio >>= 1;
 	bus_clk = get_board_sys_clk() * plat_ratio;
 	gd->bus_clk = bus_clk;
board/freescale/p1_p2_rdb_pc/spl_minimal.c +2 -2
index f9e0b5b25ab..7bc7393894c 100644
@@ -19,7 +19,7 @@ DECLARE_GLOBAL_DATA_PTR;
 void board_init_f(ulong bootflag)
 {
 	u32 plat_ratio;
-	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85xx_GUTS_ADDR;
+	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85XX_GUTS_ADDR;
 
 #if defined(CFG_SYS_NAND_BR_PRELIM) && defined(CFG_SYS_NAND_OR_PRELIM)
 	set_lbc_br(0, CFG_SYS_NAND_BR_PRELIM);
@@ -27,7 +27,7 @@ void board_init_f(ulong bootflag)
 #endif
 
 	/* initialize selected port with appropriate baud rate */
-	plat_ratio = in_be32(&gur->porpllsr) & MPC85xx_PORPLLSR_PLAT_RATIO;
+	plat_ratio = in_be32(&gur->porpllsr) & MPC85XX_PORPLLSR_PLAT_RATIO;
 	plat_ratio >>= 1;
 	gd->bus_clk = get_board_sys_clk() * plat_ratio;
 
board/freescale/p2041rdb/p2041rdb.c +2 -2
index 575259b19c0..b94aaa29f82 100644
@@ -66,7 +66,7 @@ int checkboard(void)
 
 int board_early_init_f(void)
 {
-	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 
 	/* board only uses the DDR_MCK0/1, so disable the DDR_MCK2/3 */
 	setbits_be32(&gur->ddrclkdr, 0x000f000f);
@@ -81,7 +81,7 @@ int board_early_init_f(void)
 
 void board_config_lanes_mux(void)
 {
-	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85xx_GUTS_ADDR;
+	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85XX_GUTS_ADDR;
 	int srds_prtcl = (in_be32(&gur->rcwsr[4]) &
 				FSL_CORENET_RCWSR4_SRDS_PRTCL) >> 26;
 
board/freescale/t102xrdb/eth_t102xrdb.c +1 -1
index ad78f72f98c..8ccae53c77d 100644
@@ -33,7 +33,7 @@ int board_eth_init(struct bd_info *bis)
 	struct memac_mdio_info dtsec_mdio_info;
 	struct memac_mdio_info tgec_mdio_info;
 	struct mii_dev *dev;
-	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	u32 srds_s1;
 
 	srds_s1 = in_be32(&gur->rcwsr[4]) &
board/freescale/t102xrdb/spl.c +3 -3
index 9faf259af74..8a7c2309a15 100644
@@ -29,7 +29,7 @@ phys_size_t get_effective_memsize(void)
 #define GPIO1_SD_SEL 0x00020000
 int board_mmc_getcd(struct mmc *mmc)
 {
-	ccsr_gpio_t __iomem *pgpio = (void *)(CFG_SYS_MPC85xx_GPIO_ADDR);
+	ccsr_gpio_t __iomem *pgpio = (void *)(CFG_SYS_MPC85XX_GPIO_ADDR);
 	u32 val = in_be32(&pgpio->gpdat);
 
 	/* GPIO1_14, 0: eMMC, 1: SD */
@@ -40,7 +40,7 @@ int board_mmc_getcd(struct mmc *mmc)
 
 int board_mmc_getwp(struct mmc *mmc)
 {
-	ccsr_gpio_t __iomem *pgpio = (void *)(CFG_SYS_MPC85xx_GPIO_ADDR);
+	ccsr_gpio_t __iomem *pgpio = (void *)(CFG_SYS_MPC85XX_GPIO_ADDR);
 	u32 val = in_be32(&pgpio->gpdat);
 
 	val &= GPIO1_SD_SEL;
@@ -52,7 +52,7 @@ int board_mmc_getwp(struct mmc *mmc)
 void board_init_f(ulong bootflag)
 {
 	u32 plat_ratio, sys_clk, ccb_clk;
-	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85xx_GUTS_ADDR;
+	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85XX_GUTS_ADDR;
 
 	/* Memcpy existing GD at CONFIG_SPL_GD_ADDR */
 	memcpy((void *)CONFIG_SPL_GD_ADDR, (void *)gd, sizeof(gd_t));
board/freescale/t102xrdb/t102xrdb.c +8 -8
index baa59615b3e..2303aa8fb93 100644
@@ -49,7 +49,7 @@ int checkboard(void)
 {
 	struct cpu_type *cpu = gd->arch.cpu;
 	static const char *freq[3] = {"100.00MHZ", "125.00MHz", "156.25MHZ"};
-	ccsr_gur_t __iomem *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t __iomem *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	u32 srds_s1;
 
 	srds_s1 = in_be32(&gur->rcwsr[4]) & FSL_CORENET2_RCWSR4_SRDS1_PRTCL;
@@ -99,7 +99,7 @@ int checkboard(void)
 #ifdef CONFIG_TARGET_T1024RDB
 static void board_mux_lane(void)
 {
-	ccsr_gur_t __iomem *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t __iomem *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	u32 srds_prtcl_s1;
 	u8 reg = CPLD_READ(misc_ctl_status);
 
@@ -222,7 +222,7 @@ static void fdt_enable_nor(void *blob)
 
 int board_mmc_getcd(struct mmc *mmc)
 {
-	ccsr_gpio_t __iomem *pgpio = (void *)(CFG_SYS_MPC85xx_GPIO_ADDR);
+	ccsr_gpio_t __iomem *pgpio = (void *)(CFG_SYS_MPC85XX_GPIO_ADDR);
 	u32 val = in_be32(&pgpio->gpdat);
 
 	/* GPIO1_14, 0: eMMC, 1: SD/MMC */
@@ -233,7 +233,7 @@ int board_mmc_getcd(struct mmc *mmc)
 
 int board_mmc_getwp(struct mmc *mmc)
 {
-	ccsr_gpio_t __iomem *pgpio = (void *)(CFG_SYS_MPC85xx_GPIO_ADDR);
+	ccsr_gpio_t __iomem *pgpio = (void *)(CFG_SYS_MPC85XX_GPIO_ADDR);
 	u32 val = in_be32(&pgpio->gpdat);
 
 	val &= GPIO1_SD_SEL;
@@ -243,8 +243,8 @@ int board_mmc_getwp(struct mmc *mmc)
 
 static u32 t1023rdb_ctrl(u32 ctrl_type)
 {
-	ccsr_gpio_t __iomem *pgpio = (void *)(CFG_SYS_MPC85xx_GPIO_ADDR);
-	ccsr_gur_t __iomem  *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gpio_t __iomem *pgpio = (void *)(CFG_SYS_MPC85XX_GPIO_ADDR);
+	ccsr_gur_t __iomem  *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	u32 val;
 	u8 tmp;
 	int bus_num = I2C_PCA6408_BUS_NUM;
@@ -274,7 +274,7 @@ static u32 t1023rdb_ctrl(u32 ctrl_type)
 		setbits_be32(&pgpio->gpdir, GPIO1_SD_SEL);
 		break;
 	case GPIO3_GET_VERSION:
-		pgpio = (ccsr_gpio_t *)(CFG_SYS_MPC85xx_GPIO_ADDR
+		pgpio = (ccsr_gpio_t *)(CFG_SYS_MPC85XX_GPIO_ADDR
 			 + GPIO3_OFFSET);
 		val = in_be32(&pgpio->gpdat);
 		val = ((val & GPIO3_BRD_VER_MASK) >> 26) & 0x3;
@@ -323,7 +323,7 @@ static u32 t1023rdb_ctrl(u32 ctrl_type)
 		setbits_be32(&pgpio->gpdir, GPIO1_SD_SEL);
 		break;
 	case GPIO3_GET_VERSION:
-		pgpio = (ccsr_gpio_t *)(CFG_SYS_MPC85xx_GPIO_ADDR
+		pgpio = (ccsr_gpio_t *)(CFG_SYS_MPC85XX_GPIO_ADDR
 			 + GPIO3_OFFSET);
 		val = in_be32(&pgpio->gpdat);
 		val = ((val & GPIO3_BRD_VER_MASK) >> 26) & 0x3;
board/freescale/t104xrdb/spl.c +1 -1
index dd8283f3c60..621cd781114 100644
@@ -33,7 +33,7 @@ void board_init_f(ulong bootflag)
 	u32 porsr1, pinctl;
 	u32 svr = get_svr();
 #endif
-	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85xx_GUTS_ADDR;
+	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85XX_GUTS_ADDR;
 
 #if defined(CONFIG_SPL_NAND_BOOT) && defined(CONFIG_A008044_WORKAROUND)
 	if (IS_SVR_REV(svr, 1, 0)) {
board/freescale/t104xrdb/t104xrdb.c +1 -1
index 8cec71217a7..abc8224e4ef 100644
@@ -93,7 +93,7 @@ int board_early_init_r(void)
 
 int misc_init_r(void)
 {
-	ccsr_gur_t __iomem *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t __iomem *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	u32 srds_s1;
 
 	srds_s1 = in_be32(&gur->rcwsr[4]) >> 24;
board/freescale/t208xqds/eth_t208xqds.c +3 -3
index 569b193eab7..e1e21b950fe 100644
@@ -189,7 +189,7 @@ void board_ft_fman_fixup_port(void *fdt, char *compat, phys_addr_t addr,
 	const char *phyconn;
 	int off;
 
-	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 #ifdef CONFIG_TARGET_T2080QDS
 	serdes_corenet_t *srds_regs =
 		(void *)CFG_SYS_FSL_CORENET_SERDES_ADDR;
@@ -413,7 +413,7 @@ void fdt_fixup_board_enet(void *fdt)
  */
 static void initialize_lane_to_slot(void)
 {
-	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	u32 srds_s1 = in_be32(&gur->rcwsr[4]) &
 				FSL_CORENET2_RCWSR4_SRDS1_PRTCL;
 
@@ -459,7 +459,7 @@ int board_eth_init(struct bd_info *bis)
 	int i, idx, lane, slot, interface;
 	struct memac_mdio_info dtsec_mdio_info;
 	struct memac_mdio_info tgec_mdio_info;
-	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	u32 rcwsr13 = in_be32(&gur->rcwsr[13]);
 	u32 srds_s1;
 
board/freescale/t208xqds/spl.c +1 -1
index 8866be54a66..0dcb1411e58 100644
@@ -67,7 +67,7 @@ unsigned long get_board_ddr_clk(void)
 void board_init_f(ulong bootflag)
 {
 	u32 plat_ratio, sys_clk, ccb_clk;
-	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85xx_GUTS_ADDR;
+	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85XX_GUTS_ADDR;
 
 	/* Memcpy existing GD at CONFIG_SPL_GD_ADDR */
 	memcpy((void *)CONFIG_SPL_GD_ADDR, (void *)gd, sizeof(gd_t));
board/freescale/t208xqds/t208xqds.c +1 -1
index 8be55e52e5f..cf70dda0e0a 100644
@@ -88,7 +88,7 @@ int i2c_multiplexer_select_vid_channel(u8 channel)
 
 int brd_mux_lane_to_slot(void)
 {
-	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	u32 srds_prtcl_s1;
 
 	srds_prtcl_s1 = in_be32(&gur->rcwsr[4]) &
board/freescale/t208xrdb/spl.c +1 -1
index 130cb8847c0..e6794aa06de 100644
@@ -27,7 +27,7 @@ phys_size_t get_effective_memsize(void)
 void board_init_f(ulong bootflag)
 {
 	u32 plat_ratio, sys_clk, ccb_clk;
-	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85xx_GUTS_ADDR;
+	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85XX_GUTS_ADDR;
 
 	/* Memcpy existing GD at CONFIG_SPL_GD_ADDR */
 	memcpy((void *)CONFIG_SPL_GD_ADDR, (void *)gd, sizeof(gd_t));
board/freescale/t4rdb/eth.c +1 -1
index 2e52543847b..43011f1edc2 100644
@@ -43,7 +43,7 @@ int board_eth_init(struct bd_info *bis)
 	struct memac_mdio_info dtsec_mdio_info;
 	struct memac_mdio_info tgec_mdio_info;
 	struct mii_dev *dev;
-	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	u32 srds_prtcl_s1, srds_prtcl_s2;
 
 	srds_prtcl_s1 = in_be32(&gur->rcwsr[4]) &
board/freescale/t4rdb/spl.c +1 -1
index 779457d2964..b705b20809b 100644
@@ -33,7 +33,7 @@ phys_size_t get_effective_memsize(void)
 void board_init_f(ulong bootflag)
 {
 	u32 plat_ratio, sys_clk, ccb_clk;
-	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85xx_GUTS_ADDR;
+	ccsr_gur_t *gur = (void *)CFG_SYS_MPC85XX_GUTS_ADDR;
 
 	/* Memcpy existing GD at CONFIG_SPL_GD_ADDR */
 	memcpy((void *)CONFIG_SPL_GD_ADDR, (void *)gd, sizeof(gd_t));
board/keymile/Kconfig +2 -2
index a24d17cf8bf..7c80f1a0933 100644
@@ -35,7 +35,7 @@ config KM_PHRAM
 config KM_RESERVED_PRAM
 	hex "Reserved RAM"
 	default 0x0 if MPC83XX
-	default 0x1000 if MPC85xx || ARCH_LS1021A
+	default 0x1000 if MPC85XX || ARCH_LS1021A
 	depends on !ARCH_SOCFPGA
 	help
 	  Reserved physical RAM area at the end of memory for special purposes.
@@ -79,7 +79,7 @@ config SYS_CLIPS_BASE
 config KM_COMMON_ETH_INIT
 	bool "Common Ethernet Initialization"
 	default y if MPC83XX
-	default n if MPC85xx || ARCH_SOCFPGA || ARCH_LS1021A
+	default n if MPC85XX || ARCH_SOCFPGA || ARCH_LS1021A
 	help
 	  Use the Ethernet initialization implemented in common code that
 	  detects if a Piggy board is present.
board/keymile/kmcent2/kmcent2.c +3 -3
index ed552c57b5f..b75da715317 100644
@@ -45,7 +45,7 @@ int checkboard(void)
 int board_early_init_f(void)
 {
 	struct fsl_ifc ifc = {(void *)CFG_SYS_IFC_ADDR, (void *)NULL};
-	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	bool cpuwd_flag = false;
 
 	/* board specific IFC configuration: increased bus turnaround time */
@@ -221,8 +221,8 @@ EVENT_SPY(EVT_MISC_INIT_F, kmcent2_misc_init_f);
 int misc_init_r(void)
 {
 	serdes_corenet_t *regs = (void *)CFG_SYS_FSL_CORENET_SERDES_ADDR;
-	struct ccsr_scfg *scfg = (struct ccsr_scfg *)CFG_SYS_MPC85xx_SCFG;
-	ccsr_gur_t __iomem *gur = (ccsr_gur_t __iomem *)CFG_SYS_MPC85xx_GUTS_ADDR;
+	struct ccsr_scfg *scfg = (struct ccsr_scfg *)CFG_SYS_MPC85XX_SCFG;
+	ccsr_gur_t __iomem *gur = (ccsr_gur_t __iomem *)CFG_SYS_MPC85XX_GUTS_ADDR;
 
 	/* check SERDES bank 0 reference clock */
 	u32 actual = in_be32(&regs->bank[USED_SRDS_BANK].pllcr0);
board/socrates/socrates.c +3 -3
index 9c4dd186fca..107d3c53eba 100644
@@ -35,7 +35,7 @@ ulong flash_get_size (ulong base, int banknum);
 
 int checkboard (void)
 {
-	volatile ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	volatile ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	char buf[64];
 	int f;
 	int i = env_get_f("serial#", buf, sizeof(buf));
@@ -139,7 +139,7 @@ int misc_init_r (void)
 void local_bus_init (void)
 {
 	volatile fsl_lbc_t *lbc = LBC_BASE_ADDR;
-	volatile ccsr_local_ecm_t *ecm = (void *)(CFG_SYS_MPC85xx_ECM_ADDR);
+	volatile ccsr_local_ecm_t *ecm = (void *)(CFG_SYS_MPC85XX_ECM_ADDR);
 	sys_info_t sysinfo;
 	uint clkdiv;
 	uint lbc_mhz;
@@ -175,7 +175,7 @@ void local_bus_init (void)
 #ifdef CONFIG_BOARD_EARLY_INIT_R
 int board_early_init_r (void)
 {
-	volatile ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	volatile ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 
 	/* set and reset the GPIO pin 2 which will reset the W83782G chip */
 	out_8((unsigned char*)&gur->gpoutdr, 0x3F );
board/xes/common/Makefile +1 -1
index 002821916c4..6be05152aa4 100644
@@ -5,6 +5,6 @@
 
 obj-$(CONFIG_MPC86xx)		+= fsl_8xxx_clk.o
 obj-$(CONFIG_ARCH_P2020)		+= fsl_8xxx_clk.o
-obj-$(CONFIG_MPC85xx)		+= fsl_8xxx_misc.o board.o
+obj-$(CONFIG_MPC85XX)		+= fsl_8xxx_misc.o board.o
 obj-$(CONFIG_MPC86xx)		+= fsl_8xxx_misc.o board.o
 obj-$(CONFIG_NAND_ACTL)	+= actl_nand.o
board/xes/common/fsl_8xxx_clk.c +4 -4
index c36b2afd50e..ef720c17240 100644
@@ -12,8 +12,8 @@
  */
 unsigned long get_board_sys_clk(void)
 {
-#if defined(CONFIG_MPC85xx)
-	volatile ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+#if defined(CONFIG_MPC85XX)
+	volatile ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 #elif defined(CONFIG_MPC86xx)
 	immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
 	volatile ccsr_gur_t *gur = &immap->im_gur;
@@ -29,14 +29,14 @@ unsigned long get_board_sys_clk(void)
 #endif
 }
 
-#ifdef CONFIG_MPC85xx
+#ifdef CONFIG_MPC85XX
 /*
  * Return DDR input clock - synchronous with SYSCLK or 66 MHz
  * Note: 86xx doesn't support asynchronous DDR clk
  */
 unsigned long get_board_ddr_clk(void)
 {
-	volatile ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85xx_GUTS_ADDR);
+	volatile ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
 	u32 ddr_ratio = (in_be32(&gur->porpllsr) & 0x00003e00) >> 9;
 
 	if (ddr_ratio == 0x7)
board/xes/common/fsl_8xxx_misc.c +2 -2
index bc7e5c5764f..3082acaaa04 100644
@@ -27,8 +27,8 @@ int board_flash_wp_on(void)
  */
 uint get_board_derivative(void)
 {
-#if defined(CONFIG_MPC85xx)
-       volatile ccsr_gur_t *gur = (void *)CFG_SYS_MPC85xx_GUTS_ADDR;
+#if defined(CONFIG_MPC85XX)
+       volatile ccsr_gur_t *gur = (void *)CFG_SYS_MPC85XX_GUTS_ADDR;
 #elif defined(CONFIG_MPC86xx)
        volatile immap_t *immap = (immap_t *)CFG_SYS_CCSRBAR;
        volatile ccsr_gur_t *gur = &immap->im_gur;
boot/Kconfig +2 -2
index fdcfbae7b2c..4bb1af23ac5 100644
@@ -673,12 +673,12 @@ config SYS_MONITOR_BASE
 	  when booting from flash.
 
 config SPL_SYS_MONITOR_BASE
-	depends on MPC85xx && SPL && HAVE_SYS_MONITOR_BASE
+	depends on MPC85XX && SPL && HAVE_SYS_MONITOR_BASE
 	hex "Physical start address of SPL monitor code"
 	default SPL_TEXT_BASE
 
 config TPL_SYS_MONITOR_BASE
-	depends on MPC85xx && TPL && HAVE_SYS_MONITOR_BASE
+	depends on MPC85XX && TPL && HAVE_SYS_MONITOR_BASE
 	hex "Physical start address of TPL monitor code"
 
 config DYNAMIC_SYS_CLK_FREQ
common/Kconfig +1 -1
index e3a5e1be1e9..99ff67cac6a 100644
@@ -709,7 +709,7 @@ config LAST_STAGE_INIT
 
 config MISC_INIT_R
 	bool "Execute Misc Init"
-	default y if ARCH_KEYSTONE || ARCH_SUNXI || MPC85xx
+	default y if ARCH_KEYSTONE || ARCH_SUNXI || MPC85XX
 	default y if ARCH_OMAP2PLUS && !AM33XX
 	help
 	  Enabling this option calls 'misc_init_r' function
common/board_r.c +1 -1
index 3618acad437..e4a5c88cdd4 100644
@@ -130,7 +130,7 @@ static int initr_reloc_global_data(void)
 #elif !defined(CONFIG_SANDBOX) && !defined(CONFIG_NIOS2)
 	monitor_flash_len = (ulong)&__init_end - gd->relocaddr;
 #endif
-#if defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx)
+#if defined(CONFIG_MPC85XX) || defined(CONFIG_MPC86xx)
 	/*
 	 * The gd->cpu pointer is set to an address in flash before relocation.
 	 * We need to update it to point to the same CPU entry in RAM.
common/memsize.c +1 -1
index 66d5be6a1ff..e8acc2be7a6 100644
@@ -96,7 +96,7 @@ phys_size_t __weak get_effective_memsize(void)
 {
 	phys_size_t ram_size = gd->ram_size;
 
-#ifdef CONFIG_MPC85xx
+#ifdef CONFIG_MPC85XX
 	/*
 	 * Check for overflow and limit ram size to some representable value.
 	 * It is required that ram_base + ram_size must be representable by
configs/MPC8548CDS_36BIT_defconfig +1 -1
index 05034ce2e46..d93039d461a 100644
@@ -6,7 +6,7 @@ CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_SECT_SIZE=0x20000
 CONFIG_DEFAULT_DEVICE_TREE="mpc8548cds_36b"
 CONFIG_ENV_ADDR=0xFFF60000
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_SYS_SRIO=y
 CONFIG_SRIO1=y
configs/MPC8548CDS_defconfig +1 -1
index 965c37e45ec..c34e3a26aba 100644
@@ -6,7 +6,7 @@ CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_SECT_SIZE=0x20000
 CONFIG_DEFAULT_DEVICE_TREE="mpc8548cds"
 CONFIG_ENV_ADDR=0xFFF60000
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_SYS_SRIO=y
 CONFIG_SRIO1=y
configs/MPC8548CDS_legacy_defconfig +1 -1
index 004175c8048..447624a464d 100644
@@ -6,7 +6,7 @@ CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_SECT_SIZE=0x20000
 CONFIG_DEFAULT_DEVICE_TREE="mpc8548cds"
 CONFIG_ENV_ADDR=0xFFF60000
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_SYS_SRIO=y
 CONFIG_SRIO1=y
configs/P1010RDB-PA_36BIT_NAND_defconfig +1 -1
index e0ffb164b5a..23a3650331e 100644
@@ -13,7 +13,7 @@ CONFIG_TPL_SERIAL=y
 CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_TPL_MAX_SIZE=0x20000
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_TARGET_P1010RDB_PA=y
 CONFIG_L2_CACHE=y
configs/P1010RDB-PA_36BIT_NOR_defconfig +1 -1
index 71e17d90ec1..b52dd99c1e8 100644
@@ -5,7 +5,7 @@ CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_SECT_SIZE=0x20000
 CONFIG_DEFAULT_DEVICE_TREE="p1010rdb-pa_36b"
 CONFIG_ENV_ADDR=0xEFF20000
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_TARGET_P1010RDB_PA=y
 CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
configs/P1010RDB-PA_36BIT_SDCARD_defconfig +1 -1
index 0df2a559594..5152d3d8008 100644
@@ -11,7 +11,7 @@ CONFIG_SPL_MMC=y
 CONFIG_SPL_SERIAL=y
 CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_TARGET_P1010RDB_PA=y
 CONFIG_L2_CACHE=y
configs/P1010RDB-PA_36BIT_SPIFLASH_defconfig +1 -1
index 086bfcb10e5..d2e3dc974b9 100644
@@ -13,7 +13,7 @@ CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI=y
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_TARGET_P1010RDB_PA=y
 CONFIG_L2_CACHE=y
configs/P1010RDB-PA_NAND_defconfig +1 -1
index aa8aeda7580..1258d53aaa6 100644
@@ -13,7 +13,7 @@ CONFIG_TPL_SERIAL=y
 CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_TPL_MAX_SIZE=0x20000
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_TARGET_P1010RDB_PA=y
 CONFIG_L2_CACHE=y
configs/P1010RDB-PA_NOR_defconfig +1 -1
index 5807e8bdaa4..55f3b3e0232 100644
@@ -5,7 +5,7 @@ CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_SECT_SIZE=0x20000
 CONFIG_DEFAULT_DEVICE_TREE="p1010rdb-pa"
 CONFIG_ENV_ADDR=0xEFF20000
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_TARGET_P1010RDB_PA=y
 CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
configs/P1010RDB-PA_SDCARD_defconfig +1 -1
index 30ff3ad322b..41da013efd6 100644
@@ -11,7 +11,7 @@ CONFIG_SPL_MMC=y
 CONFIG_SPL_SERIAL=y
 CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_TARGET_P1010RDB_PA=y
 CONFIG_L2_CACHE=y
configs/P1010RDB-PA_SPIFLASH_defconfig +1 -1
index d7d8219e947..e33e7d5e711 100644
@@ -13,7 +13,7 @@ CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI=y
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_TARGET_P1010RDB_PA=y
 CONFIG_L2_CACHE=y
configs/P1010RDB-PB_36BIT_NAND_defconfig +1 -1
index 6e053870834..1a81df7b3b2 100644
@@ -13,7 +13,7 @@ CONFIG_TPL_SERIAL=y
 CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_TPL_MAX_SIZE=0x20000
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_TARGET_P1010RDB_PB=y
 CONFIG_L2_CACHE=y
configs/P1010RDB-PB_36BIT_NOR_defconfig +1 -1
index 7328c142f99..611052102f2 100644
@@ -5,7 +5,7 @@ CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_SECT_SIZE=0x20000
 CONFIG_DEFAULT_DEVICE_TREE="p1010rdb-pb_36b"
 CONFIG_ENV_ADDR=0xEFF20000
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_TARGET_P1010RDB_PB=y
 CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
configs/P1010RDB-PB_36BIT_SDCARD_defconfig +1 -1
index 216e14cdacc..7f6b79da634 100644
@@ -11,7 +11,7 @@ CONFIG_SPL_MMC=y
 CONFIG_SPL_SERIAL=y
 CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_TARGET_P1010RDB_PB=y
 CONFIG_L2_CACHE=y
configs/P1010RDB-PB_36BIT_SPIFLASH_defconfig +1 -1
index 35943d10d77..40615cf9f88 100644
@@ -13,7 +13,7 @@ CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI=y
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_TARGET_P1010RDB_PB=y
 CONFIG_L2_CACHE=y
configs/P1010RDB-PB_NAND_defconfig +1 -1
index c2c851ca57a..885db3d46a1 100644
@@ -13,7 +13,7 @@ CONFIG_TPL_SERIAL=y
 CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_TPL_MAX_SIZE=0x20000
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_TARGET_P1010RDB_PB=y
 CONFIG_L2_CACHE=y
configs/P1010RDB-PB_NOR_defconfig +1 -1
index 0f109c514c1..12d92ef8807 100644
@@ -5,7 +5,7 @@ CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_SECT_SIZE=0x20000
 CONFIG_DEFAULT_DEVICE_TREE="p1010rdb-pb"
 CONFIG_ENV_ADDR=0xEFF20000
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_TARGET_P1010RDB_PB=y
 CONFIG_MPC85XX_HAVE_RESET_VECTOR=y
configs/P1010RDB-PB_SDCARD_defconfig +1 -1
index b8e0a92a935..e5d2caa0de0 100644
@@ -11,7 +11,7 @@ CONFIG_SPL_MMC=y
 CONFIG_SPL_SERIAL=y
 CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_TARGET_P1010RDB_PB=y
 CONFIG_L2_CACHE=y
configs/P1010RDB-PB_SPIFLASH_defconfig +1 -1
index f403e67b8fe..fc8ae9a3d6e 100644
@@ -13,7 +13,7 @@ CONFIG_SPL_DRIVERS_MISC=y
 CONFIG_SPL=y
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI=y
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_TARGET_P1010RDB_PB=y
 CONFIG_L2_CACHE=y
configs/P1020RDB-PC_36BIT_NAND_defconfig +1 -1
index 02f0f3cde99..c7a4ac8e519 100644
@@ -12,7 +12,7 @@ CONFIG_TPL_LIBGENERIC_SUPPORT=y
 CONFIG_TPL_SERIAL=y
 CONFIG_SPL=y
 CONFIG_TPL_MAX_SIZE=0x20000
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P1020RDB_PC=y
configs/P1020RDB-PC_36BIT_SDCARD_defconfig +1 -1
index 84cc6bd38e5..7ded32bcae1 100644
@@ -10,7 +10,7 @@ CONFIG_SPL_TEXT_BASE=0xf8f80000
 CONFIG_SPL_MMC=y
 CONFIG_SPL_SERIAL=y
 CONFIG_SPL=y
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P1020RDB_PC=y
configs/P1020RDB-PC_36BIT_SPIFLASH_defconfig +1 -1
index 427b67c6722..76e2e54853a 100644
@@ -12,7 +12,7 @@ CONFIG_SPL_SERIAL=y
 CONFIG_SPL=y
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI=y
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P1020RDB_PC=y
configs/P1020RDB-PC_36BIT_defconfig +1 -1
index e2373d04d74..fa13c807f88 100644
@@ -5,7 +5,7 @@ CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_SECT_SIZE=0x20000
 CONFIG_DEFAULT_DEVICE_TREE="p1020rdb-pc_36b"
 CONFIG_ENV_ADDR=0xEFF20000
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P1020RDB_PC=y
configs/P1020RDB-PC_NAND_defconfig +1 -1
index e1e6af7fae0..57862fcea99 100644
@@ -12,7 +12,7 @@ CONFIG_TPL_LIBGENERIC_SUPPORT=y
 CONFIG_TPL_SERIAL=y
 CONFIG_SPL=y
 CONFIG_TPL_MAX_SIZE=0x20000
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P1020RDB_PC=y
configs/P1020RDB-PC_SDCARD_defconfig +1 -1
index d9477f1c339..bba95ed33df 100644
@@ -10,7 +10,7 @@ CONFIG_SPL_TEXT_BASE=0xf8f80000
 CONFIG_SPL_MMC=y
 CONFIG_SPL_SERIAL=y
 CONFIG_SPL=y
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P1020RDB_PC=y
configs/P1020RDB-PC_SPIFLASH_defconfig +1 -1
index f27c9c3835d..419dd6f1b40 100644
@@ -12,7 +12,7 @@ CONFIG_SPL_SERIAL=y
 CONFIG_SPL=y
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI=y
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P1020RDB_PC=y
configs/P1020RDB-PC_defconfig +1 -1
index ca828eac03d..9ca1294c6ff 100644
@@ -5,7 +5,7 @@ CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_SECT_SIZE=0x20000
 CONFIG_DEFAULT_DEVICE_TREE="p1020rdb-pc"
 CONFIG_ENV_ADDR=0xEFF20000
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P1020RDB_PC=y
configs/P1020RDB-PD_NAND_defconfig +1 -1
index 1d364fef2aa..a6c5f96f13c 100644
@@ -12,7 +12,7 @@ CONFIG_TPL_LIBGENERIC_SUPPORT=y
 CONFIG_TPL_SERIAL=y
 CONFIG_SPL=y
 CONFIG_TPL_MAX_SIZE=0x20000
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P1020RDB_PD=y
configs/P1020RDB-PD_SDCARD_defconfig +1 -1
index 4dc2457c1c7..641793143d1 100644
@@ -10,7 +10,7 @@ CONFIG_SPL_TEXT_BASE=0xf8f80000
 CONFIG_SPL_MMC=y
 CONFIG_SPL_SERIAL=y
 CONFIG_SPL=y
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P1020RDB_PD=y
configs/P1020RDB-PD_SPIFLASH_defconfig +1 -1
index bf6d2235b36..f023880f91c 100644
@@ -12,7 +12,7 @@ CONFIG_SPL_SERIAL=y
 CONFIG_SPL=y
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI=y
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P1020RDB_PD=y
configs/P1020RDB-PD_defconfig +1 -1
index 5377aba4ef3..ec025fc332d 100644
@@ -5,7 +5,7 @@ CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_SECT_SIZE=0x20000
 CONFIG_DEFAULT_DEVICE_TREE="p1020rdb-pd"
 CONFIG_ENV_ADDR=0xEFF20000
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P1020RDB_PD=y
configs/P2020RDB-PC_36BIT_NAND_defconfig +1 -1
index 7646e9054b8..491f63e7bff 100644
@@ -12,7 +12,7 @@ CONFIG_TPL_LIBGENERIC_SUPPORT=y
 CONFIG_TPL_SERIAL=y
 CONFIG_SPL=y
 CONFIG_TPL_MAX_SIZE=0x20000
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P2020RDB=y
configs/P2020RDB-PC_36BIT_SDCARD_defconfig +1 -1
index 81512593da5..464c35a7d5e 100644
@@ -10,7 +10,7 @@ CONFIG_SPL_TEXT_BASE=0xf8f80000
 CONFIG_SPL_MMC=y
 CONFIG_SPL_SERIAL=y
 CONFIG_SPL=y
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P2020RDB=y
configs/P2020RDB-PC_36BIT_SPIFLASH_defconfig +1 -1
index 3f106c60139..3b9e67e12ef 100644
@@ -12,7 +12,7 @@ CONFIG_SPL_SERIAL=y
 CONFIG_SPL=y
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI=y
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P2020RDB=y
configs/P2020RDB-PC_36BIT_defconfig +1 -1
index d266ce82a59..ddb20ca5181 100644
@@ -5,7 +5,7 @@ CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_SECT_SIZE=0x20000
 CONFIG_DEFAULT_DEVICE_TREE="p2020rdb-pc_36b"
 CONFIG_ENV_ADDR=0xEFF20000
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P2020RDB=y
configs/P2020RDB-PC_NAND_defconfig +1 -1
index 11d59d14fe4..44056761a65 100644
@@ -12,7 +12,7 @@ CONFIG_TPL_LIBGENERIC_SUPPORT=y
 CONFIG_TPL_SERIAL=y
 CONFIG_SPL=y
 CONFIG_TPL_MAX_SIZE=0x20000
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P2020RDB=y
configs/P2020RDB-PC_SDCARD_defconfig +1 -1
index 9416d93c533..d85b38e3d67 100644
@@ -10,7 +10,7 @@ CONFIG_SPL_TEXT_BASE=0xf8f80000
 CONFIG_SPL_MMC=y
 CONFIG_SPL_SERIAL=y
 CONFIG_SPL=y
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P2020RDB=y
configs/P2020RDB-PC_SPIFLASH_defconfig +1 -1
index 74d26f1f1a9..c5a226d06e5 100644
@@ -12,7 +12,7 @@ CONFIG_SPL_SERIAL=y
 CONFIG_SPL=y
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI=y
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P2020RDB=y
configs/P2020RDB-PC_defconfig +1 -1
index 4d5569c5549..d7f4449c556 100644
@@ -5,7 +5,7 @@ CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_SECT_SIZE=0x20000
 CONFIG_DEFAULT_DEVICE_TREE="p2020rdb-pc"
 CONFIG_ENV_ADDR=0xEFF20000
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 # CONFIG_CMD_ERRATA is not set
 CONFIG_TARGET_P2020RDB=y
configs/P2041RDB_NAND_defconfig +1 -1
index bf3365a4800..39e909bf96f 100644
@@ -4,7 +4,7 @@ CONFIG_SYS_MALLOC_LEN=0x100000
 CONFIG_ENV_SIZE=0x20000
 CONFIG_ENV_OFFSET=0xE0000
 CONFIG_DEFAULT_DEVICE_TREE="p2041rdb"
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_SYS_SRIO=y
 CONFIG_SRIO1=y
configs/P2041RDB_SDCARD_defconfig +1 -1
index 69f30d427f7..db53a06b965 100644
@@ -4,7 +4,7 @@ CONFIG_SYS_MALLOC_LEN=0x100000
 CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_OFFSET=0xCF400
 CONFIG_DEFAULT_DEVICE_TREE="p2041rdb"
-CONFIG_MPC85xx=y
+CONFIG_MPC85XX=y
 CONFIG_SYS_INIT_RAM_LOCK=y
 CONFIG_SYS_SRIO=y
 CONFIG_SRIO1=y
configs/P2041RDB_SPIFLASH_defconfig +1 -1
index c2dc0f21eeb..ec0268dd745 100644
@@ -5,7 +5,7 @@ CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_OFFSET=0x100000
 CONFIG_ENV_SECT_SIZE=0x10000
 CONFIG_DEFAULT_DEVICE_TREE="p2041rdb"
-CONFIG_MPC85xx=y
[… more lines in the raw message]

Lines of this file are not shown. View the raw message.

configs/P2041RDB_defconfig +1 -1
index 306432e41b1..02cfe59feed 100644

Lines of this file are not shown. View the raw message.

configs/T1024RDB_NAND_defconfig +1 -1
index bedea018ddc..f8843df20c2 100644

Lines of this file are not shown. View the raw message.

configs/T1024RDB_SDCARD_defconfig +1 -1
index f06bb02a27c..4674d2bd669 100644

Lines of this file are not shown. View the raw message.

configs/T1024RDB_SPIFLASH_defconfig +1 -1
index 4f91dce1094..24e6a6cb9e8 100644

Lines of this file are not shown. View the raw message.

configs/T1024RDB_defconfig +1 -1
index c9d771e44bf..acee4e2aef8 100644

Lines of this file are not shown. View the raw message.

configs/T1042D4RDB_NAND_defconfig +1 -1
index a55797eb9e4..700614e3a20 100644

Lines of this file are not shown. View the raw message.

configs/T1042D4RDB_SDCARD_defconfig +1 -1
index 2f5a1a329d0..288f41b0020 100644

Lines of this file are not shown. View the raw message.

configs/T1042D4RDB_SPIFLASH_defconfig +1 -1
index afce81b1076..3c042483e59 100644

Lines of this file are not shown. View the raw message.

configs/T1042D4RDB_defconfig +1 -1
index 29b240fc147..ee87a349fe1 100644

Lines of this file are not shown. View the raw message.

configs/T2080QDS_NAND_defconfig +1 -1
index ca960d368bd..a579998ef2a 100644

Lines of this file are not shown. View the raw message.

configs/T2080QDS_SDCARD_defconfig +1 -1
index eba73ee989f..e214fe55215 100644

Lines of this file are not shown. View the raw message.

configs/T2080QDS_SECURE_BOOT_defconfig +1 -1
index ae98a3586b7..dc4686c0818 100644

Lines of this file are not shown. View the raw message.

configs/T2080QDS_SPIFLASH_defconfig +1 -1
index 76a1e583007..1933f2a8ed4 100644

Lines of this file are not shown. View the raw message.

configs/T2080QDS_SRIO_PCIE_BOOT_defconfig +1 -1
index fe440a469f9..475cd65ca66 100644

Lines of this file are not shown. View the raw message.

configs/T2080QDS_defconfig +1 -1
index f4f90d5ab22..7c7f910eb2b 100644

Lines of this file are not shown. View the raw message.

configs/T2080RDB_NAND_defconfig +1 -1
index 18baf568121..d8475fd4051 100644

Lines of this file are not shown. View the raw message.

configs/T2080RDB_SDCARD_defconfig +1 -1
index df98e33f971..e46e86a2389 100644

Lines of this file are not shown. View the raw message.

configs/T2080RDB_SPIFLASH_defconfig +1 -1
index efa48af3bf8..e8a978656a6 100644

Lines of this file are not shown. View the raw message.

configs/T2080RDB_defconfig +1 -1
index 8e07b2a09c1..3051bbc3144 100644

Lines of this file are not shown. View the raw message.

configs/T2080RDB_revD_NAND_defconfig +1 -1
index 69bebfacb07..e228fcbda50 100644

Lines of this file are not shown. View the raw message.

configs/T2080RDB_revD_SDCARD_defconfig +1 -1
index 179fc63705a..4e56142e2ef 100644

Lines of this file are not shown. View the raw message.

configs/T2080RDB_revD_SPIFLASH_defconfig +1 -1
index 1d8a6b5f41c..99451afb592 100644

Lines of this file are not shown. View the raw message.

configs/T2080RDB_revD_defconfig +1 -1
index a1332a99b43..a0ee406f769 100644

Lines of this file are not shown. View the raw message.

configs/T4240RDB_SDCARD_defconfig +1 -1
index d906035a2bf..f8122b04276 100644

Lines of this file are not shown. View the raw message.

configs/T4240RDB_defconfig +1 -1
index d2b270dd44f..62150389ba1 100644

Lines of this file are not shown. View the raw message.

configs/kmcent2_defconfig +1 -1
index d9aae79bc2b..aa18a419c8d 100644

Lines of this file are not shown. View the raw message.

configs/qemu-ppce500_defconfig +1 -1
index a19d555f7d5..b853a6dbd2b 100644

Lines of this file are not shown. View the raw message.

configs/socrates_defconfig +1 -1
index 46be662037e..ba80ee1b16e 100644

Lines of this file are not shown. View the raw message.

drivers/ata/fsl_sata.c +1 -1
index 972101b29ce..9aad2c6e2ad 100644

Lines of this file are not shown. View the raw message.

drivers/ddr/fsl/Kconfig +2 -2
index 5c928689a30..170f758ade6 100644

Lines of this file are not shown. View the raw message.

drivers/ddr/fsl/ctrl_regs.c +1 -1
index 8f8c2c864c3..e311d936383 100644

Lines of this file are not shown. View the raw message.

drivers/ddr/fsl/mpc85xx_ddr_gen2.c +2 -2
index b830e7cbd14..cadaaad01eb 100644

Lines of this file are not shown. View the raw message.

drivers/ddr/fsl/mpc85xx_ddr_gen3.c +1 -1
index 1c4a1cae4df..ff57423f57a 100644

Lines of this file are not shown. View the raw message.

drivers/dma/fsl_dma.c +3 -3
index 4f264c83f0c..938ed4429f7 100644

Lines of this file are not shown. View the raw message.

drivers/i2c/Kconfig +1 -1
index 76e19918aad..70ed69b22e1 100644

Lines of this file are not shown. View the raw message.

drivers/net/fm/b4860.c +4 -4
index 1c5543e3c87..0b7d208d704 100644

Lines of this file are not shown. View the raw message.

drivers/net/fm/p1023.c +9 -9
index 9013b276bc9..a18e4e9b1f7 100644

Lines of this file are not shown. View the raw message.

drivers/net/fm/p4080.c +4 -4
index 7ad993221f7..3e4c2234357 100644

Lines of this file are not shown. View the raw message.

drivers/net/fm/p5020.c +4 -4
index f931491b112..86f8a55179b 100644

Lines of this file are not shown. View the raw message.

drivers/net/fm/p5040.c +4 -4
index ef9f4bcce4d..ca3e260082d 100644

Lines of this file are not shown. View the raw message.

drivers/net/fm/t1024.c +3 -3
index 70ab4610cdf..6e20c5d923d 100644

Lines of this file are not shown. View the raw message.

drivers/net/fm/t1040.c +1 -1
index 5c260bed7fd..1541d8a6a33 100644

Lines of this file are not shown. View the raw message.

drivers/net/fm/t2080.c +3 -3
index 6174934d2b8..d1fec51baed 100644

Lines of this file are not shown. View the raw message.

drivers/net/fm/t4240.c +4 -4
index f0a02bfe457..3d129d88362 100644

Lines of this file are not shown. View the raw message.

drivers/pci/Kconfig +2 -2
index a3b662fb13d..2ef3c63cc4f 100644

Lines of this file are not shown. View the raw message.

drivers/qe/qe.c +7 -7
index 2825dc6f9aa..2ea6b56516e 100644

Lines of this file are not shown. View the raw message.

drivers/spi/fsl_espi.c +1 -1
index b1d964d79d0..5ce9d73570b 100644

Lines of this file are not shown. View the raw message.

drivers/usb/host/Kconfig +1 -1
index d7209637479..af6f70f5a19 100644

Lines of this file are not shown. View the raw message.

drivers/watchdog/Kconfig +2 -2
index b5ac8f7f50d..9218de06e22 100644

Lines of this file are not shown. View the raw message.

include/configs/P1010RDB.h +1 -1
index 9efae58ce90..eec51744696 100644

Lines of this file are not shown. View the raw message.

include/configs/P2041RDB.h +1 -1
index 28f53ae78a1..4f74a1695e0 100644

Lines of this file are not shown. View the raw message.

include/configs/T102xRDB.h +1 -1
index 7ee46abffdb..22b1e750825 100644

Lines of this file are not shown. View the raw message.

include/configs/T104xRDB.h +1 -1
index f196bd76e6e..e0d0436c197 100644

Lines of this file are not shown. View the raw message.

include/configs/T208xQDS.h +1 -1
index 2023d7497f6..43fcf6ff13e 100644

Lines of this file are not shown. View the raw message.

include/configs/T208xRDB.h +1 -1
index f213d2de770..21f06e97a44 100644

Lines of this file are not shown. View the raw message.

include/configs/T4240RDB.h +1 -1
index 506f1b7e268..e6daf0ef00c 100644

Lines of this file are not shown. View the raw message.

include/configs/p1_p2_rdb_pc.h +1 -1
index f5bd0913449..7fd68c70fc6 100644

Lines of this file are not shown. View the raw message.

include/configs/socrates.h +1 -1
index 2b35be83ec6..5e7317d30a3 100644

Lines of this file are not shown. View the raw message.

include/e500.h +1 -1
index 9f68a834c2f..6343393e5f5 100644

Lines of this file are not shown. View the raw message.

include/fsl_ddr_sdram.h +1 -1
index c43f780e4cd..042faa8b2c3 100644

Lines of this file are not shown. View the raw message.

include/fsl_fman.h +1 -1
index 74acdb25691..f1857a7ef96 100644

Lines of this file are not shown. View the raw message.

include/ioports.h +1 -1
index 1cd3ceb37a5..f253e002b0e 100644

Lines of this file are not shown. View the raw message.

include/mpc85xx.h +3 -3
index 636734dd3c6..e26e131114c 100644

Lines of this file are not shown. View the raw message.

include/pci.h +1 -1
index c55d6107a49..6e58cd9a10b 100644

Lines of this file are not shown. View the raw message.

include/post.h +2 -2
index 41120695064..6c036e4fffc 100644

Lines of this file are not shown. View the raw message.

include/serial.h +1 -1
index ceab714f541..22ac1043d36 100644

Lines of this file are not shown. View the raw message.

include/watchdog.h +1 -1
index ac5f11e376f..ddc81cd6c76 100644

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.39.1.456.gfc5497dd1b-goog

Part of the diff is not shown here. View the raw message.

#60 lore raw

PATCH 43/88 powerpc: Rename MPC86xx

In reply to Simon Glass

CONFIG options must not use lower-case letter. Convert this to upper case.

---

 api/api_platform-powerpc.c             | 2 +-
 arch/powerpc/cpu/Makefile              | 2 +-
 arch/powerpc/cpu/mpc8xxx/Makefile      | 2 +-
 arch/powerpc/cpu/mpc8xxx/cpu.c         | 2 +-
 arch/powerpc/cpu/mpc8xxx/fdt.c         | 4 ++--
 arch/powerpc/cpu/mpc8xxx/srio.c        | 8 ++++----
 arch/powerpc/include/asm/config.h      | 2 +-
 arch/powerpc/include/asm/fsl_pci.h     | 2 +-
 arch/powerpc/include/asm/global_data.h | 6 +++---
 arch/powerpc/include/asm/ppc.h         | 6 +++---
 arch/powerpc/include/asm/processor.h   | 8 ++++----
 arch/powerpc/lib/bdinfo.c              | 2 +-
 arch/powerpc/lib/bootm.c               | 2 +-
 arch/powerpc/lib/ppccache.S            | 4 ++--
 arch/powerpc/lib/stack.c               | 2 +-
 board/xes/common/Makefile              | 4 ++--
 board/xes/common/fsl_8xxx_clk.c        | 2 +-
 board/xes/common/fsl_8xxx_misc.c       | 2 +-
 common/board_r.c                       | 2 +-
 drivers/ddr/fsl/Kconfig                | 4 ++--
 drivers/dma/fsl_dma.c                  | 6 +++---
 drivers/pci/Kconfig                    | 2 +-
 env/Kconfig                            | 2 +-
 include/asm-generic/u-boot.h           | 2 +-
 include/mpc86xx.h                      | 8 ++++----
 include/serial.h                       | 2 +-
 26 files changed, 45 insertions(+), 45 deletions(-)
api/api_platform-powerpc.c +1 -1
index 8503ba274d6..905c7d76bfd 100644
@@ -29,7 +29,7 @@ int platform_sys_info(struct sys_info *si)
 	si->clk_bus = gd->bus_clk;
 	si->clk_cpu = gd->cpu_clk;
 
-#if defined(CONFIG_MPC8xx) || defined(CONFIG_E500) || defined(CONFIG_MPC86xx)
+#if defined(CONFIG_MPC8xx) || defined(CONFIG_E500) || defined(CONFIG_MPC86XX)
 #define bi_bar	bi_immr_base
 #elif defined(CONFIG_MPC83XX)
 #define bi_bar	bi_immrbar
arch/powerpc/cpu/Makefile +1 -1
index 914f95ca674..69ca4a1a77a 100644
@@ -2,4 +2,4 @@
 
 obj-$(CONFIG_MPC83XX) += mpc8xxx/
 obj-$(CONFIG_MPC85XX) += mpc8xxx/
-obj-$(CONFIG_MPC86xx) += mpc8xxx/
+obj-$(CONFIG_MPC86XX) += mpc8xxx/
arch/powerpc/cpu/mpc8xxx/Makefile +1 -1
index abcde571ac2..84cb7dd4d92 100644
@@ -18,7 +18,7 @@ obj-$(CONFIG_FSL_LAW) += law.o
 
 else
 obj-$(CONFIG_MPC85XX) += cpu.o
-obj-$(CONFIG_MPC86xx) += cpu.o
+obj-$(CONFIG_MPC86XX) += cpu.o
 
 obj-$(CONFIG_OF_LIBFDT) += fdt.o
 obj-$(CONFIG_FSL_LBC) += fsl_lbc.o
arch/powerpc/cpu/mpc8xxx/cpu.c +1 -1
index d4a91622d34..4e4f5aa0c5e 100644
@@ -94,7 +94,7 @@ static struct cpu_type cpu_type_list[] = {
 	CPU_TYPE_ENTRY(C291, C291, 1),
 	CPU_TYPE_ENTRY(C292, C292, 1),
 	CPU_TYPE_ENTRY(C293, C293, 1),
-#elif defined(CONFIG_MPC86xx)
+#elif defined(CONFIG_MPC86XX)
 	CPU_TYPE_ENTRY(8610, 8610, 1),
 	CPU_TYPE_ENTRY(8641, 8641, 2),
 	CPU_TYPE_ENTRY(8641D, 8641D, 2),
arch/powerpc/cpu/mpc8xxx/fdt.c +2 -2
index 6055f986b8b..3130bdd9acc 100644
@@ -17,7 +17,7 @@
 #include <phy.h>
 #include <hwconfig.h>
 
-#if defined(CONFIG_MP) && (defined(CONFIG_MPC85XX) || defined(CONFIG_MPC86xx))
+#if defined(CONFIG_MP) && (defined(CONFIG_MPC85XX) || defined(CONFIG_MPC86XX))
 static int ft_del_cpuhandle(void *blob, int cpuhandle)
 {
 	int off, ret = -FDT_ERR_NOTFOUND;
@@ -69,7 +69,7 @@ void ft_fixup_num_cores(void *blob) {
 	debug ("deleted %d extra core entry entries from device tree\n",
 								del_cores);
 }
-#endif /* defined(CONFIG_MPC85XX) || defined(CONFIG_MPC86xx) */
+#endif /* defined(CONFIG_MPC85XX) || defined(CONFIG_MPC86XX) */
 
 int fdt_fixup_phy_connection(void *blob, int offset, phy_interface_t phyc)
 {
arch/powerpc/cpu/mpc8xxx/srio.c +4 -4
index 89ee4ea1ac2..be6e46dcbcf 100644
@@ -39,10 +39,10 @@
 	#define _DEVDISR_SRIO2 MPC85XX_DEVDISR_SRIO
 	#define _DEVDISR_RMU   MPC85XX_DEVDISR_RMSG
 	#define CFG_SYS_MPC8xxx_GUTS_ADDR CFG_SYS_MPC85XX_GUTS_ADDR
-#elif defined(CONFIG_MPC86xx)
-	#define _DEVDISR_SRIO1 MPC86xx_DEVDISR_SRIO
-	#define _DEVDISR_SRIO2 MPC86xx_DEVDISR_SRIO
-	#define _DEVDISR_RMU   MPC86xx_DEVDISR_RMSG
+#elif defined(CONFIG_MPC86XX)
+	#define _DEVDISR_SRIO1 MPC86XX_DEVDISR_SRIO
+	#define _DEVDISR_SRIO2 MPC86XX_DEVDISR_SRIO
+	#define _DEVDISR_RMU   MPC86XX_DEVDISR_RMSG
 	#define CFG_SYS_MPC8xxx_GUTS_ADDR \
 		(&((immap_t *)CONFIG_SYS_IMMR)->im_gur)
 #else
arch/powerpc/include/asm/config.h +1 -1
index 3d411eb8661..78563716df2 100644
@@ -16,7 +16,7 @@
 
 #ifndef CFG_MAX_MEM_MAPPED
 #if	defined(CONFIG_E500)		|| \
-	defined(CONFIG_MPC86xx)		|| \
+	defined(CONFIG_MPC86XX)		|| \
 	defined(CONFIG_E300)
 #define CFG_MAX_MEM_MAPPED	((phys_size_t)2 << 30)
 #else
arch/powerpc/include/asm/fsl_pci.h +1 -1
index c2f12d76521..c45ac92e509 100644
@@ -258,7 +258,7 @@ int fsl_pcie_init_board(int busno);
 	FT_FSL_PCIE1_SETUP; \
 	FT_FSL_PCIE2_SETUP; \
 	FT_FSL_PCIE3_SETUP;
-#elif defined(CONFIG_MPC86xx)
+#elif defined(CONFIG_MPC86XX)
 #define FSL_PCI_COMPAT	"fsl,mpc8610-pci"
 #define FSL_PCIE_COMPAT	"fsl,mpc8641-pcie"
 #define FT_FSL_PCI_SETUP \
arch/powerpc/include/asm/global_data.h +3 -3
index 404980c1f47..ec1aa489f8d 100644
@@ -53,12 +53,12 @@ struct arch_global_data {
 # endif /* CONFIG_ARCH_MPC8360 */
 #endif
 #endif
-#if defined(CONFIG_MPC85XX) || defined(CONFIG_MPC86xx)
+#if defined(CONFIG_MPC85XX) || defined(CONFIG_MPC86XX)
 	u32 lbc_clk;
 	void *cpu;
-#endif /* CONFIG_MPC85XX || CONFIG_MPC86xx */
+#endif /* CONFIG_MPC85XX || CONFIG_MPC86XX */
 #if defined(CONFIG_MPC83XX) || defined(CONFIG_MPC85XX) || \
-		defined(CONFIG_MPC86xx)
+		defined(CONFIG_MPC86XX)
 	u32 i2c1_clk;
 	u32 i2c2_clk;
 #endif
arch/powerpc/include/asm/ppc.h +3 -3
index 708cd3920cc..b41ab6441c8 100644
@@ -51,7 +51,7 @@ static inline uint get_svr(void)
 }
 
 #if defined(CONFIG_MPC85XX)	|| \
-	defined(CONFIG_MPC86xx)	|| \
+	defined(CONFIG_MPC86XX)	|| \
 	defined(CONFIG_MPC83XX)
 unsigned char	in8(unsigned int);
 void		out8(unsigned int, unsigned char);
@@ -84,9 +84,9 @@ void get_sys_info(sys_info_t *);
 void ft_fixup_cpu(void *, u64);
 void ft_fixup_num_cores(void *);
 #endif
-#if defined(CONFIG_MPC86xx)
+#if defined(CONFIG_MPC86XX)
 ulong get_bus_freq(ulong);
-typedef MPC86xx_SYS_INFO sys_info_t;
+typedef MPC86XX_SYS_INFO sys_info_t;
 void   get_sys_info(sys_info_t *);
 static inline ulong get_ddr_freq(ulong dummy)
 {
arch/powerpc/include/asm/processor.h +4 -4
index 2bb2af2cb64..668ba618252 100644
@@ -569,7 +569,7 @@
 #define MCSR_IMPE	0x00800000	/* Imprecise Machine Check Exception */
 #define ESR_ST		0x00800000	/* Store Operation */
 
-#if defined(CONFIG_MPC86xx)
+#if defined(CONFIG_MPC86XX)
 #define SPRN_MSSCR0	0x3f6
 #define SPRN_MSSSR0	0x3f7
 #endif
@@ -646,10 +646,10 @@
 #define L2CR	SPRN_L2CR	/* PPC 750 L2 control register */
 #define LR	SPRN_LR
 #define MBAR	SPRN_MBAR	/* System memory base address */
-#if defined(CONFIG_MPC86xx)
+#if defined(CONFIG_MPC86XX)
 #define MSSCR0	SPRN_MSSCR0
 #endif
-#if defined(CONFIG_E500) || defined(CONFIG_MPC86xx)
+#if defined(CONFIG_E500) || defined(CONFIG_MPC86XX)
 #define PIR	SPRN_PIR
 #endif
 #define SVR	SPRN_SVR	/* System-On-Chip Version Register */
@@ -1156,7 +1156,7 @@ int fixup_cpu(void);
 int fsl_qoriq_core_to_cluster(unsigned int core);
 int fsl_qoriq_dsp_core_to_cluster(unsigned int core);
 
-#if defined(CONFIG_MPC85XX) || defined(CONFIG_MPC86xx)
+#if defined(CONFIG_MPC85XX) || defined(CONFIG_MPC86XX)
 #define CPU_TYPE_ENTRY(n, v, nc) \
 	{ .name = #n, .soc_ver = SVR_##v, .num_cores = (nc), \
 	  .mask = (1 << (nc)) - 1 }
arch/powerpc/lib/bdinfo.c +1 -1
index 81cbcf988ff..b838d5a1db8 100644
@@ -16,7 +16,7 @@ int arch_setup_bdinfo(void)
 {
 	struct bd_info *bd = gd->bd;
 
-#if defined(CONFIG_E500) || defined(CONFIG_MPC86xx)
+#if defined(CONFIG_E500) || defined(CONFIG_MPC86XX)
 	bd->bi_immr_base = CONFIG_SYS_IMMR;	/* base  of IMMR register     */
 #endif
 
arch/powerpc/lib/bootm.c +1 -1
index e5324bf8fc1..ef1d5af8908 100644
@@ -293,7 +293,7 @@ void boot_prep_vxworks(struct bootm_headers *images)
 #if defined(CONFIG_MPC85XX)
 	ft_fixup_cpu(images->ft_addr, base + size);
 	ft_fixup_num_cores(images->ft_addr);
-#elif defined(CONFIG_MPC86xx)
+#elif defined(CONFIG_MPC86XX)
 	off = fdt_add_mem_rsv(images->ft_addr,
 			determine_mp_bootpg(NULL), (u64)4096);
 	if (off < 0)
arch/powerpc/lib/ppccache.S +2 -2
index 472548d494d..52f53e93a30 100644
@@ -64,7 +64,7 @@ ppcSync:
  * flush_dcache_range(unsigned long start, unsigned long stop)
  */
 _GLOBAL(flush_dcache_range)
-#if defined(CONFIG_MPC85XX) || defined(CONFIG_MPC86xx)
+#if defined(CONFIG_MPC85XX) || defined(CONFIG_MPC86XX)
 	li	r5,L1_CACHE_BYTES-1
 	andc	r3,r3,r5
 	subf	r4,r3,r4
@@ -88,7 +88,7 @@ _GLOBAL(flush_dcache_range)
  * invalidate_dcache_range(unsigned long start, unsigned long stop)
  */
 _GLOBAL(invalidate_dcache_range)
-#if defined(CONFIG_MPC85XX) || defined(CONFIG_MPC86xx)
+#if defined(CONFIG_MPC85XX) || defined(CONFIG_MPC86XX)
 	li	r5,L1_CACHE_BYTES-1
 	andc	r3,r3,r5
 	subf	r4,r3,r4
arch/powerpc/lib/stack.c +1 -1
index 2e731aa8701..4d0f3b31daa 100644
@@ -34,7 +34,7 @@ int arch_reserve_stacks(void)
 
 int arch_setup_dest_addr(void)
 {
-#if defined(CONFIG_MP) && (defined(CONFIG_MPC86xx) || defined(CONFIG_E500))
+#if defined(CONFIG_MP) && (defined(CONFIG_MPC86XX) || defined(CONFIG_E500))
 	/*
 	 * We need to make sure the location we intend to put secondary core
 	 * boot code is reserved and not used by any part of u-boot
board/xes/common/Makefile +2 -2
index 6be05152aa4..d6f09f71b75 100644
@@ -3,8 +3,8 @@
 # (C) Copyright 2006
 # Wolfgang Denk, DENX Software Engineering, [email protected].
 
-obj-$(CONFIG_MPC86xx)		+= fsl_8xxx_clk.o
+obj-$(CONFIG_MPC86XX)		+= fsl_8xxx_clk.o
 obj-$(CONFIG_ARCH_P2020)		+= fsl_8xxx_clk.o
 obj-$(CONFIG_MPC85XX)		+= fsl_8xxx_misc.o board.o
-obj-$(CONFIG_MPC86xx)		+= fsl_8xxx_misc.o board.o
+obj-$(CONFIG_MPC86XX)		+= fsl_8xxx_misc.o board.o
 obj-$(CONFIG_NAND_ACTL)	+= actl_nand.o
board/xes/common/fsl_8xxx_clk.c +1 -1
index ef720c17240..0e6dc6e2108 100644
@@ -14,7 +14,7 @@ unsigned long get_board_sys_clk(void)
 {
 #if defined(CONFIG_MPC85XX)
 	volatile ccsr_gur_t *gur = (void *)(CFG_SYS_MPC85XX_GUTS_ADDR);
-#elif defined(CONFIG_MPC86xx)
+#elif defined(CONFIG_MPC86XX)
 	immap_t *immap = (immap_t *)CONFIG_SYS_IMMR;
 	volatile ccsr_gur_t *gur = &immap->im_gur;
 #endif
board/xes/common/fsl_8xxx_misc.c +1 -1
index 3082acaaa04..03dedef9e12 100644
@@ -29,7 +29,7 @@ uint get_board_derivative(void)
 {
 #if defined(CONFIG_MPC85XX)
        volatile ccsr_gur_t *gur = (void *)CFG_SYS_MPC85XX_GUTS_ADDR;
-#elif defined(CONFIG_MPC86xx)
+#elif defined(CONFIG_MPC86XX)
        volatile immap_t *immap = (immap_t *)CFG_SYS_CCSRBAR;
        volatile ccsr_gur_t *gur = &immap->im_gur;
 #endif
common/board_r.c +1 -1
index e4a5c88cdd4..552b9899323 100644
@@ -130,7 +130,7 @@ static int initr_reloc_global_data(void)
 #elif !defined(CONFIG_SANDBOX) && !defined(CONFIG_NIOS2)
 	monitor_flash_len = (ulong)&__init_end - gd->relocaddr;
 #endif
-#if defined(CONFIG_MPC85XX) || defined(CONFIG_MPC86xx)
+#if defined(CONFIG_MPC85XX) || defined(CONFIG_MPC86XX)
 	/*
 	 * The gd->cpu pointer is set to an address in flash before relocation.
 	 * We need to update it to point to the same CPU entry in RAM.
drivers/ddr/fsl/Kconfig +2 -2
index 170f758ade6..4d2791e4796 100644
@@ -96,7 +96,7 @@ config SYS_FSL_DDRC_GEN1
 
 config SYS_FSL_DDRC_GEN2
 	bool
-	depends on !MPC86xx
+	depends on !MPC86XX
 	help
 	  Enable Freescale DDR2 controller.
 
@@ -153,7 +153,7 @@ config SYS_FSL_DDR2
 	bool "Freescale DDR2 controller"
 	depends on SYS_FSL_HAS_DDR2
 	imply DDR_SPD
-	select SYS_FSL_DDRC_GEN2 if (!MPC86xx && !SYS_FSL_DDRC_GEN3)
+	select SYS_FSL_DDRC_GEN2 if (!MPC86XX && !SYS_FSL_DDRC_GEN3)
 
 config SYS_FSL_DDR1
 	bool "Freescale DDR1 controller"
drivers/dma/fsl_dma.c +3 -3
index 938ed4429f7..b3378e855bb 100644
@@ -27,8 +27,8 @@
 dma83xx_t *dma_base = (void *)(CFG_SYS_MPC83XX_DMA_ADDR);
 #elif defined(CONFIG_MPC85XX)
 ccsr_dma_t *dma_base = (void *)(CFG_SYS_MPC85XX_DMA_ADDR);
-#elif defined(CONFIG_MPC86xx)
-ccsr_dma_t *dma_base = (void *)(CONFIG_SYS_MPC86xx_DMA_ADDR);
+#elif defined(CONFIG_MPC86XX)
+ccsr_dma_t *dma_base = (void *)(CONFIG_SYS_MPC86XX_DMA_ADDR);
 #else
 #error "Freescale DMA engine not supported on your processor"
 #endif
@@ -37,7 +37,7 @@ static void dma_sync(void)
 {
 #if defined(CONFIG_MPC85XX)
 	asm("sync; isync; msync");
-#elif defined(CONFIG_MPC86xx)
+#elif defined(CONFIG_MPC86XX)
 	asm("sync; isync");
 #endif
 }
drivers/pci/Kconfig +1 -1
index 2ef3c63cc4f..e39a64254f2 100644
@@ -141,7 +141,7 @@ config PCIE_FSL
 	select SYS_FSL_PCI_VER_3_X if ARCH_T2080 || ARCH_T4240
 	help
 	  Say Y here if you want to enable PCIe controller support on FSL
-	  PowerPC MPC85XX, MPC86xx, B series, P series and T series SoCs.
+	  PowerPC MPC85XX, MPC86XX, B series, P series and T series SoCs.
 	  This driver does not support SRIO_PCIE_BOOT feature.
 
 config PCI_MPC85XX
env/Kconfig +1 -1
index e377d88eb2a..9222330a676 100644
@@ -116,7 +116,7 @@ config ENV_IS_IN_FLASH
 	default y if ARCH_INTEGRATOR_CP
 	default y if M548x || M547x || M5282
 	default y if MCF532X || MCF52x2
-	default y if MPC86xx || MPC83XX
+	default y if MPC86XX || MPC83XX
 	default y if ARCH_MPC8548
 	default y if SH && !CPU_SH4
 	help
include/asm-generic/u-boot.h +1 -1
index 64dfb66c7cb..59c1802272d 100644
@@ -37,7 +37,7 @@ struct bd_info {
 	unsigned long	bi_dsp_freq; /* dsp core frequency */
 	unsigned long	bi_ddr_freq; /* ddr frequency */
 #endif
-#if defined(CONFIG_MPC8xx) || defined(CONFIG_E500) || defined(CONFIG_MPC86xx)
+#if defined(CONFIG_MPC8xx) || defined(CONFIG_E500) || defined(CONFIG_MPC86XX)
 	unsigned long	bi_immr_base;	/* base of IMMR register */
 #endif
 #if defined(CONFIG_M68K)
include/mpc86xx.h +4 -4
index ea8d17d557e..3c1e2a5180f 100644
@@ -4,8 +4,8 @@
  * Srikanth Srinivasan ([email protected])
  */
 
-#ifndef	__MPC86xx_H__
-#define __MPC86xx_H__
+#ifndef	__MPC86XX_H__
+#define __MPC86XX_H__
 
 #include <asm/fsl_lbc.h>
 
@@ -44,7 +44,7 @@ typedef struct {
 	unsigned long freq_processor;
 	unsigned long freq_systembus;
 	unsigned long freq_localbus;
-} MPC86xx_SYS_INFO;
+} MPC86XX_SYS_INFO;
 
 #define l1icache_enable	icache_enable
 
@@ -87,4 +87,4 @@ void setup_ddr_bat(phys_addr_t dram_size);
 extern void setup_bats(void);
 
 #endif  /* _ASMLANGUAGE */
-#endif	/* __MPC86xx_H__ */
+#endif	/* __MPC86XX_H__ */
include/serial.h +1 -1
index 22ac1043d36..5c8be294bf6 100644
@@ -28,7 +28,7 @@ extern struct serial_device serial_scc_device;
 extern struct serial_device *default_serial_console(void);
 
 #if	defined(CONFIG_MPC83XX) || defined(CONFIG_MPC85XX) || \
-	defined(CONFIG_MPC86xx) || \
+	defined(CONFIG_MPC86XX) || \
 	defined(CONFIG_ARCH_TEGRA) || defined(CONFIG_SYS_COREBOOT) || \
 	defined(CONFIG_MICROBLAZE)
 extern struct serial_device serial0_device;
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#61 lore raw

PATCH 44/88 imx: Rename CONFIG_MXS to CFG_MXS

In reply to Simon Glass

This is not a Kconfig option so we should not be setting it in the Makefile. Rename it to use a CFS_ prefix, since this is still used in mxsimage.c

In general tools should support all the features without reference to CONFIG options, but this is left to the maintainer to look at.

---

 tools/Makefile   | 4 ++--
 tools/mxsimage.c | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
tools/Makefile +2 -2
index edfa40903d9..2ee43dff542 100644
@@ -158,9 +158,9 @@ fit_check_sign-objs   := $(dumpimage-mkimage-objs) fit_check_sign.o
 file2include-objs := file2include.o
 
 ifneq ($(CONFIG_MX23)$(CONFIG_MX28)$(CONFIG_TOOLS_LIBCRYPTO),)
-# Add CONFIG_MXS into host CFLAGS, so we can check whether or not register
+# Add CFG_MXS into host CFLAGS, so we can check whether or not register
 # the mxsimage support within tools/mxsimage.c .
-HOSTCFLAGS_mxsimage.o += -DCONFIG_MXS
+HOSTCFLAGS_mxsimage.o += -DCFG_MXS
 endif
 
 ifdef CONFIG_TOOLS_LIBCRYPTO
tools/mxsimage.c +1 -1
index fee022aab46..fbe46c47fae 100644
@@ -5,7 +5,7 @@
  * Copyright (C) 2012-2013 Marek Vasut <[email protected]>
  */
 
-#ifdef CONFIG_MXS
+#ifdef CFG_MXS
 
 #include <errno.h>
 #include <fcntl.h>
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#62 lore raw

PATCH 45/88 nand: Drop unused actl_nand driver

In reply to Simon Glass

This is not used since this commit:

ed7fe2bee12 ppc: Remove xpedite boards

Drop the driver and Kconfig option.

---

 board/xes/common/Makefile    |  1 -
 board/xes/common/actl_nand.c | 49 ------------------------------------
 2 files changed, 50 deletions(-)
 delete mode 100644 board/xes/common/actl_nand.c
board/xes/common/Makefile +0 -1
index d6f09f71b75..b139ee9f759 100644
@@ -7,4 +7,3 @@ obj-$(CONFIG_MPC86XX)		+= fsl_8xxx_clk.o
 obj-$(CONFIG_ARCH_P2020)		+= fsl_8xxx_clk.o
 obj-$(CONFIG_MPC85XX)		+= fsl_8xxx_misc.o board.o
 obj-$(CONFIG_MPC86XX)		+= fsl_8xxx_misc.o board.o
-obj-$(CONFIG_NAND_ACTL)	+= actl_nand.o
board/xes/common/actl_nand.c deleted +0 -49

49 lines not on this page · raw message

Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#63 lore raw

PATCH 46/88 mtd: Drop unused fsl_upm driver

In reply to Simon Glass

This is not used since this commit:

8d1e3cb1400 powerpc: mpc83xx: remove MPC8360ERDK, EMPC8360EMDS support

Drop the driver and Kconfig option.

---

 drivers/mtd/nand/raw/Makefile  |   1 -
 drivers/mtd/nand/raw/fsl_upm.c | 187 ---------------------------------
 include/linux/mtd/fsl_upm.h    |  44 --------
 3 files changed, 232 deletions(-)
 delete mode 100644 drivers/mtd/nand/raw/fsl_upm.c
 delete mode 100644 include/linux/mtd/fsl_upm.h
drivers/mtd/nand/raw/Makefile +0 -1
index 4c59903aa8c..e8764cf358b 100644
@@ -56,7 +56,6 @@ obj-$(CONFIG_NAND_DENALI) += denali.o
 obj-$(CONFIG_NAND_DENALI_DT) += denali_dt.o
 obj-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_nand.o
 obj-$(CONFIG_NAND_FSL_IFC) += fsl_ifc_nand.o
-obj-$(CONFIG_NAND_FSL_UPM) += fsl_upm.o
 obj-$(CONFIG_NAND_FSMC) += fsmc_nand.o
 obj-$(CONFIG_NAND_KB9202) += kb9202_nand.o
 obj-$(CONFIG_NAND_KIRKWOOD) += kirkwood_nand.o
drivers/mtd/nand/raw/fsl_upm.c deleted +0 -187

187 lines not on this page · raw message

include/linux/mtd/fsl_upm.h deleted +0 -44

44 lines not on this page · raw message

Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
Reviewed-by on v1 46/88
#64 lore raw

Re: [PATCH 46/88] mtd: Drop unused fsl_upm driver

Hi

Quoted 5 lines · Simon Glass

This is not used since this commit:

   8d1e3cb1400 powerpc: mpc83xx: remove MPC8360ERDK, EMPC8360EMDS support

No problem to drop here.

Quoted 268 lines

Drop the driver and Kconfig option.

---

 drivers/mtd/nand/raw/Makefile  |   1 -
 drivers/mtd/nand/raw/fsl_upm.c | 187 ---------------------------------
 include/linux/mtd/fsl_upm.h    |  44 --------
 3 files changed, 232 deletions(-)
 delete mode 100644 drivers/mtd/nand/raw/fsl_upm.c
 delete mode 100644 include/linux/mtd/fsl_upm.h
drivers/mtd/nand/raw/Makefile +0 -1
index 4c59903aa8c..e8764cf358b 100644
@@ -56,7 +56,6 @@ obj-$(CONFIG_NAND_DENALI) += denali.o
 obj-$(CONFIG_NAND_DENALI_DT) += denali_dt.o
 obj-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_nand.o
 obj-$(CONFIG_NAND_FSL_IFC) += fsl_ifc_nand.o
-obj-$(CONFIG_NAND_FSL_UPM) += fsl_upm.o
 obj-$(CONFIG_NAND_FSMC) += fsmc_nand.o
 obj-$(CONFIG_NAND_KB9202) += kb9202_nand.o
 obj-$(CONFIG_NAND_KIRKWOOD) += kirkwood_nand.o
drivers/mtd/nand/raw/fsl_upm.c deleted +0 -187
deleted file mode 100644
index 91cc1339537..00000000000
@@ -1,187 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * FSL UPM NAND driver
- *
- * Copyright (C) 2007 MontaVista Software, Inc.
- *                    Anton Vorontsov <[email protected]>
- */
-
-#include <config.h>
-#include <common.h>
-#include <log.h>
-#include <asm/io.h>
-#include <linux/delay.h>
-#include <linux/errno.h>
-#include <linux/mtd/mtd.h>
-#include <linux/mtd/rawnand.h>
-#include <linux/mtd/fsl_upm.h>
-#include <nand.h>
-
-static void fsl_upm_start_pattern(struct fsl_upm *upm, u32 pat_offset)
-{
-       clrsetbits_be32(upm->mxmr, MxMR_MAD_MSK, MxMR_OP_RUNP | pat_offset);
-       (void)in_be32(upm->mxmr);
-}
-
-static void fsl_upm_end_pattern(struct fsl_upm *upm)
-{
-       clrbits_be32(upm->mxmr, MxMR_OP_RUNP);
-
-       while (in_be32(upm->mxmr) & MxMR_OP_RUNP)
-               eieio();
-}
-
-static void fsl_upm_run_pattern(struct fsl_upm *upm, int width,
-                               void __iomem *io_addr, u32 mar)
-{
-       out_be32(upm->mar, mar);
-       (void)in_be32(upm->mar);
-       switch (width) {
-       case 8:
-               out_8(io_addr, 0x0);
-               break;
-       case 16:
-               out_be16(io_addr, 0x0);
-               break;
-       case 32:
-               out_be32(io_addr, 0x0);
-               break;
-       }
-}
-
-static void fun_wait(struct fsl_upm_nand *fun)
-{
-       if (fun->dev_ready) {
-               while (!fun->dev_ready(fun->chip_nr))
-                       debug("unexpected busy state\n");
-       } else {
-               /*
-                * If the R/B pin is not connected,
-                * a short delay is necessary.
-                */
-               udelay(1);
-       }
-}
-
-#if CONFIG_SYS_NAND_MAX_CHIPS > 1
-static void fun_select_chip(struct mtd_info *mtd, int chip_nr)
-{
-       struct nand_chip *chip = mtd_to_nand(mtd);
-       struct fsl_upm_nand *fun = nand_get_controller_data(chip);
-
-       if (chip_nr >= 0) {
-               fun->chip_nr = chip_nr;
-               chip->IO_ADDR_R = chip->IO_ADDR_W =
-                       fun->upm.io_addr + fun->chip_offset * chip_nr;
-       } else if (chip_nr == -1) {
-               chip->cmd_ctrl(mtd, NAND_CMD_NONE, 0 | NAND_CTRL_CHANGE);
-       }
-}
-#endif
-
-static void fun_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl)
-{
-       struct nand_chip *chip = mtd_to_nand(mtd);
-       struct fsl_upm_nand *fun = nand_get_controller_data(chip);
-       void __iomem *io_addr;
-       u32 mar;
-
-       if (!(ctrl & fun->last_ctrl)) {
-               fsl_upm_end_pattern(&fun->upm);
-
-               if (cmd == NAND_CMD_NONE)
-                       return;
-
-               fun->last_ctrl = ctrl & (NAND_ALE | NAND_CLE);
-       }
-
-       if (ctrl & NAND_CTRL_CHANGE) {
-               if (ctrl & NAND_ALE)
-                       fsl_upm_start_pattern(&fun->upm, fun->upm_addr_offset);
-               else if (ctrl & NAND_CLE)
-                       fsl_upm_start_pattern(&fun->upm, fun->upm_cmd_offset);
-       }
-
-       mar = cmd << (32 - fun->width);
-       io_addr = fun->upm.io_addr;
-#if CONFIG_SYS_NAND_MAX_CHIPS > 1
-       if (fun->chip_nr > 0) {
-               io_addr += fun->chip_offset * fun->chip_nr;
-               if (fun->upm_mar_chip_offset)
-                       mar |= fun->upm_mar_chip_offset * fun->chip_nr;
-       }
-#endif
-       fsl_upm_run_pattern(&fun->upm, fun->width, io_addr, mar);
-
-       /*
-        * Some boards/chips needs this.  At least the MPC8360E-RDK
-        * needs it.  Probably weird chip, because I don't see any
-        * need for this on MPC8555E + Samsung K9F1G08U0A.  Usually
-        * here are 0-2 unexpected busy states per block read.
-        */
-       if (fun->wait_flags & FSL_UPM_WAIT_RUN_PATTERN)
-               fun_wait(fun);
-}
-
-static u8 upm_nand_read_byte(struct mtd_info *mtd)
-{
-       struct nand_chip *chip = mtd_to_nand(mtd);
-
-       return in_8(chip->IO_ADDR_R);
-}
-
-static void upm_nand_write_buf(struct mtd_info *mtd, const u_char *buf, int len)
-{
-       int i;
-       struct nand_chip *chip = mtd_to_nand(mtd);
-       struct fsl_upm_nand *fun = nand_get_controller_data(chip);
-
-       for (i = 0; i < len; i++) {
-               out_8(chip->IO_ADDR_W, buf[i]);
-               if (fun->wait_flags & FSL_UPM_WAIT_WRITE_BYTE)
-                       fun_wait(fun);
-       }
-
-       if (fun->wait_flags & FSL_UPM_WAIT_WRITE_BUFFER)
-               fun_wait(fun);
-}
-
-static void upm_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len)
-{
-       int i;
-       struct nand_chip *chip = mtd_to_nand(mtd);
-
-       for (i = 0; i < len; i++)
-               buf[i] = in_8(chip->IO_ADDR_R);
-}
-
-static int nand_dev_ready(struct mtd_info *mtd)
-{
-       struct nand_chip *chip = mtd_to_nand(mtd);
-       struct fsl_upm_nand *fun = nand_get_controller_data(chip);
-
-       return fun->dev_ready(fun->chip_nr);
-}
-
-int fsl_upm_nand_init(struct nand_chip *chip, struct fsl_upm_nand *fun)
-{
-       if (fun->width != 8 && fun->width != 16 && fun->width != 32)
-               return -ENOSYS;
-
-       fun->last_ctrl = NAND_CLE;
-
-       nand_set_controller_data(chip, fun);
-       chip->chip_delay = fun->chip_delay;
-       chip->ecc.mode = NAND_ECC_SOFT;
-       chip->cmd_ctrl = fun_cmd_ctrl;
-#if CONFIG_SYS_NAND_MAX_CHIPS > 1
-       chip->select_chip = fun_select_chip;
-#endif
-       chip->read_byte = upm_nand_read_byte;
-       chip->read_buf = upm_nand_read_buf;
-       chip->write_buf = upm_nand_write_buf;
-       if (fun->dev_ready)
-               chip->dev_ready = nand_dev_ready;
-
-       return 0;
-}
include/linux/mtd/fsl_upm.h deleted +0 -45
deleted file mode 100644
index 9999993543b..00000000000
@@ -1,44 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * FSL UPM NAND driver
- *
- * Copyright (C) 2007 MontaVista Software, Inc.
- *                    Anton Vorontsov <[email protected]>
- */
-
-#ifndef __LINUX_MTD_NAND_FSL_UPM
-#define __LINUX_MTD_NAND_FSL_UPM
-
-#include <linux/mtd/rawnand.h>
-
-#define FSL_UPM_WAIT_RUN_PATTERN  0x1
-#define FSL_UPM_WAIT_WRITE_BYTE   0x2
-#define FSL_UPM_WAIT_WRITE_BUFFER 0x4
-
-struct fsl_upm {
-       void __iomem *mdr;
-       void __iomem *mxmr;
-       void __iomem *mar;
-       void __iomem *io_addr;
-};
-
-struct fsl_upm_nand {
-       struct fsl_upm upm;
-
-       int width;
-       int upm_cmd_offset;
-       int upm_addr_offset;
-       int upm_mar_chip_offset;
-       int wait_flags;
-       int (*dev_ready)(int chip_nr);
-       int chip_delay;
-       int chip_offset;
-       int chip_nr;
-
-       /* no need to fill */
-       int last_ctrl;
-};
-
-extern int fsl_upm_nand_init(struct nand_chip *chip, struct fsl_upm_nand *fun);
-
-#endif
--
Quoted 2 lines

2.39.1.456.gfc5497dd1b-goog

Signature · 11 lines
Michael Nazzareno Trimarchi
Co-Founder & Chief Executive Officer
M. +39 347 913 2170
[email protected]
__________________________________

Amarula Solutions BV
Joop Geesinkweg 125, 1114 AB, Amsterdam, NL
T. +31 (0)85 111 9172
[email protected]
www.amarulasolutions.com
#65 lore raw

PATCH 47/88 mtd: Drop unused fsmc_nand driver

In reply to Simon Glass

This is not used since this commit:

570c3dcfc15 arm: Remove spear600 boards and the rest of SPEAr support

Drop the driver and Kconfig option.

---

 drivers/mtd/nand/raw/Makefile    |   1 -
 drivers/mtd/nand/raw/fsmc_nand.c | 470 -------------------------------
 include/linux/mtd/fsmc_nand.h    |  84 ------
 3 files changed, 555 deletions(-)
 delete mode 100644 drivers/mtd/nand/raw/fsmc_nand.c
 delete mode 100644 include/linux/mtd/fsmc_nand.h
drivers/mtd/nand/raw/Makefile +0 -1
index e8764cf358b..f004eb39f3b 100644
@@ -56,7 +56,6 @@ obj-$(CONFIG_NAND_DENALI) += denali.o
 obj-$(CONFIG_NAND_DENALI_DT) += denali_dt.o
 obj-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_nand.o
 obj-$(CONFIG_NAND_FSL_IFC) += fsl_ifc_nand.o
-obj-$(CONFIG_NAND_FSMC) += fsmc_nand.o
 obj-$(CONFIG_NAND_KB9202) += kb9202_nand.o
 obj-$(CONFIG_NAND_KIRKWOOD) += kirkwood_nand.o
 obj-$(CONFIG_NAND_KMETER1) += kmeter1_nand.o
drivers/mtd/nand/raw/fsmc_nand.c deleted +0 -470

470 lines not on this page · raw message

include/linux/mtd/fsmc_nand.h deleted +0 -84

84 lines not on this page · raw message

Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#66 lore raw

Re: [PATCH 47/88] mtd: Drop unused fsmc_nand driver

Hi

Quoted 596 lines · Simon Glass

This is not used since this commit:

570c3dcfc15 arm: Remove spear600 boards and the rest of SPEAr support

Drop the driver and Kconfig option.

---

 drivers/mtd/nand/raw/Makefile    |   1 -
 drivers/mtd/nand/raw/fsmc_nand.c | 470 -------------------------------
 include/linux/mtd/fsmc_nand.h    |  84 ------
 3 files changed, 555 deletions(-)
 delete mode 100644 drivers/mtd/nand/raw/fsmc_nand.c
 delete mode 100644 include/linux/mtd/fsmc_nand.h
drivers/mtd/nand/raw/Makefile +0 -1
index e8764cf358b..f004eb39f3b 100644
@@ -56,7 +56,6 @@ obj-$(CONFIG_NAND_DENALI) += denali.o
 obj-$(CONFIG_NAND_DENALI_DT) += denali_dt.o
 obj-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_nand.o
 obj-$(CONFIG_NAND_FSL_IFC) += fsl_ifc_nand.o
-obj-$(CONFIG_NAND_FSMC) += fsmc_nand.o
 obj-$(CONFIG_NAND_KB9202) += kb9202_nand.o
 obj-$(CONFIG_NAND_KIRKWOOD) += kirkwood_nand.o
 obj-$(CONFIG_NAND_KMETER1) += kmeter1_nand.o
drivers/mtd/nand/raw/fsmc_nand.c deleted +0 -470
deleted file mode 100644
index d795864949c..00000000000
@@ -1,470 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * (C) Copyright 2010
- * Vipin Kumar, STMicroelectronics, [email protected].
- *
- * (C) Copyright 2012
- * Amit Virdi, STMicroelectronics, [email protected].
- */
-
-#include <common.h>
-#include <nand.h>
-#include <asm/io.h>
-#include <linux/bitops.h>
-#include <linux/err.h>
-#include <linux/mtd/nand_ecc.h>
-#include <linux/mtd/rawnand.h>
-#include <linux/mtd/fsmc_nand.h>
-#include <asm/arch/hardware.h>
-
-static u32 fsmc_version;
-static struct fsmc_regs *const fsmc_regs_p = (struct fsmc_regs *)
-       CONFIG_SYS_FSMC_BASE;
-
-/*
- * ECC4 and ECC1 have 13 bytes and 3 bytes of ecc respectively for 512 bytes of
- * data. ECC4 can correct up to 8 bits in 512 bytes of data while ECC1 can
- * correct 1 bit in 512 bytes
- */
-
-static struct nand_ecclayout fsmc_ecc4_lp_layout = {
-       .eccbytes = 104,
-       .eccpos = {  2,   3,   4,   5,   6,   7,   8,
-               9,  10,  11,  12,  13,  14,
-               18,  19,  20,  21,  22,  23,  24,
-               25,  26,  27,  28,  29,  30,
-               34,  35,  36,  37,  38,  39,  40,
-               41,  42,  43,  44,  45,  46,
-               50,  51,  52,  53,  54,  55,  56,
-               57,  58,  59,  60,  61,  62,
-               66,  67,  68,  69,  70,  71,  72,
-               73,  74,  75,  76,  77,  78,
-               82,  83,  84,  85,  86,  87,  88,
-               89,  90,  91,  92,  93,  94,
-               98,  99, 100, 101, 102, 103, 104,
-               105, 106, 107, 108, 109, 110,
-               114, 115, 116, 117, 118, 119, 120,
-               121, 122, 123, 124, 125, 126
-       },
-       .oobfree = {
-               {.offset = 15, .length = 3},
-               {.offset = 31, .length = 3},
-               {.offset = 47, .length = 3},
-               {.offset = 63, .length = 3},
-               {.offset = 79, .length = 3},
-               {.offset = 95, .length = 3},
-               {.offset = 111, .length = 3},
-               {.offset = 127, .length = 1}
-       }
-};
-
-/*
- * ECC4 layout for NAND of pagesize 4096 bytes & OOBsize 224 bytes. 13*8 bytes
- * of OOB size is reserved for ECC, Byte no. 0 & 1 reserved for bad block & 118
- * bytes are free for use.
- */
-static struct nand_ecclayout fsmc_ecc4_224_layout = {
-       .eccbytes = 104,
-       .eccpos = {  2,   3,   4,   5,   6,   7,   8,
-               9,  10,  11,  12,  13,  14,
-               18,  19,  20,  21,  22,  23,  24,
-               25,  26,  27,  28,  29,  30,
-               34,  35,  36,  37,  38,  39,  40,
-               41,  42,  43,  44,  45,  46,
-               50,  51,  52,  53,  54,  55,  56,
-               57,  58,  59,  60,  61,  62,
-               66,  67,  68,  69,  70,  71,  72,
-               73,  74,  75,  76,  77,  78,
-               82,  83,  84,  85,  86,  87,  88,
-               89,  90,  91,  92,  93,  94,
-               98,  99, 100, 101, 102, 103, 104,
-               105, 106, 107, 108, 109, 110,
-               114, 115, 116, 117, 118, 119, 120,
-               121, 122, 123, 124, 125, 126
-       },
-       .oobfree = {
-               {.offset = 15, .length = 3},
-               {.offset = 31, .length = 3},
-               {.offset = 47, .length = 3},
-               {.offset = 63, .length = 3},
-               {.offset = 79, .length = 3},
-               {.offset = 95, .length = 3},
-               {.offset = 111, .length = 3},
-               {.offset = 127, .length = 97}
-       }
-};
-
-/*
- * ECC placement definitions in oobfree type format
- * There are 13 bytes of ecc for every 512 byte block and it has to be read
- * consecutively and immediately after the 512 byte data block for hardware to
- * generate the error bit offsets in 512 byte data
- * Managing the ecc bytes in the following way makes it easier for software to
- * read ecc bytes consecutive to data bytes. This way is similar to
- * oobfree structure maintained already in u-boot nand driver
- */
-static struct fsmc_eccplace fsmc_eccpl_lp = {
-       .eccplace = {
-               {.offset = 2, .length = 13},
-               {.offset = 18, .length = 13},
-               {.offset = 34, .length = 13},
-               {.offset = 50, .length = 13},
-               {.offset = 66, .length = 13},
-               {.offset = 82, .length = 13},
-               {.offset = 98, .length = 13},
-               {.offset = 114, .length = 13}
-       }
-};
-
-static struct nand_ecclayout fsmc_ecc4_sp_layout = {
-       .eccbytes = 13,
-       .eccpos = { 0,  1,  2,  3,  6,  7, 8,
-               9, 10, 11, 12, 13, 14
-       },
-       .oobfree = {
-               {.offset = 15, .length = 1},
-       }
-};
-
-static struct fsmc_eccplace fsmc_eccpl_sp = {
-       .eccplace = {
-               {.offset = 0, .length = 4},
-               {.offset = 6, .length = 9}
-       }
-};
-
-static struct nand_ecclayout fsmc_ecc1_layout = {
-       .eccbytes = 24,
-       .eccpos = {2, 3, 4, 18, 19, 20, 34, 35, 36, 50, 51, 52,
-               66, 67, 68, 82, 83, 84, 98, 99, 100, 114, 115, 116},
-       .oobfree = {
-               {.offset = 8, .length = 8},
-               {.offset = 24, .length = 8},
-               {.offset = 40, .length = 8},
-               {.offset = 56, .length = 8},
-               {.offset = 72, .length = 8},
-               {.offset = 88, .length = 8},
-               {.offset = 104, .length = 8},
-               {.offset = 120, .length = 8}
-       }
-};
-
-/* Count the number of 0's in buff upto a max of max_bits */
-static int count_written_bits(uint8_t *buff, int size, int max_bits)
-{
-       int k, written_bits = 0;
-
-       for (k = 0; k < size; k++) {
-               written_bits += hweight8(~buff[k]);
-               if (written_bits > max_bits)
-                       break;
-       }
-
-       return written_bits;
-}
-
-static void fsmc_nand_hwcontrol(struct mtd_info *mtd, int cmd, uint ctrl)
-{
-       struct nand_chip *this = mtd_to_nand(mtd);
-       ulong IO_ADDR_W;
-
-       if (ctrl & NAND_CTRL_CHANGE) {
-               IO_ADDR_W = (ulong)this->IO_ADDR_W;
-
-               IO_ADDR_W &= ~(CONFIG_SYS_NAND_CLE | CONFIG_SYS_NAND_ALE);
-               if (ctrl & NAND_CLE)
-                       IO_ADDR_W |= CONFIG_SYS_NAND_CLE;
-               if (ctrl & NAND_ALE)
-                       IO_ADDR_W |= CONFIG_SYS_NAND_ALE;
-
-               if (ctrl & NAND_NCE) {
-                       writel(readl(&fsmc_regs_p->pc) |
-                                       FSMC_ENABLE, &fsmc_regs_p->pc);
-               } else {
-                       writel(readl(&fsmc_regs_p->pc) &
-                                       ~FSMC_ENABLE, &fsmc_regs_p->pc);
-               }
-               this->IO_ADDR_W = (void *)IO_ADDR_W;
-       }
-
-       if (cmd != NAND_CMD_NONE)
-               writeb(cmd, this->IO_ADDR_W);
-}
-
-static int fsmc_bch8_correct_data(struct mtd_info *mtd, u_char *dat,
-               u_char *read_ecc, u_char *calc_ecc)
-{
-       /* The calculated ecc is actually the correction index in data */
-       u32 err_idx[8];
-       u32 num_err, i;
-       u32 ecc1, ecc2, ecc3, ecc4;
-
-       num_err = (readl(&fsmc_regs_p->sts) >> 10) & 0xF;
-
-       if (likely(num_err == 0))
-               return 0;
-
-       if (unlikely(num_err > 8)) {
-               /*
-                * This is a temporary erase check. A newly erased page read
-                * would result in an ecc error because the oob data is also
-                * erased to FF and the calculated ecc for an FF data is not
-                * FF..FF.
-                * This is a workaround to skip performing correction in case
-                * data is FF..FF
-                *
-                * Logic:
-                * For every page, each bit written as 0 is counted until these
-                * number of bits are greater than 8 (the maximum correction
-                * capability of FSMC for each 512 + 13 bytes)
-                */
-
-               int bits_ecc = count_written_bits(read_ecc, 13, 8);
-               int bits_data = count_written_bits(dat, 512, 8);
-
-               if ((bits_ecc + bits_data) <= 8) {
-                       if (bits_data)
-                               memset(dat, 0xff, 512);
-                       return bits_data + bits_ecc;
-               }
-
-               return -EBADMSG;
-       }
-
-       ecc1 = readl(&fsmc_regs_p->ecc1);
-       ecc2 = readl(&fsmc_regs_p->ecc2);
-       ecc3 = readl(&fsmc_regs_p->ecc3);
-       ecc4 = readl(&fsmc_regs_p->sts);
-
-       err_idx[0] = (ecc1 >> 0) & 0x1FFF;
-       err_idx[1] = (ecc1 >> 13) & 0x1FFF;
-       err_idx[2] = (((ecc2 >> 0) & 0x7F) << 6) | ((ecc1 >> 26) & 0x3F);
-       err_idx[3] = (ecc2 >> 7) & 0x1FFF;
-       err_idx[4] = (((ecc3 >> 0) & 0x1) << 12) | ((ecc2 >> 20) & 0xFFF);
-       err_idx[5] = (ecc3 >> 1) & 0x1FFF;
-       err_idx[6] = (ecc3 >> 14) & 0x1FFF;
-       err_idx[7] = (((ecc4 >> 16) & 0xFF) << 5) | ((ecc3 >> 27) & 0x1F);
-
-       i = 0;
-       while (i < num_err) {
-               err_idx[i] ^= 3;
-
-               if (err_idx[i] < 512 * 8)
-                       __change_bit(err_idx[i], dat);
-
-               i++;
-       }
-
-       return num_err;
-}
-
-static int fsmc_read_hwecc(struct mtd_info *mtd,
-                       const u_char *data, u_char *ecc)
-{
-       u_int ecc_tmp;
-       int timeout = CONFIG_SYS_HZ;
-       ulong start;
-
-       switch (fsmc_version) {
-       case FSMC_VER8:
-               start = get_timer(0);
-               while (get_timer(start) < timeout) {
-                       /*
-                        * Busy waiting for ecc computation
-                        * to finish for 512 bytes
-                        */
-                       if (readl(&fsmc_regs_p->sts) & FSMC_CODE_RDY)
-                               break;
-               }
-
-               ecc_tmp = readl(&fsmc_regs_p->ecc1);
-               ecc[0] = (u_char) (ecc_tmp >> 0);
-               ecc[1] = (u_char) (ecc_tmp >> 8);
-               ecc[2] = (u_char) (ecc_tmp >> 16);
-               ecc[3] = (u_char) (ecc_tmp >> 24);
-
-               ecc_tmp = readl(&fsmc_regs_p->ecc2);
-               ecc[4] = (u_char) (ecc_tmp >> 0);
-               ecc[5] = (u_char) (ecc_tmp >> 8);
-               ecc[6] = (u_char) (ecc_tmp >> 16);
-               ecc[7] = (u_char) (ecc_tmp >> 24);
-
-               ecc_tmp = readl(&fsmc_regs_p->ecc3);
-               ecc[8] = (u_char) (ecc_tmp >> 0);
-               ecc[9] = (u_char) (ecc_tmp >> 8);
-               ecc[10] = (u_char) (ecc_tmp >> 16);
-               ecc[11] = (u_char) (ecc_tmp >> 24);
-
-               ecc_tmp = readl(&fsmc_regs_p->sts);
-               ecc[12] = (u_char) (ecc_tmp >> 16);
-               break;
-
-       default:
-               ecc_tmp = readl(&fsmc_regs_p->ecc1);
-               ecc[0] = (u_char) (ecc_tmp >> 0);
-               ecc[1] = (u_char) (ecc_tmp >> 8);
-               ecc[2] = (u_char) (ecc_tmp >> 16);
-               break;
-       }
-
-       return 0;
-}
-
-void fsmc_enable_hwecc(struct mtd_info *mtd, int mode)
-{
-       writel(readl(&fsmc_regs_p->pc) & ~FSMC_ECCPLEN_256,
-                       &fsmc_regs_p->pc);
-       writel(readl(&fsmc_regs_p->pc) & ~FSMC_ECCEN,
-                       &fsmc_regs_p->pc);
-       writel(readl(&fsmc_regs_p->pc) | FSMC_ECCEN,
-                       &fsmc_regs_p->pc);
-}
-
-/*
- * fsmc_read_page_hwecc
- * @mtd:       mtd info structure
- * @chip:      nand chip info structure
- * @buf:       buffer to store read data
- * @oob_required:      caller expects OOB data read to chip->oob_poi
- * @page:      page number to read
- *
- * This routine is needed for fsmc verison 8 as reading from NAND chip has to be
- * performed in a strict sequence as follows:
- * data(512 byte) -> ecc(13 byte)
- * After this read, fsmc hardware generates and reports error data bits(upto a
- * max of 8 bits)
- */
-static int fsmc_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *chip,
-                                uint8_t *buf, int oob_required, int page)
-{
-       struct fsmc_eccplace *fsmc_eccpl;
-       int i, j, s, stat, eccsize = chip->ecc.size;
-       int eccbytes = chip->ecc.bytes;
-       int eccsteps = chip->ecc.steps;
-       uint8_t *p = buf;
-       uint8_t *ecc_calc = chip->buffers->ecccalc;
-       uint8_t *ecc_code = chip->buffers->ecccode;
-       int off, len, group = 0;
-       uint8_t oob[13] __attribute__ ((aligned (2)));
-
-       /* Differentiate between small and large page ecc place definitions */
-       if (mtd->writesize == 512)
-               fsmc_eccpl = &fsmc_eccpl_sp;
-       else
-               fsmc_eccpl = &fsmc_eccpl_lp;
-
-       for (i = 0, s = 0; s < eccsteps; s++, i += eccbytes, p += eccsize) {
-
-               chip->cmdfunc(mtd, NAND_CMD_READ0, s * eccsize, page);
-               chip->ecc.hwctl(mtd, NAND_ECC_READ);
-               chip->read_buf(mtd, p, eccsize);
-
-               for (j = 0; j < eccbytes;) {
-                       off = fsmc_eccpl->eccplace[group].offset;
-                       len = fsmc_eccpl->eccplace[group].length;
-                       group++;
-
-                       /*
-                        * length is intentionally kept a higher multiple of 2
-                        * to read at least 13 bytes even in case of 16 bit NAND
-                        * devices
-                        */
-                       if (chip->options & NAND_BUSWIDTH_16)
-                               len = roundup(len, 2);
-                       chip->cmdfunc(mtd, NAND_CMD_READOOB, off, page);
-                       chip->read_buf(mtd, oob + j, len);
-                       j += len;
-               }
-
-               memcpy(&ecc_code[i], oob, 13);
-               chip->ecc.calculate(mtd, p, &ecc_calc[i]);
-
-               stat = chip->ecc.correct(mtd, p, &ecc_code[i],
-                               &ecc_calc[i]);
-               if (stat < 0)
-                       mtd->ecc_stats.failed++;
-               else
-                       mtd->ecc_stats.corrected += stat;
-       }
-
-       return 0;
-}
-
-int fsmc_nand_init(struct nand_chip *nand)
-{
-       static int chip_nr;
-       struct mtd_info *mtd;
-       u32 peripid2 = readl(&fsmc_regs_p->peripid2);
-
-       fsmc_version = (peripid2 >> FSMC_REVISION_SHFT) &
-               FSMC_REVISION_MSK;
-
-       writel(readl(&fsmc_regs_p->ctrl) | FSMC_WP, &fsmc_regs_p->ctrl);
-
-#if defined(CONFIG_SYS_FSMC_NAND_16BIT)
-       writel(FSMC_DEVWID_16 | FSMC_DEVTYPE_NAND | FSMC_ENABLE | FSMC_WAITON,
-                       &fsmc_regs_p->pc);
-#elif defined(CONFIG_SYS_FSMC_NAND_8BIT)
-       writel(FSMC_DEVWID_8 | FSMC_DEVTYPE_NAND | FSMC_ENABLE | FSMC_WAITON,
-                       &fsmc_regs_p->pc);
-#else
-#error Please define CONFIG_SYS_FSMC_NAND_16BIT or CONFIG_SYS_FSMC_NAND_8BIT
-#endif
-       writel(readl(&fsmc_regs_p->pc) | FSMC_TCLR_1 | FSMC_TAR_1,
-                       &fsmc_regs_p->pc);
-       writel(FSMC_THIZ_1 | FSMC_THOLD_4 | FSMC_TWAIT_6 | FSMC_TSET_0,
-                       &fsmc_regs_p->comm);
-       writel(FSMC_THIZ_1 | FSMC_THOLD_4 | FSMC_TWAIT_6 | FSMC_TSET_0,
-                       &fsmc_regs_p->attrib);
-
-       nand->options = 0;
-#if defined(CONFIG_SYS_FSMC_NAND_16BIT)
-       nand->options |= NAND_BUSWIDTH_16;
-#endif
-       nand->ecc.mode = NAND_ECC_HW;
-       nand->ecc.size = 512;
-       nand->ecc.calculate = fsmc_read_hwecc;
-       nand->ecc.hwctl = fsmc_enable_hwecc;
-       nand->cmd_ctrl = fsmc_nand_hwcontrol;
-       nand->IO_ADDR_R = nand->IO_ADDR_W =
-               (void  __iomem *)CFG_SYS_NAND_BASE;
-       nand->badblockbits = 7;
-
-       mtd = nand_to_mtd(nand);
-
-       switch (fsmc_version) {
-       case FSMC_VER8:
-               nand->ecc.bytes = 13;
-               nand->ecc.strength = 8;
-               nand->ecc.correct = fsmc_bch8_correct_data;
-               nand->ecc.read_page = fsmc_read_page_hwecc;
-               if (mtd->writesize == 512)
-                       nand->ecc.layout = &fsmc_ecc4_sp_layout;
-               else {
-                       if (mtd->oobsize == 224)
-                               nand->ecc.layout = &fsmc_ecc4_224_layout;
-                       else
-                               nand->ecc.layout = &fsmc_ecc4_lp_layout;
-               }
-
-               break;
-       default:
-               nand->ecc.bytes = 3;
-               nand->ecc.strength = 1;
-               nand->ecc.layout = &fsmc_ecc1_layout;
-               nand->ecc.correct = nand_correct_data;
-               break;
-       }
-
-       /* Detect NAND chips */
-       if (nand_scan_ident(mtd, CONFIG_SYS_MAX_NAND_DEVICE, NULL))
-               return -ENXIO;
-
-       if (nand_scan_tail(mtd))
-               return -ENXIO;
-
-       if (nand_register(chip_nr++, mtd))
-               return -ENXIO;
-
-       return 0;
-}
include/linux/mtd/fsmc_nand.h deleted +0 -85
deleted file mode 100644
index 1d8a067f17e..00000000000
@@ -1,84 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2010
- * Vipin Kumar, STMicroelectronics, [email protected].
- */
-
-#ifndef __FSMC_NAND_H__
-#define __FSMC_NAND_H__
-
-#include <linux/mtd/rawnand.h>
-
-struct fsmc_regs {
-       u32 ctrl;                       /* 0x00 */
-       u8 reserved_1[0x40 - 0x04];
-       u32 pc;                         /* 0x40 */
-       u32 sts;                        /* 0x44 */
-       u32 comm;                       /* 0x48 */
-       u32 attrib;                     /* 0x4c */
-       u32 ioata;                      /* 0x50 */
-       u32 ecc1;                       /* 0x54 */
-       u32 ecc2;                       /* 0x58 */
-       u32 ecc3;                       /* 0x5c */
-       u8 reserved_2[0xfe0 - 0x60];
-       u32 peripid0;                   /* 0xfe0 */
-       u32 peripid1;                   /* 0xfe4 */
-       u32 peripid2;                   /* 0xfe8 */
-       u32 peripid3;                   /* 0xfec */
-       u32 pcellid0;                   /* 0xff0 */
-       u32 pcellid1;                   /* 0xff4 */
-       u32 pcellid2;                   /* 0xff8 */
-       u32 pcellid3;                   /* 0xffc */
-};
-
-/* ctrl register definitions */
-#define FSMC_WP                        (1 << 7)
-
-/* pc register definitions */
-#define FSMC_RESET             (1 << 0)
-#define FSMC_WAITON            (1 << 1)
-#define FSMC_ENABLE            (1 << 2)
-#define FSMC_DEVTYPE_NAND      (1 << 3)
-#define FSMC_DEVWID_8          (0 << 4)
-#define FSMC_DEVWID_16         (1 << 4)
-#define FSMC_ECCEN             (1 << 6)
-#define FSMC_ECCPLEN_512       (0 << 7)
-#define FSMC_ECCPLEN_256       (1 << 7)
-#define FSMC_TCLR_1            (1 << 9)
-#define FSMC_TAR_1             (1 << 13)
-
-/* sts register definitions */
-#define FSMC_CODE_RDY          (1 << 15)
-
-/* comm register definitions */
-#define FSMC_TSET_0            (0 << 0)
-#define FSMC_TWAIT_6           (6 << 8)
-#define FSMC_THOLD_4           (4 << 16)
-#define FSMC_THIZ_1            (1 << 24)
-
-/* peripid2 register definitions */
-#define FSMC_REVISION_MSK      (0xf)
-#define FSMC_REVISION_SHFT     (0x4)
-
-#define FSMC_VER8              0x8
-
-/*
- * There are 13 bytes of ecc for every 512 byte block and it has to be read
- * consecutively and immediately after the 512 byte data block for hardware to
- * generate the error bit offsets
- * Managing the ecc bytes in the following way is easier. This way is similar to
- * oobfree structure maintained already in u-boot nand driver
- */
-#define FSMC_MAX_ECCPLACE_ENTRIES      32
-
-struct fsmc_nand_eccplace {
-       u32 offset;
-       u32 length;
-};
-
-struct fsmc_eccplace {
-       struct fsmc_nand_eccplace eccplace[FSMC_MAX_ECCPLACE_ENTRIES];
-};
-
-extern int fsmc_nand_init(struct nand_chip *nand);
-#endif
--
Quoted 2 lines

2.39.1.456.gfc5497dd1b-goog

If no objection come from any maintainers

Signature · 11 lines
Michael Nazzareno Trimarchi
Co-Founder & Chief Executive Officer
M. +39 347 913 2170
[email protected]
__________________________________

Amarula Solutions BV
Joop Geesinkweg 125, 1114 AB, Amsterdam, NL
T. +31 (0)85 111 9172
[email protected]
www.amarulasolutions.com
Reviewed-by on v1 47/88
#67 lore raw

Re: [PATCH 47/88] mtd: Drop unused fsmc_nand driver

In reply to Simon Glass

Hi,

Quoted 7 lines · Simon Glass

This is not used since this commit:

570c3dcfc15 arm: Remove spear600 boards and the rest of SPEAr support

Drop the driver and Kconfig option.

Quoted 9 lines

---

  drivers/mtd/nand/raw/Makefile    |   1 -
  drivers/mtd/nand/raw/fsmc_nand.c | 470 -------------------------------
  include/linux/mtd/fsmc_nand.h    |  84 ------
  3 files changed, 555 deletions(-)

delete mode 100644 drivers/mtd/nand/raw/fsmc_nand.c delete mode 100644 include/linux/mtd/fsmc_nand.h

For STMicroelectronics / SPEAr

Thanks
Patrick

#68 lore raw

PATCH 48/88 mtd: Drop unused kb9202_nand driver

In reply to Simon Glass

This is not used since time out of mind.

Drop the driver and Kconfig option.

---

 drivers/mtd/nand/raw/Makefile      |   1 -
 drivers/mtd/nand/raw/kb9202_nand.c | 134 -----------------------------
 2 files changed, 135 deletions(-)
 delete mode 100644 drivers/mtd/nand/raw/kb9202_nand.c
drivers/mtd/nand/raw/Makefile +0 -1
index f004eb39f3b..c25acb11804 100644
@@ -56,7 +56,6 @@ obj-$(CONFIG_NAND_DENALI) += denali.o
 obj-$(CONFIG_NAND_DENALI_DT) += denali_dt.o
 obj-$(CONFIG_NAND_FSL_ELBC) += fsl_elbc_nand.o
 obj-$(CONFIG_NAND_FSL_IFC) += fsl_ifc_nand.o
-obj-$(CONFIG_NAND_KB9202) += kb9202_nand.o
 obj-$(CONFIG_NAND_KIRKWOOD) += kirkwood_nand.o
 obj-$(CONFIG_NAND_KMETER1) += kmeter1_nand.o
 obj-$(CONFIG_NAND_LPC32XX_MLC) += lpc32xx_nand_mlc.o
drivers/mtd/nand/raw/kb9202_nand.c deleted +0 -134

134 lines not on this page · raw message

Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#69 lore raw

PATCH 49/88 mtd: Drop unused nand_plat driver

In reply to Simon Glass

This is not used since this commit:

936478e797a SPARC: Remove

Drop the driver and Kconfig option.

---

 drivers/mtd/nand/raw/Makefile    |  1 -
 drivers/mtd/nand/raw/nand_plat.c | 65 --------------------------------
 2 files changed, 66 deletions(-)
 delete mode 100644 drivers/mtd/nand/raw/nand_plat.c
drivers/mtd/nand/raw/Makefile +0 -1
index c25acb11804..add2b4cf655 100644
@@ -70,7 +70,6 @@ obj-$(CONFIG_NAND_PXA3XX) += pxa3xx_nand.o
 obj-$(CONFIG_TEGRA_NAND) += tegra_nand.o
 obj-$(CONFIG_NAND_OMAP_GPMC) += omap_gpmc.o
 obj-$(CONFIG_NAND_OMAP_ELM) += omap_elm.o
-obj-$(CONFIG_NAND_PLAT) += nand_plat.o
 obj-$(CONFIG_NAND_SUNXI) += sunxi_nand.o
 obj-$(CONFIG_NAND_MXIC) += mxic_nand.o
 obj-$(CONFIG_NAND_ZYNQ) += zynq_nand.o
drivers/mtd/nand/raw/nand_plat.c deleted +0 -65

65 lines not on this page · raw message

Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#70 lore raw

PATCH 50/88 Makefile: Drop CONFIG_OF_EARLY_FLATTREE

In reply to Simon Glass

This option does not exist, so drop the dead code.

---

 Makefile | 4 ----
 1 file changed, 4 deletions(-)
Makefile +0 -4
index 92a95361982..59377362f75 100644
@@ -2003,10 +2003,6 @@ dtbs: prepare3 scripts_dtc
 dtbs_install:
 	$(Q)$(MAKE) $(dtbinst)=$(dtstree)
 
-ifdef CONFIG_OF_EARLY_FLATTREE
-all: dtbs
-endif
-
 endif
 
 # Check dtc and pylibfdt, if DTC is provided, else build them
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#71 lore raw

PATCH 51/88 omap: Drop unused CONFIG_OMAP_USB_PHY

In reply to Simon Glass

This option does not exist, so the Makefile rule does nothing. Drop it.

---

 drivers/Makefile | 1 -
 1 file changed, 1 deletion(-)
drivers/Makefile +0 -1
index 83b14ef1fd3..15d19d0c8a3 100644
@@ -59,7 +59,6 @@ obj-$(CONFIG_SPL_USB_GADGET) += usb/common/
 obj-$(CONFIG_SPL_USB_GADGET) += usb/gadget/udc/
 obj-$(CONFIG_SPL_WATCHDOG) += watchdog/
 obj-$(CONFIG_SPL_USB_HOST) += usb/host/
-obj-$(CONFIG_OMAP_USB_PHY) += usb/phy/
 obj-$(CONFIG_SPL_SATA) += ata/ scsi/
 obj-$(CONFIG_SPL_LEGACY_BLOCK) += block/
 obj-$(CONFIG_SPL_THERMAL) += thermal/
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#73 lore raw

PATCH 52/88 mtd: Drop unused CONFIG_ONENAND_U_BOOT

In reply to Simon Glass

This option does not exist, so the Makefile rule does nothing. Drop it.

---

 Makefile | 1 -
 1 file changed, 1 deletion(-)
Makefile +0 -1
index 59377362f75..59b5b108168 100644
@@ -956,7 +956,6 @@ endif
 # Always append INPUTS so that arch config.mk's can add custom ones
 INPUTS-y += u-boot.srec u-boot.bin u-boot.sym System.map binary_size_check
 
-INPUTS-$(CONFIG_ONENAND_U_BOOT) += u-boot-onenand.bin
 ifeq ($(CONFIG_SPL_FSL_PBL),y)
 INPUTS-$(CONFIG_RAMBOOT_PBL) += u-boot-with-spl-pbl.bin
 else
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#74 lore raw

PATCH 53/88 ppc: Drop unused CONFIG_P2020DS

In reply to Simon Glass

This option does not exist, so the Makefile rule does nothing. Drop it.

---

 board/freescale/common/Makefile | 1 -
 1 file changed, 1 deletion(-)
board/freescale/common/Makefile +0 -1
index fc51d6d3e18..9d5f38bb225 100644
@@ -54,7 +54,6 @@ obj-$(CONFIG_TARGET_MPC8548CDS)	+= cds_pci_ft.o
 
 obj-$(CONFIG_TARGET_MPC8536DS)	+= ics307_clk.o
 obj-$(CONFIG_TARGET_P1022DS)		+= ics307_clk.o
-obj-$(CONFIG_P2020DS)		+= ics307_clk.o
 obj-$(CONFIG_TARGET_P3041DS)		+= ics307_clk.o
 obj-$(CONFIG_TARGET_P4080DS)		+= ics307_clk.o
 obj-$(CONFIG_TARGET_P5040DS)		+= ics307_clk.o
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#75 lore raw

PATCH 54/88 gpio: Drop unused pca9698 driver

In reply to Simon Glass

This is not used. Drop the driver and Kconfig option.

---

 arch/mips/mach-octeon/octeon_fdt.c |  43 +---------
 board/gdsys/a38x/hre.c             |   1 -
 drivers/gpio/Makefile              |   1 -
 drivers/gpio/pca9698.c             | 127 -----------------------------
 include/pca9698.h                  |  17 ----
 5 files changed, 1 insertion(+), 188 deletions(-)
 delete mode 100644 drivers/gpio/pca9698.c
 delete mode 100644 include/pca9698.h
arch/mips/mach-octeon/octeon_fdt.c +1 -42
index 0ccfe149dcc..c74fe9d9fb8 100644
@@ -30,9 +30,6 @@
 #ifdef CONFIG_PCF857X
 #include <pcf857x.h>
 #endif
-#ifdef CONFIG_PCA9698
-#include <pca9698.h>
-#endif
 #ifdef CONFIG_PCA9554
 #include <pca9554.h>
 #endif
@@ -59,13 +56,6 @@ static const char * const pca9555_gpio_list[] = {
 };
 #endif
 
-#ifdef CONFIG_PCA9698
-/** List of compatible strings supported by pca9698 driver */
-static const char * const pca9698_gpio_list[] = {
-	"nxp,pca9505", "pca9505", "nxp,pca9698", "pca9698", NULL,
-};
-#endif
-
 #ifdef CONFIG_PCA953X
 /** List of compatible strings supported by pca953x driver */
 static const char * const pca953x_gpio_list[] = {
@@ -807,19 +797,6 @@ int octeon_fdt_read_gpio(const void *fdt, int phandle, int pin)
 		}
 		value = (value >> pin) & 1;
 		break;
-#endif
-#ifdef CONFIG_PCA9698
-	case CVMX_GPIO_PIN_PCA9698:
-		node = fdt_node_offset_by_phandle(fdt, phandle);
-		if (octeon_fdt_get_i2c_bus_addr(fdt, node, &bus, &addr)) {
-			printf("%s: Could not get gpio bus and/or address\n", __func__);
-			return -1;
-		}
-		old_bus = i2c_get_bus_num();
-		i2c_set_bus_num(bus);
-		value = pca9698_get_value(addr, pin);
-		i2c_set_bus_num(old_bus);
-		break;
 #endif
 	case CVMX_GPIO_PIN_OCTEON:
 		value = gpio_get_value(pin);
@@ -880,18 +857,6 @@ int octeon_fdt_set_gpio(const void *fdt, int phandle, int pin, int val)
 			return -1;
 		}
 		return pcf957x_set_val(bus, addr, 1 << pin, val << pin);
-#endif
-#ifdef CONFIG_PCA9698
-	case CVMX_GPIO_PIN_PCA9698:
-		if (octeon_fdt_get_i2c_bus_addr(fdt, node, &bus, &addr)) {
-			printf("%s: Could not get gpio bus and/or address\n", __func__);
-			return -1;
-		}
-		old_bus = i2c_get_bus_num();
-		i2c_set_bus_num(bus);
-		rc = pca9698_set_value(addr, pin, val);
-		i2c_set_bus_num(old_bus);
-		return rc;
 #endif
 	case CVMX_GPIO_PIN_OCTEON:
 		return gpio_set_value(pin, val);
@@ -951,13 +916,7 @@ int octeon_fdt_get_gpio_info(int fdt_node, enum octeon_gpio_type *type,
 		*type = GPIO_TYPE_PCA953X;
 	}
 #endif
-#ifdef CONFIG_PCA9698
-	if (!octeon_fdt_node_check_compatible(fdt, fdt_node, pca9698_gpio_list)) {
-		debug("%s: Found PCA9698 compatible GPIO", __func__);
-		*type = GPIO_TYPE_PCA9698;
-	}
-#endif
-#if defined(CONFIG_PCA953X) || defined(CONFIG_PCA9698) || \
+#if defined(CONFIG_PCA953X) || \
 	defined(CONFIG_PCA9555) || defined(CONFIG_PCA9554)
 	if (!i2c_addr || !i2c_bus) {
 		printf("%s: Error: i2c_addr or i2c_bus is NULL\n", __func__);
board/gdsys/a38x/hre.c +0 -1
index 2f16a4d3e11..d16233ed78e 100644
@@ -15,7 +15,6 @@
 #include <u-boot/sha1.h>
 #include <asm/byteorder.h>
 #include <asm/unaligned.h>
-#include <pca9698.h>
 
 #include "hre.h"
 
drivers/gpio/Makefile +0 -1
index 889a88dc885..fcd136367ac 100644
@@ -28,7 +28,6 @@ obj-$(CONFIG_MXC_GPIO)	+= mxc_gpio.o
 obj-$(CONFIG_MXS_GPIO)	+= mxs_gpio.o
 obj-$(CONFIG_NPCM_GPIO)      	+= npcm_gpio.o
 obj-$(CONFIG_PCA953X)		+= pca953x.o
-obj-$(CONFIG_PCA9698)		+= pca9698.o
 obj-$(CONFIG_ROCKCHIP_GPIO)	+= rk_gpio.o
 obj-$(CONFIG_RCAR_GPIO)		+= gpio-rcar.o
 obj-$(CONFIG_RZA1_GPIO)		+= gpio-rza1.o
drivers/gpio/pca9698.c deleted +0 -127

127 lines not on this page · raw message

include/pca9698.h deleted +0 -17
deleted file mode 100644
index 48a5f756e28..00000000000
@@ -1,17 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2011
- * Dirk Eibach,  Guntermann & Drunck GmbH, [email protected]
- */
-
-#ifndef __PCA9698_H_
-#define __PCA9698_H_
-
-int pca9698_request(unsigned gpio, const char *label);
-void pca9698_free(unsigned gpio);
-int pca9698_direction_input(u8 addr, unsigned gpio);
-int pca9698_direction_output(u8 addr, unsigned gpio, int value);
-int pca9698_get_value(u8 addr, unsigned gpio);
-int pca9698_set_value(u8 addr, unsigned gpio, int value);
-
-#endif /* __PCA9698_H_ */
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#76 lore raw

PATCH 55/88 samsung: Rename PINCTRL_EXYNOS78x0

In reply to Simon Glass

CONFIG options must not use lower-case letter. Convert this to upper case.

---

 arch/arm/mach-exynos/Kconfig    | 6 +++---
 drivers/pinctrl/exynos/Kconfig  | 2 +-
 drivers/pinctrl/exynos/Makefile | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)
arch/arm/mach-exynos/Kconfig +3 -3
index 8f3aee052c8..1a1fd7261b1 100644
@@ -204,7 +204,7 @@ config  TARGET_A5Y17LTE
 	select CLK_EXYNOS
 	select OF_CONTROL
 	select PINCTRL
-	select PINCTRL_EXYNOS78x0
+	select PINCTRL_EXYNOS78X0
 	select SUPPORT_SPL
 
 config  TARGET_A7Y17LTE
@@ -213,7 +213,7 @@ config  TARGET_A7Y17LTE
 	select CLK_EXYNOS
 	select OF_CONTROL
 	select PINCTRL
-	select PINCTRL_EXYNOS78x0
+	select PINCTRL_EXYNOS78X0
 	select SUPPORT_SPL
 
 config  TARGET_A3Y17LTE
@@ -222,7 +222,7 @@ config  TARGET_A3Y17LTE
 	select CLK_EXYNOS
 	select OF_CONTROL
 	select PINCTRL
-	select PINCTRL_EXYNOS78x0
+	select PINCTRL_EXYNOS78X0
 	select SUPPORT_SPL
 
 endchoice
drivers/pinctrl/exynos/Kconfig +1 -1
index a60f49869b4..821bdd14072 100644
@@ -9,7 +9,7 @@ config PINCTRL_EXYNOS7420
 	  Support pin multiplexing and pin configuration control on
 	  Samsung's Exynos7420 SoC.
 
-config PINCTRL_EXYNOS78x0
+config PINCTRL_EXYNOS78X0
 	bool "Samsung Exynos78x0 pinctrl driver"
 	depends on ARCH_EXYNOS && PINCTRL_FULL
 	select PINCTRL_EXYNOS
drivers/pinctrl/exynos/Makefile +1 -1
index 07db970ca94..445c8e17aea 100644
@@ -5,4 +5,4 @@
 
 obj-$(CONFIG_PINCTRL_EXYNOS)		+= pinctrl-exynos.o
 obj-$(CONFIG_PINCTRL_EXYNOS7420)	+= pinctrl-exynos7420.o
-obj-$(CONFIG_PINCTRL_EXYNOS78x0)	+= pinctrl-exynos78x0.o
+obj-$(CONFIG_PINCTRL_EXYNOS78X0)	+= pinctrl-exynos78x0.o
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#77 lore raw

PATCH 56/88 power: Drop unused bat_trats driver and battery code

In reply to Simon Glass

This driver and bat_trats2 are not used. Drop them and the entire battery directory, since there is nothing left.

---

 drivers/power/Makefile             |  1 -
 drivers/power/battery/Makefile     |  7 ---
 drivers/power/battery/bat_trats.c  | 91 ------------------------------
 drivers/power/battery/bat_trats2.c | 65 ---------------------
 4 files changed, 164 deletions(-)
 delete mode 100644 drivers/power/battery/Makefile
 delete mode 100644 drivers/power/battery/bat_trats.c
 delete mode 100644 drivers/power/battery/bat_trats2.c
drivers/power/Makefile +0 -1
index 34a84808a9c..efdae3655ac 100644
@@ -4,7 +4,6 @@
 # Tom Rix <Tom.Rix at windriver.com>
 
 obj-$(CONFIG_$(SPL_TPL_)ACPI_PMC) += acpi_pmc/
-obj-y += battery/
 obj-$(CONFIG_$(SPL_TPL_)POWER_DOMAIN) += domain/
 obj-y += fuel_gauge/
 obj-y += mfd/
drivers/power/battery/Makefile deleted +0 -7
deleted file mode 100644
index 370923a6ed9..00000000000
@@ -1,7 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# Copyright (C) 2012 Samsung Electronics
-# Lukasz Majewski <[email protected]>
-
-obj-$(CONFIG_POWER_BATTERY_TRATS) += bat_trats.o
-obj-$(CONFIG_POWER_BATTERY_TRATS2) += bat_trats2.o
drivers/power/battery/bat_trats.c deleted +0 -91

91 lines not on this page · raw message

drivers/power/battery/bat_trats2.c deleted +0 -65

65 lines not on this page · raw message

Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
Reviewed-by on v1 56/88
#78 lore raw

Re: [PATCH 56/88] power: Drop unused bat_trats driver and battery code

Quoted 4 lines · Simon Glass

This driver and bat_trats2 are not used. Drop them and the entire battery directory, since there is nothing left.

Best Regards,
Jaehoon Chung

Quoted 204 lines

---

 drivers/power/Makefile             |  1 -
 drivers/power/battery/Makefile     |  7 ---
 drivers/power/battery/bat_trats.c  | 91 ------------------------------
 drivers/power/battery/bat_trats2.c | 65 ---------------------
 4 files changed, 164 deletions(-)
 delete mode 100644 drivers/power/battery/Makefile
 delete mode 100644 drivers/power/battery/bat_trats.c
 delete mode 100644 drivers/power/battery/bat_trats2.c
drivers/power/Makefile +0 -1
index 34a84808a9c..efdae3655ac 100644
@@ -4,7 +4,6 @@
 # Tom Rix <Tom.Rix at windriver.com>
 
 obj-$(CONFIG_$(SPL_TPL_)ACPI_PMC) += acpi_pmc/
-obj-y += battery/
 obj-$(CONFIG_$(SPL_TPL_)POWER_DOMAIN) += domain/
 obj-y += fuel_gauge/
 obj-y += mfd/
drivers/power/battery/Makefile deleted +0 -7
deleted file mode 100644
index 370923a6ed9..00000000000
@@ -1,7 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# Copyright (C) 2012 Samsung Electronics
-# Lukasz Majewski <[email protected]>
-
-obj-$(CONFIG_POWER_BATTERY_TRATS) += bat_trats.o
-obj-$(CONFIG_POWER_BATTERY_TRATS2) += bat_trats2.o
drivers/power/battery/bat_trats.c deleted +0 -91
deleted file mode 100644
index 54b2bf91e5c..00000000000
@@ -1,91 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- *  Copyright (C) 2012 Samsung Electronics
- *  Lukasz Majewski <[email protected]>
- */
-
-#include <common.h>
-#include <console.h>
-#include <log.h>
-#include <linux/delay.h>
-#include <power/pmic.h>
-#include <power/battery.h>
-#include <power/max8997_pmic.h>
-#include <errno.h>
-
-static struct battery battery_trats;
-
-static int power_battery_charge(struct pmic *bat)
-{
-	struct power_battery *p_bat = bat->pbat;
-	struct battery *battery = p_bat->bat;
-	int k;
-
-	if (bat->chrg->chrg_state(p_bat->chrg, PMIC_CHARGER_ENABLE, 450))
-		return -1;
-
-	for (k = 0; bat->chrg->chrg_bat_present(p_bat->chrg) &&
-		     bat->chrg->chrg_type(p_bat->muic) &&
-		     battery->state_of_chrg < 100; k++) {
-		udelay(2000000);
-		if (!(k % 5))
-			puts(".");
-		bat->fg->fg_battery_update(p_bat->fg, bat);
-
-		if (k == 200) {
-			debug(" %d [V]", battery->voltage_uV);
-			puts("\n");
-			k = 0;
-		}
-
-		if (ctrlc()) {
-			printf("\nCharging disabled on request.\n");
-			goto exit;
-		}
-	}
- exit:
-	bat->chrg->chrg_state(p_bat->chrg, PMIC_CHARGER_DISABLE, 0);
-
-	return 0;
-}
-
-static int power_battery_init_trats(struct pmic *bat_,
-				    struct pmic *fg_,
-				    struct pmic *chrg_,
-				    struct pmic *muic_)
-{
-	bat_->pbat->fg = fg_;
-	bat_->pbat->chrg = chrg_;
-	bat_->pbat->muic = muic_;
-
-	bat_->fg = fg_->fg;
-	bat_->chrg = chrg_->chrg;
-	bat_->chrg->chrg_type = muic_->chrg->chrg_type;
-	return 0;
-}
-
-static struct power_battery power_bat_trats = {
-	.bat = &battery_trats,
-	.battery_init = power_battery_init_trats,
-	.battery_charge = power_battery_charge,
-};
-
-int power_bat_init(unsigned char bus)
-{
-	static const char name[] = "BAT_TRATS";
-	struct pmic *p = pmic_alloc();
-
-	if (!p) {
-		printf("%s: POWER allocation error!\n", __func__);
-		return -ENOMEM;
-	}
-
-	debug("Board BAT init\n");
-
-	p->interface = PMIC_NONE;
-	p->name = name;
-	p->bus = bus;
-
-	p->pbat = &power_bat_trats;
-	return 0;
-}
drivers/power/battery/bat_trats2.c deleted +0 -65
deleted file mode 100644
index 1172970d1e0..00000000000
@@ -1,65 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- *  Copyright (C) 2013 Samsung Electronics
- *  Piotr Wilczek <[email protected]>
- */
-
-#include <common.h>
-#include <log.h>
-#include <power/pmic.h>
-#include <power/battery.h>
-#include <power/max77693_pmic.h>
-#include <errno.h>
-
-static struct battery battery_trats;
-
-static int power_battery_charge(struct pmic *bat)
-{
-	struct power_battery *p_bat = bat->pbat;
-
-	if (bat->chrg->chrg_state(p_bat->chrg, PMIC_CHARGER_ENABLE, 450))
-		return -EINVAL;
-
-	return 0;
-}
-
-static int power_battery_init_trats2(struct pmic *bat_,
-				    struct pmic *fg_,
-				    struct pmic *chrg_,
-				    struct pmic *muic_)
-{
-	bat_->pbat->fg = fg_;
-	bat_->pbat->chrg = chrg_;
-	bat_->pbat->muic = muic_;
-
-	bat_->fg = fg_->fg;
-	bat_->chrg = chrg_->chrg;
-	bat_->chrg->chrg_type = muic_->chrg->chrg_type;
-	return 0;
-}
-
-static struct power_battery power_bat_trats2 = {
-	.bat = &battery_trats,
-	.battery_init = power_battery_init_trats2,
-	.battery_charge = power_battery_charge,
-};
-
-int power_bat_init(unsigned char bus)
-{
-	static const char name[] = "BAT_TRATS2";
-	struct pmic *p = pmic_alloc();
-
-	if (!p) {
-		printf("%s: POWER allocation error!\n", __func__);
-		return -ENOMEM;
-	}
-
-	debug("Board BAT init\n");
-
-	p->interface = PMIC_NONE;
-	p->name = name;
-	p->bus = bus;
-
-	p->pbat = &power_bat_trats2;
-	return 0;
-}
#79 lore raw

PATCH 57/88 power: Drop unused fg_max17042 driver and fuel gauge code

In reply to Simon Glass

This driver is not used. Drop it and the entire fuel_gauge directory, since there is nothing left.

---

 drivers/power/Makefile                 |   1 -
 drivers/power/fuel_gauge/Makefile      |   6 -
 drivers/power/fuel_gauge/fg_max17042.c | 287 -------------------------
 include/power/fg_battery_cell_params.h |  73 -------
 4 files changed, 367 deletions(-)
 delete mode 100644 drivers/power/fuel_gauge/Makefile
 delete mode 100644 drivers/power/fuel_gauge/fg_max17042.c
 delete mode 100644 include/power/fg_battery_cell_params.h
drivers/power/Makefile +0 -1
index efdae3655ac..93003e97e01 100644
@@ -5,7 +5,6 @@
 
 obj-$(CONFIG_$(SPL_TPL_)ACPI_PMC) += acpi_pmc/
 obj-$(CONFIG_$(SPL_TPL_)POWER_DOMAIN) += domain/
-obj-y += fuel_gauge/
 obj-y += mfd/
 obj-y += pmic/
 obj-y += regulator/
drivers/power/fuel_gauge/Makefile deleted +0 -6
deleted file mode 100644
index ca2df947585..00000000000
@@ -1,6 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# Copyright (C) 2012 Samsung Electronics
-# Lukasz Majewski <[email protected]>
-
-obj-$(CONFIG_POWER_FG_MAX17042) += fg_max17042.o
drivers/power/fuel_gauge/fg_max17042.c deleted +0 -287

287 lines not on this page · raw message

include/power/fg_battery_cell_params.h deleted +0 -73

73 lines not on this page · raw message

Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
Reviewed-by on v1 57/88
#80 lore raw

Re: [PATCH 57/88] power: Drop unused fg_max17042 driver and fuel gauge code

Quoted 4 lines · Simon Glass

This driver is not used. Drop it and the entire fuel_gauge directory, since there is nothing left.

Best Regards,
Jaehoon Chung

Quoted 407 lines

---

 drivers/power/Makefile                 |   1 -
 drivers/power/fuel_gauge/Makefile      |   6 -
 drivers/power/fuel_gauge/fg_max17042.c | 287 -------------------------
 include/power/fg_battery_cell_params.h |  73 -------
 4 files changed, 367 deletions(-)
 delete mode 100644 drivers/power/fuel_gauge/Makefile
 delete mode 100644 drivers/power/fuel_gauge/fg_max17042.c
 delete mode 100644 include/power/fg_battery_cell_params.h
drivers/power/Makefile +0 -1
index efdae3655ac..93003e97e01 100644
@@ -5,7 +5,6 @@
 
 obj-$(CONFIG_$(SPL_TPL_)ACPI_PMC) += acpi_pmc/
 obj-$(CONFIG_$(SPL_TPL_)POWER_DOMAIN) += domain/
-obj-y += fuel_gauge/
 obj-y += mfd/
 obj-y += pmic/
 obj-y += regulator/
drivers/power/fuel_gauge/Makefile deleted +0 -6
deleted file mode 100644
index ca2df947585..00000000000
@@ -1,6 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# Copyright (C) 2012 Samsung Electronics
-# Lukasz Majewski <[email protected]>
-
-obj-$(CONFIG_POWER_FG_MAX17042) += fg_max17042.o
drivers/power/fuel_gauge/fg_max17042.c deleted +0 -287
deleted file mode 100644
index a395d587a86..00000000000
@@ -1,287 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- *  Copyright (C) 2012 Samsung Electronics
- *  Lukasz Majewski <[email protected]>
- */
-
-#include <common.h>
-#include <log.h>
-#include <linux/delay.h>
-#include <power/pmic.h>
-#include <power/max17042_fg.h>
-#include <i2c.h>
-#include <power/max8997_pmic.h>
-#include <power/power_chrg.h>
-#include <power/battery.h>
-#include <power/fg_battery_cell_params.h>
-#include <errno.h>
-
-static int fg_write_regs(struct pmic *p, u8 addr, u16 *data, int num)
-{
-	int ret = 0;
-	int i;
-
-	for (i = 0; i < num; i++, addr++) {
-		ret = pmic_reg_write(p, addr, *(data + i));
-		if (ret)
-			return ret;
-	}
-
-	return 0;
-}
-
-static int fg_read_regs(struct pmic *p, u8 addr, u16 *data, int num)
-{
-	unsigned int dat;
-	int ret = 0;
-	int i;
-
-	for (i = 0; i < num; i++, addr++) {
-		ret = pmic_reg_read(p, addr, &dat);
-		if (ret)
-			return ret;
-
-		*(data + i) = (u16)dat;
-	}
-
-	return 0;
-}
-
-static int fg_write_and_verify(struct pmic *p, u8 addr, u16 data)
-{
-	unsigned int val = data;
-	int ret = 0;
-
-	ret |= pmic_reg_write(p, addr, val);
-	ret |= pmic_reg_read(p, addr, &val);
-
-	if (ret)
-		return ret;
-
-	if (((u16) val) == data)
-		return 0;
-
-	return -1;
-}
-
-static void por_fuelgauge_init(struct pmic *p)
-{
-	u16 r_data0[16], r_data1[16], r_data2[16];
-	u32 rewrite_count = 5;
-	u32 check_count;
-	u32 lock_count;
-	u32 i = 0;
-	u32 val;
-	s32 ret = 0;
-	char *status_msg;
-
-	/* Delay 500 ms */
-	mdelay(500);
-	/* Initilize Configuration */
-	pmic_reg_write(p, MAX17042_CONFIG, 0x2310);
-
-rewrite_model:
-	check_count = 5;
-	lock_count = 5;
-
-	if (!rewrite_count--) {
-		status_msg = "init failed!";
-		goto error;
-	}
-
-	/* Unlock Model Access */
-	pmic_reg_write(p, MAX17042_MLOCKReg1, MODEL_UNLOCK1);
-	pmic_reg_write(p, MAX17042_MLOCKReg2, MODEL_UNLOCK2);
-
-	/* Write/Read/Verify the Custom Model */
-	ret = fg_write_regs(p, MAX17042_MODEL1, cell_character0,
-			     ARRAY_SIZE(cell_character0));
-	if (ret)
-		goto rewrite_model;
-
-	ret = fg_write_regs(p, MAX17042_MODEL2, cell_character1,
-			     ARRAY_SIZE(cell_character1));
-	if (ret)
-		goto rewrite_model;
-
-	ret = fg_write_regs(p, MAX17042_MODEL3, cell_character2,
-			     ARRAY_SIZE(cell_character2));
-	if (ret)
-		goto rewrite_model;
-
-check_model:
-	if (!check_count--) {
-		if (rewrite_count)
-			goto rewrite_model;
-		else
-			status_msg = "check failed!";
-
-		goto error;
-	}
-
-	ret = fg_read_regs(p, MAX17042_MODEL1, r_data0, ARRAY_SIZE(r_data0));
-	if (ret)
-		goto check_model;
-
-	ret = fg_read_regs(p, MAX17042_MODEL2, r_data1, ARRAY_SIZE(r_data1));
-	if (ret)
-		goto check_model;
-
-	ret = fg_read_regs(p, MAX17042_MODEL3, r_data2, ARRAY_SIZE(r_data2));
-	if (ret)
-		goto check_model;
-
-	for (i = 0; i < 16; i++) {
-		if ((cell_character0[i] != r_data0[i])
-		    || (cell_character1[i] != r_data1[i])
-		    || (cell_character2[i] != r_data2[i]))
-			goto rewrite_model;
-		}
-
-lock_model:
-	if (!lock_count--) {
-		if (rewrite_count)
-			goto rewrite_model;
-		else
-			status_msg = "lock failed!";
-
-		goto error;
-	}
-
-	/* Lock model access */
-	pmic_reg_write(p, MAX17042_MLOCKReg1, MODEL_LOCK1);
-	pmic_reg_write(p, MAX17042_MLOCKReg2, MODEL_LOCK2);
-
-	/* Verify the model access is locked */
-	ret = fg_read_regs(p, MAX17042_MODEL1, r_data0, ARRAY_SIZE(r_data0));
-	if (ret)
-		goto lock_model;
-
-	ret = fg_read_regs(p, MAX17042_MODEL2, r_data1, ARRAY_SIZE(r_data1));
-	if (ret)
-		goto lock_model;
-
-	ret = fg_read_regs(p, MAX17042_MODEL3, r_data2, ARRAY_SIZE(r_data2));
-	if (ret)
-		goto lock_model;
-
-	for (i = 0; i < ARRAY_SIZE(r_data0); i++) {
-		/* Check if model locked */
-		if (r_data0[i] || r_data1[i] || r_data2[i])
-			goto lock_model;
-	}
-
-	/* Write Custom Parameters */
-	fg_write_and_verify(p, MAX17042_RCOMP0, RCOMP0);
-	fg_write_and_verify(p, MAX17042_TEMPCO, TempCo);
-
-	/* Delay at least 350mS */
-	mdelay(350);
-
-	/* Initialization Complete */
-	pmic_reg_read(p, MAX17042_STATUS, &val);
-	/* Write and Verify Status with POR bit Cleared */
-	fg_write_and_verify(p, MAX17042_STATUS, val & ~MAX17042_POR);
-
-	/* Delay at least 350 ms */
-	mdelay(350);
-
-	status_msg = "OK!";
-error:
-	debug("%s: model init status: %s\n", p->name, status_msg);
-	return;
-}
-
-static int power_update_battery(struct pmic *p, struct pmic *bat)
-{
-	struct power_battery *pb = bat->pbat;
-	unsigned int val;
-	int ret = 0;
-
-	if (pmic_probe(p)) {
-		puts("Can't find max17042 fuel gauge\n");
-		return -ENODEV;
-	}
-
-	ret |= pmic_reg_read(p, MAX17042_VFSOC, &val);
-	pb->bat->state_of_chrg = (val >> 8);
-
-	pmic_reg_read(p, MAX17042_VCELL, &val);
-	debug("vfsoc: 0x%x\n", val);
-	pb->bat->voltage_uV = ((val & 0xFFUL) >> 3) + ((val & 0xFF00) >> 3);
-	pb->bat->voltage_uV = (pb->bat->voltage_uV * 625);
-
-	pmic_reg_read(p, 0x05, &val);
-	pb->bat->capacity = val >> 2;
-
-	return ret;
-}
-
-static int power_check_battery(struct pmic *p, struct pmic *bat)
-{
-	struct power_battery *pb = bat->pbat;
-	unsigned int val;
-	int ret = 0;
-
-	if (pmic_probe(p)) {
-		puts("Can't find max17042 fuel gauge\n");
-		return -ENODEV;
-	}
-
-	ret |= pmic_reg_read(p, MAX17042_STATUS, &val);
-	debug("fg status: 0x%x\n", val);
-
-	if (val & MAX17042_POR)
-		por_fuelgauge_init(p);
-
-	ret |= pmic_reg_read(p, MAX17042_VERSION, &val);
-	pb->bat->version = val;
-
-	power_update_battery(p, bat);
-	debug("fg ver: 0x%x\n", pb->bat->version);
-	printf("BAT: state_of_charge(SOC):%d%%\n",
-	       pb->bat->state_of_chrg);
-
-	printf("     voltage: %d.%6.6d [V] (expected to be %d [mAh])\n",
-	       pb->bat->voltage_uV / 1000000,
-	       pb->bat->voltage_uV % 1000000,
-	       pb->bat->capacity);
-
-	if (pb->bat->voltage_uV > 3850000)
-		pb->bat->state = EXT_SOURCE;
-	else if (pb->bat->voltage_uV < 3600000 || pb->bat->state_of_chrg < 5)
-		pb->bat->state = CHARGE;
-	else
-		pb->bat->state = NORMAL;
-
-	return ret;
-}
-
-static struct power_fg power_fg_ops = {
-	.fg_battery_check = power_check_battery,
-	.fg_battery_update = power_update_battery,
-};
-
-int power_fg_init(unsigned char bus)
-{
-	static const char name[] = "MAX17042_FG";
-	struct pmic *p = pmic_alloc();
-
-	if (!p) {
-		printf("%s: POWER allocation error!\n", __func__);
-		return -ENOMEM;
-	}
-
-	debug("Board Fuel Gauge init\n");
-
-	p->name = name;
-	p->interface = PMIC_I2C;
-	p->number_of_regs = FG_NUM_OF_REGS;
-	p->hw.i2c.addr = MAX17042_I2C_ADDR;
-	p->hw.i2c.tx_num = 2;
-	p->sensor_byte_order = PMIC_SENSOR_BYTE_ORDER_BIG;
-	p->bus = bus;
-
-	p->fg = &power_fg_ops;
-	return 0;
-}
include/power/fg_battery_cell_params.h deleted +0 -73
deleted file mode 100644
index 500c8ea7174..00000000000
@@ -1,73 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- *  Copyright (C) 2012 Samsung Electronics
- *  Lukasz Majewski <[email protected]>
- */
-
-#ifndef __FG_BATTERY_CELL_PARAMS_H_
-#define __FG_BATTERY_CELL_PARAMS_H_
-
-#if  defined(CONFIG_POWER_FG_MAX17042) && defined(CONFIG_TARGET_TRATS)
-
-/* Cell characteristics - Exynos4 TRATS development board */
-/* Shall be written to addr 0x80h */
-u16 cell_character0[16] = {
-	0xA2A0,
-	0xB6E0,
-	0xB850,
-	0xBAD0,
-	0xBB20,
-	0xBB70,
-	0xBBC0,
-	0xBC20,
-	0xBC80,
-	0xBCE0,
-	0xBD80,
-	0xBE20,
-	0xC090,
-	0xC420,
-	0xC910,
-	0xD070
-};
-
-/* Shall be written to addr 0x90h */
-u16 cell_character1[16] = {
-	0x0090,
-	0x1A50,
-	0x02F0,
-	0x2060,
-	0x2060,
-	0x2E60,
-	0x26A0,
-	0x2DB0,
-	0x2DB0,
-	0x1870,
-	0x2A20,
-	0x16F0,
-	0x08F0,
-	0x0D40,
-	0x08C0,
-	0x08C0
-};
-
-/* Shall be written to addr 0xA0h */
-u16 cell_character2[16] = {
-	0x0100,
-	0x0100,
-	0x0100,
-	0x0100,
-	0x0100,
-	0x0100,
-	0x0100,
-	0x0100,
-	0x0100,
-	0x0100,
-	0x0100,
-	0x0100,
-	0x0100,
-	0x0100,
-	0x0100,
-	0x0100
-};
-#endif
-#endif /* __FG_BATTERY_CELL_PARAMS_H_ */
#81 lore raw

PATCH 58/88 power: Drop unused muic_max77693 driver and mfd code

In reply to Simon Glass

This driver is not used and has lain unconverted since:

fc47cf9d054 arm: exynos: i2c: Convert exynos boards to use DM_I2C

Drop it and the entire mfd directory, since there is nothing left.

---

 drivers/power/Makefile            |  1 -
 drivers/power/mfd/Makefile        |  6 ---
 drivers/power/mfd/muic_max77693.c | 77 -------------------------------
 3 files changed, 84 deletions(-)
 delete mode 100644 drivers/power/mfd/Makefile
 delete mode 100644 drivers/power/mfd/muic_max77693.c
drivers/power/Makefile +0 -1
index 93003e97e01..ba64b2c5938 100644
@@ -5,7 +5,6 @@
 
 obj-$(CONFIG_$(SPL_TPL_)ACPI_PMC) += acpi_pmc/
 obj-$(CONFIG_$(SPL_TPL_)POWER_DOMAIN) += domain/
-obj-y += mfd/
 obj-y += pmic/
 obj-y += regulator/
 
drivers/power/mfd/Makefile deleted +0 -6
deleted file mode 100644
index b5ec8f00bb0..00000000000
@@ -1,6 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# Copyright (C) 2013 Samsung Electronics
-# Piotr Wilczek <[email protected]>
-
-obj-$(CONFIG_POWER_MUIC_MAX77693) += muic_max77693.o
drivers/power/mfd/muic_max77693.c deleted +0 -77

77 lines not on this page · raw message

Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
Reviewed-by on v1 58/88
#82 lore raw

Re: [PATCH 58/88] power: Drop unused muic_max77693 driver and mfd code

Quoted 7 lines · Simon Glass

This driver is not used and has lain unconverted since:

fc47cf9d054 arm: exynos: i2c: Convert exynos boards to use DM_I2C

Drop it and the entire mfd directory, since there is nothing left.

Best Regards,
Jaehoon Chung

Quoted 116 lines

---

 drivers/power/Makefile            |  1 -
 drivers/power/mfd/Makefile        |  6 ---
 drivers/power/mfd/muic_max77693.c | 77 -------------------------------
 3 files changed, 84 deletions(-)
 delete mode 100644 drivers/power/mfd/Makefile
 delete mode 100644 drivers/power/mfd/muic_max77693.c
drivers/power/Makefile +0 -1
index 93003e97e01..ba64b2c5938 100644
@@ -5,7 +5,6 @@
 
 obj-$(CONFIG_$(SPL_TPL_)ACPI_PMC) += acpi_pmc/
 obj-$(CONFIG_$(SPL_TPL_)POWER_DOMAIN) += domain/
-obj-y += mfd/
 obj-y += pmic/
 obj-y += regulator/
 
drivers/power/mfd/Makefile deleted +0 -6
deleted file mode 100644
index b5ec8f00bb0..00000000000
@@ -1,6 +0,0 @@
-# SPDX-License-Identifier: GPL-2.0+
-#
-# Copyright (C) 2013 Samsung Electronics
-# Piotr Wilczek <[email protected]>
-
-obj-$(CONFIG_POWER_MUIC_MAX77693) += muic_max77693.o
drivers/power/mfd/muic_max77693.c deleted +0 -77
deleted file mode 100644
index 36ee44b9a2c..00000000000
@@ -1,77 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Copyright (C) 2013 Samsung Electronics
- * Piotr Wilczek <[email protected]>
- */
-
-#include <common.h>
-#include <log.h>
-#include <power/pmic.h>
-#include <power/power_chrg.h>
-#include <power/max77693_muic.h>
-#include <i2c.h>
-#include <errno.h>
-
-static int power_chrg_get_type(struct pmic *p)
-{
-	unsigned int val;
-	unsigned int charge_type, charger;
-
-	/* if probe failed, return cable none */
-	if (pmic_probe(p))
-		return CHARGER_NO;
-
-	pmic_reg_read(p, MAX77693_MUIC_STATUS2, &val);
-
-	charge_type = val & MAX77693_MUIC_CHG_MASK;
-
-	switch (charge_type) {
-	case MAX77693_MUIC_CHG_NO:
-		charger = CHARGER_NO;
-		break;
-	case MAX77693_MUIC_CHG_USB:
-	case MAX77693_MUIC_CHG_USB_D:
-		charger = CHARGER_USB;
-		break;
-	case MAX77693_MUIC_CHG_TA:
-	case MAX77693_MUIC_CHG_TA_1A:
-		charger = CHARGER_TA;
-		break;
-	case MAX77693_MUIC_CHG_TA_500:
-		charger = CHARGER_TA_500;
-		break;
-	default:
-		charger = CHARGER_UNKNOWN;
-		break;
-	}
-
-	return charger;
-}
-
-static struct power_chrg power_chrg_muic_ops = {
-	.chrg_type = power_chrg_get_type,
-};
-
-int power_muic_init(unsigned int bus)
-{
-	static const char name[] = "MAX77693_MUIC";
-	struct pmic *p = pmic_alloc();
-
-	if (!p) {
-		printf("%s: POWER allocation error!\n", __func__);
-		return -ENOMEM;
-	}
-
-	debug("Board Micro USB Interface Controller init\n");
-
-	p->name = name;
-	p->interface = PMIC_I2C;
-	p->number_of_regs = MUIC_NUM_OF_REGS;
-	p->hw.i2c.addr = MAX77693_MUIC_I2C_ADDR;
-	p->hw.i2c.tx_num = 1;
-	p->bus = bus;
-
-	p->chrg = &power_chrg_muic_ops;
-
-	return 0;
-}
#83 lore raw

PATCH 59/88 power: Drop unused muic_max8997 driver

In reply to Simon Glass

This is not used. Drop the driver and Kconfig option.

---

 drivers/power/pmic/Makefile       |  1 -
 drivers/power/pmic/muic_max8997.c | 74 -------------------------------
 2 files changed, 75 deletions(-)
 delete mode 100644 drivers/power/pmic/muic_max8997.c
drivers/power/pmic/Makefile +0 -1
index c3180c58208..0b3b3d62d0e 100644
@@ -37,7 +37,6 @@ obj-$(CONFIG_POWER_TPS65218) += pmic_tps65218.o
 
 ifeq ($(CONFIG_$(SPL_)POWER_LEGACY),y)
 obj-$(CONFIG_POWER_LTC3676) += pmic_ltc3676.o
-obj-$(CONFIG_POWER_MUIC_MAX8997) += muic_max8997.o
 obj-$(CONFIG_POWER_PCA9450) += pmic_pca9450.o
 obj-$(CONFIG_POWER_PFUZE100) += pmic_pfuze100.o
 obj-$(CONFIG_POWER_PFUZE3000) += pmic_pfuze3000.o
drivers/power/pmic/muic_max8997.c deleted +0 -74

74 lines not on this page · raw message

Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
Reviewed-by on v1 59/88
#84 lore raw

Re: [PATCH 59/88] power: Drop unused muic_max8997 driver

Quoted 3 lines · Simon Glass

This is not used. Drop the driver and Kconfig option.

Best Regards,
Jaehoon Chung

Quoted 99 lines

---

 drivers/power/pmic/Makefile       |  1 -
 drivers/power/pmic/muic_max8997.c | 74 -------------------------------
 2 files changed, 75 deletions(-)
 delete mode 100644 drivers/power/pmic/muic_max8997.c
drivers/power/pmic/Makefile +0 -1
index c3180c58208..0b3b3d62d0e 100644
@@ -37,7 +37,6 @@ obj-$(CONFIG_POWER_TPS65218) += pmic_tps65218.o
 
 ifeq ($(CONFIG_$(SPL_)POWER_LEGACY),y)
 obj-$(CONFIG_POWER_LTC3676) += pmic_ltc3676.o
-obj-$(CONFIG_POWER_MUIC_MAX8997) += muic_max8997.o
 obj-$(CONFIG_POWER_PCA9450) += pmic_pca9450.o
 obj-$(CONFIG_POWER_PFUZE100) += pmic_pfuze100.o
 obj-$(CONFIG_POWER_PFUZE3000) += pmic_pfuze3000.o
drivers/power/pmic/muic_max8997.c deleted +0 -74
deleted file mode 100644
index 969ce902395..00000000000
@@ -1,74 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- *  Copyright (C) 2012 Samsung Electronics
- *  Lukasz Majewski <[email protected]>
- */
-
-#include <common.h>
-#include <log.h>
-#include <power/pmic.h>
-#include <power/power_chrg.h>
-#include <power/max8997_muic.h>
-#include <i2c.h>
-#include <errno.h>
-
-static int power_chrg_get_type(struct pmic *p)
-{
-	unsigned int val;
-	unsigned char charge_type, charger;
-
-	if (pmic_probe(p))
-		return CHARGER_NO;
-
-	pmic_reg_read(p, MAX8997_MUIC_STATUS2, &val);
-	charge_type = val & MAX8997_MUIC_CHG_MASK;
-
-	switch (charge_type) {
-	case MAX8997_MUIC_CHG_NO:
-		charger = CHARGER_NO;
-		break;
-	case MAX8997_MUIC_CHG_USB:
-	case MAX8997_MUIC_CHG_USB_D:
-		charger = CHARGER_USB;
-		break;
-	case MAX8997_MUIC_CHG_TA:
-	case MAX8997_MUIC_CHG_TA_1A:
-		charger = CHARGER_TA;
-		break;
-	case MAX8997_MUIC_CHG_TA_500:
-		charger = CHARGER_TA_500;
-		break;
-	default:
-		charger = CHARGER_UNKNOWN;
-		break;
-	}
-
-	return charger;
-}
-
-static struct power_chrg power_chrg_muic_ops = {
-	.chrg_type = power_chrg_get_type,
-};
-
-int power_muic_init(unsigned int bus)
-{
-	static const char name[] = "MAX8997_MUIC";
-	struct pmic *p = pmic_alloc();
-
-	if (!p) {
-		printf("%s: POWER allocation error!\n", __func__);
-		return -ENOMEM;
-	}
-
-	debug("Board Micro USB Interface Controller init\n");
-
-	p->name = name;
-	p->interface = PMIC_I2C;
-	p->number_of_regs = MUIC_NUM_OF_REGS;
-	p->hw.i2c.addr = MAX8997_MUIC_I2C_ADDR;
-	p->hw.i2c.tx_num = 1;
-	p->bus = bus;
-
-	p->chrg = &power_chrg_muic_ops;
-	return 0;
-}
#85 lore raw

PATCH 60/88 freescale: Drop unused pq-mds-pib driver

In reply to Simon Glass

This is not used. Drop the driver and Kconfig option.

---

 board/freescale/common/Makefile     |  1 -
 board/freescale/common/pq-mds-pib.c | 60 -----------------------------
 board/freescale/common/pq-mds-pib.h |  9 -----
 3 files changed, 70 deletions(-)
 delete mode 100644 board/freescale/common/pq-mds-pib.c
 delete mode 100644 board/freescale/common/pq-mds-pib.h
board/freescale/common/Makefile +0 -1
index 9d5f38bb225..bd035d60a58 100644
@@ -36,7 +36,6 @@ obj-$(I2C_COMMON)		+= i2c_common.o
 obj-$(CONFIG_FSL_USE_PCA9547_MUX)		+= i2c_mux.o
 obj-$(CONFIG_$(SPL_)VID)	+= vid.o
 obj-$(CONFIG_FSL_QIXIS)	+= qixis.o
-obj-$(CONFIG_PQ_MDS_PIB)	+= pq-mds-pib.o
 ifndef CONFIG_SPL_BUILD
 obj-$(CONFIG_ID_EEPROM)	+= sys_eeprom.o
 endif
board/freescale/common/pq-mds-pib.c deleted +0 -60

60 lines not on this page · raw message

board/freescale/common/pq-mds-pib.h deleted +0 -9
deleted file mode 100644
index 67066fd118d..00000000000
@@ -1,9 +0,0 @@
-/*
- * Copyright (C) 2007 Freescale Semiconductor, Inc.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation;
- */
-
-extern int pib_init(void);
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#86 lore raw

PATCH 61/88 rmobile: Drop CONFIG_RMOBILE

In reply to Simon Glass

This has been renamed to CONFIG_ARCH_RMOBILE but this one was left behind. It doesn't point to a directory that exists, so just drop it.

---

 arch/arm/cpu/armv7/Makefile | 1 -
 1 file changed, 1 deletion(-)
arch/arm/cpu/armv7/Makefile +0 -1
index 7d7907601ec..653eef8ad79 100644
@@ -37,7 +37,6 @@ obj-$(if $(filter bcm281xx,$(SOC)),y) += bcm281xx/
 obj-$(if $(filter bcmcygnus,$(SOC)),y) += bcmcygnus/
 obj-$(if $(filter bcmnsp,$(SOC)),y) += bcmnsp/
 obj-$(if $(filter ls102xa,$(SOC)),y) += ls102xa/
-obj-$(CONFIG_RMOBILE) += rmobile/
 obj-$(if $(filter stv0991,$(SOC)),y) += stv0991/
 obj-$(CONFIG_ARCH_SUNXI) += sunxi/
 obj-$(CONFIG_VF610) += vf610/
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#87 lore raw

PATCH 62/88 rtc: Drop old and unused drivers

In reply to Simon Glass

These drivers are not used and have not been converted to driver model. Drop them and references to the non-existent CONFIG options they use.

---

 drivers/rtc/Makefile       |  14 --
 drivers/rtc/at91sam9_rtt.c |  78 -------
 drivers/rtc/ds1302.c       | 329 ----------------------------
 drivers/rtc/ds1306.c       | 438 -------------------------------------
 drivers/rtc/ftrtc010.c     | 122 -----------
 drivers/rtc/imxdi.c        | 223 -------------------
 drivers/rtc/max6900.c      | 105 ---------
 drivers/rtc/mk48t59.c      | 175 ---------------
 drivers/rtc/mx27rtc.c      |  64 ------
 drivers/rtc/rs5c372.c      | 256 ----------------------
 drivers/rtc/s3c24x0_rtc.c  | 149 -------------
 drivers/rtc/x1205.c        | 161 --------------
 12 files changed, 2114 deletions(-)
 delete mode 100644 drivers/rtc/at91sam9_rtt.c
 delete mode 100644 drivers/rtc/ds1302.c
 delete mode 100644 drivers/rtc/ds1306.c
 delete mode 100644 drivers/rtc/ftrtc010.c
 delete mode 100644 drivers/rtc/imxdi.c
 delete mode 100644 drivers/rtc/max6900.c
 delete mode 100644 drivers/rtc/mk48t59.c
 delete mode 100644 drivers/rtc/mx27rtc.c
 delete mode 100644 drivers/rtc/rs5c372.c
 delete mode 100644 drivers/rtc/s3c24x0_rtc.c
 delete mode 100644 drivers/rtc/x1205.c
drivers/rtc/Makefile +0 -14
index acfd130bbc9..447551e15aa 100644
@@ -6,49 +6,35 @@
 
 obj-$(CONFIG_$(SPL_TPL_)DM_RTC) += rtc-uclass.o
 
-obj-$(CONFIG_RTC_AT91SAM9_RTT) += at91sam9_rtt.o
 obj-$(CONFIG_RTC_ARMADA38X) += armada38x.o
 obj-$(CONFIG_RTC_DAVINCI) += davinci.o
-obj-$(CONFIG_RTC_DS1302) += ds1302.o
-obj-$(CONFIG_RTC_DS1306) += ds1306.o
 obj-$(CONFIG_RTC_DS1307) += ds1307.o
 obj-$(CONFIG_RTC_DS1338) += ds1307.o
-obj-$(CONFIG_RTC_DS1339) += ds1307.o
 obj-$(CONFIG_RTC_DS1337) += ds1337.o
 obj-$(CONFIG_RTC_DS1374) += ds1374.o
-obj-$(CONFIG_RTC_DS1388) += ds1337.o
 obj-$(CONFIG_RTC_DS3231) += ds3231.o
 obj-$(CONFIG_RTC_DS3232) += ds3232.o
 obj-$(CONFIG_RTC_EMULATION) += emul_rtc.o
-obj-$(CONFIG_RTC_FTRTC010) += ftrtc010.o
 obj-$(CONFIG_RTC_HT1380) += ht1380.o
 obj-$(CONFIG_SANDBOX) += i2c_rtc_emul.o
-obj-$(CONFIG_RTC_IMXDI) += imxdi.o
 obj-$(CONFIG_RTC_ISL1208) += isl1208.o
 obj-$(CONFIG_RTC_M41T62) += m41t62.o
-obj-$(CONFIG_RTC_MAX6900) += max6900.o
 obj-$(CONFIG_RTC_MC13XXX) += mc13xxx-rtc.o
 obj-$(CONFIG_RTC_MC146818) += mc146818.o
-obj-$(CONFIG_RTC_MCP79411) += ds1307.o
 obj-$(CONFIG_MCFRTC) += mcfrtc.o
-obj-$(CONFIG_RTC_MK48T59) += mk48t59.o
 obj-$(CONFIG_RTC_MV) += mvrtc.o
-obj-$(CONFIG_RTC_MX27) += mx27rtc.o
 obj-$(CONFIG_RTC_MXS) += mxsrtc.o
 obj-$(CONFIG_RTC_PCF8563) += pcf8563.o
 obj-$(CONFIG_RTC_PCF2127) += pcf2127.o
 obj-$(CONFIG_RTC_PL031) += pl031.o
 obj-$(CONFIG_RTC_PT7C4338) += pt7c4338.o
-obj-$(CONFIG_RTC_RS5C372A) += rs5c372.o
 obj-$(CONFIG_RTC_RV3028) += rv3028.o
 obj-$(CONFIG_RTC_RV3029) += rv3029.o
 obj-$(CONFIG_RTC_RV8803) += rv8803.o
 obj-$(CONFIG_RTC_RX8025) += rx8025.o
 obj-$(CONFIG_RTC_RX8010SJ) += rx8010sj.o
-obj-$(CONFIG_RTC_S3C24X0) += s3c24x0_rtc.o
 obj-$(CONFIG_RTC_S35392A) += s35392a.o
 obj-$(CONFIG_RTC_STM32) += stm32_rtc.o
 obj-$(CONFIG_SANDBOX) += sandbox_rtc.o
-obj-$(CONFIG_RTC_X1205) += x1205.o
 obj-$(CONFIG_RTC_ABX80X) += abx80x.o
 obj-$(CONFIG_RTC_ZYNQMP) += zynqmp_rtc.o
drivers/rtc/at91sam9_rtt.c deleted +0 -78

78 lines not on this page · raw message

drivers/rtc/ds1302.c deleted +0 -329

329 lines not on this page · raw message

drivers/rtc/ds1306.c deleted +0 -438

438 lines not on this page · raw message

drivers/rtc/ftrtc010.c deleted +0 -122

122 lines not on this page · raw message

drivers/rtc/imxdi.c deleted +0 -223

223 lines not on this page · raw message

drivers/rtc/max6900.c deleted +0 -105

105 lines not on this page · raw message

drivers/rtc/mk48t59.c deleted +0 -175

175 lines not on this page · raw message

drivers/rtc/mx27rtc.c deleted +0 -64

64 lines not on this page · raw message

drivers/rtc/rs5c372.c deleted +0 -256

256 lines not on this page · raw message

drivers/rtc/s3c24x0_rtc.c deleted +0 -149

149 lines not on this page · raw message

drivers/rtc/x1205.c deleted +0 -161

161 lines not on this page · raw message

Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#88 lore raw

PATCH 63/88 mtd: Drop unused CONFIG_S32V234

In reply to Simon Glass

This option does not exist, so the Makefile rule does nothing. Drop it.

---

 arch/arm/cpu/armv8/Makefile | 1 -
 1 file changed, 1 deletion(-)
arch/arm/cpu/armv8/Makefile +0 -1
index 2e4bf9e038c..bba4f570dbb 100644
@@ -39,7 +39,6 @@ obj-$(CONFIG_SPL_RECOVER_DATA_SECTION) += spl_data.o
 endif
 
 obj-$(CONFIG_FSL_LAYERSCAPE) += fsl-layerscape/
-obj-$(CONFIG_S32V234) += s32v234/
 obj-$(CONFIG_TARGET_HIKEY) += hisilicon/
 obj-$(CONFIG_ARMV8_PSCI) += psci.o
 obj-$(CONFIG_TARGET_BCMNS3) += bcmns3/
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#89 lore raw

PATCH 64/88 mtd: Drop unused scf0403_lcd driver

In reply to Simon Glass

This is not used since this commit:

76386d6195a arm: Remove cm_t35 board

Drop the driver and Kconfig option.

---

 drivers/video/Makefile      |   1 -
 drivers/video/scf0403_lcd.c | 297 ------------------------------------
 include/scf0403_lcd.h       |  10 --
 3 files changed, 308 deletions(-)
 delete mode 100644 drivers/video/scf0403_lcd.c
 delete mode 100644 include/scf0403_lcd.h
drivers/video/Makefile +0 -1
index 12b68cdd068..ce2d61d56bc 100644
@@ -34,7 +34,6 @@ obj-$(CONFIG_LOGICORE_DP_TX) += logicore_dp_tx.o
 obj-$(CONFIG_NXP_TDA19988) += tda19988.o
 obj-$(CONFIG_OSD) += video_osd-uclass.o
 obj-$(CONFIG_SANDBOX_OSD) += sandbox_osd.o
-obj-$(CONFIG_SCF0403_LCD) += scf0403_lcd.o
 obj-$(CONFIG_VIDEO_ARM_MALIDP) += mali_dp.o
 obj-$(CONFIG_VIDEO_BCM2835) += bcm2835.o
 obj-$(CONFIG_VIDEO_BROADWELL_IGD) += broadwell_igd.o
drivers/video/scf0403_lcd.c deleted +0 -297

297 lines not on this page · raw message

include/scf0403_lcd.h deleted +0 -10
deleted file mode 100644
index 07f8c643ba5..00000000000
@@ -1,10 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright (c) 2013, Compulab Inc.
- */
-#ifndef SCF0403_LCD_H_
-#define SCF0403_LCD_H_
-
-int scf0403_init(int reset_gpio);
-
-#endif
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog