platform/kernel/u-boot.git
23 months agotool: ifwitool: The function localtime() can return NULL.
Mikhail Ilin [Fri, 18 Nov 2022 08:50:02 +0000 (11:50 +0300)]
tool: ifwitool: The function localtime() can return NULL.

This will cause the local_time pointer is passed as the 4th argument
 to function strftime() to also point to NULL. This result in a
 segmentation fault. Thus, it's necessary to add a check of the local_time
 pointer to NULL.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Mikhail Ilin <ilin.mikhail.ol@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
23 months agotools: env: fw_env: Fix unused-result warning
Jaehoon Chung [Thu, 13 Oct 2022 08:41:21 +0000 (17:41 +0900)]
tools: env: fw_env: Fix unused-result warning

Fix unused-result warning about fread.

tools/env/fw_env.c: In function ‘find_nvmem_device’:
tools/env/fw_env.c:1751:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
 1751 |   fread(buf, sizeof(buf), 1, fp);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
23 months agoMerge branch '2022-12-07-Kconfig-migrations' into next
Tom Rini [Wed, 7 Dec 2022 23:08:01 +0000 (18:08 -0500)]
Merge branch '2022-12-07-Kconfig-migrations' into next

- Import another batch of Kconfig migrations and in this case, also
  legacy code removal.

23 months agonet: Remove eth_legacy.c
Tom Rini [Sun, 27 Nov 2022 15:25:36 +0000 (10:25 -0500)]
net: Remove eth_legacy.c

As there are no more non-DM_ETH cases for networking, remove this legacy
file and update the Makefile to match current usage.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoqe: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:35 +0000 (10:25 -0500)]
qe: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to remove
the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agousb: gadget: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:34 +0000 (10:25 -0500)]
usb: gadget: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to remove
the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agousb: eth: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:33 +0000 (10:25 -0500)]
usb: eth: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to remove
the non-DM_ETH support code fro usb_ether itself.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agousb: eth: smsc95xx: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:32 +0000 (10:25 -0500)]
usb: eth: smsc95xx: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to remove
the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agousb: eth: r8152: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:31 +0000 (10:25 -0500)]
usb: eth: r8152: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to remove
the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agousb: eth: msc7830: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:30 +0000 (10:25 -0500)]
usb: eth: msc7830: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to remove
the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agousb: eth: asix88179: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:29 +0000 (10:25 -0500)]
usb: eth: asix88179: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to remove
the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agousb: eth: asix: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:28 +0000 (10:25 -0500)]
usb: eth: asix: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to remove
the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agonet: keystone_net: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:27 +0000 (10:25 -0500)]
net: keystone_net: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agonet: cpsw: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:26 +0000 (10:25 -0500)]
net: cpsw: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agonet: sunxi_emac: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:25 +0000 (10:25 -0500)]
net: sunxi_emac: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agonet: smc911x: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:24 +0000 (10:25 -0500)]
net: smc911x: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agonet: sh_eth: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:23 +0000 (10:25 -0500)]
net: sh_eth: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agonet: rtl8169: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:22 +0000 (10:25 -0500)]
net: rtl8169: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agonet: rtl8139: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:21 +0000 (10:25 -0500)]
net: rtl8139: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agonet: phy: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:20 +0000 (10:25 -0500)]
net: phy: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agonet: pcnet: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:19 +0000 (10:25 -0500)]
net: pcnet: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agonet: netconsole: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:18 +0000 (10:25 -0500)]
net: netconsole: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agonet: mvgbe: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:17 +0000 (10:25 -0500)]
net: mvgbe: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agonet: mcfmii: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:16 +0000 (10:25 -0500)]
net: mcfmii: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agonet: macb: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:15 +0000 (10:25 -0500)]
net: macb: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agonet: ldpaa_eth: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:14 +0000 (10:25 -0500)]
net: ldpaa_eth: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agonet: fsl-mc: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:13 +0000 (10:25 -0500)]
net: fsl-mc: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agonet: fec_mxc: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:12 +0000 (10:25 -0500)]
net: fec_mxc: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agonet: ethoc: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:11 +0000 (10:25 -0500)]
net: ethoc: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agonet: eepro100: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:10 +0000 (10:25 -0500)]
net: eepro100: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to
remove the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agonet: e1000: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:09 +0000 (10:25 -0500)]
net: e1000: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to remove
the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agonet: dm9000x: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:08 +0000 (10:25 -0500)]
net: dm9000x: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to remove
the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agonet: designware: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:07 +0000 (10:25 -0500)]
net: designware: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to remove
the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agonet: dc2114x: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:06 +0000 (10:25 -0500)]
net: dc2114x: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to remove
the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agonet: fm: Remove non-DM_ETH code
Tom Rini [Sun, 27 Nov 2022 15:25:05 +0000 (10:25 -0500)]
net: fm: Remove non-DM_ETH code

