- Aug 25, 2020
-
-
Stefan Roese authored
Instead of using a fixed length pre-allocated array of regions, this patch moves to dynamically allocating the regions based on the number of available regions plus the necessary regions for DRAM banks. Since MAX_PCI_REGIONS is not needed any more, its removed completely with this patch. Signed-off-by:
Stefan Roese <sr@denx.de> Reviewed-by:
Simon Glass <sjg@chromium.org> Cc: Bin Meng <bmeng.cn@gmail.com> Cc: Thierry Reding <treding@nvidia.com> Cc: Marek Vasut <marek.vasut+renesas@gmail.com>
-
Stefan Roese authored
Marek explained on IRC, that ft_board_setup() is not used / necessary at all. So its best to just drop it completely, as it interferes with the cleanup of CONFIG_MAX_PCI_REGIONS (completely removed). Signed-off-by:
Stefan Roese <sr@denx.de> Suggested-by:
Marek Vasut <marek.vasut+renesas@gmail.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Stefan Roese authored
Since the migration to Kconfig, CONFIG_NR_DRAM_BANKS is configured for all boards. Hence we can remove the conditional compilation and the code path that will never get compiled. Signed-off-by:
Stefan Roese <sr@denx.de> Reviewed-by:
Simon Glass <sjg@chromium.org> Cc: Tom Rini <trini@konsulko.com> Cc: Bin Meng <bmeng.cn@gmail.com>
-
Stefan Roese authored
Add dev_read_pci_bus_range() to read bus-range property values Signed-off-by:
Stefan Roese <sr@denx.de> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Suneel Garapati authored
Add fdtdec_get_pci_bus_range to read bus-range property values. Signed-off-by:
Suneel Garapati <sgarapati@marvell.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
- Aug 24, 2020
-
-
https://gitlab.denx.de/u-boot/custodians/u-boot-clkTom Rini authored
- Add CCF clocks definitions for iMX6Q enet (ETH) - Several fixes for CCF framework - the most notable is the one, which adds get_rate helper to clk-mux.c - Improvements for clk command - better visibility and alignment.
-
Lukasz Majewski authored
After adding custom get_rate helper function it was necessary to include <dm/uclass.h> to avoid warnings about missing uclass_get_device_by_name. Signed-off-by:
Lukasz Majewski <lukma@denx.de> Series-to: u-boot
-
Patrick Delaunay authored
Update depth only when clock uclass is found to have correct display of command "clk dump". Without this patch, the displayed depth is the binding depth for all the uclass and that can be strange as only clock uclass nodes are displayed. Signed-off-by:
Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Patrick Delaunay authored
Correct code alignment in show_clks() function. Signed-off-by:
Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Dario Binacchi authored
The previous version of the get_rate helper does not work if the mux clock parent is changed after the probe. This error has not been detected because this condition has not been tested. The error occurs because the set_parent helper does not change the parent of the clock device but only the clock selection register. Since changing the parent of a probed device can be tricky, the new version of the get_rate helper provides the rate of the selected clock and not that of the parent. Signed-off-by:
Dario Binacchi <dariobin@libero.it>
-
Dario Binacchi authored
The tests developed for the mux clock are run on the sandbox. They don't call the clk_mux_set_parent routine and therefore they do not detect this error. Signed-off-by:
Dario Binacchi <dariobin@libero.it>
-
Dario Binacchi authored
Close the opening bracket. Signed-off-by:
Dario Binacchi <dariobin@libero.it>
-
Dario Binacchi authored
Apply u-boot coding style on include files order. Signed-off-by:
Dario Binacchi <dariobin@libero.it>
-
Dario Binacchi authored
The parent->name variable can be used only in case the uclass_get_device_by_name routine returns successfully. Signed-off-by:
Dario Binacchi <dariobin@libero.it>
-
Dario Binacchi authored
The top-level framework flags are passed as parameter to the common clock framework (ccf) registration routines without being used. Checks of the flags setting added by the patch have been added in the ccf test. Signed-off-by:
Dario Binacchi <dariobin@libero.it>
-
Dario Binacchi authored
Unlike the other clock types, in the case of the gated clock, a new driver has been developed which does not use the registering routine provided by the common clock framework. The addition of the ecspi0 clock to sandbox therefore allows testing the ccf gate clock. Signed-off-by:
Dario Binacchi <dariobin@libero.it> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Lukasz Majewski authored
After commit 673f6597 ("net: fec_mxc: support i.MX8M with CLK_CCF") all NXP boards, which are not IMX8 and in the same time are supporting CCF need to provide PTP clock. On the i.MX6Q this clock is provided with IMX6QDL_CLK_ENET_REF in the Linux kernel's CCF. Code in this change models the simplest case when enet reference clock is generated from 'osc' clock. Signed-off-by:
Lukasz Majewski <lukma@denx.de>
-
Lukasz Majewski authored
This code has been ported from Linux kernel v5.5.5 (tag) and has been adjusted to U-Boot's DM. It adds support for correct recognition of IMX_PLLV3_ENET flag in the clk-pllv3.c driver. Signed-off-by:
Lukasz Majewski <lukma@denx.de>
-
Lukasz Majewski authored
After commit 673f6597 ("net: fec_mxc: support i.MX8M with CLK_CCF") all NXP boards, which are not IMX8 and in the same time are supporting CCF need to provide IMX6QDL_CLK_ENET. This change defines the missing clock in i.MX6Q's CCF. Signed-off-by:
Lukasz Majewski <lukma@denx.de>
-
Heinrich Schuchardt authored
Do not calculate a unused value of n which is overwritten in both branches of the subsequent if statement. Identified by cppcheck. Signed-off-by:
Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by:
Lukasz Majewski <lukma@denx.de>
-
- Aug 23, 2020
-
-
https://gitlab.denx.de/u-boot/custodians/u-boot-dmTom Rini authored
replace devfdt_get_addr_ptr() with dev_read_addr_ptr() binman fixes for portage various minor fixes 'bind' command improvements
-
Tom Rini authored
- Clean up common/stdio.c and migrate some related options to Kconfig
-
Simon Glass authored
Bring the coding style in this file up to the current level. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
These brackets are not needed. Drop them. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Drop use of the preprocessor where possible. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
These prevent the use of IS_ENABLED() and are unnecessary. Drop them and fix a few code-style nits nearby. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Now that this is in Kconfig we can move the logic at the top of the file to Kconfig, and use if() instead of #if. Update the file with these changes. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This converts the following to Kconfig: CONFIG_SYS_DEVICE_NULLDEV Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
This converts the following to Kconfig: CONFIG_SPLASH_SCREEN CONFIG_SPLASH_SCREEN_ALIGN CONFIG_SPLASHIMAGE_GUARD CONFIG_SPLASH_SOURCE Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Add a few more file extensions to the list of files that should not be processed. This avoids unicode errors, for example. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Tom Rini authored
This converts the following to Kconfig: CONFIG_NETCONSOLE Signed-off-by:
Tom Rini <trini@konsulko.com>
-
- Aug 22, 2020
-
-
Ovidiu Panait authored
The sections described in the sandbox linker script are inserted before data section via "INSERT BEFORE .data;". Running readelf -S on sandbox u-boot binary shows that the bss section is located after the data section: Section Headers: [Nr] Name Type Address Offset Size EntSize Flags Link Info Align ... [25] .u_boot_list PROGBITS 000000000041d1c8 0021d1c8 000000000000dd90 0000000000000000 WA 0 0 8 [26] _u_boot_sandbox_g PROGBITS 000000000042af58 0022af58 00000000000000a0 0000000000000000 WA 0 0 8 [27] .data PROGBITS 000000000042b000 0022b000 000000000000f708 0000000000000000 WA 0 0 32 [28] .bss NOBITS 000000000043a720 0023a708 0000000000018930 0000000000000000 WA 0 0 32 This means that the __bss_start assignment in the linker script is bogus, as the actual bss section start is located elsewhere. Remove this assignment, as the __bss_start symbol is not used on sandbox anyway. Signed-off-by:
Ovidiu Panait <ovidiu.panait@windriver.com>
-
Ovidiu Panait authored
Since commit 69153988 ("i2c: Finish dropping use of CONFIG_I2C_HARD") init_func_i2c is wrapped only by "#if defined(CONFIG_SYS_I2C)". Because of this, the second ifdef within becomes pointless: #if defined(CONFIG_SYS_I2C) static int init_func_i2c(void) <snip> #ifdef CONFIG_SYS_I2C ... #else ... #endif <snip> } #endif Remove the dead #else preprocessor code. Fixes: 69153988 ("i2c: Finish dropping use of CONFIG_I2C_HARD") Signed-off-by:
Ovidiu Panait <ovidiu.panait@windriver.com>
-
Simon Glass authored
Allow binman to be installed by adding a suitable setup.py script. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Allow dtoc to be installed by adding a suitable setup.py script. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Some of these were not converted when binman moved to use absolute paths. Fix them. Also drop the import of 'test' which is a directory, not a module. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
When binman is installed its main program is in a different directory to its modules. This means that __file__ is different and we cannot use it to obtain the path to etype/ from main.py To fix this, move the function to the 'control' module, since it is installed with all the other modules, including the etype/ directory. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Masahiro Yamada authored
When you enable CONFIG_OF_LIVE, you will end up with a lot of conversions. To help this tedious work, this commit converts devfdt_get_addr_ptr() to dev_read_addr_ptr() by coccinelle. I also removed redundant casts because dev_read_addr_ptr() returns an opaque pointer. To generate this commit, I ran the following semantic patch excluding include/dm/. <smpl> @@ type T; expression dev; @@ -(T *)devfdt_get_addr_ptr(dev) +dev_read_addr_ptr(dev) @@ expression dev; @@ -devfdt_get_addr_ptr(dev) +dev_read_addr_ptr(dev) </smpl> Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Masahiro Yamada authored
It is strange to use devfdt_get_addr_ptr(), then cast the pointer back to ulong because you could use devfdt_get_addr() without casting. Convert it to dev_read_addr(), which is capable to CONFIG_OF_LIVE. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by:
Stefan Roese <sr@denx.de>
-
Masahiro Yamada authored
It is strange to use devfdt_get_addr_ptr(), then cast the pointer back to uint32 because you could use devfdt_get_addr() without casting. Convert it to dev_read_addr(), which is capable to CONFIG_OF_LIVE. Signed-off-by:
Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-