- May 21, 2019
-
-
Mario Six authored
Lots of stuff in processor.h was taken verbatim from the Linux kernel. It was never synced, so most of it was removed or changed in the kernel since it was imported. Remove all the stuff that is unused in the current U-Boot sources; should anybody feel the need to re-sync with the kernel, they can do it later on. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
Not that the Kconfig conversion of a lot of variables is done, we can factor out the common include files for the keymile boards again (which now contain hardly any #ifdef logic at all). Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
CONFIG_SYS_APP1_BASE, CONFIG_SYS_APP2_BASE, CONFIG_SYS_APP1_SIZE, and CONFIG_SYS_APP2_SIZE are no longer used in the keymile config files (they were used for setting values, which were converted to Kconfig earlier in the series). Remove them from the configs and the whitelist. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
For a lot of inline assembly calls in the mpc8xxx and mpc83xx directories, we already have convenient pre-defined helper functions, but they're not used, resulting in hard-to-read code. Use these helper functions where ever possible and useful. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
ppcDWstore/ppcDWload are hardly used by any board, but since they're implemented in start.S, they're always present in every U-Boot image, even if they're not needed. Re-implement these fuctions in C with inline assembly, so that the compiler can decide when to actually include them. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
Don't use the legacy method of initializing the ethernet controller on MPC83xx when DM is active. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
The fsl-esdhc driver can be used for the SDHC functionality on MPC83xx, but it needs some additional definitions. Add a clock.h file, so we can use the driver for MPC83xx. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
Except for one counter example, CONFIG_SYS_LBC_LBCR always has a value of either 0x00040000 or 0x00000000. CONFIG_SYS_LBC_MRTPR always has the value 0x20000000. CONFIG_SYS_LBC_LSDMR_{1,2,4,5} are not set for any mpc83xx board. CONFIG_SYS_LBC_LSRT is set by one board (to 0x32000000). To simplify the configuration files, hardcode the setting of these values for mpc83xx. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
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 <mario.six@gdsys.cc>
-
Mario Six authored
CONFIG_SYS_DDR_BASE is specific to mpc83xx an is always set to the same value as CONFIG_SYS_SDRAM_BASE. Just use CONFIG_SYS_SDRAM_BASE instead. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
Migrate the CONFIG_LCRR_* settings to Kconfig. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
Migrate the SPCR setting to Kconfig. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
Migrate the arbiter configuration to Kconfig. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
Migrate the system IO configuration setting to Kconfig. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
Migrate CONFIG_SYS_IMMR to Kconfig for MPC83xx. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
Mirate the HID configuration settings to Kconfig. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
The MPC85xx GPIO driver was converted to handle a broader range of SoCs. Prepare the MPC83xx code for usage of this driver. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
Remove the last instances of the CONFIG_MPC83xx symbol. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
Replace the hard-coded CONFIG_SYS_NS16550_CLK value for the FDT fixup with the previously introduced get_serial_clock function This will make it possible to activate DM for serial devices on MPC83xx later on. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
DM serial drivers on PowerPC determine their clock frequency via the get_serial_clock function. This function is not Implemented yet for MPC83xx. This patch Implements the function so that DM serial drivers work on MPC83xx. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
The MPC8308 has two I2C controllers, but no PCI controller. Fix the register map layout for this SoC. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
Migrate the BR/OR settings to Kconfig. These must be known at compile time, so cannot be configured via DT. Configuration of this crucial variable should still be somewhat comfortable. Hence, make its fields configurable in Kconfig, and assemble the final value from these. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
The MPC8349EMDS configuration was the basis for the sbc8349, so it also contains its SDRAM option. Since * the SDRAM has to be soldered onto the board, * the sbc8349 never used the support, and * the support never worked (see previous patch fixing it), we can assume that the support on the sbc8349 is an artifact created by copying the MPC8349EMDS config wholesome. Hence, instead of creating a separate sbc8349 config that supports SDRAM, we can remove the SDRAM option for this board. Should it be needed in the future, it can be copied from the new MPC8349EMDS_SDRAM board. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
Re-format all BR,OR #define lines into single lines. This makes them harder to read, but accessible to semi-automatic replacement. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
We want to normalize all BR/OR config lines as much as possible. The TQM834x board uses CONFIG_SYS_OR_TIMING_FLASH in a OR definition, which we want to remove. But CONFIG_SYS_OR_TIMING_FLASH is also used outside of the config file. Replace these usages with the definition of the variable, so we can remove the variable in the next patch. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
All BR/OR option lines should have the same layout to make them easier to migrate to Kconfig. This includes using the same option macros everywhere. The normalize the lines, * replace function macros with their results, and * replace hardcoded hex values with standard macros Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
The LBLAW_* values determine the window configuration of the memory controller. Hence, they must be known at compile time, and cannot be implemented in the DT mechanism. Configuration of this crucial variable should still be somewhat comfortable. Hence, make its fields configurable in Kconfig, and assemble the final value from these. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
The BATs (block address translation registers) determine the initial memory window mappings. Hence, they must be known at compile time and cannot be implemented in the DT mechanism. Configuration of this crucial variable should still be somewhat comfortable. Hence, make its fields configurable in Kconfig, and assemble the final value from these. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
Migrate the CONFIG_HIGH_BATS variable to Kconfig. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
The MPC83xx DM timer driver disables arch.pciexp*_clk, and uses clk_get_rate instead. But the legacy MPC83xx PCIe driver still uses arch.pciexp*_clk for the clock. Hence, read the PCIe clock from the registers in the legacy MPC83xx PCIe driver. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
The HRCW (hardware reset configuration word) is a constant that must be hard-coded into the boot loader image. So, it must be available at compile time, and cannot be migrated to the DT mechanism, but has to be kept in Kconfig. Configuration of this crucial variable should still be somewhat comfortable. Hence, make its fields configurable in Kconfig, and assemble the final value from these. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
MPC83xx uses CONFIG_83XX_CLKIN instead of CONFIG_SYS_CLK_FREQ to set the system clock. To migrate the architecture, we can replace CONFIG_83XX_CLKIN with CONFIG_SYS_CLK_FREQ. To do this * replace all occurrences of CONFIG_83XX_CLKIN with CONFIG_SYS_CLK_FREQ * set CONFIG_SYS_CLK_FREQ to the old value of CONFIG_83XX_CLKIN in all MPC83xx config files Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
CONFIG_SYS_CLK_FREQ is the standard way to set the system clock frequency. On MPC83xx, CONFIG_83XX_CLKIN is used for this purpose. Hence, the obvious way is to replace CONFIG_83XX_CLKIN with CONFIG_SYS_CLK_FREQ. A few MPC83xx boards use the CONFIG_83XX_CLKIN variable for computing CONFIG_SYS_NS16550_CLK. This makes it harder to replace CONFIG_83XX_CLKIN. But the value of the multiplicator can be read from the SPMR register. Hence, replace the static calculations with a call to a new get_bus_freq function, as other architectures do. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
The MPC83xx include files contain some settings of the PCI subsystem. Migrate these to Kconfig until a proper DM PCI driver exists. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
CONFIG_MPC837XERDB is unused, and TARGET_MPC837XERDB could replace it. Hence, get rid of CONFIG_MPC837XERDB. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
CONFIG_MPC837XEMDS is unused, and TARGET_MPC837XEMDS could replace it. Hence, get rid of CONFIG_MPC837XEMDS. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
CONFIG_MPC8315ERDB is unused, and TARGET_MPC8315ERDB could replace it. Hence, get rid of CONFIG_MPC8315ERDB. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
CONFIG_MPC8313ERDB is unused, and TARGET_MPC8313ERDB_NAND/TARGET_MPC8313ERDB_NOR Kconfig could replace it. Hence, get rid of CONFIG_MPC8313ERDB. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
Use the proper CONFIG_TARGET_STRIDER Kconfig option to replace the CONFIG_STRIDER ad-hoc config option. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-
Mario Six authored
Use the proper CONFIG_TARGET_HRCON Kconfig option to replace the CONFIG_HRCON ad-hoc config option. Signed-off-by:
Mario Six <mario.six@gdsys.cc>
-