common: Move old EEPROM functions into a new headerThese functions do not use driver model but are still used. Move them to anew eeprom.h header file.(cherry picked from commit cb3ef6810a27c8ddf
common: Move old EEPROM functions into a new headerThese functions do not use driver model but are still used. Move them to anew eeprom.h header file.(cherry picked from commit cb3ef6810a27c8ddf5db8694bcef9337f27d12ce)Signed-off-by: Simon Glass <sjg@chromium.org>Reviewed-by: Tom Rini <trini@konsulko.com>Signed-off-by: Tan Siewert <tan.siewert@hetzner.com>Link: https://patch.msgid.link/20250117094434.16641-6-tan.siewert@hetzner.comSigned-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
show more ...
SPDX: Convert all of our single license tags to Linux Kernel styleWhen U-Boot started using SPDX tags we were among the early adopters andthere weren't a lot of other examples to borrow from. So
SPDX: Convert all of our single license tags to Linux Kernel styleWhen U-Boot started using SPDX tags we were among the early adopters andthere weren't a lot of other examples to borrow from. So we picked thearea of the file that usually had a full license text and replaced itwith an appropriate SPDX-License-Identifier: entry. Since then, theLinux Kernel has adopted SPDX tags and they place it as the very firstline in a file (except where shebangs are used, then it's second line)and with slightly different comment styles than us.In part due to community overlap, in part due to better tag visibilityand in part for other minor reasons, switch over to that style.This commit changes all instances where we have a single declaredlicense in the tag as both the before and after are identical in tagcontents. There's also a few places where I found we did not have a tagand have introduced one.Signed-off-by: Tom Rini <trini@konsulko.com>
net: Move enetaddr env access code to env config instead of net configIn order that we can use eth_env_* even when CONFIG_NET isn't set, movethese functions to environment code from net code.Thi
net: Move enetaddr env access code to env config instead of net configIn order that we can use eth_env_* even when CONFIG_NET isn't set, movethese functions to environment code from net code.This fixes failures such as: board/ti/am335x/built-in.o: In function `board_late_init': board/ti/am335x/board.c:752: undefined reference to `eth_env_set_enetaddr' u-boot/board/ti/am335x/board.c:766: undefined reference to `eth_env_set_enetaddr'which caters for use cases such as:commit f411b5cca48f ("board: am335x: Always set eth/eth1addr environmentvariable")when Ethernet is required in Linux, but not U-Boot.Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
env: Rename eth_setenv_enetaddr() to eth_env_set_enetaddr()Rename this function for consistency with env_set().Signed-off-by: Simon Glass <sjg@chromium.org>
rockchip: tinker: set ethaddr in late initSet ethernet mac address in late init for Tinker Board,prevents getting a random mac address each boot.Read mac address from eeprom, first 6 bytes from
rockchip: tinker: set ethaddr in late initSet ethernet mac address in late init for Tinker Board,prevents getting a random mac address each boot.Read mac address from eeprom, first 6 bytes from m24c08@50.Same as /etc/init.d/rockchip.sh on Tinker OS.Signed-off-by: Jonas Karlman <jonas@kwiboo.se>Reviewed-by: Simon Glass <sjg@chromium.org>
rockchip: rename miniarm to tinker boardMiniarm is the internal project code. Now it is officially named Tinker board.So rename it.Signed-off-by: Eddie Cai <eddie.cai@rock-chips.com>Reviewed-by
rockchip: rename miniarm to tinker boardMiniarm is the internal project code. Now it is officially named Tinker board.So rename it.Signed-off-by: Eddie Cai <eddie.cai@rock-chips.com>Reviewed-by: Simon Glass <sjg@chromium.org>