platform/kernel/u-boot.git
16 months agodt-bindings: clk: at91: Define additional UTMI related clocks
Sergiu Moga [Wed, 4 Jan 2023 14:04:14 +0000 (16:04 +0200)]
dt-bindings: clk: at91: Define additional UTMI related clocks

Add definitions for an additional main UTMI clock as well as its
respective subclocks.

Signed-off-by: Sergiu Moga <sergiu.moga@microchip.com>
16 months agodt-bindings: reset: add sama7g5 definitions
Sergiu Moga [Wed, 4 Jan 2023 14:04:13 +0000 (16:04 +0200)]
dt-bindings: reset: add sama7g5 definitions

Upstream linux commit 5994f58977e0.

Add reset bindings for SAMA7G5. At the moment only USB PHYs are
included.

The three reset USB phy's have their ID's mapped from 4 to 6. There are
no USB phy's with ID's numbered from 0 to 3.

Signed-off-by: Sergiu Moga <sergiu.moga@microchip.com>
16 months agoARM: dts: sam9x60ek: Add pinctrl and gpio properties for USB
Sergiu Moga [Wed, 4 Jan 2023 14:04:12 +0000 (16:04 +0200)]
ARM: dts: sam9x60ek: Add pinctrl and gpio properties for USB

Add the required pinctrl and gpio properties required by the USB DT
nodes of the sam9x60ek boards.

Signed-off-by: Sergiu Moga <sergiu.moga@microchip.com>
16 months agoARM: dts: sam9x60_curiosity: Add pinctrl and gpio properties for USB
Sergiu Moga [Wed, 4 Jan 2023 14:04:11 +0000 (16:04 +0200)]
ARM: dts: sam9x60_curiosity: Add pinctrl and gpio properties for USB

Add the required pinctrl and gpio properties needed by the USB DT nodes
of the sam9x60_curiosity boards.

Signed-off-by: Sergiu Moga <sergiu.moga@microchip.com>
16 months agoARM: dts: sam9x60: Add OHCI and EHCI DT nodes
Sergiu Moga [Wed, 4 Jan 2023 14:04:10 +0000 (16:04 +0200)]
ARM: dts: sam9x60: Add OHCI and EHCI DT nodes

Add the OHCI and EHCI DT nodes for the sam9x60 SoC's.

Signed-off-by: Sergiu Moga <sergiu.moga@microchip.com>
Reviewed-by: Marek Vasut <marex@denx.de>
16 months agoconfigs: sam9x60: add mmc config for sdmmc1
Mihai Sain [Fri, 23 Dec 2022 06:43:53 +0000 (08:43 +0200)]
configs: sam9x60: add mmc config for sdmmc1

Add new config for storing environment from SDMMC1.

Signed-off-by: Mihai Sain <mihai.sain@microchip.com>
16 months agoboard: at91: sam9x60: set blue led on at boot time
Mihai Sain [Fri, 23 Dec 2022 06:39:36 +0000 (08:39 +0200)]
board: at91: sam9x60: set blue led on at boot time

Set blue led on at boot time in order to highlight that u-boot is loaded.
This is done for all sam9x60 based boards which contain an RGB led.

Signed-off-by: Mihai Sain <mihai.sain@microchip.com>
16 months agoARM: dts: at91: sam9x60: add sdhci1 node and pinctrl
Mihai Sain [Fri, 23 Dec 2022 06:47:17 +0000 (08:47 +0200)]
ARM: dts: at91: sam9x60: add sdhci1 node and pinctrl

Add node for sdhci1 controller and its pinctrl.

Signed-off-by: Mihai Sain <mihai.sain@microchip.com>
17 months agoARM: dts: at91: sama5d2: fix wrong interrupt-cells property
Eugen Hristev [Mon, 12 Dec 2022 09:59:16 +0000 (11:59 +0200)]
ARM: dts: at91: sama5d2: fix wrong interrupt-cells property

