Skip to contentSkip to conversation

Clean up of bad Kconfig options

PATCH In review Simon Glass 6 participants 87 messages Feb 1, 2023 – Feb 22, 2023

Subsystems (26)
lore
Share & tools
lore
#0 lore raw

v3 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.

Changes in v3:
- Update to support lower case CONFIG options
- Drop efi_loader change
- Drop the 10 patches that rename lower-case Kconfig options

Changes in v2:
- Just drop the reference
- Reinstate usb_hub code removed by accident
- Drop patch "treewide: Correct invalid Kconfig syntax and warnings"

Simon Glass (76):
moveconfig: Add an option to compare Kconfig against source
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
arm: mvebu: Remove 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
imx: Drop unused CONFIG_IMX
arm: Drop old kona code
video: Drop unused lg4573 driver
m68k: Drop unused CONFIG_M52277
m68k: Drop unused CONFIG_MACH_DAVINCI_DA830_EVM
arm: Drop CONFIG_MMU
arc: Drop CONFIG_MMU
gpio: Drop unused mpc83xx_gpio driver
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
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
tools: Drop xway-swap-bytes tool
freescale: Drop unused zm7300 driver
fdt: Drop use of non-existent OF_PLATDATA option

 Makefile                                      |   24 +-
 README                                        |    7 -
 arch/arc/config.mk                            |    4 -
 arch/arc/lib/ints_low.S                       |    5 -
 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/lib/debug.S                          |   21 -
 arch/arm/mach-exynos/Kconfig                  |    6 +-
 arch/arm/mach-mvebu/Makefile                  |    4 +-
 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/m68k/Makefile                            |    1 -
 arch/mips/mach-octeon/octeon_fdt.c            |   43 +-
 arch/powerpc/lib/Makefile                     |    1 -
 arch/powerpc/lib/bat_rw.c                     |  244 --
 arch/sandbox/config.mk                        |    2 -
 arch/sh/include/asm/pci.h                     |    2 -
 .../compulab/imx8mm-cl-iot-gate/ddr/Makefile  |    4 -
 board/davinci/da8xxevm/Makefile               |    1 -
 board/freescale/common/Makefile               |    8 -
 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/vsc3316_3308.c         |  530 ----
 board/freescale/common/zm7300.c               |  232 --
 board/freescale/common/zm7300.h               |   21 -
 board/freescale/mx7ulp_evk/Makefile           |    4 -
 board/gdsys/a38x/hre.c                        |    1 -
 board/gdsys/common/Makefile                   |    3 +-
 board/gdsys/common/fpga.c                     |   28 -
 board/xes/common/Makefile                     |    1 -
 board/xes/common/actl_nand.c                  |   49 -
 cmd/Kconfig                                   |    7 +
 cmd/Makefile                                  |    2 -
 cmd/dataflash_mmc_mux.c                       |   48 -
 cmd/mfsl.c                                    |  387 ---
 cmd/nvedit.c                                  |    1 -
 common/usb_hub.c                              |    6 -
 drivers/Makefile                              |    1 -
 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/Makefile                          |    1 -
 drivers/i2c/kona_i2c.c                        |  728 -----
 drivers/i2c/sh_i2c.c                          |    5 -
 drivers/input/Makefile                        |    1 -
 drivers/input/twl6030.c                       |   47 -
 drivers/misc/Makefile                         |    2 -
 drivers/misc/ali512x.c                        |  401 ---
 drivers/misc/mc9sdz60.c                       |   34 -
 drivers/mtd/nand/raw/Makefile                 |    5 -
 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/pci/Makefile                          |    1 -
 drivers/pci/pci_sh7780.c                      |   92 -
 drivers/pinctrl/exynos/Kconfig                |    2 +-
 drivers/pinctrl/exynos/Makefile               |    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/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/sysreset/Makefile                     |    2 +-
 drivers/usb/gadget/Makefile                   |    3 +-
 drivers/usb/gadget/fotg210.c                  |  964 ------
 drivers/usb/gadget/gadget_chips.h             |    8 -
 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 --
 dts/Kconfig                                   |    4 +-
 env/Makefile                                  |    1 -
 env/env.c                                     |    3 -
 env/sata.c                                    |  122 -
 include/faraday/ftpmu010.h                    |  234 --
 include/linux/mtd/fsl_upm.h                   |   44 -
 include/linux/mtd/fsmc_nand.h                 |   84 -
 include/netdev.h                              |    1 -
 include/pca9698.h                             |   17 -
 include/power/fg_battery_cell_params.h        |   73 -
 include/scf0403_lcd.h                         |   10 -
 include/usb/fotg210.h                         |  362 ---
 include/usb/fusbh200.h                        |   59 -
 tools/.gitignore                              |    1 -
 tools/Makefile                                |   14 +-
 tools/moveconfig.py                           |  334 ++
 tools/mxsimage.c                              |    2 +-
 tools/ubsha1.c                                |   83 -
 tools/xway-swap-bytes.c                       |   38 -
 140 files changed, 376 insertions(+), 16447 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 v3 1/76 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.

---

Changes in v3:
- Update to support lower case CONFIG options
- Drop efi_loader change

 tools/moveconfig.py | 334 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 334 insertions(+)
