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>
show more ...
Remove unnecessary instances of DECLARE_GLOBAL_DATA_PTRWe have a large number of places where while we historically referencedgd in the code we no longer do, as well as cases where the code added
Remove unnecessary instances of DECLARE_GLOBAL_DATA_PTRWe have a large number of places where while we historically referencedgd in the code we no longer do, as well as cases where the code addedthat line "just in case" during development and never dropped it.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>
env: Rename setenv() to env_set()We are now using an env_ prefix for environment functions. Rename setenv()for consistency. Also add function comments in common.h.Suggested-by: Wolfgang Denk <wd
env: Rename setenv() to env_set()We are now using an env_ prefix for environment functions. Rename setenv()for consistency. Also add function comments in common.h.Suggested-by: Wolfgang Denk <wd@denx.de>Signed-off-by: Simon Glass <sjg@chromium.org>
usb: musb-new: CONFIG_MUSB prefix replacement with CONFIG_USB_MUSBUSB-related options are usually prefixed with CONFIG_USB and platform-specificadaptation for the MUSB controller already have a CO
usb: musb-new: CONFIG_MUSB prefix replacement with CONFIG_USB_MUSBUSB-related options are usually prefixed with CONFIG_USB and platform-specificadaptation for the MUSB controller already have a CONFIG_USB_MUSB prefix, sothis switches all MUSB-related options to a CONFIG_USB_MUSB prefix, forconsistency.Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
net: cosmetic: Name ethaddr variables consistentlyUse "_ethaddr" at the end of variables and drop CamelCase.Make constant values actually 'const'.Signed-off-by: Joe Hershberger <joe.hershberger@
net: cosmetic: Name ethaddr variables consistentlyUse "_ethaddr" at the end of variables and drop CamelCase.Make constant values actually 'const'.Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>Acked-by: Simon Glass <sjg@chromium.org>
arm, am335x: siemens boards add FIT supportadd FIT support and set "boardid" from factoryset records"DEV/id" and "COMP/ver". "boardid" is used for selectingwhich fit configuration gets booted on
arm, am335x: siemens boards add FIT supportadd FIT support and set "boardid" from factoryset records"DEV/id" and "COMP/ver". "boardid" is used for selectingwhich fit configuration gets booted on the board.Signed-off-by: Heiko Schocher <hs@denx.de>
arm: am335x: net: pxm2: disable rgmii internal delay modedisable internal delay through gmii_sel register, as thisis done in the ar8031 phy.Signed-off-by: Heiko Schocher <hs@denx.de>Cc: Tom Rin
arm: am335x: net: pxm2: disable rgmii internal delay modedisable internal delay through gmii_sel register, as thisis done in the ar8031 phy.Signed-off-by: Heiko Schocher <hs@denx.de>Cc: Tom Rini <trini@ti.com>
kconfig: arm: introduce symbol for ARM CPUsThis commit introduces a Kconfig symbol for each ARM CPU:CPU_ARM720T, CPU_ARM920T, CPU_ARM926EJS, CPU_ARM946ES, CPU_ARM1136,CPU_ARM1176, CPU_V7, CPU_PXA
kconfig: arm: introduce symbol for ARM CPUsThis commit introduces a Kconfig symbol for each ARM CPU:CPU_ARM720T, CPU_ARM920T, CPU_ARM926EJS, CPU_ARM946ES, CPU_ARM1136,CPU_ARM1176, CPU_V7, CPU_PXA, CPU_SA1100.Also, it adds the CPU feature Kconfig symbol HAS_VBAR which is selectedfor CPU_ARM1176 and CPU_V7.For each target, the corresponding CPU is selected and the definition ofSYS_CPU in the corresponding Kconfig file is removed.Also, it removes redundant "string" type in some Kconfig files.Signed-off-by: Georges Savoundararadj <savoundg@gmail.com>Acked-by: Albert ARIBAUD <albert.u.boot@aribaud.net>Cc: Masahiro Yamada <yamada.m@jp.panasonic.com>
kconfig: remove redundant "string" type in arch and board KconfigsNow the types of CONFIG_SYS_{ARCH, CPU, SOC, VENDOR, BOARD, CONFIG_NAME}are specified in arch/Kconfig.We can delete the ones in
kconfig: remove redundant "string" type in arch and board KconfigsNow the types of CONFIG_SYS_{ARCH, CPU, SOC, VENDOR, BOARD, CONFIG_NAME}are specified in arch/Kconfig.We can delete the ones in arch and board Kconfig files.This commit can be easily reproduced by the following command:find . -name Kconfig -a ! -path ./arch/Kconfig | xargs sed -i -e '/config[[:space:]]SYS_\(ARCH\|CPU\|SOC\|\VENDOR\|BOARD\|CONFIG_NAME\)/ { N s/\n[[:space:]]*string//}'Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Add board MAINTAINERS filesWe have switched to Kconfig and the boards.cfg file is going tobe removed. We have to retrieve the board status and maintainersinformation from it.The MAINTAINERS for
Add board MAINTAINERS filesWe have switched to Kconfig and the boards.cfg file is going tobe removed. We have to retrieve the board status and maintainersinformation from it.The MAINTAINERS format as in Linux Kernel would be nicebecause we can crib the scripts/get_maintainer.pl script.After some discussion, we chose to put a MAINTAINERS file under eachboard directory, not the top-level one because we want to collectrelevant information for a board into a single place.TODO:Modify get_maintainer.pl to scan multiple MAINTAINERS files.Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Suggested-by: Tom Rini <trini@ti.com>Acked-by: Simon Glass <sjg@chromium.org>
kconfig: add board Kconfig and defconfig filesThis commit adds: - arch/${ARCH}/Kconfig provide a menu to select target boards - board/${VENDOR}/${BOARD}/Kconfig or board/${BOARD}/Kconfig
kconfig: add board Kconfig and defconfig filesThis commit adds: - arch/${ARCH}/Kconfig provide a menu to select target boards - board/${VENDOR}/${BOARD}/Kconfig or board/${BOARD}/Kconfig set CONFIG macros to the appropriate values for each board - configs/${TARGET_BOARD}_defconfig default setting of each board(This commit was automatically generated by a conversion scriptbased on boards.cfg)In Linux Kernel, defconfig files are located underarch/${ARCH}/configs/ directory.It works in Linux Kernel since ARCH is always given from thecommand line for cross compile.But in U-Boot, ARCH is not given from the command line.Which means we cannot know ARCH until the board configuration is done.That is why all the "*_defconfig" files should be gathered into asingle directory ./configs/.Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Acked-by: Simon Glass <sjg@chromium.org>
siemens: cosmetic: remove unused and rename definesFor dxr2 board DXR2_IOCTRL_VAL is set by data in EEPROM. In pxm2board it does not make sense to have dxr2 as prefix. Replace it withmore meaning
siemens: cosmetic: remove unused and rename definesFor dxr2 board DXR2_IOCTRL_VAL is set by data in EEPROM. In pxm2board it does not make sense to have dxr2 as prefix. Replace it withmore meaningful DDR prefix.Signed-off-by: Samuel Egli <samuel.egli@siemens.com>Cc: Pascal Bach <pascal.bach@siemens.com>Cc: Roger Meier <r.meier@siemens.com>Cc: Heiko Schocher <hs@denx.de>Cc: Wolfgang Denk <wd@denx.de>
drivers: net: cpsw: add support to have phy address from cpsw platform dataSome platforms like AM437x have different EVMs with different phy addresses,so this patch adds support for passing phy ad
drivers: net: cpsw: add support to have phy address from cpsw platform dataSome platforms like AM437x have different EVMs with different phy addresses,so this patch adds support for passing phy address via cpsw plaform data.Also renamed phy_id to phy_addr so better understanding of the code.Reviewed-by: Felipe Balbi <balbi@ti.com>Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>[trini: Update BuR am335x_igep0033 pcm051_rev3 pcm051_rev1 cm_t335pengwyn boards]Signed-off-by: Tom Rini <trini@ti.com>
ARM: AM33xx+: Update ioregs to pass different valuesCurrently same value is programmed for all ioregs. This is notthe case for all SoC's like AM4372. So adding a structure for ioregsand updating
ARM: AM33xx+: Update ioregs to pass different valuesCurrently same value is programmed for all ioregs. This is notthe case for all SoC's like AM4372. So adding a structure for ioregsand updating in all board files. And also return from config_cmd_ctrl()and config_ddr_data() functions if data is not passed.Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>[trini: Fixup dxr2, cm_t335, adapt pcm051 rev3]Signed-off-by: Tom Rini <trini@ti.com>
am33xx: Stop modifying certain EMIF4D registersBased on the definitive guide to EMIF configuration[1] certain registersthat we have been modifying (and are documented registers) should beleft in
am33xx: Stop modifying certain EMIF4D registersBased on the definitive guide to EMIF configuration[1] certain registersthat we have been modifying (and are documented registers) should beleft in their reset values rather than modified. This has been testedon AM335x GP EVM and Beaglebone White.[1]: http://processors.wiki.ti.com/index.php/AM335x_EMIF_Configuration_tipsCc: Enric Balletbo i Serra <eballetbo@iseebcn.com>Cc: Javier Martinez Canillas <javier@dowhile0.org>Cc: Heiko Schocher <hs@denx.de>Cc: Lars Poeschel <poeschel@lemonage.de>Signed-off-by: Tom Rini <trini@ti.com>Tested-by: Matt Porter <matt.porter@linaro.org>
Makefile: make directories by Makefile.buildSigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
arm, am335x: update for the siemens boards- dxr2: define unused pins as input- do not enable RTC32K OSC on dxr2 board- update default environment - add splashpos=m,m to default environment, so
arm, am335x: update for the siemens boards- dxr2: define unused pins as input- do not enable RTC32K OSC on dxr2 board- update default environment - add splashpos=m,m to default environment, so splash screen is always centered. - adapt environment for bootcount feature - add altbootcmd to default environment- rut: SPL add early reset pulse for eth-phy, maXTouch and display- rut: display timing aenderungen- siemens boards: adapt for background color = white- add boutcount feature for the siemens boards store the bootcount in the environment, as we have no softreset save registers on this hardware. Use therefore the CONFIG_BOOTCOUNT_ENV bootcount driver.- change spi mode from 3 to 0 for the lcd init- add gpio pin for lcd reset with state 0 and add mdelay- siemens boards: use own USB id's- add dfu serial and device number for siemens boards Add for the siemens boards the possibility to define in dfu mode, the iSerialNumber and the bcdDevice fields in the USB Device descriptor.- fix upgrade mechanism based on bootcount Correct location of saveenv and remove not active variable. Add CONFIG_BOOT_RETRY_TIME and CONFIG_RESET_TO_RETRY to reboot board in case of empty kernel partition. Without these defines an empty kernel partition leads to an abort of boot process and one remains in u-boot prompt.- general cleanup of dxr2, pxm2 and rut boards all: * Remove net boot from bootcmd Ping can cause a crash on boards without ethernet phy. net_nfs command is used only for development * Add reset at the end of bootcmd In order to have an immediate reset of the boot when bootcmd fails, add reset at the end of bootcmd. rut: * add nand_img_size dxr2: * update nand_img_size * ddr3 timings updated with iocontrol property that can be modified via eeprom. New default parameters from software leveling with draco ES2.Signed-off-by: Samuel Egli <samuel.egli@siemens.com>Signed-off-by: Pascal Bach <pascal.bach@siemens.com>Signed-off-by: Roger Meier <r.meier@siemens.com>Signed-off-by: Heiko Schocher <hs@denx.de>Cc: Matthias Michel <matthias.michel@siemens.com>Cc: Tom Rini <trini@ti.com>
board: arm: convert makefiles to Kbuild styleSigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>Cc: Andreas Bießmann <andreas.devel@googlemail
board: arm: convert makefiles to Kbuild styleSigned-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>Cc: Andreas Bießmann <andreas.devel@googlemail.com>Cc: Stefano Babic <sbabic@denx.de>Cc: Prafulla Wadaskar <prafulla@marvell.com>Cc: Minkyu Kang <mk7.kang@samsung.com>Cc: Vipin Kumar <vipin.kumar@st.com>Cc: Tom Warren <twarren@nvidia.com>Cc: Tom Rini <trini@ti.com>
arm, am335x: add support for 3 siemens boardsadd support for the am335x based boards from siemens:dxr2: - DDR3 128MiB - NAND 256MiB - Ethernet with external Switch SMSC LAN9303 - no PMIC
arm, am335x: add support for 3 siemens boardsadd support for the am335x based boards from siemens:dxr2: - DDR3 128MiB - NAND 256MiB - Ethernet with external Switch SMSC LAN9303 - no PMIC - internal Watchdog - DFU supportpxm2: - DDR2 512 MiB - NAND 1024 MiB - PMIC - PHY atheros ar803x - USB Host - internal Watchdog - DFU supportrut: - DDR3 256 MiB - NAND 256 MiB - PMIC - PHY natsemi dp83630 - external Watchdog - DFU supportSigned-off-by: Heiko Schocher <hs@denx.de>Signed-off-by: Roger Meier <r.meier@siemens.com>Signed-off-by: Samuel Egli <samuel.egli@siemens.com>Cc: Pascal Bach <pascal.bach@siemens.com>Cc: Tom Rini <trini@ti.com>