The PMC node is not an interrupt provider, so it must not have
interrupt-cells.

This fixes the warning (on newer DTC):
arch/arm/dts/sama5d2.dtsi:82.22-602.6: Warning (interrupt_provider): /ahb/apb/pmc@f0014000: '#interrupt-cells' found, but node is not an interrupt provider

Fixes: 2c4b2dd289 ("ARM: at91/dt: Add device tree for SAMA5D2 Xplained")
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
17 months agoARM: mach-at91: add support for sama7g5 chip id and extended id definition
Mihai Sain [Fri, 2 Dec 2022 07:47:19 +0000 (09:47 +0200)]
ARM: mach-at91: add support for sama7g5 chip id and extended id definition

Add SAMA7G5 series chip id definitions to align with linux SoC driver.
Add support for SAMA7G5 System-In-Package (SIP):
SAMA7G54D1G, SAMA7G54D2G, SAMA7G54D4G.

Signed-off-by: Mihai Sain <mihai.sain@microchip.com>
17 months agoARM: dts: at91: sama7g5/sama7g5ek: align DT with kernel 6.1
Eugen Hristev [Fri, 25 Nov 2022 07:54:53 +0000 (09:54 +0200)]
ARM: dts: at91: sama7g5/sama7g5ek: align DT with kernel 6.1

Align the DT with current Linux 6.1 tree, wherever possible.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
17 months agosysreset: at91: add compatible with microchip, sama7g5-rstc
Eugen Hristev [Fri, 25 Nov 2022 07:54:52 +0000 (09:54 +0200)]
sysreset: at91: add compatible with microchip, sama7g5-rstc

As documented in bindings doc in kernel 6.0:
https://elixir.bootlin.com/linux/v6.0/source/Documentation/devicetree/bindings/reset/atmel,at91sam9260-reset.yaml

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
17 months agodt-bindings: mfd: add at91-usart.h from Linux
Eugen Hristev [Fri, 25 Nov 2022 07:54:51 +0000 (09:54 +0200)]
dt-bindings: mfd: add at91-usart.h from Linux

Copy include file dt-bindings/mfd/at91-usart.h from Linux

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
17 months agoboard: sam9x60ek: remove nand init from board file
Balamanikandan Gunasundar [Tue, 25 Oct 2022 10:51:09 +0000 (16:21 +0530)]
board: sam9x60ek: remove nand init from board file

Move this out of board file as this is done by the DM based NAND flash
driver. The EBI chip select configuration, iomux and timings are
handled by the driver

Signed-off-by: Balamanikandan Gunasundar <balamanikandan.gunasundar@microchip.com>
17 months agoARM: dts: at91: sam9x60ek: Enable NAND support
Balamanikandan Gunasundar [Tue, 25 Oct 2022 10:51:08 +0000 (16:21 +0530)]
ARM: dts: at91: sam9x60ek: Enable NAND support

Enable the EBI and NAND flash controller. Define the pinctrl and
partition table

Signed-off-by: Balamanikandan Gunasundar <balamanikandan.gunasundar@microchip.com>
17 months agoARM: dts: at91: sam9x60: Add nodes for EBI and NAND
Balamanikandan Gunasundar [Tue, 25 Oct 2022 10:51:07 +0000 (16:21 +0530)]
ARM: dts: at91: sam9x60: Add nodes for EBI and NAND

Add new bindings for EBI and NAND controller

Signed-off-by: Balamanikandan Gunasundar <balamanikandan.gunasundar@microchip.com>
17 months agoconfigs: at91: sam9x60ek: Enable DM based nand driver
Balamanikandan Gunasundar [Tue, 25 Oct 2022 10:51:06 +0000 (16:21 +0530)]
configs: at91: sam9x60ek: Enable DM based nand driver

Enable Device model supported NAND driver and remove legacy Atmel NAND
driver.