As DM_ETH is required for all network drivers, it's now safe to remove
the non-DM_ETH support code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agonet: tsec: Remove non-DM_ETH support code
Tom Rini [Sun, 27 Nov 2022 15:25:04 +0000 (10:25 -0500)]
net: tsec: Remove non-DM_ETH support code

As DM_ETH is required for all network drivers, it's now safe to remove
the non-DM_ETH support code.  Doing this removes some board support code
which was also unused. Finally, this removes some CONFIG symbols that
otherwise needed to be migrated to Kconfig, but were unused in code now.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoglobal: Remove extraneous DM_ETH imply/select
Tom Rini [Sun, 27 Nov 2022 15:25:03 +0000 (10:25 -0500)]
global: Remove extraneous DM_ETH imply/select

We only need to enable DM_ETH if we have a networking driver. All
networking drivers depend on DM_ETH being enabled, and their selection
ensures DM_ETH will be enabled.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agonet: Remove extraneous dependencies
Tom Rini [Sun, 27 Nov 2022 15:25:02 +0000 (10:25 -0500)]
net: Remove extraneous dependencies

With DM_ETH being required now for all drivers, we don't need this
listed on individual drivers as well.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agochromebook_samus_tpl: Disable SPL networking
Tom Rini [Sun, 27 Nov 2022 15:25:00 +0000 (10:25 -0500)]
chromebook_samus_tpl: Disable SPL networking

We don't appear to actually use networking in SPL here, disable it.

Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
23 months agotopic_miami*: Disable networking support more fully
Tom Rini [Sun, 27 Nov 2022 15:24:59 +0000 (10:24 -0500)]
topic_miami*: Disable networking support more fully

This platform had largely disabled networking support before. More
completely disable it by turning off CONFIG_NET.

Cc: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Tom Rini <trini@konsulko.com>
Acked-by: Mike Looijmans <mike.looijmans@topic.nl>
23 months agopinecube: Disable networking support more fully
Tom Rini [Sun, 27 Nov 2022 15:24:58 +0000 (10:24 -0500)]
pinecube: Disable networking support more fully

This platform had largely disabled networking support before. More
completely disable it by turning off CONFIG_NET.

Cc: Icenowy Zheng <icenowy@aosc.io>
Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoLicheePi_Zero: Disable networking support more fully
Tom Rini [Sun, 27 Nov 2022 15:24:57 +0000 (10:24 -0500)]
LicheePi_Zero: Disable networking support more fully

This platform had largely disabled networking support before. More
completely disable it by turning off CONFIG_NET.

Cc: Icenowy Zheng <icenowy@aosc.xyz>
Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoxenguest_arm64: Disable networking support more fully
Tom Rini [Sun, 27 Nov 2022 15:24:56 +0000 (10:24 -0500)]
xenguest_arm64: Disable networking support more fully

This platform had largely disabled networking support before. More
completely disable it by turning off CONFIG_NET.

Cc: Anastasiia Lukianenko <anastasiia_lukianenko@epam.com>
Cc: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoMerge branch '2022-12-06-update-to-gcc-12-clang-14' into next
Tom Rini [Tue, 6 Dec 2022 20:47:59 +0000 (15:47 -0500)]
Merge branch '2022-12-06-update-to-gcc-12-clang-14' into next

- Bring in changes to default CI to using gcc-12.2 and clang-14 for
  building.

23 months agoCI: Update to gcc-12.2
Tom Rini [Tue, 22 Nov 2022 17:31:58 +0000 (12:31 -0500)]
CI: Update to gcc-12.2

- Update to gcc-12.2, and cherry-pick a fix in grub for risc-v

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
23 months agopogo_v4: Disable LTO
Tom Rini [Tue, 22 Nov 2022 17:31:57 +0000 (12:31 -0500)]
pogo_v4: Disable LTO

