aboutsummaryrefslogtreecommitdiff
path: root/board/keymile
Commit message (Collapse)AuthorAgeFilesLines
* board/keymile/kmcent2: fix update-nor indentationTomas Alvarez Vanoli2023-12-211-1/+1
| | | | | | | variable was indented as part of the value of the previous variable. Signed-off-by: Tomas Alvarez Vanoli <tomas.alvarez-vanoli@hitachienergy.com> Signed-off-by: Holger Brunck <holger.brunck@hitachienergy.com>
* pg-wcom-ls102xa: Include <config.h> in the board fileTom Rini2023-11-071-0/+1
| | | | | | | | Given that this file references CFG_* defines, we need to be explicit in our inclusion of config.h, so that these will be defined. Reviewed-by: Aleksandar Gerasimovski <aleksandar.gerasimovski@hitacienergy.com> Signed-off-by: Tom Rini <trini@konsulko.com>
* fsl_qe: Drop common.hTom Rini2023-11-071-1/+0
| | | | | | | In both include/fsl_qe.h and then also remove common.h from the files which had included fsl_qe.h Signed-off-by: Tom Rini <trini@konsulko.com>
* Kconfig: Remove all default n/no optionsMichal Simek2023-10-301-3/+0
| | | | | | | | | | | | Similar change was done by commit b4c2c151b14b ("Kconfig: Remove all default n/no options") and again sync is required. default n/no doesn't need to be specified. It is default option anyway. Signed-off-by: Michal Simek <michal.simek@amd.com> Reviewed-by: Svyatoslav Ryhel <clamor95@gmail.com> # tegra Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Angelo Dureghello <angelo@kernel-space.org>
* board/km/cent2: Fix buffer overflow when fixing MAC addressFrancois Berder2023-10-091-1/+1
| | | | | | | | String "/soc/fman/ethernet@e8000" is 25 bytes long and not 24 due to extra byte for null character at the end. Signed-off-by: Francois Berder <fberder@outlook.fr>
* event: Use an event to replace last_stage_init()Simon Glass2023-08-313-7/+6
| | | | | | | | | | | | | | Add a new event which handles this function. Convert existing use of the function to use the new event instead. Make sure that EVENT is enabled by affected boards, by selecting it from the LAST_STAGE_INIT option. For x86, enable it by default since all boards need it. For controlcenterdc, inline the get_tpm() function and make sure the event is not built in SPL. Signed-off-by: Simon Glass <sjg@chromium.org>
* event: Convert existing spy records to simpleSimon Glass2023-08-312-4/+4
| | | | | | | | | Very few of the existing event-spy records use the arguments they are passed. Update them to use a simple spy instead, to simplify the code. Where an adaptor function is currently used, remove it where possible. Signed-off-by: Simon Glass <sjg@chromium.org>
* env: Use include/env for text-environment includesSimon Glass2023-08-094-5/+5
| | | | | | | | | The 'environment' word is too long. We mostly use 'env' in U-Boot, so use that as the name of the include directory too. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> # Intel Edison Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
* MAINTAINERS: Add some missing directories or filesTom Rini2023-07-251-0/+1
| | | | | | | | | In a few cases we have MAINTAINERS entries that are missing obvious paths or files. Typically this means a board directory that did not list itself, but in a few cases we have a Kconfig file or similar. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* MAINTAINERS: Add a number of "common" directoriesTom Rini2023-07-254-0/+8
| | | | | | | | | A number of platforms have "common" directories that are in turn not listed by the board MAINTAINERS file. Add these directories in many cases. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* global: Use proper project name U-BootMichal Simek2023-06-122-5/+5
| | | | | | | | | | | Use proper project name in comments, Kconfig, readmes. Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Reviewed-by: Stefan Roese <sr@denx.de> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Michal Simek <michal.simek@amd.com> Link: https://lore.kernel.org/r/0dbdf0432405c1c38ffca55703b6737a48219e79.1684307818.git.michal.simek@amd.com
* Correct SPL use of PG_WCOM_UBOOT_UPDATE_SUPPORTEDSimon Glass2023-03-021-1/+1
| | | | | | | | This converts 1 usage of this option to the non-SPL form, since there is no SPL_PG_WCOM_UBOOT_UPDATE_SUPPORTED defined in Kconfig Signed-off-by: Simon Glass <sjg@chromium.org> Aleksandar Gerasimovski <aleksandar.gerasimovski@hitachienergy.com>
* Correct SPL use of TARGET_PG_WCOM_SELI8Simon Glass2023-02-101-1/+1
| | | | | | | | This converts 1 usage of this option to the non-SPL form, since there is no SPL_TARGET_PG_WCOM_SELI8 defined in Kconfig Signed-off-by: Simon Glass <sjg@chromium.org> Aleksandar Gerasimovski <aleksandar.gerasimovski@hitachienergy.com>
* Correct SPL use of TARGET_PG_WCOM_EXPU1Simon Glass2023-02-101-1/+1
| | | | | | | | This converts 1 usage of this option to the non-SPL form, since there is no SPL_TARGET_PG_WCOM_EXPU1 defined in Kconfig Signed-off-by: Simon Glass <sjg@chromium.org> Aleksandar Gerasimovski <aleksandar.gerasimovski@hitachienergy.com>
* Correct SPL uses of PG_WCOM_UBOOT_UPDATESimon Glass2023-02-101-2/+2
| | | | | | | | This converts 2 usages of this option to the non-SPL form, since there is no SPL_PG_WCOM_UBOOT_UPDATE defined in Kconfig Signed-off-by: Simon Glass <sjg@chromium.org> Aleksandar Gerasimovski <aleksandar.gerasimovski@hitachienergy.com>
* Correct SPL uses of PG_WCOM_UBOOT_BOOTPACKAGESimon Glass2023-02-101-2/+2
| | | | | | | | This converts 2 usages of this option to the non-SPL form, since there is no SPL_PG_WCOM_UBOOT_BOOTPACKAGE defined in Kconfig Signed-off-by: Simon Glass <sjg@chromium.org> Aleksandar Gerasimovski <aleksandar.gerasimovski@hitachienergy.com>
* km/ppc832x: join config filesHolger Brunck2023-02-061-5/+5
| | | | | | | | There are no differences for the different 832x targets we have in the header defined with SYS_CONFIG_NAME. So we can join the five headers to a single file. Signed-off-by: Holger Brunck <holger.brunck@hitachienergy.com>
* km/ppc: remove km-mpc8360.h and km-mpc832x.hHolger Brunck2023-02-061-0/+85
| | | | | | | | | | | Next step to get rid of the header files in icnlude/configs. Move most of the defines to km83xx.c directly. Some remaining defines which should go to Kconfig are moved to km-mpc83xx.h for now. Also remove some unused defines and move one define to powerpc.env as we only need it there. Signed-off-by: Holger Brunck <holger.brunck@hitachienergy.com>
* event: Correct dependencies on the EVENT frameworkTom Rini2023-01-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The event framework is just that, a framework. Enabling it by itself does nothing, so we shouldn't ask the user about it. Reword (and correct typos) around this the option and help text. This also applies to DM_EVENT and EVENT_DYNAMIC. Only EVENT_DEBUG and CMD_EVENT should be visible to the user to select, when EVENT is selected. With this, it's time to address the larger problems. When functionality uses events, typically via EVENT_SPY, the appropriate framework then must be select'd and NOT imply'd. As the functionality will cease to work (and so, platforms will fail to boot) this is non-optional and where select is appropriate. Audit the current users of EVENT_SPY to have a more fine-grained approach to select'ing the framework where used. Also ensure the current users of event_register and also select EVENT_DYNAMIC. Cc: AKASHI Takahiro <takahiro.akashi@linaro.org> Cc: Heinrich Schuchardt <xypron.glpk@gmx.de> Reported-by: Oliver Graute <Oliver.Graute@kococonnector.com> Reported-by: Francesco Dolcini <francesco.dolcini@toradex.com> Fixes: 7fe32b3442f0 ("event: Convert arch_cpu_init_dm() to use events") Fixes: 42fdcebf859f ("event: Convert misc_init_f() to use events") Fixes: c5ef2025579e ("dm: fix DM_EVENT dependencies") Signed-off-by: Tom Rini <trini@konsulko.com> Tested-by: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Fabio Estevam <festevam@denx.de>
* global: Migrate CONFIG_TESTPIN_REG to CFGTom Rini2022-12-231-1/+1
| | | | | | Perform a simple rename of CONFIG_TESTPIN_REG to CFG_TESTPIN_REG Signed-off-by: Tom Rini <trini@konsulko.com>
* global: Migrate CONFIG_TESTPIN_MASK to CFGTom Rini2022-12-231-1/+1
| | | | | | Perform a simple rename of CONFIG_TESTPIN_MASK to CFG_TESTPIN_MASK Signed-off-by: Tom Rini <trini@konsulko.com>
* global: Migrate CONFIG_ENV_TOTAL_SIZE to CFGTom Rini2022-12-231-3/+3
| | | | | | Perform a simple rename of CONFIG_ENV_TOTAL_SIZE to CFG_ENV_TOTAL_SIZE Signed-off-by: Tom Rini <trini@konsulko.com>
* km/ppc: migrate all mpc83xx to DM_I2CHolger Brunck2022-12-123-76/+2
| | | | | | | Enable DM_I2C and I2C mux to get rid of the usage of the legacy i2c driver. Signed-off-by: Holger Brunck <holger.brunck@hitachienergy.com>
* board/km: remove obsolete ARCH_KIRKWOODHolger Brunck2022-12-121-3/+2
| | | | | | We already removed the support for these boards. Signed-off-by: Holger Brunck <holger.brunck@hitachienergy.com>
* board/km/secu: migrate to use environment text filesHolger Brunck2022-12-121-0/+50
| | | | | | | Instead of having these defines in a header file, move them to a simple text file. Signed-off-by: Holger Brunck <holger.brunck@hitachienergy.com>
* board/km/cent2: migrate to environment text fileHolger Brunck2022-12-123-13/+38
| | | | | | | | Use like the other boards a text file for the environment. As this is the last user of keymile-common.h we can now remove this file completely. Signed-off-by: Holger Brunck <holger.brunck@hitachienergy.com>
* km/powerpc: migrate to env.txt fileHolger Brunck2022-12-121-0/+21
| | | | | | | Use already present common.env file and add a powerpc specific env so that we can move all the environment defines to text files. Signed-off-by: Holger Brunck <holger.brunck@hitachienergy.com>
* board/km: move ls102xa boards to environment text filesHolger Brunck2022-12-122-0/+6
| | | | | | Create a common.env which we can use later on also for other boards. Signed-off-by: Holger Brunck <holger.brunck@hitachienergy.com>
* global: Remove extraneous DM_ETH imply/selectTom Rini2022-12-071-1/+0
| | | | | | | | 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>
* global: Move remaining CONFIG_SYS_* to CFG_SYS_*Tom Rini2022-12-056-62/+62
| | | | | | | | | | 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>
* global: Move remaining CONFIG_SYS_SDRAM_* to CFG_SYS_SDRAM_*Tom Rini2022-12-054-7/+7
| | | | | | | | | | 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>
* global: Move remaining CONFIG_SYS_PCI* to CFG_SYS_PCI*Tom Rini2022-12-051-2/+2
| | | | | | | | | | 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>
* global: Move remaining CONFIG_SYS_NAND_* to CFG_SYS_NAND_*Tom Rini2022-12-052-2/+2
| | | | | | | | | | 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>
* global: Migrate CONFIG_HPS* symbols to the CFG namespaceTom Rini2022-11-103-142/+142
| | | | | | | Migrate all of CONFIG_HPS* to the CFG namespace. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* global: Migrate CONFIG_SYS_FSL* symbols to the CFG_SYS namespaceTom Rini2022-11-102-3/+3
| | | | | | | Migrate all of COFIG_SYS_FSL* to the CFG_SYS namespace. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* global: Migrate CONFIG_SYS_MPC8* symbols to the CFG_SYS namespaceTom Rini2022-11-101-3/+3
| | | | | | Migrate all of COFIG_SYS_MPC* to the CFG_SYS namespace. Signed-off-by: Tom Rini <trini@konsulko.com>
* Convert CONFIG_SYS_I2C_INIT_BOARD to KconfigTom Rini2022-11-101-0/+3
| | | | | | | | This converts the following to Kconfig: CONFIG_SYS_I2C_INIT_BOARD Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Simon Glass <sjg@chromium.org>
* Rename CONFIG_SYS_TEXT_BASE to CONFIG_TEXT_BASESimon Glass2022-10-311-2/+2
| | | | | | | | | The current name is inconsistent with SPL which uses CONFIG_SPL_TEXT_BASE and this makes it imposible to use CONFIG_VAL(). Rename it to resolve this problem. Signed-off-by: Simon Glass <sjg@chromium.org>
* board/km: remove kirkwood boardsHolger Brunck2022-10-0611-1739/+1
| | | | | | | These boards are out of maintenance and can be removed. Signed-off-by: Holger Brunck <holger.brunck@hitachienergy.com> Reviewed-by: Stefan Roese <sr@denx.de>
* powerpc: remove support for kmtergr1 and MPC8309Holger Brunck2022-08-202-22/+0
| | | | | | | | The kmtegr1 board is out of maintenance and can be removed. As it is the only board in the tree using MPC8309 the support for this CPU is dropped completely. Signed-off-by: Holger Brunck <holger.brunck@hitachienergy.com>
* powerpc: Move CONFIG_SYS_DDR_SIZE to CONFIG_SYS_SDRAM_SIZETom Rini2022-08-041-3/+2
| | | | | | | | | We have a number of CONFIG_SYS_xxx_SIZE options to describe the amount main memory available. Rework CONFIG_SYS_DDR_SIZE, which described a size in number of MiB to use CONFIG_SYS_SDRAM_SIZE which is most often used as a number of bytes. Use shifts of this option when required. Signed-off-by: Tom Rini <trini@konsulko.com>
* kmcoge5ne: Move BFTIC3 CONFIG references to their usageTom Rini2022-07-071-2/+4
| | | | | | | | | We only reference CONFIG_SYS_BFTIC3_BASE in one location. Move the comment to where we reference it, and use the value directly. Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Holger Brunck <holger.brunck@hitachienergy.com> Reviewed-by: Heiko Schocher <hs@denx.de>
* Convert CONFIG_HUSH_INIT_VAR to KconfigTom Rini2022-06-061-0/+3
| | | | | | | This converts the following to Kconfig: CONFIG_HUSH_INIT_VAR Signed-off-by: Tom Rini <trini@konsulko.com>
* Convert CONFIG_KM_COGE5UN et al to KconfigTom Rini2022-04-011-0/+23
| | | | | | | | | | | | | | This converts the following to Kconfig: CONFIG_KM_COGE5UN CONFIG_KM_KIRKWOOD_128M16 CONFIG_KM_KIRKWOOD CONFIG_KM_KIRKWOOD_PCI CONFIG_KM_NUSA CONFIG_KM_SUSE2 Cc: Holger Brunck <holger.brunck@hitachienergy.com> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Holger Brunck <holger.brunck@hitachienergy.com>
* kmtegr1: Drop CONFIG_KMTEGR1Tom Rini2022-04-011-1/+1
| | | | | | | | | | | The only usage of CONFIG_KMTEGR1 can be replaced by CONFIG_TARGET_KMTEGR1 so do so and remove this other symbol. Cc: Holger Brunck <holger.brunck@hitachienergy.com> Cc: Heiko Schocher <hs@denx.de> Signed-off-by: Tom Rini <trini@konsulko.com> Reviewed-by: Heiko Schocher <hs@denx.de> Reviewed-by: Holger Brunck <holger.brunck@hitachienergy.com>
* event: Convert misc_init_f() to use eventsSimon Glass2022-03-102-2/+7
| | | | | | | | | | | This hook can be implmented using events, for the three boards that actually use it. Add the event type and event handlers. Drop CONFIG_MISC_INIT_F since we can just use CONFIG_EVENT to control this. Since sandbox always enables CONFIG_EVENT, we can drop the defconfig lines there too. Signed-off-by: Simon Glass <sjg@chromium.org>
* km/ls102xa: use unused scratchrw4 address for post wordAleksandar Gerasimovski2022-02-011-6/+5
| | | | | | | | | | | | | | The SCRATCHRW4 is only used in secure boot scenario that is unsupported by our design, so this address can be stolen for storing POST status. The SCRATCHRW4 is initialized to zero at core rest. Using a DDR address was unfortunate choice, the DDR at boot time has a random contend and it happens that sometimes is matching POST magic number. This behavior can lead to undefined POST behavior and u-boot ending in failbootcmd command. Signed-off-by: Aleksandar Gerasimovski <aleksandar.gerasimovski@hitachienergy.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* configs/expu1: add u-boot update defconfigAleksandar Gerasimovski2022-02-011-0/+1
| | | | | | | | | | | | | | This patch adds default defconfig for u-boot update version, the u-boot update defconfig is a copy of the default (factory) defconfig with: - adapted text base and environment addresses - explicit flag that this is a field updated u-boot version At the time of implementation this version is only used to verify the update procedure, in future depend on the needs this defconfig can be extended with additional options. Signed-off-by: Aleksandar Gerasimovski <aleksandar.gerasimovski@hitachienergy.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* km/ls102xa: fix device disable configurationAleksandar Gerasimovski2022-02-011-2/+1
| | | | | | | | | | | This was probably broken when mainlining, CONFIG_FSL_DEVICE_DISABLE is not Kconfig but whitelisted. It's fine to be without flag as this is always enabled for abec1020 (pg-wcom-ls102xa.h) Signed-off-by: Aleksandar Gerasimovski <aleksandar.gerasimovski@hitachienergy.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
* configs/seli8: add u-boot update defconfigAleksandar Gerasimovski2022-02-011-0/+1
| | | | | | | | | | | | | | This patch adds default defconfig for u-boot update version, the u-boot update defconfig is a copy of the default (factory) defconfig with: - adapted text base and environment addresses - explicit flag that this is a field updated u-boot version At the time of implementation this version is only used to verify the update procedure, in future depend on the needs this defconfig can be extended with additional options. Signed-off-by: Aleksandar Gerasimovski <aleksandar.gerasimovski@hitachienergy.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>