Signed-off-by: Balamanikandan Gunasundar <balamanikandan.gunasundar@microchip.com>
17 months agomfd: syscon: atmel-smc: Add new helpers to ease SMC regs manipulation
Balamanikandan Gunasundar [Tue, 25 Oct 2022 10:51:05 +0000 (16:21 +0530)]
mfd: syscon: atmel-smc: Add new helpers to ease SMC regs manipulation

Add helper functions for atmel Static Memory Controller. The functions
are required to configure SMC. This file is inherited from the work
done by Boris Brezillon for Linux

Signed-off-by: Balamanikandan Gunasundar <balamanikandan.gunasundar@microchip.com>
17 months agomemory: atmel-ebi: add Atmel EBI (External Bus Interface) driver
Balamanikandan Gunasundar [Tue, 25 Oct 2022 10:51:04 +0000 (16:21 +0530)]
memory: atmel-ebi: add Atmel EBI (External Bus Interface) driver

The EBI is used to access peripherals like NAND, SRAM, NOR etc. Add
this driver to probe the nand flash controller. This is a dummy driver
and not yet a complete device driver for EBI.

Signed-off-by: Balamanikandan Gunasundar <balamanikandan.gunasundar@microchip.com>
17 months agomfd: syscon: Add atmel-matrix registers definition
Balamanikandan Gunasundar [Tue, 25 Oct 2022 10:51:03 +0000 (16:21 +0530)]
mfd: syscon: Add atmel-matrix registers definition

This file is copied from Linux. AT91 SoCs have a memory range reserved
for internal bus configuration. Expose those registers so that drivers
can make use of the matrix syscon declared in at91 DTs.

Signed-off-by: Balamanikandan Gunasundar <balamanikandan.gunasundar@microchip.com>
17 months agonand: atmel: Add pmecc driver
Balamanikandan Gunasundar [Tue, 25 Oct 2022 10:51:02 +0000 (16:21 +0530)]
nand: atmel: Add pmecc driver

Add driver for atmel pmecc. This implementation is ported from
Linux. The reference taken is linux-5.4-at91.

Signed-off-by: Balamanikandan Gunasundar <balamanikandan.gunasundar@microchip.com>
17 months agonand: atmel: Add DM based NAND driver
Balamanikandan Gunasundar [Tue, 25 Oct 2022 10:51:01 +0000 (16:21 +0530)]
nand: atmel: Add DM based NAND driver

This implementation is ported from the rework done by Boris Brezillon
in Linux. This porting is done based on linux-5.4-at91. The driver is
tested in sam9x60ek, sama5d3_xplained, sam9x75eb and sama7g54-ddr3-eb.

Changes done includes

- Adapt GPIO descriptor apis for U-Boot. Use gpio_request_by_name_nodev,
  dm_gpio_get_value etc.
- Use U_BOOT_DRIVER instead of platform_driver.
- Replace struct platform_device with struct udevice
- Check the status of nfc exec operation by polling the status
  register instead of interrupt based handling
- DMA operations not supported. Remove it
- Adapt DT parsing to U-Boot APIs

Signed-off-by: Balamanikandan Gunasundar <balamanikandan.gunasundar@microchip.com>
17 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.

17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 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>
17 months agoRemove unused symbols
Tom Rini [Wed, 16 Nov 2022 18:10:31 +0000 (13:10 -0500)]
Remove unused symbols