tools/moveconfig.py +334 -0
index 8f084a6070a..c4d72ede368 100755
@@ -93,6 +93,18 @@ SIZES = {
 
 RE_REMOVE_DEFCONFIG = re.compile(r'(.*)_defconfig')
 
+# CONFIG symbols present in the build system (from Linux) but not actually used
+# in U-Boot; KCONFIG symbols
+IGNORE_SYMS = ['DEBUG_SECTION_MISMATCH', 'FTRACE_MCOUNT_RECORD', 'GCOV_KERNEL',
+               'GCOV_PROFILE_ALL', 'KALLSYMS', 'KASAN', 'MODVERSIONS', 'SHELL',
+               'TPL_BUILD', 'VPL_BUILD', 'IS_ENABLED', 'FOO', 'IF_ENABLED_INT',
+               'IS_ENABLED_', 'IS_ENABLED_1', 'IS_ENABLED_2', 'IS_ENABLED_3',
+               'SPL_', 'TPL_', 'SPL_FOO', 'TPL_FOO', 'TOOLS_FOO',
+               'ACME', 'SPL_ACME', 'TPL_ACME', 'TRACE_BRANCH_PROFILING',
+               'VAL', '_UNDEFINED', 'SPL_BUILD', ]
+
+SPL_PREFIXES = ['SPL_', 'TPL_', 'VPL_', 'TOOLS_']
+
 ### helper functions ###
 def check_top_directory():
     """Exit if we are not at the top of source directory."""
@@ -536,6 +548,7 @@ class KconfigScanner:
         os.environ['srctree'] = os.getcwd()
         os.environ['UBOOTVERSION'] = 'dummy'
         os.environ['KCONFIG_OBJDIR'] = ''
+        os.environ['CC'] = 'gcc'
         self.conf = kconfiglib.Kconfig()
 
 
@@ -1593,6 +1606,319 @@ def prefix_config(cfg):
     return op + cfg
 
 
+RE_MK_CONFIGS = re.compile('CONFIG_(\$\(SPL_(?:TPL_)?\))?([A-Za-z0-9_]*)')
+RE_IFDEF = re.compile('(ifdef|ifndef)')
+RE_C_CONFIGS = re.compile('CONFIG_([A-Za-z0-9_]*)')
+RE_CONFIG_IS = re.compile('CONFIG_IS_ENABLED\(([A-Za-z0-9_]*)\)')
+
+class ConfigUse:
+    def __init__(self, cfg, is_spl, fname, rest):
+        self.cfg = cfg
+        self.is_spl = is_spl
+        self.fname = fname
+        self.rest = rest
+
+    def __hash__(self):
+        return hash((self.cfg, self.is_spl))
+
+def scan_makefiles(fnames):
+    """Scan Makefiles looking for Kconfig options
+
+    Looks for uses of CONFIG options in Makefiles
+
+    Args:
+        fnames (list of tuple):
+            str: Makefile filename where the option was found
+            str: Line of the Makefile
+
+    Returns:
+        tuple:
+            dict: all_uses
+                key (ConfigUse): object
+                value (list of str): matching lines
+            dict: Uses by filename
+                key (str): filename
+                value (set of ConfigUse): uses in that filename
+
+    >>> RE_MK_CONFIGS.search('CONFIG_FRED').groups()
+    (None, 'FRED')
+    >>> RE_MK_CONFIGS.search('CONFIG_$(SPL_)MARY').groups()
+    ('$(SPL_)', 'MARY')
+    >>> RE_MK_CONFIGS.search('CONFIG_$(SPL_TPL_)MARY').groups()
+    ('$(SPL_TPL_)', 'MARY')
+    """
+    all_uses = collections.defaultdict(list)
+    fname_uses = {}
+    for fname, rest in fnames:
+        m_iter = RE_MK_CONFIGS.finditer(rest)
+        found = False
+        for m in m_iter:
+            found = True
+            real_opt = m.group(2)
+            if real_opt == '':
+                continue
+            is_spl = False
+            if m.group(1):
+                is_spl = True
+            use = ConfigUse(real_opt, is_spl, fname, rest)
+            if fname not in fname_uses:
+                fname_uses[fname] = set()
+            fname_uses[fname].add(use)
+            all_uses[use].append(rest)
+    return all_uses, fname_uses
+
+
+def scan_src_files(fnames):
+    """Scan source files (other than Makefiles) looking for Kconfig options
+
+    Looks for uses of CONFIG options
+
+    Args:
+        fnames (list of tuple):
+            str: Makefile filename where the option was found
+            str: Line of the Makefile
+
+    Returns:
+        tuple:
+            dict: all_uses
+                key (ConfigUse): object
+                value (list of str): matching lines
+            dict: Uses by filename
+                key (str): filename
+                value (set of ConfigUse): uses in that filename
+
+    >>> RE_C_CONFIGS.search('CONFIG_FRED').groups()
+    ('FRED',)
+    >>> RE_CONFIG_IS.search('CONFIG_IS_ENABLED(MARY)').groups()
+    ('MARY',)
+    >>> RE_CONFIG_IS.search('#if CONFIG_IS_ENABLED(OF_PLATDATA)').groups()
+    ('OF_PLATDATA',)
+    """
+    def add_uses(m_iter, is_spl):
+        for m in m_iter:
+            found = True
+            real_opt = m.group(1)
+            if real_opt == '':
+                continue
+            use = ConfigUse(real_opt, is_spl, fname, rest)
+            if fname not in fname_uses:
+                fname_uses[fname] = set()
+            fname_uses[fname].add(use)
+            all_uses[use].append(rest)
+
+    all_uses = collections.defaultdict(list)
+    fname_uses = {}
+    for fname, rest in fnames:
+        m_iter = RE_C_CONFIGS.finditer(rest)
+        add_uses(m_iter, False)
+
+        m_iter2 = RE_CONFIG_IS.finditer(rest)
+        add_uses(m_iter2, True)
+
+    return all_uses, fname_uses
+
+
+MODE_NORMAL, MODE_SPL, MODE_PROPER = range(3)
+
+def do_scan_source(path, do_update):
+    """Scan the source tree for Kconfig inconsistencies
+
+    Args:
+        path (str): Path to source tree
+        do_update (bool) : True to write to scripts/kconf_... files
+    """
+    def is_not_proper(name):
+        for prefix in SPL_PREFIXES:
+            if name.startswith(prefix):
+                return name[len(prefix):]
+        return False
+
+    def check_not_found(all_uses, spl_mode):
+        """Check for Kconfig options mentioned in the source but not in Kconfig
+
+        Args:
+            all_uses (dict):
+                key (ConfigUse): object
+                value (list of str): matching lines
+            spl_mode (int): If MODE_SPL, look at source code which implies
+                an SPL_ option, but for which there is none;
+                for MOD_PROPER, look at source code which implies a Proper
+                option (i.e. use of CONFIG_IS_ENABLED() or $(SPL_) or
+                $(SPL_TPL_) but for which there none;
+                if MODE_NORMAL, ignore SPL
+
+        Returns:
+            dict:
+                key (str): CONFIG name (without 'CONFIG_' prefix
+                value (list of ConfigUse): List of uses of this CONFIG
+        """
+        # Make sure we know about all the options
+        not_found = collections.defaultdict(list)
+        for use, rest in all_uses.items():
+            name = use.cfg
+            if name in IGNORE_SYMS:
+                continue
+            check = True
+
+            if spl_mode == MODE_SPL:
+                check = use.is_spl
+
+                # If it is an SPL symbol, try prepending all SPL_ prefixes to
+                # find at least one SPL symbol
+                if use.is_spl:
+                    add_to_dict = False
+                    for prefix in SPL_PREFIXES:
+                        try_name = prefix + name
+                        sym = kconf.syms.get(try_name)
+                        if sym:
+                            break
+                    if not sym:
+                        not_found[f'SPL_{name}'].append(use)
+                    continue
+            elif spl_mode == MODE_PROPER:
+                # Try to find the Proper version of this symbol, i.e. without
+                # the SPL_ prefix
+                proper_name = is_not_proper(name)
+                if proper_name:
+                    name = proper_name
+                elif not use.is_spl:
+                    check = False
+            else: # MODE_NORMAL
+                debug = False
+                sym = kconf.syms.get(name)
+                if not sym:
+                    proper_name = is_not_proper(name)
+                    if proper_name:
+                        name = proper_name
+                    sym = kconf.syms.get(name)
+                if not sym:
+                    for prefix in SPL_PREFIXES:
+                        try_name = prefix + name
+                        sym = kconf.syms.get(try_name)
+                        if sym:
+                            break
+                if not sym:
+                    not_found[name].append(use)
+                continue
+
+            sym = kconf.syms.get(name)
+            if not sym and check:
+                not_found[name].append(use)
+        return not_found
+
+    def show_uses(uses):
+        """Show a list of uses along with their filename and code snippet
+
+        Args:
+            uses (dict):
+                key (str): CONFIG name (without 'CONFIG_' prefix
+                value (list of ConfigUse): List of uses of this CONFIG
+        """
+        for name in sorted(uses):
+            print(f'{name}: ', end='')
+            for i, use in enumerate(uses[name]):
+                print(f'{"   " if i else ""}{use.fname}: {use.rest.strip()}')
+
+
+    print('Scanning Kconfig')
+    kconf = KconfigScanner().conf
+    print(f'Scanning source in {path}')
+    args = ['git', 'grep', '-E', r'IS_ENABLED|\bCONFIG']
+    with subprocess.Popen(args, stdout=subprocess.PIPE) as proc:
+        out, err = proc.communicate()
+    lines = out.splitlines()
+    re_fname = re.compile('^([^:]*):(.*)')
+    src_list = []
+    mk_list = []
+    for line in lines:
+        linestr = line.decode('utf-8')
+        m_fname = re_fname.search(linestr)
+        if not m_fname:
+            continue
+        fname, rest = m_fname.groups()
+        dirname, leaf = os.path.split(fname)
+        root, ext = os.path.splitext(leaf)
+        if ext == '.autoconf':
+            pass
+        elif ext in ['.c', '.h', '.S', '.lds', '.dts', '.dtsi', '.asl', '.cfg',
+                     '.env', '.tmpl']:
+            src_list.append([fname, rest])
+        elif 'Makefile' in root or ext == '.mk':
+            mk_list.append([fname, rest])
+        elif ext in ['.yml', '.sh', '.py', '.awk', '.pl', '.rst', '', '.sed']:
+            pass
+        elif 'Kconfig' in root or 'Kbuild' in root:
+            pass
+        elif 'README' in root:
+            pass
+        elif dirname in ['configs']:
+            pass
+        elif dirname.startswith('doc') or dirname.startswith('scripts/kconfig'):
+            pass
+        else:
+            print(f'Not sure how to handle file {fname}')
+
+    # Scan the Makefiles
+    all_uses, fname_uses = scan_makefiles(mk_list)
+
+    spl_not_found = set()
+    proper_not_found = set()
+
+    # Make sure we know about all the options
+    print('\nCONFIG options present in Makefiles but not Kconfig:')
+    not_found = check_not_found(all_uses, MODE_NORMAL)
+    show_uses(not_found)
+
+    print('\nCONFIG options present in Makefiles but not Kconfig (SPL):')
+    not_found = check_not_found(all_uses, MODE_SPL)
+    show_uses(not_found)
+    spl_not_found |= set([is_not_proper(key) or key for key in not_found.keys()])
+
+    print('\nCONFIG options used as Proper in Makefiles but without a non-SPL_ variant:')
+    not_found = check_not_found(all_uses, MODE_PROPER)
+    show_uses(not_found)
+    proper_not_found |= set([key for key in not_found.keys()])
+
+    # Scan the source code
+    all_uses, fname_uses = scan_src_files(src_list)
+
+    # Make sure we know about all the options
+    print('\nCONFIG options present in source but not Kconfig:')
+    not_found = check_not_found(all_uses, MODE_NORMAL)
+    show_uses(not_found)
+
+    print('\nCONFIG options present in source but not Kconfig (SPL):')
+    not_found = check_not_found(all_uses, MODE_SPL)
+    show_uses(not_found)
+    spl_not_found |= set([is_not_proper(key) or key for key in not_found.keys()])
+
+    print('\nCONFIG options used as Proper in source but without a non-SPL_ variant:')
+    not_found = check_not_found(all_uses, MODE_PROPER)
+    show_uses(not_found)
+    proper_not_found |= set([key for key in not_found.keys()])
+
+    print('\nCONFIG options used as SPL but without an SPL_ variant:')
+    for item in sorted(spl_not_found):
+        print(f'   {item}')
+
+    print('\nCONFIG options used as Proper but without a non-SPL_ variant:')
+    for item in sorted(proper_not_found):
+        print(f'   {item}')
+
+    # Write out the updated information
+    if do_update:
+        with open(os.path.join(path, 'scripts', 'conf_nospl'), 'w') as out:
+            print('# These options should not be enabled in SPL builds\n',
+                  file=out)
+            for item in sorted(spl_not_found):
+                print(item, file=out)
+        with open(os.path.join(path, 'scripts', 'conf_noproper'), 'w') as out:
+            print('# These options should not be enabled in Proper builds\n',
+                  file=out)
+            for item in sorted(proper_not_found):
+                print(item, file=out)
+
+
 def main():
     try:
         cpu_count = multiprocessing.cpu_count()
@@ -1642,10 +1968,14 @@ doc/develop/moveconfig.rst for documentation.'''
                       help='force sync by savedefconfig')
     parser.add_argument('-S', '--spl', action='store_true', default=False,
                       help='parse config options defined for SPL build')
+    parser.add_argument('--scan-source', action='store_true', default=False,
+                      help='scan source for uses of CONFIG options')
     parser.add_argument('-t', '--test', action='store_true', default=False,
                       help='run unit tests')
     parser.add_argument('-y', '--yes', action='store_true', default=False,
                       help="respond 'yes' to any prompts")
+    parser.add_argument('-u', '--update', action='store_true', default=False,
+                      help="update scripts/ files (use with --scan-source)")
     parser.add_argument('-v', '--verbose', action='store_true', default=False,
                       help='show any build errors as boards are built')
     parser.add_argument('configs', nargs='*')
@@ -1660,6 +1990,10 @@ doc/develop/moveconfig.rst for documentation.'''
             return 1
         unittest.main()
 
+    if args.scan_source:
+        do_scan_source(os.getcwd(), args.update)
+        return
+
     if not any((len(configs), args.force_sync, args.build_db, args.imply,
                 args.find)):
         parser.print_usage()
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#2 lore raw

Re: [PATCH v3 01/76] moveconfig: Add an option to compare Kconfig against source

Quoted 7 lines · Simon Glass

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.

For the series, except for 46/76 which was a rename not dropped in v3, and the one or two that look to be missing in patchwork, applied to u-boot/master, thanks!

Signature · 1 line
Tom
#3 lore raw

Re: [PATCH v3 01/76] moveconfig: Add an option to compare Kconfig against source

Hi Tom,

Quoted 7 lines · Tom Rini
Quoted 4 lines · Simon Glass

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.

Quoted 7 lines
Quoted 3 lines

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

For the series, except for 46/76 which was a rename not dropped in v3, and the one or two that look to be missing in patchwork, applied to u-boot/master, thanks!

OK thanks. It looks like these four patches:

sh4: Drop unused twl6030 driver
samsung: Rename PINCTRL_EXYNOS78x0 (should be dropped)
mtd: Drop unused CONFIG_ONENAND_U_BOOT
mtd: Drop unused kb9202_nand driver

I'm not sure what is wrong with patchwork, or even if it is patchwork, but things seem to be lost sometimes.

Regards,
Simon

#4 lore raw

Re: [PATCH v3 01/76] moveconfig: Add an option to compare Kconfig against source

Quoted 20 lines · Simon Glass

Hi Tom,

Quoted 7 lines · Tom Rini
Quoted 4 lines · Simon Glass

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.

Quoted 7 lines
Quoted 3 lines

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

For the series, except for 46/76 which was a rename not dropped in v3, and the one or two that look to be missing in patchwork, applied to u-boot/master, thanks!

OK thanks. It looks like these four patches:

Quoted 7 lines

sh4: Drop unused twl6030 driver
samsung: Rename PINCTRL_EXYNOS78x0 (should be dropped)
mtd: Drop unused CONFIG_ONENAND_U_BOOT
mtd: Drop unused kb9202_nand driver

I'm not sure what is wrong with patchwork, or even if it is patchwork, but things seem to be lost sometimes.

I suspect Google dropped them on the floor as lore.kernel.org is also missing v3 for the 3 of those that weren't supposed to be dropped. I noticed you had some of the problems I've also had when posting very large/long series where sometimes it'll get rejected and you need to pick up and continue after a bit.

Signature · 1 line
Tom
#5 lore raw

Re: [PATCH v3 01/76] moveconfig: Add an option to compare Kconfig against source

Hi Tom,

Quoted 9 lines · Tom Rini
Quoted 7 lines · Simon Glass

Hi Tom,

Quoted 4 lines · Tom Rini
Quoted 1 line · Simon Glass

Sometimes the Makefile rules or source code refers to Kconfig

options

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

which don't exist. Update the moveconfig tool to check this and

produce

Quoted 17 lines
Quoted 17 lines
Quoted 9 lines
Quoted 5 lines

a series of reports about inconsistencies.

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

For the series, except for 46/76 which was a rename not dropped in v3, and the one or two that look to be missing in patchwork, applied to u-boot/master, thanks!

OK thanks. It looks like these four patches:

sh4: Drop unused twl6030 driver
samsung: Rename PINCTRL_EXYNOS78x0 (should be dropped)
mtd: Drop unused CONFIG_ONENAND_U_BOOT
mtd: Drop unused kb9202_nand driver

Quoted 8 lines
Quoted 2 lines

I'm not sure what is wrong with patchwork, or even if it is patchwork, but things seem to be lost sometimes.

I suspect Google dropped them on the floor as lore.kernel.org is also missing v3 for the 3 of those that weren't supposed to be dropped. I noticed you had some of the problems I've also had when posting very large/long series where sometimes it'll get rejected and you need to pick up and continue after a bit.

Sadly, I think you are right.

Regards,
Simon

#6 lore raw

PATCH v3 2/76 power: Drop fg_max77693

In reply to Simon Glass

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

---

(no changes since v1)

 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
#7 lore raw

PATCH v3 3/76 nand: Drop CONFIG_NAND_SPEAR

In reply to Simon Glass

This is not used anymore. Drop it.

---

(no changes since v1)

 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
#8 lore raw

PATCH v3 4/76 power: Drop pmic_max77693.c

In reply to Simon Glass

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

---

(no changes since v1)

 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
#9 lore raw

PATCH v3 5/76 gpio: Drop adi_gpio2

In reply to Simon Glass

Drop this unused driver.

---

(no changes since v1)

 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
#10 lore raw

PATCH v3 6/76 Makefile: Drop CONFIG_AIS_CONFIG_FILE

In reply to Simon Glass

This is not defined anywhere. Drop it.

---

(no changes since v1)

 Makefile | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
Makefile +1 -2
index 7eaf45496c1..c9d6d67310d 100644
@@ -1528,8 +1528,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
#11 lore raw

PATCH v3 7/76 misc: Drop ali512x

In reply to Simon Glass

Drop this unused driver.

---

(no changes since v1)

 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
#12 lore raw

PATCH v3 8/76 sandbox: Drop reference to CONFIG_ARCH_DEVICE_TREE

In reply to Simon Glass

This is not used anywhere. Drop it.

---

(no changes since v1)

 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
#13 lore raw

PATCH v3 9/76 arm: mvebu: Remove reference to ARMADA_370

In reply to Simon Glass

Drop this as it is not referenced anywhere else in the code.

---

(no changes since v2)

Changes in v2:
- Just drop the reference

 arch/arm/mach-mvebu/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-mvebu/Makefile +1 -1
index a23511b113b..28d3e5e1052 100644
@@ -35,7 +35,7 @@ endif
 
 extra-y += kwbimage.cfg
 
-ifneq ($(CONFIG_ARMADA_370)$(CONFIG_ARMADA_XP),)
+ifneq ($(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
#14 lore raw

PATCH v3 10/76 arm: mvebu: Drop reference to CONFIG_ARMADA_39X

In reply to Simon Glass

This is not defined anywhere. Drop it.

---

(no changes since v1)

 arch/arm/mach-mvebu/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-mvebu/Makefile +1 -1
index 28d3e5e1052..a9f506cf2fb 100644
@@ -38,7 +38,7 @@ extra-y += kwbimage.cfg
 ifneq ($(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
#15 lore raw

PATCH v3 11/76 ppc: Drop bat_rw

In reply to Simon Glass

Drop this unused driver.

---

(no changes since v1)

 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
#16 lore raw

PATCH v3 12/76 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.

---

(no changes since v1)

 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
#17 lore raw

PATCH v3 13/76 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.

---

(no changes since v1)

 cmd/Kconfig | 7 +++++++
 1 file changed, 7 insertions(+)
cmd/Kconfig +7 -0
index 4fe2c75de25..b697469a4cb 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
#18 lore raw

PATCH v3 14/76 cmd: Drop mfsl command

In reply to Simon Glass

This is not used anywhere. Drop it.

---

(no changes since v1)

 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
#19 lore raw

PATCH v3 15/76 Correct CONFIG_CONTROLCENTERDC

In reply to Simon Glass

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

---

(no changes since v1)

 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
#20 lore raw

PATCH v3 16/76 Drop dataflash_mmc_mux command

In reply to Simon Glass

This is not used. Drop it.

---

(no changes since v1)

 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
Reviewed-by on v3 16/76
#21 lore raw

RE: [PATCH v3 16/76] Drop dataflash_mmc_mux command

Quoted 9 lines

-----Original Message-----
From: U-Boot <[email protected]> On Behalf Of Simon Glass
Sent: Thursday, February 2, 2023 5:19 AM
To: [email protected]
Cc: Tom Rini <[email protected]>; Simon Glass <[email protected]>
Subject: [PATCH v3 16/76] Drop dataflash_mmc_mux command

Quoted 3 lines

This is not used. Drop it.

Best Regards,
Jaehoon Chung

Quoted 77 lines

---

(no changes since v1)

 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 -49
deleted file mode 100644
index 73876e9464a..00000000000
@@ -1,48 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * (C) Copyright 2000
- * Wolfgang Denk, DENX Software Engineering, [email protected].
- */
-
-#include <common.h>
-#include <command.h>
-
-static int mmc_nspi (const char *);
-
-int do_dataflash_mmc_mux(struct cmd_tbl *cmdtp, int flag, int argc,
-			 char *const argv[])
-{
-	switch (argc) {
-	case 2:			/* on / off	*/
-		switch (mmc_nspi (argv[1])) {
-		case 0:	AT91F_SelectSPI ();
-			break;
-		case 1:	AT91F_SelectMMC ();
-			break;
-		}
-	case 1:			/* get status */
-		printf ("Mux is configured to be %s\n",
-			AT91F_GetMuxStatus () ? "MMC" : "SPI");
-		return 0;
-	default:
-		return CMD_RET_USAGE;
-	}
-	return 0;
-}
-
-static int mmc_nspi (const char *s)
-{
-	if (strcmp (s, "mmc") == 0) {
-		return 1;
-	} else if (strcmp (s, "spi") == 0) {
-		return 0;
-	}
-	return -1;
-}
-
-U_BOOT_CMD(
-	dataflash_mmc_mux, 2, 1, do_dataflash_mmc_mux,
-	"enable or disable MMC or SPI\n",
-	"[mmc, spi]\n"
-	"    - enable or disable MMC or SPI"
-);
--

2.39.1.456.gfc5497dd1b-goog

#22 lore raw

PATCH v3 17/76 Drop CONFIG_DM644X_GPIO

In reply to Simon Glass

Drop this unused option.

---

(no changes since v1)

 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
#23 lore raw

PATCH v3 18/76 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.

---

(no changes since v1)

 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index c9d6d67310d..2648fd5d8f9 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
#24 lore raw

PATCH v3 19/76 env: Drop ENV_IS_IN_SATA

In reply to Simon Glass

This is not used anywhere, so drop it.

---

(no changes since v1)

 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
#25 lore raw

PATCH v3 20/76 samsung: Drop CONFIG_EXYNOS_PWM_BL

In reply to Simon Glass

This is not defined anywhere. Drop it.

---

(no changes since v1)

 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
Reviewed-by on v3 20/76
#26 lore raw

Re: [PATCH v3 20/76] samsung: Drop CONFIG_EXYNOS_PWM_BL

Hi,

Quoted 21 lines · Simon Glass

This is not defined anywhere. Drop it.

---

(no changes since v1)

 drivers/video/exynos/Makefile | 1 -
 1 file changed, 1 deletion(-)
drivers/video/exynos/Makefile +0 -2
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
--
Quoted 3 lines

2.39.1.456.gfc5497dd1b-goog

Signature · 2 lines
Thanks,
Minkyu Kang.
#27 lore raw

PATCH v3 21/76 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.

---

(no changes since v1)

 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
#28 lore raw

PATCH v3 22/76 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.

---

(no changes since v1)

 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
#29 lore raw

PATCH v3 23/76 misc: Drop mc9sdz60 driver

In reply to Simon Glass

Drop this unused driver.

---

(no changes since v1)

 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
#30 lore raw

PATCH v3 24/76 freescale: Drop unused pixis code

In reply to Simon Glass

Drop this unused code.

---

(no changes since v1)

 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
#31 lore raw

PATCH v3 25/76 freescale: Drop unused ftpmu010 driver

In reply to Simon Glass

Drop this unused code.

---

(no changes since v1)

 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
#32 lore raw

PATCH v3 26/76 rcar: Drop timer

In reply to Simon Glass

Drop this unused driver.

---

(no changes since v1)

 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
#33 lore raw

PATCH v3 27/76 imx: Drop unused CONFIG_IMX

In reply to Simon Glass

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

---

(no changes since v1)

 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
#34 lore raw

PATCH v3 28/76 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.

---

(no changes since v1)

 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
#35 lore raw

PATCH v3 29/76 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.

---

(no changes since v1)

 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
#36 lore raw

PATCH v3 30/76 m68k: Drop unused CONFIG_M52277

In reply to Simon Glass

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

---

(no changes since v1)

 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
#37 lore raw

PATCH v3 31/76 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.

---

(no changes since v1)

 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
#38 lore raw

PATCH v3 32/76 arm: Drop CONFIG_MMU

In reply to Simon Glass

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

---

(no changes since v1)

 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
#39 lore raw

PATCH v3 33/76 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.

---

(no changes since v1)

 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
#40 lore raw

PATCH v3 34/76 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.

---

(no changes since v1)

 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
#41 lore raw

PATCH v3 35/76 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.

---

(no changes since v1)

 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
#42 lore raw

PATCH v3 36/76 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.

---

(no changes since v1)

 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 002821916c4..b00accca1be 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
#43 lore raw

PATCH v3 37/76 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.

---

(no changes since v1)

 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
#44 lore raw

PATCH v3 38/76 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.

---

(no changes since v1)

 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
#45 lore raw

PATCH v3 40/76 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.

---

(no changes since v1)

 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
#46 lore raw

PATCH v3 41/76 Makefile: Drop CONFIG_OF_EARLY_FLATTREE

In reply to Simon Glass

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

---

(no changes since v1)

 Makefile | 4 ----
 1 file changed, 4 deletions(-)
Makefile +0 -4
index 2648fd5d8f9..5ef572e5177 100644
@@ -2004,10 +2004,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
#47 lore raw

PATCH v3 42/76 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.

---

(no changes since v1)

 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
#48 lore raw

PATCH v3 44/76 ppc: Drop unused CONFIG_P2020DS

In reply to Simon Glass

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

---

(no changes since v1)

 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
#49 lore raw

PATCH v3 45/76 gpio: Drop unused pca9698 driver

In reply to Simon Glass

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

---

(no changes since v1)

 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
#50 lore raw

PATCH v3 46/76 samsung: Rename PINCTRL_EXYNOS78x0

In reply to Simon Glass

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

---

(no changes since v1)

 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
Reviewed-by on v3 46/76
#51 lore raw

Re: [PATCH v3 46/76] samsung: Rename PINCTRL_EXYNOS78x0

Hi,

Quoted 69 lines · Simon Glass

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

---

(no changes since v1)

 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 -2
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
--
Quoted 3 lines

2.39.1.456.gfc5497dd1b-goog

Signature · 2 lines
Thanks,
Minkyu Kang.
#52 lore raw

PATCH v3 47/76 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.

---

(no changes since v1)

 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
#53 lore raw

PATCH v3 48/76 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.

---

(no changes since v1)

 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
#54 lore raw

PATCH v3 49/76 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.

---

(no changes since v1)

 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
#55 lore raw

PATCH v3 50/76 power: Drop unused muic_max8997 driver

In reply to Simon Glass

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

---

(no changes since v1)

 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
#56 lore raw

PATCH v3 51/76 freescale: Drop unused pq-mds-pib driver

In reply to Simon Glass

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

---

(no changes since v1)

 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
#57 lore raw

PATCH v3 52/76 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.

---

(no changes since v1)

 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
#58 lore raw

PATCH v3 53/76 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.

---

(no changes since v1)

 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
#59 lore raw

PATCH v3 54/76 mtd: Drop unused CONFIG_S32V234

In reply to Simon Glass

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

---

(no changes since v1)

 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
#60 lore raw

PATCH v3 55/76 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.

---

(no changes since v1)

 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
#61 lore raw

PATCH v3 56/76 rmobile: Drop CONFIG_SH73A0 and associated code

In reply to Simon Glass

This option does not exist, so the code attached to it is not used. Drop it.

---

(no changes since v1)

 arch/arm/mach-rmobile/Makefile                |    1 -
 arch/arm/mach-rmobile/cpu_info-sh73a0.c       |   43 -
 arch/arm/mach-rmobile/cpu_info.c              |    1 -
 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 -----------------
 drivers/i2c/sh_i2c.c                          |    5 -
 drivers/serial/serial_sh.h                    |   10 +-
 10 files changed, 4 insertions(+), 3715 deletions(-)
 delete mode 100644 arch/arm/mach-rmobile/cpu_info-sh73a0.c
 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
arch/arm/mach-rmobile/Makefile +0 -1
index 3f77760e50d..5b86221bc25 100644
@@ -8,7 +8,6 @@ obj-y += emac.o
 
 obj-$(CONFIG_DISPLAY_BOARDINFO) += board.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
 obj-$(CONFIG_RCAR_GEN2) += lowlevel_init_ca15.o cpu_info-rcar.o
 obj-$(CONFIG_RCAR_GEN3) += lowlevel_init_gen3.o cpu_info-rcar.o memmap-gen3.o
arch/arm/mach-rmobile/cpu_info-sh73a0.c deleted +0 -43

43 lines not on this page · raw message

arch/arm/mach-rmobile/cpu_info.c +0 -1
index bd9e71707f5..246029ac294 100644
@@ -62,7 +62,6 @@ static const struct {
 	u16 cpu_type;
 	u8 cpu_name[10];
 } rmobile_cpuinfo[] = {
-	{ RMOBILE_CPU_TYPE_SH73A0, "SH73A0" },
 	{ RMOBILE_CPU_TYPE_R8A7740, "R8A7740" },
 	{ RMOBILE_CPU_TYPE_R8A7790, "R8A7790" },
 	{ RMOBILE_CPU_TYPE_R8A7791, "R8A7791" },
arch/arm/mach-rmobile/include/mach/gpio.h +1 -4
index 6b5e4ed4eb5..150aa46034d 100644
@@ -1,10 +1,7 @@
 #ifndef __ASM_ARCH_GPIO_H
 #define __ASM_ARCH_GPIO_H
 
-#if defined(CONFIG_SH73A0)
-#include "sh73a0-gpio.h"
-void sh73a0_pinmux_init(void);
-#elif defined(CONFIG_R8A7740)
+#if defined(CONFIG_R8A7740)
 #include "r8a7740-gpio.h"
 void r8a7740_pinmux_init(void);
 #endif
arch/arm/mach-rmobile/include/mach/rmobile.h +1 -4
index dc6f87631bc..53f9a80ecfe 100644
@@ -2,9 +2,7 @@
 #define __ASM_ARCH_RMOBILE_H
 
 #if defined(CONFIG_ARCH_RMOBILE)
-#if defined(CONFIG_SH73A0)
-#include <asm/arch/sh73a0.h>
-#elif defined(CONFIG_R8A7740)
+#if defined(CONFIG_R8A7740)
 #include <asm/arch/r8a7740.h>
 #elif defined(CONFIG_R8A7790)
 #include <asm/arch/r8a7790.h>
@@ -25,7 +23,6 @@
 #endif /* CONFIG_ARCH_RMOBILE */
 
 /* PRR CPU IDs */
-#define RMOBILE_CPU_TYPE_SH73A0		0x37
 #define RMOBILE_CPU_TYPE_R8A7740	0x40
 #define RMOBILE_CPU_TYPE_R8A7790	0x45
 #define RMOBILE_CPU_TYPE_R8A7791	0x47
arch/arm/mach-rmobile/include/mach/sh73a0-gpio.h deleted +0 -553

553 lines not on this page · raw message

arch/arm/mach-rmobile/include/mach/sh73a0.h deleted +0 -289

289 lines not on this page · raw message

arch/arm/mach-rmobile/pfc-sh73a0.c deleted +0 -2807

2,073 lines not on this page · raw message

drivers/i2c/sh_i2c.c +0 -5
index 6cecec41450..3335d9482a2 100644

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

drivers/serial/serial_sh.h +2 -8
index e6ab6f1b9b7..660aaab6638 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.

#62 lore raw

PATCH v3 57/76 sh4: Drop unused pci_sh7780 driver

In reply to Simon Glass

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

---

(no changes since v1)

 arch/sh/include/asm/pci.h |  2 -
 drivers/pci/Makefile      |  1 -
 drivers/pci/pci_sh7780.c  | 92 ---------------------------------------
 3 files changed, 95 deletions(-)
 delete mode 100644 drivers/pci/pci_sh7780.c
arch/sh/include/asm/pci.h +0 -2
index 5d79d0ec58e..18b95ff5cfb 100644
@@ -13,8 +13,6 @@
 #include <pci.h>
 #if defined(CONFIG_SH7751_PCI)
 int pci_sh7751_init(struct pci_controller *hose);
-#elif defined(CONFIG_SH7780_PCI)
-int pci_sh7780_init(struct pci_controller *hose);
 #else
 #error "Not support PCI."
 #endif
drivers/pci/Makefile +0 -1
index d393f1ba031..49506e7ba59 100644
@@ -22,7 +22,6 @@ obj-$(CONFIG_PCI_MVEBU) += pci_mvebu.o
 obj-$(CONFIG_PCI_RCAR_GEN2) += pci-rcar-gen2.o
 obj-$(CONFIG_PCI_RCAR_GEN3) += pci-rcar-gen3.o
 obj-$(CONFIG_SH7751_PCI) +=pci_sh7751.o
-obj-$(CONFIG_SH7780_PCI) +=pci_sh7780.o
 obj-$(CONFIG_PCI_TEGRA) += pci_tegra.o
 obj-$(CONFIG_PCIE_IPROC) += pcie_iproc.o
 obj-$(CONFIG_PCI_AARDVARK) += pci-aardvark.o
drivers/pci/pci_sh7780.c deleted +0 -92

92 lines not on this page · raw message

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

PATCH v3 58/76 Drop ubsha1 tool

In reply to Simon Glass

This seems to have been used by ppc4xx which was removed a while back. The Kconfig does not exist so it is never built. Drop it.

---

(no changes since v1)

 Makefile         |  3 --
 tools/.gitignore |  1 -
 tools/Makefile   |  6 ----
 tools/ubsha1.c   | 83 ------------------------------------------------
 4 files changed, 93 deletions(-)
 delete mode 100644 tools/ubsha1.c
Makefile +0 -3
index 73a562a26de..2c9e27ac5c2 100644
@@ -1450,9 +1450,6 @@ u-boot-with-spl.kwb: u-boot.bin spl/u-boot-spl.bin FORCE
 	$(call if_changed,mkimage)
 	$(BOARD_SIZE_CHECK)
 
-u-boot.sha1:	u-boot.bin
-		tools/ubsha1 u-boot.bin
-
 u-boot.dis:	u-boot
 		$(OBJDUMP) -d $< > $@
 
tools/.gitignore +0 -1
index 28e8ce2a07a..788ea260a07 100644
@@ -33,7 +33,6 @@
 /relocate-rela
 /spl_size_limit
 /sunxi-spl-image-builder
-/ubsha1
 /update_octeon_header
 /version.h
 /xway-swap-bytes
tools/Makefile +0 -6
index 2ee43dff542..0eadd8154a7 100644
@@ -29,7 +29,6 @@ CONFIG_CMD_LOADS = y
 CONFIG_CMD_NET = y
 CONFIG_XWAY_SWAP_BYTES = y
 CONFIG_NETCONSOLE = y
-CONFIG_SHA1_CHECK_UB_IMG = y
 CONFIG_ARCH_SUNXI = y
 endif
 
@@ -217,11 +216,6 @@ hostprogs-$(CONFIG_ARCH_SUNXI) += sunxi-spl-image-builder
 sunxi-spl-image-builder-objs := sunxi-spl-image-builder.o lib/bch.o
 
 hostprogs-$(CONFIG_NETCONSOLE) += ncb
-hostprogs-$(CONFIG_SHA1_CHECK_UB_IMG) += ubsha1
-
-ubsha1-objs := os_support.o ubsha1.o lib/sha1.o
-
-HOSTCFLAGS_ubsha1.o := -pedantic
 
 hostprogs-$(CONFIG_ARCH_KIRKWOOD) += kwboot
 hostprogs-$(CONFIG_ARCH_MVEBU) += kwboot
tools/ubsha1.c deleted +0 -83

83 lines not on this page · raw message

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

Re: [PATCH v3 58/76] Drop ubsha1 tool

Quoted 3 lines · Simon Glass

This seems to have been used by ppc4xx which was removed a while back. The Kconfig does not exist so it is never built. Drop it.

That assumption isn't entirely correct, it was at least built by the tools only/all build process.

Peter

Quoted 154 lines

---

(no changes since v1)

 Makefile         |  3 --
 tools/.gitignore |  1 -
 tools/Makefile   |  6 ----
 tools/ubsha1.c   | 83 ------------------------------------------------
 4 files changed, 93 deletions(-)
 delete mode 100644 tools/ubsha1.c
Makefile +0 -3
index 73a562a26de..2c9e27ac5c2 100644
@@ -1450,9 +1450,6 @@ u-boot-with-spl.kwb: u-boot.bin spl/u-boot-spl.bin FORCE
        $(call if_changed,mkimage)
        $(BOARD_SIZE_CHECK)
 
-u-boot.sha1:   u-boot.bin
-               tools/ubsha1 u-boot.bin
-
 u-boot.dis:    u-boot
                $(OBJDUMP) -d $< > $@
 
tools/.gitignore +0 -1
index 28e8ce2a07a..788ea260a07 100644
@@ -33,7 +33,6 @@
 /relocate-rela
 /spl_size_limit
 /sunxi-spl-image-builder
-/ubsha1
 /update_octeon_header
 /version.h
 /xway-swap-bytes
tools/Makefile +0 -6
index 2ee43dff542..0eadd8154a7 100644
@@ -29,7 +29,6 @@ CONFIG_CMD_LOADS = y
 CONFIG_CMD_NET = y
 CONFIG_XWAY_SWAP_BYTES = y
 CONFIG_NETCONSOLE = y
-CONFIG_SHA1_CHECK_UB_IMG = y
 CONFIG_ARCH_SUNXI = y
 endif
 
@@ -217,11 +216,6 @@ hostprogs-$(CONFIG_ARCH_SUNXI) += sunxi-spl-image-builder
 sunxi-spl-image-builder-objs := sunxi-spl-image-builder.o lib/bch.o
 
 hostprogs-$(CONFIG_NETCONSOLE) += ncb
-hostprogs-$(CONFIG_SHA1_CHECK_UB_IMG) += ubsha1
-
-ubsha1-objs := os_support.o ubsha1.o lib/sha1.o
-
-HOSTCFLAGS_ubsha1.o := -pedantic
 
 hostprogs-$(CONFIG_ARCH_KIRKWOOD) += kwboot
 hostprogs-$(CONFIG_ARCH_MVEBU) += kwboot
tools/ubsha1.c deleted +0 -84
deleted file mode 100644
index 90a6f3f59d2..00000000000
@@ -1,83 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * (C) Copyright 2007
- * Heiko Schocher, DENX Software Engineering, <[email protected]>
- */
-
-#include "os_support.h"
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <fcntl.h>
-#include <errno.h>
-#include <string.h>
-#include <sys/stat.h>
-#include <u-boot/sha1.h>
-
-int main (int argc, char **argv)
-{
-       unsigned char output[20];
-       int i, len;
-
-       char    *imagefile;
-       char    *cmdname = *argv;
-       unsigned char   *ptr;
-       unsigned char   *data;
-       struct stat sbuf;
-       unsigned char   *ptroff;
-       int     ifd;
-       int     off;
-
-       if (argc > 1) {
-               imagefile = argv[1];
-               ifd = open (imagefile, O_RDWR|O_BINARY);
-               if (ifd < 0) {
-                       fprintf (stderr, "%s: Can't open %s: %s\n",
-                               cmdname, imagefile, strerror(errno));
-                       exit (EXIT_FAILURE);
-               }
-               if (fstat (ifd, &sbuf) < 0) {
-                       fprintf (stderr, "%s: Can't stat %s: %s\n",
-                               cmdname, imagefile, strerror(errno));
-                       exit (EXIT_FAILURE);
-               }
-               len = sbuf.st_size;
-               ptr = (unsigned char *)mmap(0, len,
-                                   PROT_READ, MAP_SHARED, ifd, 0);
-               if (ptr == (unsigned char *)MAP_FAILED) {
-                       fprintf (stderr, "%s: Can't read %s: %s\n",
-                               cmdname, imagefile, strerror(errno));
-                       exit (EXIT_FAILURE);
-               }
-
-               /* create a copy, so we can blank out the sha1 sum */
-               data = malloc (len);
-               memcpy (data, ptr, len);
-               off = SHA1_SUM_POS;
-               ptroff = &data[len +  off];
-               for (i = 0; i < SHA1_SUM_LEN; i++) {
-                       ptroff[i] = 0;
-               }
-
-               sha1_csum ((unsigned char *) data, len, (unsigned char *)output);
-
-               printf ("U-Boot sum:\n");
-               for (i = 0; i < 20 ; i++) {
-                   printf ("%02X ", output[i]);
-               }
-               printf ("\n");
-               /* overwrite the sum in the bin file, with the actual */
-               lseek (ifd, SHA1_SUM_POS, SEEK_END);
-               if (write (ifd, output, SHA1_SUM_LEN) != SHA1_SUM_LEN) {
-                       fprintf (stderr, "%s: Can't write %s: %s\n",
-                               cmdname, imagefile, strerror(errno));
-                       exit (EXIT_FAILURE);
-               }
-
-               free (data);
-               (void) munmap((void *)ptr, len);
-               (void) close (ifd);
-       }
-
-       return EXIT_SUCCESS;
-}
--

2.39.1.456.gfc5497dd1b-goog

#65 lore raw

Re: [PATCH v3 58/76] Drop ubsha1 tool

Hi Peter,

Quoted 8 lines · Peter Robinson
Quoted 3 lines · Simon Glass

This seems to have been used by ppc4xx which was removed a while back. The Kconfig does not exist so it is never built. Drop it.

That assumption isn't entirely correct, it was at least built by the tools only/all build process.

Oh yes, I perhaps meant that it isn't used.

Is it OK to delete it?

Regards,
Simon

#66 lore raw

Re: [PATCH v3 58/76] Drop ubsha1 tool

Quoted 10 lines · Simon Glass

Hi Peter,

Quoted 6 lines · Peter Robinson
Quoted 3 lines · Simon Glass

This seems to have been used by ppc4xx which was removed a while back. The Kconfig does not exist so it is never built. Drop it.

Quoted 6 lines
Quoted 2 lines

That assumption isn't entirely correct, it was at least built by the tools only/all build process.

Oh yes, I perhaps meant that it isn't used.

Is it OK to delete it?

I think so, I just wanted to verify that it was built in other circumstances in case that mattered.

P

#67 lore raw

Re: [PATCH v3 58/76] Drop ubsha1 tool

Hi Peter,

Quoted 15 lines · Peter Robinson
Quoted 13 lines · Simon Glass

Hi Peter,

Quoted 8 lines · Peter Robinson
Quoted 3 lines · Simon Glass

This seems to have been used by ppc4xx which was removed a while back. The Kconfig does not exist so it is never built. Drop it.

That assumption isn't entirely correct, it was at least built by the tools only/all build process.

Quoted 6 lines
Quoted 3 lines

Oh yes, I perhaps meant that it isn't used.

Is it OK to delete it?

I think so, I just wanted to verify that it was built in other circumstances in case that mattered.

OK thank you.

Regards,
Simon

#68 lore raw

PATCH v3 59/76 sysreset: at91: Correct Makefile rule for SYSRESET_AT91

In reply to Simon Glass

The SPL_TPL part is in the wrong place. Fix it.

Fixes 71d4393f846 ("sysreset: Add Atmel/Microchip sysreset driver")

---

(no changes since v1)

 drivers/sysreset/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/sysreset/Makefile +1 -1
index 0ed3bbf356a..40c876764af 100644
@@ -20,6 +20,6 @@ obj-$(CONFIG_SYSRESET_TI_SCI) += sysreset-ti-sci.o
 obj-$(CONFIG_SYSRESET_SYSCON) += sysreset_syscon.o
 obj-$(CONFIG_SYSRESET_WATCHDOG) += sysreset_watchdog.o
 obj-$(CONFIG_SYSRESET_RESETCTL) += sysreset_resetctl.o
-obj-$(CONFIG_SYSRESET_$(SPL_TPL_)AT91) += sysreset_at91.o
+obj-$(CONFIG_$(SPL_TPL_)SYSRESET_AT91) += sysreset_at91.o
 obj-$(CONFIG_$(SPL_TPL_)SYSRESET_X86) += sysreset_x86.o
 obj-$(CONFIG_TARGET_XTFPGA) += sysreset_xtfpga.o
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#69 lore raw

PATCH v3 60/76 gdsys: Drop unused fpga file

In reply to Simon Glass

This is not used since CONFIG_SYS_FPGA_COMMON is not defined anywhere. Drop the code and the Makefile rule.

---

(no changes since v1)

 board/gdsys/common/Makefile |  1 -
 board/gdsys/common/fpga.c   | 28 ----------------------------
 2 files changed, 29 deletions(-)
 delete mode 100644 board/gdsys/common/fpga.c
board/gdsys/common/Makefile +0 -1
index 553e2ca50ed..94cbf3c5cc1 100644
@@ -3,7 +3,6 @@
 # (C) Copyright 2007
 # Stefan Roese, DENX Software Engineering, [email protected].
 
-obj-$(CONFIG_SYS_FPGA_COMMON) += fpga.o
 obj-$(CONFIG_CMD_IOLOOP) += cmd_ioloop.o
 obj-$(CONFIG_TARGET_CONTROLCENTERDC) += dp501.o
 obj-$(CONFIG_TARGET_GAZERBEAM) += osd.o ihs_mdio.o ioep-fpga.o
board/gdsys/common/fpga.c deleted +0 -28
deleted file mode 100644
index 5ba6613ed56..00000000000
@@ -1,28 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * (C) Copyright 2013
- * Dirk Eibach,  Guntermann & Drunck GmbH, [email protected]
- */
-
-#ifdef CONFIG_GDSYS_LEGACY_DRIVERS
-
-#include <common.h>
-#include <gdsys_fpga.h>
-
-#include <asm/io.h>
-
-int fpga_set_reg(u32 fpga, u16 *reg, off_t regoff, u16 data)
-{
-	out_le16(reg, data);
-
-	return 0;
-}
-
-int fpga_get_reg(u32 fpga, u16 *reg, off_t regoff, u16 *data)
-{
-	*data = in_le16(reg);
-
-	return 0;
-}
-
-#endif /* CONFIG_GDSYS_LEGACY_DRIVERS */
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#70 lore raw

PATCH v3 61/76 sh4: Drop unused kona_i2c driver

In reply to Simon Glass

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

---

(no changes since v1)

 drivers/i2c/Makefile   |   1 -
 drivers/i2c/kona_i2c.c | 728 -----------------------------------------
 2 files changed, 729 deletions(-)
 delete mode 100644 drivers/i2c/kona_i2c.c
drivers/i2c/Makefile +0 -1
index 920aafb91c5..cde0597290c 100644
@@ -25,7 +25,6 @@ obj-$(CONFIG_SYS_I2C_IHS) += ihs_i2c.o
 obj-$(CONFIG_SYS_I2C_INTEL) += intel_i2c.o
 obj-$(CONFIG_SYS_I2C_IMX_LPI2C) += imx_lpi2c.o
 obj-$(CONFIG_SYS_I2C_IPROC) += iproc_i2c.o
-obj-$(CONFIG_SYS_I2C_KONA) += kona_i2c.o
 obj-$(CONFIG_SYS_I2C_LPC32XX) += lpc32xx_i2c.o
 obj-$(CONFIG_SYS_I2C_MESON) += meson_i2c.o
 obj-$(CONFIG_SYS_I2C_MICROCHIP) += i2c-microchip.o
drivers/i2c/kona_i2c.c deleted +0 -728

728 lines not on this page · raw message

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

PATCH v3 62/76 compulab: Drop CONFIG_TARGET_MCM_IMX8M_MINI

In reply to Simon Glass

This option is not defined anywhere. Drop it.

---

(no changes since v1)

 board/compulab/imx8mm-cl-iot-gate/ddr/Makefile | 4 ----
 1 file changed, 4 deletions(-)
board/compulab/imx8mm-cl-iot-gate/ddr/Makefile +0 -4
index 5914796628d..f73f35cd664 100644
@@ -1,8 +1,4 @@
 obj-y += ddr.o
 obj-y += lpddr4_timing_ff020008.o
 obj-y += lpddr4_timing_ff000110.o
-ifdef CONFIG_TARGET_MCM_IMX8M_MINI
-obj-y += lpddr4_timing_01061010.o
-else
 obj-y += lpddr4_timing_01061010.1_2.o
-endif
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#72 lore raw

PATCH v3 63/76 freescale: Drop CONFIG_TARGET_MPC8536DS et al

In reply to Simon Glass

This option as well as CONFIG_TARGET_P1022DS and CONFIG_TARGET_P5020DS are not defined anywhere. Drop them.

---

(no changes since v1)

 board/freescale/common/Makefile | 3 ---
 1 file changed, 3 deletions(-)
board/freescale/common/Makefile +0 -3
index bd035d60a58..5f0503faf8d 100644
@@ -51,8 +51,6 @@ endif
 
 obj-$(CONFIG_TARGET_MPC8548CDS)	+= cds_pci_ft.o
 
-obj-$(CONFIG_TARGET_MPC8536DS)	+= ics307_clk.o
-obj-$(CONFIG_TARGET_P1022DS)		+= ics307_clk.o
 obj-$(CONFIG_TARGET_P3041DS)		+= ics307_clk.o
 obj-$(CONFIG_TARGET_P4080DS)		+= ics307_clk.o
 obj-$(CONFIG_TARGET_P5040DS)		+= ics307_clk.o
@@ -75,7 +73,6 @@ obj-$(CONFIG_EMC2305)              += emc2305.o
 obj-$(CONFIG_TARGET_P2041RDB)	+= p_corenet/
 obj-$(CONFIG_TARGET_P3041DS)	+= p_corenet/
 obj-$(CONFIG_TARGET_P4080DS)	+= p_corenet/
-obj-$(CONFIG_TARGET_P5020DS)	+= p_corenet/
 obj-$(CONFIG_TARGET_P5040DS)	+= p_corenet/
 
 obj-$(CONFIG_LAYERSCAPE_NS_ACCESS)	+= ns_access.o
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#73 lore raw

PATCH v3 65/76 ppc: Makefile: Drop unused ppc4xx code

In reply to Simon Glass

CONFIG_UBOOT_PAD_TO is not defined anywhere. Drop this dead code.

---

(no changes since v1)

 Makefile | 11 -----------
 1 file changed, 11 deletions(-)
Makefile +0 -11
index 2c9e27ac5c2..815ee0333d8 100644
@@ -1648,17 +1648,6 @@ OBJCOPYFLAGS_u-boot-with-spl-pbl.bin = -I binary -O binary --pad-to=$(CONFIG_SPL
 u-boot-with-spl-pbl.bin: spl/u-boot-spl.pbl $(UBOOT_BINLOAD) FORCE
 	$(call if_changed,pad_cat)
 
-# PPC4xx needs the SPL at the end of the image, since the reset vector
-# is located at 0xfffffffc. So we can't use the "u-boot-img.bin" target
-# and need to introduce a new build target with the full blown U-Boot
-# at the start padded up to the start of the SPL image. And then concat
-# the SPL image to the end.
-
-OBJCOPYFLAGS_u-boot-img-spl-at-end.bin := -I binary -O binary \
-	--pad-to=$(CONFIG_UBOOT_PAD_TO) --gap-fill=0xff
-u-boot-img-spl-at-end.bin: u-boot.img spl/u-boot-spl.bin FORCE
-	$(call if_changed,pad_cat)
-
 quiet_cmd_u-boot-elf ?= LD      $@
 	cmd_u-boot-elf ?= $(LD) u-boot-elf.o -o $@ \
 	$(if $(CONFIG_SYS_BIG_ENDIAN),-EB,-EL) \
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#74 lore raw

PATCH v3 66/76 armada: usb: net: Drop unused USB drivers

In reply to Simon Glass

These are not used. Drop the drivers and Kconfig option. Also drop an old declaration in the netdev.h header.

---

(no changes since v1)

 drivers/usb/host/Makefile         |  1 -
 drivers/usb/host/ehci-armada100.c | 48 -------------------
 drivers/usb/host/utmi-armada100.c | 80 -------------------------------
 include/netdev.h                  |  1 -
 4 files changed, 130 deletions(-)
 delete mode 100644 drivers/usb/host/ehci-armada100.c
 delete mode 100644 drivers/usb/host/utmi-armada100.c
drivers/usb/host/Makefile +0 -1
index ddc36632069..1f59e910d3b 100644
@@ -25,7 +25,6 @@ obj-$(CONFIG_USB_OHCI_NPCM) += ohci-npcm.o
 
 # echi
 obj-$(CONFIG_USB_EHCI_HCD) += ehci-hcd.o
-obj-$(CONFIG_USB_EHCI_ARMADA100) += ehci-armada100.o utmi-armada100.o
 obj-$(CONFIG_USB_EHCI_ATMEL) += ehci-atmel.o
 obj-$(CONFIG_USB_EHCI_FSL) += ehci-fsl.o
 obj-$(CONFIG_USB_EHCI_FARADAY) += ehci-faraday.o
drivers/usb/host/ehci-armada100.c deleted +0 -48

48 lines not on this page · raw message

drivers/usb/host/utmi-armada100.c deleted +0 -80

80 lines not on this page · raw message

include/netdev.h +0 -1
index 2b4e474ed08..2a7f40e5040 100644
@@ -71,7 +71,6 @@ int skge_initialize(struct bd_info *bis);
 int smc91111_initialize(u8 dev_num, phys_addr_t base_addr);
 int smc911x_initialize(u8 dev_num, phys_addr_t base_addr);
 int uli526x_initialize(struct bd_info *bis);
-int armada100_fec_register(unsigned long base_addr);
 
 /* Boards with PCI network controllers can call this from their board_eth_init()
  * function to initialize whatever's on board.
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#75 lore raw

PATCH v3 67/76 usb: Drop unused ehci-faraday driver

In reply to Simon Glass

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

---

(no changes since v2)

Changes in v2:
- Reinstate usb_hub code removed by accident

 common/usb_hub.c                |   6 --
 drivers/usb/host/Makefile       |   1 -
 drivers/usb/host/ehci-faraday.c | 144 --------------------------------
 drivers/usb/host/ehci-hcd.c     |   5 --
 include/usb/fusbh200.h          |  59 -------------
 5 files changed, 215 deletions(-)
 delete mode 100644 drivers/usb/host/ehci-faraday.c
 delete mode 100644 include/usb/fusbh200.h
common/usb_hub.c +0 -6
index f7fd12c0450..85c0822d8b7 100644
@@ -506,11 +506,6 @@ static int usb_scan_port(struct usb_device_scan *usb_scan)
 	if (portchange & USB_PORT_STAT_C_ENABLE) {
 		debug("port %d enable change, status %x\n", i + 1, portstatus);
 		usb_clear_port_feature(dev, i + 1, USB_PORT_FEAT_C_ENABLE);
-		/*
-		 * The following hack causes a ghost device problem
-		 * to Faraday EHCI
-		 */
-#ifndef CONFIG_USB_EHCI_FARADAY
 		/*
 		 * EM interference sometimes causes bad shielded USB
 		 * devices to be shutdown by the hub, this hack enables
@@ -523,7 +518,6 @@ static int usb_scan_port(struct usb_device_scan *usb_scan)
 			      i + 1);
 			usb_hub_port_connect_change(dev, i);
 		}
-#endif
 	}
 
 	if (portstatus & USB_PORT_STAT_SUSPEND) {
drivers/usb/host/Makefile +0 -1
index 1f59e910d3b..cce78846d98 100644
@@ -27,7 +27,6 @@ obj-$(CONFIG_USB_OHCI_NPCM) += ohci-npcm.o
 obj-$(CONFIG_USB_EHCI_HCD) += ehci-hcd.o
 obj-$(CONFIG_USB_EHCI_ATMEL) += ehci-atmel.o
 obj-$(CONFIG_USB_EHCI_FSL) += ehci-fsl.o
-obj-$(CONFIG_USB_EHCI_FARADAY) += ehci-faraday.o
 obj-$(CONFIG_USB_EHCI_GENERIC) += ehci-generic.o
 obj-$(CONFIG_USB_EHCI_EXYNOS) += ehci-exynos.o
 obj-$(CONFIG_USB_EHCI_MXS) += ehci-mxs.o
drivers/usb/host/ehci-faraday.c deleted +0 -144

144 lines not on this page · raw message

drivers/usb/host/ehci-hcd.c +0 -5
index 9139d61dd0c..9839aa17492 100644
@@ -705,12 +705,10 @@ ehci_submit_async(struct usb_device *dev, unsigned long pipe, void *buffer,
 		dev->act_len = length - QT_TOKEN_GET_TOTALBYTES(qhtoken);
 	} else {
 		dev->act_len = 0;
-#ifndef CONFIG_USB_EHCI_FARADAY
 		debug("dev=%u, usbsts=%#x, p[1]=%#x, p[2]=%#x\n",
 		      dev->devnum, ehci_readl(&ctrl->hcor->or_usbsts),
 		      ehci_readl(&ctrl->hcor->or_portsc[0]),
 		      ehci_readl(&ctrl->hcor->or_portsc[1]));
-#endif
 	}
 
 	free(qtd);
@@ -1189,9 +1187,6 @@ int usb_lowlevel_init(int index, enum usb_init_type init, void **controller)
 	rc = ehci_hcd_init(index, init, &ctrl->hccr, &ctrl->hcor);
 	if (rc)
 		return rc;
-#endif
-#ifdef CONFIG_USB_EHCI_FARADAY
-	tweaks |= EHCI_TWEAK_NO_INIT_CF;
 #endif
 	rc = ehci_common_init(ctrl, tweaks);
 	if (rc)
include/usb/fusbh200.h deleted +0 -59

59 lines not on this page · raw message

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

PATCH v3 68/76 usb: Drop unused fotg210 gadget

In reply to Simon Glass

This is not used and appears to be associated with the faraday board which has been removed. Drop the driver and Kconfig options.

---

(no changes since v1)

 drivers/usb/gadget/Makefile       |   3 +-
 drivers/usb/gadget/fotg210.c      | 964 ------------------------------
 drivers/usb/gadget/gadget_chips.h |   8 -
 include/usb/fotg210.h             | 362 -----------
 4 files changed, 1 insertion(+), 1336 deletions(-)
 delete mode 100644 drivers/usb/gadget/fotg210.c
 delete mode 100644 include/usb/fotg210.h
drivers/usb/gadget/Makefile +1 -2
index 9c04403da30..b04b6bcd779 100644
@@ -19,8 +19,7 @@ obj-$(CONFIG_USB_GADGET_ATMEL_USBA) += atmel_usba_udc.o
 obj-$(CONFIG_USB_GADGET_BCM_UDC_OTG_PHY) += bcm_udc_otg_phy.o
 obj-$(CONFIG_USB_GADGET_DWC2_OTG) += dwc2_udc_otg.o
 obj-$(CONFIG_USB_GADGET_DWC2_OTG_PHY) += dwc2_udc_otg_phy.o
-obj-$(CONFIG_USB_GADGET_FOTG210) += fotg210.o
-obj-$(CONFIG_USB_GADGET_MAX3420) += max3420_udc.o
+0obj-$(CONFIG_USB_GADGET_MAX3420) += max3420_udc.o
 ifndef CONFIG_SPL_BUILD
 obj-$(CONFIG_USB_GADGET_DOWNLOAD) += g_dnl.o
 obj-$(CONFIG_USB_FUNCTION_THOR) += f_thor.o
drivers/usb/gadget/fotg210.c deleted +0 -964

964 lines not on this page · raw message

drivers/usb/gadget/gadget_chips.h +0 -8
index abc6dc7f89f..98156c312d2 100644
@@ -117,12 +117,6 @@
 #define gadget_is_ci(g)        0
 #endif
 
-#ifdef CONFIG_USB_GADGET_FOTG210
-#define gadget_is_fotg210(g)        (!strcmp("fotg210_udc", (g)->name))
-#else
-#define gadget_is_fotg210(g)        0
-#endif
-
 #ifdef CONFIG_USB_DWC3_GADGET
 #define gadget_is_dwc3(g)        (!strcmp("dwc3-gadget", (g)->name))
 #else
@@ -202,8 +196,6 @@ static inline int usb_gadget_controller_number(struct usb_gadget *gadget)
 		return 0x20;
 	else if (gadget_is_ci(gadget))
 		return 0x21;
-	else if (gadget_is_fotg210(gadget))
-		return 0x22;
 	else if (gadget_is_dwc3(gadget))
 		return 0x23;
 	else if (gadget_is_cdns3(gadget))
include/usb/fotg210.h deleted +0 -362

362 lines not on this page · raw message

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

Re: [PATCH v3 68/76] usb: Drop unused fotg210 gadget

Quoted 21 lines · Simon Glass

This is not used and appears to be associated with the faraday board which has been removed. Drop the driver and Kconfig options.

---

(no changes since v1)

 drivers/usb/gadget/Makefile       |   3 +-
 drivers/usb/gadget/fotg210.c      | 964 ------------------------------
 drivers/usb/gadget/gadget_chips.h |   8 -
 include/usb/fotg210.h             | 362 -----------
 4 files changed, 1 insertion(+), 1336 deletions(-)
 delete mode 100644 drivers/usb/gadget/fotg210.c
 delete mode 100644 include/usb/fotg210.h
drivers/usb/gadget/Makefile +0 -0
index 9c04403da30..b04b6bcd779 100644

drivers/usb/gadget/Makefile obj-$(CONFIG_USB_GADGET_ATMEL_USBA) += atmel_usba_udc.o · line 22

Quoted 6 lines
drivers/usb/gadget/Makefile +1 -2
@@ -19,8 +19,7 @@ obj-$(CONFIG_USB_GADGET_ATMEL_USBA) += atmel_usba_udc.o
 obj-$(CONFIG_USB_GADGET_BCM_UDC_OTG_PHY) += bcm_udc_otg_phy.o
 obj-$(CONFIG_USB_GADGET_DWC2_OTG) += dwc2_udc_otg.o
 obj-$(CONFIG_USB_GADGET_DWC2_OTG_PHY) += dwc2_udc_otg_phy.o
-obj-$(CONFIG_USB_GADGET_FOTG210) += fotg210.o
-obj-$(CONFIG_USB_GADGET_MAX3420) += max3420_udc.o
+0obj-$(CONFIG_USB_GADGET_MAX3420) += max3420_udc.o

This stray 0 breaks the next line of the Makefile.

Regards,
Samuel

#78 lore raw

Re: [PATCH v3 68/76] usb: Drop unused fotg210 gadget

Quoted 17 lines · Samuel Holland
Quoted 16 lines · Simon Glass

This is not used and appears to be associated with the faraday board which has been removed. Drop the driver and Kconfig options.

---

(no changes since v1)

 drivers/usb/gadget/Makefile       |   3 +-
 drivers/usb/gadget/fotg210.c      | 964 ------------------------------
 drivers/usb/gadget/gadget_chips.h |   8 -
 include/usb/fotg210.h             | 362 -----------
 4 files changed, 1 insertion(+), 1336 deletions(-)
 delete mode 100644 drivers/usb/gadget/fotg210.c
 delete mode 100644 include/usb/fotg210.h
Quoted 13 lines

drivers/usb/gadget/Makefile obj-$(CONFIG_USB_GADGET_ATMEL_USBA) += atmel_usba_udc.o · line 22

Quoted 11 lines
drivers/usb/gadget/Makefile +1 -2
index 9c04403da30..b04b6bcd779 100644
@@ -19,8 +19,7 @@ obj-$(CONFIG_USB_GADGET_ATMEL_USBA) += atmel_usba_udc.o
 obj-$(CONFIG_USB_GADGET_BCM_UDC_OTG_PHY) += bcm_udc_otg_phy.o
 obj-$(CONFIG_USB_GADGET_DWC2_OTG) += dwc2_udc_otg.o
 obj-$(CONFIG_USB_GADGET_DWC2_OTG_PHY) += dwc2_udc_otg_phy.o
-obj-$(CONFIG_USB_GADGET_FOTG210) += fotg210.o
-obj-$(CONFIG_USB_GADGET_MAX3420) += max3420_udc.o
+0obj-$(CONFIG_USB_GADGET_MAX3420) += max3420_udc.o

This stray 0 breaks the next line of the Makefile.

Little worried that didn't cause some failure to build elsewhere, honestly, I guess because USB_GADGET_MAX3420 isn't used either? But I'll push a fix with a Reported-by soon, thanks!

Signature · 1 line
Tom
#79 lore raw

PATCH v3 69/76 rmobile: Drop unused ehci-rmobile driver

In reply to Simon Glass

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

---

(no changes since v1)

 .../mach-rmobile/include/mach/ehci-rmobile.h  | 146 ------------------
 drivers/usb/host/Makefile                     |   1 -
 drivers/usb/host/ehci-rmobile.c               | 129 ----------------
 3 files changed, 276 deletions(-)
 delete mode 100644 arch/arm/mach-rmobile/include/mach/ehci-rmobile.h
 delete mode 100644 drivers/usb/host/ehci-rmobile.c
arch/arm/mach-rmobile/include/mach/ehci-rmobile.h deleted +0 -146
deleted file mode 100644
index ca8c5f37063..00000000000
@@ -1,146 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- *  Copyright (C) 2013,2014 Renesas Electronics Corporation
- *  Copyright (C) 2014 Nobuhiro Iwamatsu <[email protected]>
- */
-
-#ifndef __EHCI_RMOBILE_H__
-#define __EHCI_RMOBILE_H__
-
-/* Register offset */
-#define OHCI_OFFSET	0x00
-#define OHCI_SIZE	0x1000
-#define EHCI_OFFSET	0x1000
-#define EHCI_SIZE	0x1000
-
-#define EHCI_USBCMD	(EHCI_OFFSET + 0x0020)
-
-/* USBCTR */
-#define DIRPD		(1 << 8)
-#define PLL_RST		(1 << 2)
-#define PCICLK_MASK	(1 << 1)
-#define USBH_RST	(1 << 0)
-
-/* CMND_STS */
-#define SERREN		(1 << 8)
-#define PERREN		(1 << 6)
-#define MASTEREN	(1 << 2)
-#define MEMEN		(1 << 1)
-
-/* PCIAHB_WIN1_CTR and PCIAHB_WIN2_CTR */
-#define PCIAHB_WIN_PREFETCH	((1 << 1)|(1 << 0))
-
-/* AHBPCI_WIN1_CTR */
-#define PCIWIN1_PCICMD		((1 << 3)|(1 << 1))
-#define AHB_CFG_AHBPCI		0x40000000
-#define AHB_CFG_HOST		0x80000000
-
-/* AHBPCI_WIN2_CTR */
-#define PCIWIN2_PCICMD		((1 << 2)|(1 << 1))
-
-/* PCI_INT_ENABLE */
-#define USBH_PMEEN		(1 << 19)
-#define USBH_INTBEN		(1 << 17)
-#define USBH_INTAEN		(1 << 16)
-
-/* AHB_BUS_CTR */
-#define SMODE_READY_CTR		(1 << 17)
-#define SMODE_READ_BURST	(1 << 16)
-#define MMODE_HBUSREQ		(1 << 7)
-#define MMODE_BOUNDARY		((1 << 6)|(1 << 5))
-#define MMODE_BURST_WIDTH	((1 << 4)|(1 << 3))
-#define MMODE_SINGLE_MODE	((1 << 4)|(1 << 3))
-#define MMODE_WR_INCR		(1 << 2)
-#define MMODE_BYTE_BURST	(1 << 1)
-#define MMODE_HTRANS		(1 << 0)
-
-/* PCI_ARBITER_CTR */
-#define PCIBUS_PARK_TIMER       0x00FF0000
-#define PCIBUS_PARK_TIMER_SET   0x00070000
-#define PCIBP_MODE		(1 << 12)
-#define PCIREQ7                 (1 << 7)
-#define PCIREQ6                 (1 << 6)
-#define PCIREQ5                 (1 << 5)
-#define PCIREQ4                 (1 << 4)
-#define PCIREQ3                 (1 << 3)
-#define PCIREQ2                 (1 << 2)
-#define PCIREQ1                 (1 << 1)
-#define PCIREQ0                 (1 << 0)
-
-#define SMSTPCR7        0xE615014C
-#define SMSTPCR703      (1 << 3)
-
-/* Init AHB master and slave functions of the host logic */
-#define AHB_BUS_CTR_INIT \
-	(SMODE_READY_CTR | MMODE_HBUSREQ | MMODE_WR_INCR | \
-	 MMODE_BYTE_BURST | MMODE_HTRANS)
-
-#define USBCTR_WIN_SIZE_1GB	0x800
-
-/* PCI Configuration Registers */
-#define PCI_CONF_OHCI_OFFSET	0x10000
-#define PCI_CONF_EHCI_OFFSET	0x10100
-struct ahb_pciconf {
-	u32 vid_did;
-	u32 cmnd_sts;
-	u32 rev;
-	u32 cache_line;
-	u32 basead;
-};
-
-/* PCI Configuration Registers for AHB-PCI Bridge Registers */
-#define PCI_CONF_AHBPCI_OFFSET	0x10000
-struct ahbconf_pci_bridge {
-	u32 vid_did;		/* 0x00 */
-	u32 cmnd_sts;
-	u32 revid_cc;
-	u32 cls_lt_ht_bist;
-	u32 basead;		/* 0x10 */
-	u32 win1_basead;
-	u32 win2_basead;
-	u32 dummy0[5];
-	u32 ssvdi_ssid;		/* 0x2C */
-	u32 dummy1[4];
-	u32 intr_line_pin;
-};
-
-/* AHB-PCI Bridge PCI Communication Registers */
-#define AHBPCI_OFFSET	0x10800
-struct ahbcom_pci_bridge {
-	u32 pciahb_win1_ctr;	/* 0x00 */
-	u32 pciahb_win2_ctr;
-	u32 pciahb_dct_ctr;
-	u32 dummy0;
-	u32 ahbpci_win1_ctr;	/* 0x10 */
-	u32 ahbpci_win2_ctr;
-	u32 dummy1;
-	u32 ahbpci_dct_ctr;
-	u32 pci_int_enable;	/* 0x20 */
-	u32 pci_int_status;
-	u32 dummy2[2];
-	u32 ahb_bus_ctr;	/* 0x30 */
-	u32 usbctr;
-	u32 dummy3[2];
-	u32 pci_arbiter_ctr;	/* 0x40 */
-	u32 dummy4;
-	u32 pci_unit_rev;	/* 0x48 */
-};
-
-struct rmobile_ehci_reg {
-	u32 hciversion;		/* hciversion/caplength */
-	u32 hcsparams;		/* hcsparams */
-	u32 hccparams;		/* hccparams */
-	u32 hcsp_portroute;	/* hcsp_portroute */
-	u32 usbcmd;		/* usbcmd */
-	u32 usbsts;		/* usbsts */
-	u32 usbintr;		/* usbintr */
-	u32 frindex;		/* frindex */
-	u32 ctrldssegment;	/* ctrldssegment */
-	u32 periodiclistbase;	/* periodiclistbase */
-	u32 asynclistaddr;	/* asynclistaddr */
-	u32 dummy[9];
-	u32 configflag;		/* configflag */
-	u32 portsc;		/* portsc */
-};
-
-#endif /* __EHCI_RMOBILE_H__ */
drivers/usb/host/Makefile +0 -1
index cce78846d98..3d3dd5f279f 100644
@@ -41,7 +41,6 @@ obj-$(CONFIG_USB_EHCI_PCI) += ehci-pci.o
 obj-$(CONFIG_USB_EHCI_TEGRA) += ehci-tegra.o
 obj-$(CONFIG_USB_EHCI_VCT) += ehci-vct.o
 obj-$(CONFIG_USB_EHCI_VF) += ehci-vf.o
-obj-$(CONFIG_USB_EHCI_RMOBILE) += ehci-rmobile.o
 obj-$(CONFIG_USB_EHCI_ZYNQ) += ehci-zynq.o
 
 # xhci
drivers/usb/host/ehci-rmobile.c deleted +0 -129

129 lines not on this page · raw message

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

PATCH v3 70/76 usb: Drop unused ehci-vct driver

In reply to Simon Glass

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

---

(no changes since v1)

 drivers/usb/host/Makefile   |  1 -
 drivers/usb/host/ehci-vct.c | 44 -------------------------------------
 2 files changed, 45 deletions(-)
 delete mode 100644 drivers/usb/host/ehci-vct.c
drivers/usb/host/Makefile +0 -1
index 3d3dd5f279f..3e5ba2bd0ba 100644
@@ -39,7 +39,6 @@ obj-$(CONFIG_USB_EHCI_MARVELL) += ehci-marvell.o
 obj-$(CONFIG_USB_EHCI_MSM) += ehci-msm.o
 obj-$(CONFIG_USB_EHCI_PCI) += ehci-pci.o
 obj-$(CONFIG_USB_EHCI_TEGRA) += ehci-tegra.o
-obj-$(CONFIG_USB_EHCI_VCT) += ehci-vct.o
 obj-$(CONFIG_USB_EHCI_VF) += ehci-vf.o
 obj-$(CONFIG_USB_EHCI_ZYNQ) += ehci-zynq.o
 
drivers/usb/host/ehci-vct.c deleted +0 -44

44 lines not on this page · raw message

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

PATCH v3 71/76 usb: Drop unused sl811-hcd driver

In reply to Simon Glass

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

---

(no changes since v1)

 drivers/usb/host/Makefile    |   1 -
 drivers/usb/host/sl811-hcd.c | 714 -----------------------------------
 drivers/usb/host/sl811.h     | 104 -----
 3 files changed, 819 deletions(-)
 delete mode 100644 drivers/usb/host/sl811-hcd.c
 delete mode 100644 drivers/usb/host/sl811.h
drivers/usb/host/Makefile +0 -1
index 3e5ba2bd0ba..8dad36f9369 100644
@@ -17,7 +17,6 @@ obj-$(CONFIG_USB_OHCI_NEW) += ohci-hcd.o
 obj-$(CONFIG_USB_ATMEL) += ohci-at91.o
 obj-$(CONFIG_USB_OHCI_DA8XX) += ohci-da8xx.o
 obj-$(CONFIG_USB_R8A66597_HCD) += r8a66597-hcd.o
-obj-$(CONFIG_USB_SL811HS) += sl811-hcd.o
 obj-$(CONFIG_USB_OHCI_LPC32XX) += ohci-lpc32xx.o
 obj-$(CONFIG_USB_OHCI_PCI) += ohci-pci.o
 obj-$(CONFIG_USB_OHCI_GENERIC) += ohci-generic.o
drivers/usb/host/sl811-hcd.c deleted +0 -714

714 lines not on this page · raw message

drivers/usb/host/sl811.h deleted +0 -104

104 lines not on this page · raw message

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

PATCH v3 72/76 imx: Drop CONFIG_USE_PLUGIN

In reply to Simon Glass

This option is not defined anywhere. Drop it.

---

(no changes since v1)

 board/freescale/mx7ulp_evk/Makefile | 4 ----
 1 file changed, 4 deletions(-)
board/freescale/mx7ulp_evk/Makefile +0 -4
index 686763d6744..9f33c61f03b 100644
@@ -2,7 +2,3 @@
 # (C) Copyright 2016 Freescale Semiconductor, Inc.
 
 obj-y  := mx7ulp_evk.o
-
-extra-$(CONFIG_USE_PLUGIN) :=  plugin.bin
-$(obj)/plugin.bin: $(obj)/plugin.o
-	$(OBJCOPY) -O binary --gap-fill 0xff $< $@
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#83 lore raw

PATCH v3 73/76 freescale: Drop unused vsc3316_3308 driver

In reply to Simon Glass

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

---

(no changes since v1)

 board/freescale/common/Makefile       |   1 -
 board/freescale/common/vsc3316_3308.c | 530 --------------------------
 2 files changed, 531 deletions(-)
 delete mode 100644 board/freescale/common/vsc3316_3308.c
board/freescale/common/Makefile +0 -1
index 5f0503faf8d..c200cf4d403 100644
@@ -54,7 +54,6 @@ obj-$(CONFIG_TARGET_MPC8548CDS)	+= cds_pci_ft.o
 obj-$(CONFIG_TARGET_P3041DS)		+= ics307_clk.o
 obj-$(CONFIG_TARGET_P4080DS)		+= ics307_clk.o
 obj-$(CONFIG_TARGET_P5040DS)		+= ics307_clk.o
-obj-$(CONFIG_VSC_CROSSBAR)    += vsc3316_3308.o
 obj-$(CONFIG_ZM7300)		+= zm7300.o
 ifeq ($(CONFIG_$(SPL_)POWER_LEGACY),y)
 obj-$(CONFIG_POWER_PFUZE100)	+= pfuze.o
board/freescale/common/vsc3316_3308.c deleted +0 -530

530 lines not on this page · raw message

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

PATCH v3 74/76 tools: Drop xway-swap-bytes tool

In reply to Simon Glass

This is very old and does not appear to be used. The CONFIG option enabling it is no-longer present. Drop it.

---

(no changes since v1)

 README                  |  7 -------
 tools/Makefile          |  4 ----
 tools/xway-swap-bytes.c | 38 --------------------------------------
 3 files changed, 49 deletions(-)
 delete mode 100644 tools/xway-swap-bytes.c
README +0 -7
index edce7890c0f..dee0332b0a8 100644
@@ -286,13 +286,6 @@ The following options need to be configured:
 		same as CFG_SYS_DDR_SDRAM_BASE for  all Power SoCs. But
 		it could be different for ARM SoCs.
 
-- MIPS CPU options:
-		CONFIG_XWAY_SWAP_BYTES
-
-		Enable compilation of tools/xway-swap-bytes needed for Lantiq
-		XWAY SoCs for booting from NOR flash. The U-Boot image needs to
-		be swapped if a flash programmer is used.
-
 - ARM options:
 		CFG_SYS_EXCEPTION_VECTORS_HIGH
 
tools/Makefile +0 -4
index 0eadd8154a7..041c437e65b 100644
@@ -27,7 +27,6 @@ ifneq ($(HOST_TOOLS_ALL),)
 CONFIG_ARCH_KIRKWOOD = y
 CONFIG_CMD_LOADS = y
 CONFIG_CMD_NET = y
-CONFIG_XWAY_SWAP_BYTES = y
 CONFIG_NETCONSOLE = y
 CONFIG_ARCH_SUNXI = y
 endif
@@ -61,9 +60,6 @@ HOSTCFLAGS_gen_ethaddr_crc.o := -pedantic
 hostprogs-$(CONFIG_CMD_LOADS) += img2srec
 HOSTCFLAGS_img2srec.o := -pedantic
 
-hostprogs-$(CONFIG_XWAY_SWAP_BYTES) += xway-swap-bytes
-HOSTCFLAGS_xway-swap-bytes.o := -pedantic
-
 hostprogs-y += mkenvimage
 mkenvimage-objs := mkenvimage.o os_support.o lib/crc32.o
 
tools/xway-swap-bytes.c deleted +0 -38
deleted file mode 100644
index 3a6d82d54a0..00000000000
@@ -1,38 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
-#ifndef BUFSIZ
-# define BUFSIZ 4096
-#endif
-
-#undef BUFSIZ
-# define BUFSIZ 64
-int main (void)
-{
-	short ibuff[BUFSIZ], obuff[BUFSIZ];
-	int rc, i, len;
-
-	while ((rc = read (0, ibuff, sizeof (ibuff))) > 0) {
-		memset (obuff, 0, sizeof (obuff));
-		for (i = 0; i < (rc + 1) / 2; i++) {
-			obuff[i] = ibuff[i ^ 1];
-		}
-
-		len = (rc + 1) & ~1;
-
-		if (write (1, obuff, len) != len) {
-			perror ("read error");
-			return (EXIT_FAILURE);
-		}
-
-		memset (ibuff, 0, sizeof (ibuff));
-	}
-
-	if (rc < 0) {
-		perror ("read error");
-		return (EXIT_FAILURE);
-	}
-	return (EXIT_SUCCESS);
-}
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#85 lore raw

PATCH v3 75/76 freescale: Drop unused zm7300 driver

In reply to Simon Glass

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

---

(no changes since v1)

 board/freescale/common/Makefile |   1 -
 board/freescale/common/zm7300.c | 232 --------------------------------
 board/freescale/common/zm7300.h |  21 ---
 3 files changed, 254 deletions(-)
 delete mode 100644 board/freescale/common/zm7300.c
 delete mode 100644 board/freescale/common/zm7300.h
board/freescale/common/Makefile +0 -1
index c200cf4d403..b4faf6f9e0a 100644
@@ -54,7 +54,6 @@ obj-$(CONFIG_TARGET_MPC8548CDS)	+= cds_pci_ft.o
 obj-$(CONFIG_TARGET_P3041DS)		+= ics307_clk.o
 obj-$(CONFIG_TARGET_P4080DS)		+= ics307_clk.o
 obj-$(CONFIG_TARGET_P5040DS)		+= ics307_clk.o
-obj-$(CONFIG_ZM7300)		+= zm7300.o
 ifeq ($(CONFIG_$(SPL_)POWER_LEGACY),y)
 obj-$(CONFIG_POWER_PFUZE100)	+= pfuze.o
 endif
board/freescale/common/zm7300.c deleted +0 -232

232 lines not on this page · raw message

board/freescale/common/zm7300.h deleted +0 -21
deleted file mode 100644
index 9ce24afc178..00000000000
@@ -1,21 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Copyright 2013 Freescale Semiconductor, Inc.
- */
-
-#ifndef __ZM7300_H_
-#define __ZM7300_H	1_
-
-#include <common.h>
-#include <i2c.h>
-#include <errno.h>
-#include <asm/io.h>
-
-#define ZM_STEP 125
-int zm7300_set_voltage(int voltage_1_10mv);
-int zm_write_voltage(int voltage);
-int zm_read_voltage(void);
-int zm_disable_wp(void);
-int zm_enable_wp(void);
-
-#endif	/* __ZM7300_H_ */
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog
#86 lore raw

PATCH v3 76/76 fdt: Drop use of non-existent OF_PLATDATA option

In reply to Simon Glass

These are only present in SPL. Drop the references to non-SPL versions.

---

Changes in v3:
- Drop the 10 patches that rename lower-case Kconfig options

Changes in v2:
- Drop patch "treewide: Correct invalid Kconfig syntax and warnings"

 dts/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
dts/Kconfig +2 -2
index bc5f22029ff..44cc6bf1f6f 100644
@@ -21,8 +21,8 @@ menu "Device Tree Control"
 
 config OF_CONTROL
 	bool "Run-time configuration via Device Tree"
-	select OF_LIBFDT if !OF_PLATDATA
-	select OF_REAL if !OF_PLATDATA
+	select OF_LIBFDT
+	select OF_REAL
 	help
 	  This feature provides for run-time configuration of U-Boot
 	  via a flattened device tree.
Signature · 1 line
2.39.1.456.gfc5497dd1b-goog