With gcc-12.2 we now get:
lib/zlib/inflate.c:360: undefined reference to `__gnu_thumb1_case_si'
when building this platform. This seems like some odd problem with LTO
and Thumb, but since the platform continues to link, I assume it's
within size constraints, so lets just disable LTO for now.

Cc: Tony Dinh <mibodhi@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
23 months agoarm: Use the WEAK assembly entry point consistently
Tom Rini [Tue, 22 Nov 2022 17:31:56 +0000 (12:31 -0500)]
arm: Use the WEAK assembly entry point consistently

It is a bad idea, and more modern toolchains will fail, if you declare
an assembly function to be global and then weak, instead of declaring it
weak to start with. Update assorted assembly files to use the WEAK macro
directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Pali Rohár <pali@kernel.org>
23 months agoevent: Re-add file paths to the tests
Tom Rini [Tue, 22 Nov 2022 17:31:55 +0000 (12:31 -0500)]
event: Re-add file paths to the tests

Now that we are enforcing dwarf-4 to be used we will have the full file
paths present.

Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
23 months agoMakefile: Enforce DWARF4 output
Tom Rini [Tue, 22 Nov 2022 17:31:54 +0000 (12:31 -0500)]
Makefile: Enforce DWARF4 output

At this point in time, using DWARF-5 format isn't easy to do by default
with all toolchains that we support.  And relying on the implicit
default can lead to mixing 4 and 5 and then the debug info not being
useful to tools.  For now, enforce using DWARF-4 only.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
23 months agobuildman: Fetch 12.2.0 toolchains by default
Tom Rini [Tue, 22 Nov 2022 17:31:53 +0000 (12:31 -0500)]
buildman: Fetch 12.2.0 toolchains by default

Update the toolchain list to be first 12.2.0 and second 11.1.0 and
that's it.

Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
23 months agopowerpc: fix fdt_fixup_liodn_tbl_fman()
Heinrich Schuchardt [Wed, 12 Oct 2022 17:13:11 +0000 (19:13 +0200)]
powerpc: fix fdt_fixup_liodn_tbl_fman()

Builiding with GCC 12.2 fails:

    arch/powerpc/cpu/mpc85xx/liodn.c: In function 'fdt_fixup_liodn_tbl_fman':
    arch/powerpc/cpu/mpc85xx/liodn.c:340:35: error: the comparison will
    always evaluate as 'false' for the address of 'compat'
    will never be NULL [-Werror=address]
      340 |                 if (tbl[i].compat == NULL)
          |

Remove the superfluous check.

Fixes: 97a8d010e029 ("net/fman: Support both new and legacy FMan Compatibles")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
23 months agoMerge branch '2022-12-05-Kconfig-migrations-and-renames' into next
Tom Rini [Tue, 6 Dec 2022 02:04:24 +0000 (21:04 -0500)]
Merge branch '2022-12-05-Kconfig-migrations-and-renames' into next

- First batch of the patches that end up with
  scripts/config_whitelist.tx being empty. Mostly migrations and a
  little bit of code removal and CFG renaming.

23 months agom68k: Rename CONFIG_WATCHDOG_TIMEOUT to CONFIG_WATCHDOG_TIMEOUT_MSECS
Tom Rini [Sat, 19 Nov 2022 23:45:45 +0000 (18:45 -0500)]
m68k: Rename CONFIG_WATCHDOG_TIMEOUT to CONFIG_WATCHDOG_TIMEOUT_MSECS

In practice, it is clear that the usage in m68k of
CONFIG_WATCHDOG_TIMEOUT is setting a value in milliseconds. Rename this
to the existing symbol and move to Kconfig.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agopost: Migrate to Kconfig
Tom Rini [Sat, 19 Nov 2022 23:45:44 +0000 (18:45 -0500)]
post: Migrate to Kconfig

We move the existing CONFIG_POST_* functionality over to CFG_POST and
then introduce CONFIG_POST to Kconfig.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
23 months agosandbox: Rework how SDL is enabled / disabled
Tom Rini [Sat, 19 Nov 2022 23:45:43 +0000 (18:45 -0500)]
sandbox: Rework how SDL is enabled / disabled

Given that we can use Kconfig logic directly to see if we have a program
available on the host or not, change from passing NO_SDL to instead
controlling CONFIG_SANDBOX_SDL in Kconfig directly. Introduce
CONFIG_HOST_HAS_SDL as the way to test for sdl2-config and default
CONFIG_SANDBOX_SDL on if we have that, or not.

Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
23 months agoscripts/config_whitelist.txt: Remove more referenced symbols
Tom Rini [Sat, 19 Nov 2022 23:45:42 +0000 (18:45 -0500)]
scripts/config_whitelist.txt: Remove more referenced symbols

Perform some deeper investigation on the remaining symbols listed in
this file and remove more.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
23 months agoconfigs: Resync with savedefconfig
Tom Rini [Sat, 19 Nov 2022 23:45:41 +0000 (18:45 -0500)]
configs: Resync with savedefconfig

Rsync all defconfig files using moveconfig.py

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agonet: ftmac100: Remove non-DM_ETH code
Tom Rini [Sat, 19 Nov 2022 23:45:40 +0000 (18:45 -0500)]
net: ftmac100: Remove non-DM_ETH code

At this point all users of this driver enable DM_ETH, so remove the
legacy code paths.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
23 months agoConvert CONFIG_VSC7385_ENET et al to Kconfig
Tom Rini [Sat, 19 Nov 2022 23:45:39 +0000 (18:45 -0500)]
Convert CONFIG_VSC7385_ENET et al to Kconfig

This converts the following to Kconfig:
   CONFIG_VSC7385_ENET
   CONFIG_VSC9953

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoConvert CONFIG_USB_GADGET_AT91 to Kconfig
Tom Rini [Sat, 19 Nov 2022 23:45:38 +0000 (18:45 -0500)]
Convert CONFIG_USB_GADGET_AT91 to Kconfig

This converts the following to Kconfig:
   CONFIG_USB_GADGET_AT91

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoNokia RX-51: Migrate legacy USB device options to Kconfig
Tom Rini [Sat, 19 Nov 2022 23:45:37 +0000 (18:45 -0500)]
Nokia RX-51: Migrate legacy USB device options to Kconfig

Move a number of legacy USB UDC options to Kconfig, over from the config
header.

Cc: Pali Rohár <pali@kernel.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoConvert CONFIG_TEGRA_CLOCK_SCALING et al to Kconfig
Tom Rini [Sat, 19 Nov 2022 23:45:36 +0000 (18:45 -0500)]
Convert CONFIG_TEGRA_CLOCK_SCALING et al to Kconfig

This converts the following to Kconfig:
   CONFIG_TEGRA_CLOCK_SCALING
   CONFIG_TEGRA_LP0
   CONFIG_TEGRA_PMU

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoConvert CONFIG_TPS6586X_POWER et al to Kconfig
Tom Rini [Sat, 19 Nov 2022 23:45:35 +0000 (18:45 -0500)]
Convert CONFIG_TPS6586X_POWER et al to Kconfig

This converts the following to Kconfig:
   CONFIG_TPS6586X_POWER
   CONFIG_TWL6030_POWER

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoConvert CONFIG_SPD_EEPROM to Kconfig
Tom Rini [Sat, 19 Nov 2022 23:45:34 +0000 (18:45 -0500)]
Convert CONFIG_SPD_EEPROM to Kconfig

This converts the following to Kconfig:
   CONFIG_SPD_EEPROM

Cc: Stefan Roese <sr@denx.de>
Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoConvert CONFIG_SMSC_LPC47M et al to Kconfig
Tom Rini [Sat, 19 Nov 2022 23:45:33 +0000 (18:45 -0500)]
Convert CONFIG_SMSC_LPC47M et al to Kconfig

This converts the following to Kconfig:
   CONFIG_SMSC_LPC47M
   CONFIG_SMSC_SIO1007

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoConvert CONFIG_SH_GPIO_PFC et al to Kconfig
Tom Rini [Sat, 19 Nov 2022 23:45:32 +0000 (18:45 -0500)]
Convert CONFIG_SH_GPIO_PFC et al to Kconfig

This converts the following to Kconfig:
   CONFIG_SH_GPIO_PFC
   CONFIG_TMU_TIMER

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoConvert CONFIG_RTC_DS1337 et al to Kconfig
Tom Rini [Sat, 19 Nov 2022 23:45:31 +0000 (18:45 -0500)]
Convert CONFIG_RTC_DS1337 et al to Kconfig

This converts the following to Kconfig:
   CONFIG_RTC_DS1337
   CONFIG_RTC_DS1337_NOOSC
   CONFIG_RTC_DS1338
   CONFIG_RTC_DS1374
   CONFIG_RTC_DS3231
   CONFIG_RTC_MC13XXX
   CONFIG_RTC_MXS
   CONFIG_RTC_PT7C4338

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoConvert CONFIG_PCA953X to Kconfig
Tom Rini [Sat, 19 Nov 2022 23:45:30 +0000 (18:45 -0500)]
Convert CONFIG_PCA953X to Kconfig

This converts the following to Kconfig:
   CONFIG_PCA953X

Cc: Uri Mashiach <uri.mashiach@compulab.co.il>
Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoConvert CONFIG_NAND_KMETER1 et al to Kconfig
Tom Rini [Sat, 19 Nov 2022 23:45:29 +0000 (18:45 -0500)]
Convert CONFIG_NAND_KMETER1 et al to Kconfig

This converts the following to Kconfig:
   CONFIG_NAND_ECC_BCH
   CONFIG_NAND_KIRKWOOD
   CONFIG_NAND_KMETER1

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoConvert CONFIG_MXS_OCOTP to Kconfig
Tom Rini [Sat, 19 Nov 2022 23:45:28 +0000 (18:45 -0500)]
Convert CONFIG_MXS_OCOTP to Kconfig

This converts the following to Kconfig:
   CONFIG_MXS_OCOTP

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoarm: Remove unused mx27 code
Tom Rini [Sat, 19 Nov 2022 23:45:27 +0000 (18:45 -0500)]
arm: Remove unused mx27 code

We no longer have any i.MX27 platforms, remove the remaining support
code.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoarm: samsung: Move CONFIG_MISC_COMMON to Kconfig
Tom Rini [Sat, 19 Nov 2022 23:45:26 +0000 (18:45 -0500)]
arm: samsung: Move CONFIG_MISC_COMMON to Kconfig

This option controls using board/samsung/common/misc.c, so add a Kconfig
file there as well and select it from the boards which use this
functionality.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Minkyu Kang <mk7.kang@samsung.com>
23 months agoarm: ls102xa: Migrate LS102XA_STREAM_ID
Tom Rini [Sat, 19 Nov 2022 23:45:25 +0000 (18:45 -0500)]
arm: ls102xa: Migrate LS102XA_STREAM_ID

This symbol appears to be globally used in the architecture, select it.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoarm: lpc32xx: Remove unused hsuart driver
Tom Rini [Sat, 19 Nov 2022 23:45:24 +0000 (18:45 -0500)]
arm: lpc32xx: Remove unused hsuart driver

This driver is not enabled in any config currently, remove it.

Cc: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agosandbox: Move CONFIG_IO_TRACE to Kconfig
Tom Rini [Sat, 19 Nov 2022 23:45:23 +0000 (18:45 -0500)]
sandbox: Move CONFIG_IO_TRACE to Kconfig

This is only used on sandbox, so select it there.

Cc: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
23 months agoConvert CONFIG_IOMUX_SHARE_CONF_REG et al to Kconfig
Tom Rini [Sat, 19 Nov 2022 23:45:22 +0000 (18:45 -0500)]
Convert CONFIG_IOMUX_SHARE_CONF_REG et al to Kconfig

This converts the following to Kconfig:
   CONFIG_IOMUX_LPSR
   CONFIG_IOMUX_SHARE_CONF_REG

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoConvert CONFIG_IODELAY_RECALIBRATION to Kconfig
Tom Rini [Sat, 19 Nov 2022 23:45:21 +0000 (18:45 -0500)]
Convert CONFIG_IODELAY_RECALIBRATION to Kconfig

This converts the following to Kconfig:
   CONFIG_IODELAY_RECALIBRATION

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agompc8548cds: Migrate CONFIG_INTERRUPTS to Kconfig
Tom Rini [Sat, 19 Nov 2022 23:45:20 +0000 (18:45 -0500)]
mpc8548cds: Migrate CONFIG_INTERRUPTS to Kconfig

Only this platform sets this option, define it in the board Kconfig
file.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoConvert CONFIG_IMX_VIDEO_SKIP et al to Kconfig
Tom Rini [Sat, 19 Nov 2022 23:45:19 +0000 (18:45 -0500)]
Convert CONFIG_IMX_VIDEO_SKIP et al to Kconfig

This converts the following to Kconfig:
   CONFIG_IMX_VIDEO_SKIP
   CONFIG_IMX_HDMI

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agopwm: imx: Remove unused references to CONFIG_IMX6_PWM_PER_CLK
Tom Rini [Sat, 19 Nov 2022 23:45:18 +0000 (18:45 -0500)]
pwm: imx: Remove unused references to CONFIG_IMX6_PWM_PER_CLK

On platforms that use DM_PWM, we do not need to define this value
anymore, so remove it from config files.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoarm920t: Remove unused imx code
Tom Rini [Sat, 19 Nov 2022 23:45:17 +0000 (18:45 -0500)]
arm920t: Remove unused imx code

This code is currently unused, remove it.

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoConvert CONFIG_HWCONFIG to Kconfig
Tom Rini [Sat, 19 Nov 2022 23:45:16 +0000 (18:45 -0500)]
Convert CONFIG_HWCONFIG to Kconfig

This converts the following to Kconfig:
   CONFIG_HWCONFIG

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoConvert CONFIG_POWER_LTC3676 et al to Kconfig
Tom Rini [Sat, 19 Nov 2022 23:45:15 +0000 (18:45 -0500)]
Convert CONFIG_POWER_LTC3676 et al to Kconfig

This converts the following to Kconfig:
   CONFIG_POWER_FSL
   CONFIG_POWER_FSL_MC13892
   CONFIG_POWER_HI6553
   CONFIG_POWER_LTC3676
   CONFIG_POWER_PFUZE100
   CONFIG_POWER_PFUZE3000
   CONFIG_POWER_SPI
   CONFIG_POWER_TPS65090_EC
   CONFIG_POWER_TPS65218
   CONFIG_POWER_TPS65910

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoConvert CONFIG_HIKEY_GPIO et al to Kconfig
Tom Rini [Sat, 19 Nov 2022 23:45:14 +0000 (18:45 -0500)]
Convert CONFIG_HIKEY_GPIO et al to Kconfig

This converts the following to Kconfig:
   CONFIG_HIKEY_GPIO
   CONFIG_TCA642X

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoConvert CONFIG_FSL_SERDES to Kconfig
Tom Rini [Sat, 19 Nov 2022 23:45:13 +0000 (18:45 -0500)]
Convert CONFIG_FSL_SERDES to Kconfig

This converts the following to Kconfig:
   CONFIG_FSL_SERDES

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoConvert CONFIG_FSL_LBC to Kconfig
Tom Rini [Sat, 19 Nov 2022 23:45:12 +0000 (18:45 -0500)]
Convert CONFIG_FSL_LBC to Kconfig

This converts the following to Kconfig:
   CONFIG_FSL_LBC

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoConvert CONFIG_FSL_IIM to Kconfig
Tom Rini [Sat, 19 Nov 2022 23:45:11 +0000 (18:45 -0500)]
Convert CONFIG_FSL_IIM to Kconfig

This converts the following to Kconfig:
   CONFIG_FSL_IIM

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoConvert CONFIG_FSL_DEVICE_DISABLE to Kconfig
Tom Rini [Sat, 19 Nov 2022 23:45:10 +0000 (18:45 -0500)]
Convert CONFIG_FSL_DEVICE_DISABLE to Kconfig

This converts the following to Kconfig:
   CONFIG_FSL_DEVICE_DISABLE

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agoConvert CONFIG_FSL_CADMUS to Kconfig
Tom Rini [Sat, 19 Nov 2022 23:45:09 +0000 (18:45 -0500)]
Convert CONFIG_FSL_CADMUS to Kconfig

This converts the following to Kconfig:
   CONFIG_FSL_CADMUS

Signed-off-by: Tom Rini <trini@konsulko.com>
23 months agopower: pmic: Guard non-DM_PMIC drivers with a check for POWER_LEGACY
Tom Rini [Sat, 19 Nov 2022 23:45:08 +0000 (18:45 -0500)]
power: pmic: Guard non-DM_PMIC drivers with a check for POWER_LEGACY

As we have more legacy PMIC drivers to move to Kconfig, guard them all
with POWER_LEGACY or SPL_POWER_LEGACY. Do the same kind of check for
building the drivers too. This also means that we need to resort the
list slightly in the Makefile.

Cc: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
23 months agoglobal: Move remaining CONFIG_SYS_* to CFG_SYS_*
Tom Rini [Wed, 16 Nov 2022 18:10:41 +0000 (13:10 -0500)]
global: Move remaining CONFIG_SYS_* to CFG_SYS_*

The rest of the unmigrated CONFIG symbols in the CONFIG_SYS namespace do
not easily transition to Kconfig. In many cases they likely should come
from the device tree instead. Move these out of CONFIG namespace and in
to CFG namespace.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
23 months agoglobal: Move remaining CONFIG_*SRIO_* to CFG_*
Tom Rini [Wed, 16 Nov 2022 18:10:40 +0000 (13:10 -0500)]
global: Move remaining CONFIG_*SRIO_* to CFG_*

The rest of the unmigrated CONFIG symbols in the SRIO namespace do not
easily transition to Kconfig. In many cases they likely should come from
the device tree instead. Move these out of CONFIG namespace and in to
CFG namespace.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
23 months agoConvert CONFIG_SYS_SRIO et al to Kconfig
Tom Rini [Wed, 16 Nov 2022 18:10:39 +0000 (13:10 -0500)]
Convert CONFIG_SYS_SRIO et al to Kconfig

This converts the following to Kconfig:
   CONFIG_SRIO1
   CONFIG_SRIO2
   CONFIG_SRIO_PCIE_BOOT_MASTER
   CONFIG_SYS_SRIO

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
23 months agoConvert CONFIG_SYS_TIMER_COUNTS_DOWN to Kconfig
Tom Rini [Wed, 16 Nov 2022 18:10:38 +0000 (13:10 -0500)]
Convert CONFIG_SYS_TIMER_COUNTS_DOWN to Kconfig

This converts the following to Kconfig:
   CONFIG_SYS_TIMER_COUNTS_DOWN

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
23 months agoglobal: Move remaining CONFIG_SYS_SDRAM_* to CFG_SYS_SDRAM_*
Tom Rini [Wed, 16 Nov 2022 18:10:37 +0000 (13:10 -0500)]
global: Move remaining CONFIG_SYS_SDRAM_* to CFG_SYS_SDRAM_*

The rest of the unmigrated CONFIG symbols in the CONFIG_SYS_SDRAM
namespace do not easily transition to Kconfig. In many cases they likely
should come from the device tree instead. Move these out of CONFIG
namespace and in to CFG namespace.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
23 months agoimx6/imx7: Remove now empty imx6_spl.h and imx7_spl.h
Tom Rini [Wed, 16 Nov 2022 18:10:36 +0000 (13:10 -0500)]
imx6/imx7: Remove now empty imx6_spl.h and imx7_spl.h

There are now no flags being set in these files, so remove them.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
23 months agospl: Migrate SYS_SATA_FAT_BOOT_PARTITION to Kconfig
Tom Rini [Wed, 16 Nov 2022 18:10:35 +0000 (13:10 -0500)]
spl: Migrate SYS_SATA_FAT_BOOT_PARTITION to Kconfig

This moves SYS_SATA_FAT_BOOT_PARTITION to Kconfig and enforces the
current default via Kconfig rather than C code.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
23 months agoConvert CONFIG_SYS_PMAN et al to Kconfig
Tom Rini [Wed, 16 Nov 2022 18:10:34 +0000 (13:10 -0500)]
Convert CONFIG_SYS_PMAN et al to Kconfig

This converts the following to Kconfig:
   CONFIG_NOBQFMAN
   CONFIG_SYS_DPAA_DCE
   CONFIG_SYS_DPAA_FMAN
   CONFIG_SYS_DPAA_PME
   CONFIG_SYS_DPAA_RMAN
   CONFIG_SYS_PMAN

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
23 months agoglobal: Move remaining CONFIG_SYS_PCI* to CFG_SYS_PCI*
Tom Rini [Wed, 16 Nov 2022 18:10:33 +0000 (13:10 -0500)]
global: Move remaining CONFIG_SYS_PCI* to CFG_SYS_PCI*

The rest of the unmigrated CONFIG symbols in the CONFIG_SYS_PCI and
CONFIG_SYS_PCIE namespace do not easily transition to Kconfig. In many
cases they likely should come from the device tree instead. Move these
out of CONFIG namespace and in to CFG namespace.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
23 months agoConvert CONFIG_SYS_OMAP_ABE_SYSCK to Kconfig
Tom Rini [Wed, 16 Nov 2022 18:10:32 +0000 (13:10 -0500)]
Convert CONFIG_SYS_OMAP_ABE_SYSCK to Kconfig

This converts the following to Kconfig:
   CONFIG_SYS_OMAP_ABE_SYSCK

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>