This commit removes the following unused symbols:
   CONFIG_SYS_NVRAM_BASE_ADDR
   CONFIG_SYS_NVRAM_SIZE
   CONFIG_SYS_PAXE_BASE
   CONFIG_SYS_PCCNT
   CONFIG_SYS_PCDAT
   CONFIG_SYS_PCDDR
   CONFIG_SYS_PCI1_ADDR
   CONFIG_SYS_PCI2_ADDR
   CONFIG_SYS_PCI1_IO_BUS
   CONFIG_SYS_PCI1_IO_SIZE
   CONFIG_SYS_PCI1_MEM_BUS
   CONFIG_SYS_PCI1_MEM_SIZE
   CONFIG_SYS_PCIE3_ADDR
   CONFIG_SYS_PCIE4_ADDR
   CONFIG_SYS_PCIE3_IO_PHYS
   CONFIG_SYS_PCIE3_IO_VIRT
   CONFIG_SYS_PCIE4_IO_PHYS
   CONFIG_SYS_PCIE4_IO_VIRT
   CONFIG_SYS_PLL_SETTLING_TIME
   CONFIG_SYS_QMAN_CENA_BASE
   CONFIG_SYS_QMAN_SP_CENA_SIZE
   CONFIG_SYS_RCAR_I2C0_BASE
   CONFIG_SYS_RCAR_I2C1_BASE
   CONFIG_SYS_RCAR_I2C2_BASE
   CONFIG_SYS_RCAR_I2C3_BASE
   CONFIG_SYS_SATA
   CONFIG_SYS_SDRAM_BASE2
   CONFIG_SYS_SGMII_REFCLK_MHZ
   CONFIG_SYS_SGMII_LINERATE_MHZ
   CONFIG_SYS_SGMII_RATESCALE
   CONFIG_SYS_SH_SDHI0_BASE
   CONFIG_SYS_SH_SDHI0_BASE
   CONFIG_SYS_SH_SDHI1_BASE
   CONFIG_SYS_SH_SDHI2_BASE
   CONFIG_SYS_SH_SDHI3_BASE
   CONFIG_SYS_SPI_ST_ENABLE_WP_PIN
   CONFIG_SYS_SPI_U_BOOT_SIZE
   CONFIG_SYS_VCXK_ACKNOWLEDGE_DDR
   CONFIG_SYS_VCXK_ACKNOWLEDGE_PIN
   CONFIG_SYS_VCXK_ACKNOWLEDGE_PORT
   CONFIG_SYS_VCXK_BASE
   CONFIG_SYS_VCXK_DEFAULT_LINEALIGN
   CONFIG_SYS_VCXK_DOUBLEBUFFERED
   CONFIG_SYS_VCXK_ENABLE_DDR
   CONFIG_SYS_VCXK_ENABLE_PIN
   CONFIG_SYS_VCXK_ENABLE_PORT
   CONFIG_SYS_VCXK_INVERT_DDR
   CONFIG_SYS_VCXK_INVERT_PIN
   CONFIG_SYS_VCXK_INVERT_PORT
   CONFIG_SYS_VCXK_REQUEST_DDR
   CONFIG_SYS_VCXK_REQUEST_PIN
   CONFIG_SYS_VCXK_REQUEST_PORT
   CONFIG_SYS_VSC7385_BR_PRELIM
   CONFIG_SYS_VSC7385_OR_PRELIM

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
17 months agortc: Remove unused drivers
Tom Rini [Wed, 16 Nov 2022 18:10:30 +0000 (13:10 -0500)]
rtc: Remove unused drivers

These RTC drivers are currently unused and reference other unused CONFIG
variables, so remove them.

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

The rest of the unmigrated CONFIG symbols in the CONFIG_SYS_NUM
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>
17 months agoglobal: Move remaining CONFIG_SYS_NS16550_* to CFG_SYS_NS16550_*
Tom Rini [Wed, 16 Nov 2022 18:10:28 +0000 (13:10 -0500)]
global: Move remaining CONFIG_SYS_NS16550_* to CFG_SYS_NS16550_*

The rest of the unmigrated CONFIG symbols in the CONFIG_SYS_NS16550
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>
17 months agoConvert CONFIG_SYS_NS16550_MEM32 et al to Kconfig
Tom Rini [Sun, 4 Dec 2022 14:39:03 +0000 (09:39 -0500)]
Convert CONFIG_SYS_NS16550_MEM32 et al to Kconfig

