summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* ARM: rmobile: Enable PCIe driver on R-Car Gen3 Salvator-XMarek Vasut2019-05-213-0/+12
| | | | | | | Enable PCIe driver on R-Car Gen3 Salvator-X boards. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* pci: renesas: Add RCar Gen3 PCIe controller driverMarek Vasut2019-05-213-0/+420
| | | | | | | | | Add driver for the Renesas RCar PCIe controller present on Gen3 SoCs. The PCIe on Gen3 is used both to connect external PCIe peripherals. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Bin Meng <bmeng.cn@gmail.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
* Merge git://git.denx.de/u-boot-mpc83xxTom Rini2019-05-21220-5901/+20053
|\ | | | | | | - Update MPC83xx platform support to current best practices, etc.
| * mpc83xx: Add gazerbeam boardDirk Eibach2019-05-219-2/+564
| | | | | | | | | | | | | | | | | | | | | | | | 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 <dirk.eibach@gdsys.cc> Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * gazerbeam: Add u-boot specific dts include fileMario Six2019-05-212-0/+252
| | | | | | | | | | | | | | Add a U-Boot specific dts file, which encapsulates the needed modifications to the Gazerbeam Linux device tree. Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * gazerbeam: Import Linux DTMario Six2019-05-219-0/+1178
| | | | | | | | | | | | Import the Linux device tree for the Gazerbeam board. Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * board: gazerbeam: Fix SC detectionMario Six2019-05-211-10/+12
| | | | | | | | | | | | | | | | | | The single channel detection in the gazerbeam board driver was not implemented correctly. Fix the detection. Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * gdsys: ioep-fpga: Switch to gazerbeam-style reportingMario Six2019-05-211-140/+489
| | | | | | | | | | | | | | Use a more extensive FPGA feature reporting style in the gdsys ioep-fpga driver. Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * gdsys: cmd_ioloop: Make DM compatibleMario Six2019-05-211-5/+288
| | | | | | | | | | | | | | Make the ioloop command DM compatible, while keeping the old functionality for not-yet-converted boards. Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * gdsys: cmd_ioloop: Introduce commenting enumMario Six2019-05-211-4/+9
| | | | | | | | | | | | | | 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 <mario.six@gdsys.cc>
| * gdsys: cmd_ioloop: Fix style violationsMario Six2019-05-211-40/+38
| | | | | | | | | | | | | | Fix some style violations in the ioloop command, and make the code more readable where possible. Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * gdsys: mpc8308: Add FPGA flavor optionMario Six2019-05-211-0/+20
| | | | | | | | | | | | | | | | | | 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 <mario.six@gdsys.cc>
| * gdsys: Introduce GDSYS_LEGACY_DRIVERSMario Six2019-05-2112-0/+60
| | | | | | | | | | | | | | | | | | 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 <mario.six@gdsys.cc>
| * gdsys: mpc8308: Don't use manual RAM config if RAM driver is activeMario Six2019-05-211-0/+4
| | | | | | | | | | | | | | | | 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 <mario.six@gdsys.cc>
| * gdsys: mpc8308: Migrate SYS_FPGA{0, 1}_{BASE, SIZE} to KconfigMario Six2019-05-213-16/+22
| | | | | | | | | | | | | | 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 <mario.six@gdsys.cc>
| * gdsys: mpc8308: Use shadow register for output GPIO valuesMario Six2019-05-214-3/+25
| | | | | | | | | | | | | | | | Since the gpio output status on MPC8xxx cannot be read back, it has to be buffered locally. Signed-off-by: Dirk Eibach <dirk.eibach@gdsys.cc> Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * gdsys: mpc8308: Fix style violationsMario Six2019-05-213-57/+59
| | | | | | | | | | | | | | Fix some style violations in the gdsys MPC8308 board files, and make the code more readable. Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * gdsys: Post ppc4xx removal cleanupMario Six2019-05-213-227/+0
| | | | | | | | | | | | | | | | | | | | | | 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 <mario.six@gdsys.cc>
| * gdsys: phy: Adapt fixup_88e1518() to latest Release NotesDirk Eibach2019-05-211-2/+0
| | | | | | | | | | | | | | | | | | 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 <dirk.eibach@gdsys.cc>
| * ihs_mdio: Use new regmap interfaceMario Six2019-05-211-2/+3
| | | | | | | | | | | | | | | | 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 <mario.six@gdsys.cc> Reviewed-by: Simon Glass <sjg@chromium.org>
| * gdsys_rxaui_ctrl: Use new regmap interfaceMario Six2019-05-211-1/+1
| | | | | | | | | | | | | | 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 <mario.six@gdsys.cc>
| * gdsys_rxaui_ctrl: Return old stateMario Six2019-05-211-1/+6
| | | | | | | | | | | | | | Make the gdsys_rxaui_ctrl polarity setting function return the old state to comply with the API requirements. Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * i2c: ihs: Improve error handlingMario Six2019-05-211-24/+43
| | | | | | | | | | | | | | Improve the error handling and reporting of the IHS I2C driver. Signed-off-by: Mario Six <mario.six@gdsys.cc> Reviewed-by: Heiko Schocher <hs@denx.de>
| * i2c: ihs: Get rid of fpgamapMario Six2019-05-211-34/+23
| | | | | | | | | | | | | | | | | | | | | | Since the IHS I2C driver want upstream, the surrounding infrastructure has changed quite a bit (notably, the fpgamap driver was replaced with a regmap driver). Update the driver to work with these changes. Signed-off-by: Mario Six <mario.six@gdsys.cc> Reviewed-by: Heiko Schocher <hs@denx.de>
| * cmd: binop: Use hex2binMario Six2019-05-211-25/+3
| | | | | | | | | | | | | | | | Use the new hex2bin function in the binop command instead of converting the data manually. Signed-off-by: Mario Six <mario.six@gdsys.cc> Reviewed-by: Simon Glass <sjg@chromium.org>
| * cmd: binop: Use new environment apiMario Six2019-05-211-2/+2
| | | | | | | | | | | | | | | | Since the binop command was introduced, the environment API was changed. Use the new API to make the command work again. Signed-off-by: Mario Six <mario.six@gdsys.cc> Reviewed-by: Simon Glass <sjg@chromium.org>
| * mpc83xx_clk: Add enable methodMario Six2019-05-211-0/+7
| | | | | | | | | | | | | | | | | | | | Some DM drivers have hardcoded clk_enable calls when handling clocks (for example the fsl_esdhc driver). To work with these drivers, add an enable method to the MCP83xx clock driver (which does nothing, because the clocks are always enabled). Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * mpc83xx: Define _end symbolMario Six2019-05-211-0/+6
| | | | | | | | | | | | | | | | | | | | To support OF_EMBED, the MPC83xx architecture has to define the "_end" symbol to correctly access the appended DT. Fortunately, MPC8xx already defines the symbol, and the linker script is quite similar to that of MPC83xx, so copy this approach for MPC83xx. Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * powerpc: Simplify processor.hMario Six2019-05-211-120/+0
| | | | | | | | | | | | | | | | | | | | | | | | 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>
| * keymile: Factor out common includes againMario Six2019-05-2114-2836/+500
| | | | | | | | | | | | | | | | 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>
| * keymile: Remove CONFIG_SYS_APP{1, 2}_{BASE, SIZE}Mario Six2019-05-219-40/+0
| | | | | | | | | | | | | | | | | | | | | | 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>
| * mpc83xx: Use pre-defined asm functionsMario Six2019-05-214-43/+60
| | | | | | | | | | | | | | | | | | | | 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>
| * mpc83xx: Replace ppcDWstore with inline assemblyMario Six2019-05-212-12/+18
| | | | | | | | | | | | | | | | | | | | | | 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>
| * mpc83xx: Don't define cpu_eth_init for DM ethMario Six2019-05-211-0/+2
| | | | | | | | | | | | | | 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>
| * mpc83xx: Add arch clock.h to make SDHC workMario Six2019-05-211-0/+22
| | | | | | | | | | | | | | | | | | 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>
| * mpc83xx: Get rid of CONFIG_SYS_LBC_*Mario Six2019-05-2132-195/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * mpc83xx: Get rid of CONFIG_SYS_DDR_SDRAM_BASEMario Six2019-05-2144-61/+35
| | | | | | | | | | | | | | | | 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>
| * mpc83xx: Get rid of CONFIG_SYS_DDR_BASEMario Six2019-05-2141-104/+73
| | | | | | | | | | | | | | 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>
| * mpc83xx: Migrate CONFIG_LCRR_* to KconfigMario Six2019-05-2183-120/+281
| | | | | | | | | | | | Migrate the CONFIG_LCRR_* settings to Kconfig. Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * mpc83xx: Migrate SPCR to KconfigMario Six2019-05-2137-52/+192
| | | | | | | | | | | | Migrate the SPCR setting to Kconfig. Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * mpc83xx: Migrate arbiter config to KconfigMario Six2019-05-2169-172/+269
| | | | | | | | | | | | Migrate the arbiter configuration to Kconfig. Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * mpc8308: Migrate system io config to KconfigMario Six2019-05-2117-100/+434
| | | | | | | | | | | | Migrate the system IO configuration setting to Kconfig. Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * mpc83xx: Migrate CONFIG_SYS_IMMR to KconfigMario Six2019-05-2133-121/+9
| | | | | | | | | | | | Migrate CONFIG_SYS_IMMR to Kconfig for MPC83xx. Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * mpc83xx: Migrate HID config to KconfigMario Six2019-05-2184-243/+795
| | | | | | | | | | | | Mirate the HID configuration settings to Kconfig. Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * mpc83xx: Prepare usage of DM gpio driverMario Six2019-05-211-0/+8
| | | | | | | | | | | | | | | | 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>
| * mpc83xx: Remove last CONFIG_MPC83xxMario Six2019-05-212-2/+0
| | | | | | | | | | | | Remove the last instances of the CONFIG_MPC83xx symbol. Signed-off-by: Mario Six <mario.six@gdsys.cc>
| * powerpc: mpc83xx: fdt: Use get_serial_clock()Mario Six2019-05-211-2/+2
| | | | | | | | | | | | | | | | | | | | 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>
| * powerpc: mpc83xx: Implement get_serial_clock()Mario Six2019-05-211-0/+5
| | | | | | | | | | | | | | | | | | | | | | 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>
| * powerpc: mpc83xx: Fix MPC8308 IMMR memory layoutMario Six2019-05-212-3/+41
| | | | | | | | | | | | | | | | 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>
| * mpc83xx: Migrate CONFIG_SYS_{BR, OR}*_PRELIM to KconfigMario Six2019-05-2192-277/+5606
| | | | | | | | | | | | | | | | | | | | | | 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>