18 Jan, 2020
3 commits
-
At present panic() is in the vsprintf.h header file. That does not seem
like an obvious choice for hang(), even though it relates to panic(). So
let's put hang() in its own header.Signed-off-by: Simon Glass
[trini: Migrate a few more files]
Signed-off-by: Tom Rini -
These functions relate to memory init so move them into the init
header.Signed-off-by: Simon Glass
-
These three clock functions don't use driver model and should be migrated.
In the meantime, create a new file to hold them.Signed-off-by: Simon Glass
03 Dec, 2019
4 commits
-
This function can be dropped when all boards use driver model for PCI. For
now, move it into init.h with a comment.Signed-off-by: Simon Glass
Reviewed-by: Tom Rini -
A number of board function belong in init.h with the others. Move them.
Signed-off-by: Simon Glass
Reviewed-by: Tom Rini -
Move these functions into the command.h header file which is a better fit.
Signed-off-by: Simon Glass
Reviewed-by: Tom Rini -
Drop inclusion of crc.h in common.h and use the correct header directly
instead.With this we can drop the conflicting definition in fw_env.h and rely on
the crc.h header, which is already included.Signed-off-by: Simon Glass
Reviewed-by: Tom Rini
12 Aug, 2019
3 commits
-
Move env_get() over to the new header file.
Acked-by: Joe Hershberger
Signed-off-by: Simon Glass -
Move env_get_ulong() over to the new header file.
Signed-off-by: Simon Glass
Acked-by: Joe Hershberger -
Move env_set_ulong() over to the new header file.
Signed-off-by: Simon Glass
Acked-by: Joe Hershberger
21 May, 2019
17 commits
-
The gdsys gazerbeam board is based on a Freescale MPC8308 SOC.
It boots from NOR-Flash, kernel and rootfs are stored on
SD-Card.On board peripherals include:
- 2x 10/100 Mbit/s Ethernet (optional)Signed-off-by: Dirk Eibach
Signed-off-by: Mario Six -
Use a more extensive FPGA feature reporting style in the gdsys ioep-fpga
driver.Signed-off-by: Mario Six
-
Make the ioloop command DM compatible, while keeping the old
functionality for not-yet-converted boards.Signed-off-by: Mario Six
-
Replace the boolean parameter of io_check_status that controls whether
the status is printed or not with a documenting enum.Signed-off-by: Mario Six
-
Fix some style violations in the ioloop command, and make the code more
readable where possible.Signed-off-by: Mario Six
-
More recent versions of IHS FPGAs feature a different memory layout.
Add a Kconfig option to differentiate between the legacy layout, and the
new layout (which is used on the upcoming "Gazerbeam" and later boards).Signed-off-by: Mario Six
-
Future gdsys boards will switch from the legacy drivers in board/gdsys/common
to DM-based drivers.Define a Kconfig option that disables the legacy drivers.
Signed-off-by: Mario Six
-
The "manual" RAM configuration should not be used if the DM RAM driver
is active, hence, disable the code if the CONFIG_MPC83XX_SDRAM config
variable is defined.Signed-off-by: Mario Six
-
Move CONFIG_SYS_FPGA0_BASE, CONFIG_SYS_FPGA0_SIZE, CONFIG_SYS_FPGA1_BASE, and
CONFIG_SYS_FPGA1_SIZE to Kconfig.Signed-off-by: Mario Six
-
Since the gpio output status on MPC8xxx cannot be read back, it has to
be buffered locally.Signed-off-by: Dirk Eibach
Signed-off-by: Mario Six -
Fix some style violations in the gdsys MPC8308 board files, and make the
code more readable.Signed-off-by: Mario Six
-
The ppc4xx architecture was removed, and with it several old gdsys 44x
boards, but some "debris" from these purged boards was left over.This patch removes these remnants (mostly entries in Makefiles, some now
superfluous data structures and some now obsolete config variables from
the whitelist).Signed-off-by: Mario Six
-
The initialization sequence in the newest release notes of the 88e1518
phy omits two commands.Remove them from the sequence.
Signed-off-by: Dirk Eibach
-
For the DM case, use the proper parameter for the regmap_init_mem call
(which is the ofnode, not the udevice).Signed-off-by: Mario Six
Reviewed-by: Simon Glass -
CONFIG_SYS_DDR_SDRAM_BASE is set to the same value as
CONFIG_SYS_SDRAM_BASE on all existing boards. Just use
CONFIG_SYS_SDRAM_BASE instead.Signed-off-by: Mario Six
-
Use the proper CONFIG_TARGET_STRIDER Kconfig option to replace the
CONFIG_STRIDER ad-hoc config option.Signed-off-by: Mario Six
-
Use the proper CONFIG_TARGET_HRCON Kconfig option to replace
the CONFIG_HRCON ad-hoc config option.Signed-off-by: Mario Six
21 Jan, 2019
1 commit
-
These macros are not used anywhere in the boards code.
Cc: Chris Packham
Cc: Dirk Eibach
Cc: Mario Six
Cc: Dennis Gilmore
Signed-off-by: Baruch Siach
Reviewed-by: Stefan Roese
Signed-off-by: Stefan Roese
08 Dec, 2018
1 commit
-
This syncs drivers/ddr/marvell/a38x/ with the mv_ddr-armada-18.09 branch
of https://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell.git.
Specifically this syncs with commit 99d772547314 ("Bump mv_ddr to
release armada-18.09.2").The complete log of changes is best obtained from the mv-ddr-marvell.git
repository but some relevant highlights are:ddr3: add missing txsdll parameter
ddr3: fix tfaw timimg parameter
ddr3: fix trrd timimg parameter
merge ddr3 topology header file with mv_ddr_topology one
mv_ddr: a38x: fix zero memory size scrubbing issueThe upstream code is incorporated omitting the portions not relevant to
Armada-38x and DDR3. After that a semi-automated step is used to drop
unused features with unifdeffind drivers/ddr/marvell/a38x/ -name '*.[ch]' | \
xargs unifdef -m -UMV_DDR -UMV_DDR_ATF -UCONFIG_DDR4 \
-UCONFIG_APN806 -UCONFIG_MC_STATIC \
-UCONFIG_MC_STATIC_PRINT -UCONFIG_PHY_STATIC \
-UCONFIG_64BIT -UCONFIG_A3700 -UA3900 -UA80X0 \
-UA70X0Signed-off-by: Chris Packham
Reviewed-by: Stefan Roese
Tested-by: Baruch Siach
Signed-off-by: Stefan Roese
30 Nov, 2018
1 commit
-
At present many TPM calls assume there is only one TPM in the system and
look up this TPM themselves. This is inconsistent with driver model, which
expects all driver methods to have a device parameter. Update the code to
correct this.Signed-off-by: Simon Glass
29 Sep, 2018
1 commit
-
Add command to query information from and write text to on-screen
display (OSD) devices.Signed-off-by: Mario Six
Reviewed-by: Simon Glass
06 Aug, 2018
3 commits
-
Move the gdsys Controlcenter DC specific build time kwbimage.cfg
generation code into the mach-mvebu/ directory to be shared by all 32bit
mvebu platforms.Remove board specific kwbimage.cfg files, and use the generated one
instead. These files are all identical, with two exceptions. Clearfog
and Helios4 use the sdio boot device, whereas all others use spi. Update
the defconfigs for the exceptional boards to generate the same
kwbimage.cfg as before.Signed-off-by: Baruch Siach
Signed-off-by: Stefan Roese -
Use MVEBU_SPL_BOOT_DEVICE_* to select between SPI and MMC, instead of
board specific symbols. This commit enables the boot device selection
menu to all mvebu platforms, but it is only effective on Turris Omnia
and gdsys Controlcenter DC platforms. A following commit will enable
boot selection for other platforms.Signed-off-by: Baruch Siach
Signed-off-by: Stefan Roese -
Use generic mvebu Kconfig symbols like all other mvebu boards.
Signed-off-by: Baruch Siach
Signed-off-by: Stefan Roese
26 May, 2018
1 commit
-
There are no changes in this commit but a new organization of the code
as follow.* cmd/ directory:
> move existing code from cmd/tpm.c in cmd/tpm-common.c
> move specific code in cmd/tpm-v1.c
> create a specific header file with generic definitions for
commands only called cmd/tpm-user-utils.h* lib/ directory:
> move existing code from lib/tpm.c in lib/tpm-common.c
> move specific code in lib/tpm-v1.c
> create a specific header file with generic definitions for
the library itself called lib/tpm-utils.h* include/ directory:
> move existing code from include/tpm.h in include/tpm-common.h
> move specific code in include/tpm-v1.hCode designated as 'common' is compiled if TPM are used. Code designated
as 'specific' is compiled only if the right specification has been
selected.All files include tpm-common.h.
Files in cmd/ include tpm-user-utils.h.
Files in lib/ include tpm-utils.h.
Depending on the specification, files may include either (not both)
tpm-v1.h or tpm-v2.h.Signed-off-by: Miquel Raynal
Reviewed-by: Tom Rini
[trini: Fix a few more cases of tpm.h -> tpm-v1.h, some Kconfig logic]
Signed-off-by: Tom Rini
14 May, 2018
2 commits
-
This restores support for configuring the timing mode based on the
ddr_topology. This was originally implemented in commit 90bcc3d38d2b
("driver/ddr: Add support for setting timing in hws_topology_map") but
was removed as part of the upstream sync.Signed-off-by: Chris Packham
Signed-off-by: Stefan Roese -
This syncs drivers/ddr/marvell/a38x/ with the mv_ddr-armada-17.10 branch
of https://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell.git.The upstream code is incorporated omitting the ddr4 and apn806 and
folding the nested a38x directory up one level. After that a
semi-automated step is used to drop unused features with unifdeffind drivers/ddr/marvell/a38x/ -name '*.[ch]' | \
xargs unifdef -m -UMV_DDR -UMV_DDR_ATF -UCONFIG_DDR4 \
-UCONFIG_APN806 -UCONFIG_MC_STATIC \
-UCONFIG_MC_STATIC_PRINT -UCONFIG_PHY_STATIC \
-UCONFIG_64BITINTER_REGS_BASE is updated to be defined as SOC_REGS_PHY_BASE.
Some now empty files are removed and the ternary license is replaced
with a SPDX GPL-2.0+ identifier.Signed-off-by: Chris Packham
Signed-off-by: Stefan Roese
09 May, 2018
2 commits
-
Make the ihs_mdio driver DM-compatible, while retaining the old
functionality for not-yet-converted boards.Signed-off-by: Mario Six
-
To prepare for DM conversion, encapsulate all register accesses in
function calls.Signed-off-by: Mario Six
07 May, 2018
1 commit
-
When U-Boot started using SPDX tags we were among the early adopters and
there weren't a lot of other examples to borrow from. So we picked the
area of the file that usually had a full license text and replaced it
with an appropriate SPDX-License-Identifier: entry. Since then, the
Linux Kernel has adopted SPDX tags and they place it as the very first
line 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 visibility
and in part for other minor reasons, switch over to that style.This commit changes all instances where we have a single declared
license in the tag as both the before and after are identical in tag
contents. There's also a few places where I found we did not have a tag
and have introduced one.Signed-off-by: Tom Rini