This converts the following to Kconfig:
   CONFIG_SPL_NS16550_MIN_FUNCTIONS
   CONFIG_SYS_NS16550_MEM32
   CONFIG_SYS_NS16550_PORT_MAPPED
   CONFIG_SYS_NS16550_REG_SIZE
   CONFIG_SYS_NS16550_SERIAL

To do this we also introduce CONFIG_SPL_SYS_NS16550_SERIAL so that
platforms can enable the legacy driver here for SPL.

Signed-off-by: Tom Rini <trini@konsulko.com>
17 months agopowerpc: Rename CONFIG_NS16550_MIN_FUNCTIONS
Tom Rini [Wed, 16 Nov 2022 18:10:26 +0000 (13:10 -0500)]
powerpc: Rename CONFIG_NS16550_MIN_FUNCTIONS

This symbol is specific to the PowerPC SPL implementation, so rename
this to reflect that it's in SPL and used / tested there, so that we can
then safely migrate it to Kconfig.

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

The rest of the unmigrated CONFIG symbols in the CONFIG_SYS_NOR
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>
17 months agoglobal: Move remaining CONFIG_SYS_NAND_* to CFG_SYS_NAND_*
Tom Rini [Sat, 12 Nov 2022 22:36:51 +0000 (17:36 -0500)]
global: Move remaining CONFIG_SYS_NAND_* to CFG_SYS_NAND_*

The rest of the unmigrated CONFIG symbols in the CONFIG_SYS_NAND
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>
17 months agoConvert CONFIG_SYS_NAND_SIZE to Kconfig
Tom Rini [Sat, 12 Nov 2022 22:36:50 +0000 (17:36 -0500)]
Convert CONFIG_SYS_NAND_SIZE to Kconfig

This converts the following to Kconfig:
   CONFIG_SYS_NAND_SIZE

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
17 months agoConvert CONFIG_SYS_NAND_PAGE_2K et al to Kconfig
Tom Rini [Sat, 12 Nov 2022 22:36:49 +0000 (17:36 -0500)]
Convert CONFIG_SYS_NAND_PAGE_2K et al to Kconfig

This converts the following to Kconfig:
   CONFIG_SYS_NAND_PAGE_2K
   CONFIG_SYS_NAND_PAGE_4K

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
17 months agoConvert CONFIG_SYS_NAND_NO_SUBPAGE_WRITE to Kconfig
Tom Rini [Sat, 12 Nov 2022 22:36:48 +0000 (17:36 -0500)]
Convert CONFIG_SYS_NAND_NO_SUBPAGE_WRITE to Kconfig

This converts the following to Kconfig:
   CONFIG_SYS_NAND_NO_SUBPAGE_WRITE

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
17 months agoConvert CONFIG_SYS_NAND_MAX_OOBFREE et al to Kconfig
Tom Rini [Sat, 12 Nov 2022 22:36:47 +0000 (17:36 -0500)]
Convert CONFIG_SYS_NAND_MAX_OOBFREE et al to Kconfig

This converts the following to Kconfig:
   CONFIG_SYS_NAND_MAX_OOBFREE
   CONFIG_SYS_NAND_MAX_ECCPOS

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
17 months agomtd: nand: raw: atmel_nand: Use ATMEL_BASE_ECC directly
Tom Rini [Sat, 12 Nov 2022 22:36:46 +0000 (17:36 -0500)]
mtd: nand: raw: atmel_nand: Use ATMEL_BASE_ECC directly

This is the only driver, and only one platform makes use of, setting
CONFIG_SYS_NAND_ECC_BASE. Reference ATMEL_BASE_ECC directly in this
case.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
17 months agoConvert CONFIG_SYS_NAND_HW_ECC to Kconfig
Tom Rini [Sat, 12 Nov 2022 22:36:45 +0000 (17:36 -0500)]
Convert CONFIG_SYS_NAND_HW_ECC to Kconfig

This converts the following to Kconfig:
   CONFIG_SYS_NAND_HW_ECC

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
17 months agoConvert CONFIG_SYS_NAND_HW_ECC_OOBFIRST to Kconfig
Tom Rini [Sat, 12 Nov 2022 22:36:44 +0000 (17:36 -0500)]
Convert CONFIG_SYS_NAND_HW_ECC_OOBFIRST to Kconfig

This converts the following to Kconfig:
   CONFIG_SYS_NAND_HW_ECC_OOBFIRST

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
17 months agoRemove unused symbols
Tom Rini [Sat, 12 Nov 2022 22:36:43 +0000 (17:36 -0500)]
Remove unused symbols

This commit removes the following unused symbols:
   CONFIG_SYS_NAND_DDR_LAW
   CONFIG_SYS_NAND_ECCSTEPS
   CONFIG_SYS_NAND_ECCTOTAL
   CONFIG_SYS_NAND_ENABLE_PIN_SPL
   CONFIG_SYS_NAND_MX7_GPMI_62_ECC_BYTES
   CONFIG_SYS_NAND_U_BOOT_RELOC_SP

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
17 months agoConvert CONFIG_SYS_NAND_DBW_8 et al to Kconfig
Tom Rini [Sat, 12 Nov 2022 22:36:42 +0000 (17:36 -0500)]
Convert CONFIG_SYS_NAND_DBW_8 et al to Kconfig

This converts the following to Kconfig:
   CONFIG_SYS_NAND_DBW_8
   CONFIG_SYS_NAND_DBW_16

Note that all instances of the code check for CONFIG_SYS_NAND_DBW_16
being defined, and then "else" to CONFIG_SYS_NAND_DBW_8 whereas all of
the configs set CONFIG_SYS_NAND_DBW_8. So we introduce
CONFIG_SYS_NAND_DBW_16 as an option.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
17 months agoPrepare v2023.01-rc3
Tom Rini [Mon, 5 Dec 2022 20:21:53 +0000 (15:21 -0500)]
Prepare v2023.01-rc3

Signed-off-by: Tom Rini <trini@konsulko.com>
17 months agoMerge branch '2022-12-05-add-IPv6-support'
Tom Rini [Mon, 5 Dec 2022 18:28:22 +0000 (13:28 -0500)]
Merge branch '2022-12-05-add-IPv6-support'

To quote the author:
This patch set adds basic IPv6 support to U-boot.
It is based on Chris's Packham patches
(https://lists.denx.de/pipermail/u-boot/2017-January/279366.html)
Chris's patches were taken as base. There were efforts to launch it on
HiFive SiFive Unmatched board but the board didn't work well. The code was
refactored, fixed some bugs as CRC for little-endian, some parts were implemented in
our own way, something was taken from Linux. Finally we did manual tests and the
board worked well.

Testing was done on HiFive SiFive Unmatched board (RISC-V)

17 months agoconfigs: Add IPV6 config to sandbox_flattree_defconfig
Viacheslav Mitrofanov [Fri, 2 Dec 2022 09:18:17 +0000 (12:18 +0300)]
configs: Add IPV6 config to sandbox_flattree_defconfig

Allow to use IPV6 tests in sandbox

Signed-off-by: Viacheslav Mitrofanov <v.v.mitrofanov@yadro.com>
17 months agoconfigs: Add IPV6 config to sandbox64_defconfig
Viacheslav Mitrofanov [Fri, 2 Dec 2022 09:18:16 +0000 (12:18 +0300)]
configs: Add IPV6 config to sandbox64_defconfig

Allow to use IPV6 tests in sandbox

Signed-off-by: Viacheslav Mitrofanov <v.v.mitrofanov@yadro.com>
17 months agoconfigs: Add IPV6 config to sandbox_defconfig
Viacheslav Mitrofanov [Fri, 2 Dec 2022 09:18:14 +0000 (12:18 +0300)]
configs: Add IPV6 config to sandbox_defconfig

Allow to use IPV6 tests in sandbox

Signed-off-by: Viacheslav Mitrofanov <v.v.mitrofanov@yadro.com>
17 months agotest: dm: eth: Add ip6_make_lladdr test
Viacheslav Mitrofanov [Fri, 2 Dec 2022 09:18:13 +0000 (12:18 +0300)]
test: dm: eth: Add ip6_make_lladdr test

Add a test that checks generated Link Local Address. Use in sandbox

Signed-off-by: Viacheslav Mitrofanov <v.v.mitrofanov@yadro.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
17 months agotest: dm: eth: Add ip6_make_snma test
Viacheslav Mitrofanov [Fri, 2 Dec 2022 09:18:12 +0000 (12:18 +0300)]
test: dm: eth: Add ip6_make_snma test

Add a test that checks generated Solicited Node Multicast Address from our
ipv6 address. Use in sandbox

Signed-off-by: Viacheslav Mitrofanov <v.v.mitrofanov@yadro.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
17 months agotest: dm: eth: Add ip6_addr_in_subnet test
Viacheslav Mitrofanov [Fri, 2 Dec 2022 09:18:11 +0000 (12:18 +0300)]
test: dm: eth: Add ip6_addr_in_subnet test

Add a test if two address are in the same subnet. Use in sandbox

Signed-off-by: Viacheslav Mitrofanov <v.v.mitrofanov@yadro.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
17 months agotest: dm: eth: Add csum_ipv6_magic test
Viacheslav Mitrofanov [Fri, 2 Dec 2022 09:18:10 +0000 (12:18 +0300)]
test: dm: eth: Add csum_ipv6_magic test

Test checksum computation. csum_ipv6_magic() uses in upper layer
protocols as TCP/UDP/ICMPv6/etc to calculate payload checksum.

Series-changes: 3
- Fixed style problems

Signed-off-by: Viacheslav Mitrofanov <v.v.mitrofanov@yadro.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
17 months agotest: dm: eth: Add string_to_ip6 test
Viacheslav Mitrofanov [Fri, 2 Dec 2022 09:18:09 +0000 (12:18 +0300)]
test: dm: eth: Add string_to_ip6 test

Add a test to check convertation from char* to struct in6_addr.
Use in sandbox

Series-changes: 3
- Fixed tests to use length param in string_to_ip6()

Series-changes: 5
- Add test under #ifdef

Signed-off-by: Viacheslav Mitrofanov <v.v.mitrofanov@yadro.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
17 months agonet: ping6: Add ping6 command
Viacheslav Mitrofanov [Fri, 2 Dec 2022 09:18:08 +0000 (12:18 +0300)]
net: ping6: Add ping6 command

Implement ping6 command to ping hosts using IPv6. It works the same way as
an ordinary ping command. There is no ICMP request so it is not possible
to ping our host. This patch adds options in Kconfig and Makefile to
build ping6 command.

Series-changes: 3
- Added structures and functions descriptions
- Added to ping6_receive() return value instead of void

Series-changes: 4
- Fixed structures and functions description style

Signed-off-by: Viacheslav Mitrofanov <v.v.mitrofanov@yadro.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
17 months agonet: tftp: Add IPv6 support for tftpboot
Viacheslav Mitrofanov [Fri, 2 Dec 2022 09:18:07 +0000 (12:18 +0300)]
net: tftp: Add IPv6 support for tftpboot

The command tftpboot uses IPv4 by default. Add the possibility to use IPv6
instead. If an address in the command is an IPv6 address it will use IPv6
to boot or if there is a suffix -ipv6 in the end of the command it also
force using IPv6. All other tftpboot features and parameters are left
the same.

Signed-off-by: Viacheslav Mitrofanov <v.v.mitrofanov@yadro.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>