- Jun 12, 2019
-
-
Guillaume La Roque authored
Add drive-strength-microamp property support to allow drive strength in uA Signed-off-by:
Guillaume La Roque <glaroque@baylibre.com> Tested-by:
Neil Armstrong <narmstrong@baylibre.com> Signed-off-by:
Neil Armstrong <narmstrong@baylibre.com>
-
Neil Armstrong authored
In order to support the "pinmux status" command, use the common functions to get the pins count and names, and add the AXG specific function to get the current function from registers. Signed-off-by:
Neil Armstrong <narmstrong@baylibre.com>
-
Neil Armstrong authored
In order to support the "pinmux status" command, use the common functions to get the pins count and names, and add the GX specific function to get the current function from registers. Signed-off-by:
Neil Armstrong <narmstrong@baylibre.com> Tested-by:
Maxime Jourdan <mjourdan@baylibre.com>
-
Neil Armstrong authored
In order to support the "pinmux status" command, add common function to get pins count and pin name. Signed-off-by:
Neil Armstrong <narmstrong@baylibre.com>
-
Neil Armstrong authored
The GPIO_TEST_N was in the wrong pmx group table, move it back with the AO groups, GPIODV_18 was missing, add it back, and finally the GPIOCLK_* group names were missing. Signed-off-by:
Neil Armstrong <narmstrong@baylibre.com>
-
- Jun 11, 2019
-
-
The SPL for the Tinker Board has to fit into 32 KiB. Currently this limit is exceeded. CONFIG_SPL_I2C_SUPPORT is not needed to move to main U-Boot. So let's disable it. Suggested-by:
David Wu <david.wu@rock-chips.com> Signed-off-by:
Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by:
David Wu <david.wu@rock-chips.com> Reviewed-by:
Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
-
Tom Rini authored
Signed-off-by:
Tom Rini <trini@konsulko.com>
-
- Jun 10, 2019
-
-
git://git.denx.de/u-boot-spiTom Rini authored
- mpc8xxx spi driver fixes (Mario) - mpc8xxx spi dm conversion (Mario, Jagan) - SPI DM Migration update (Jagan)
-
git://git.denx.de/u-boot-videoTom Rini authored
- mxsfb DM_VIDEO conversion - splash fix for DM_VIDEO configurations - meson HDMI fix for boards without hdmi-supply regulator
-
-
Jagan Teki authored
Now, we have few driver are fully converted into dm and few are partially converted. So, update the migration status accordingly. Signed-off-by:
Jagan Teki <jagan@amarulasolutions.com>
-
Jagan Teki authored
Support DM in the MPC8xxx SPI driver, and remove the legacy SPI interface. Signed-off-by:
Mario Six <mario.six@gdsys.cc> Signed-off-by:
Jagan Teki <jagan@amarulasolutions.com>
-
The comment before the transmission loop in conjunction with the definition of SPI_TIMEOUT as 1000 implies that the loop is supposed to have a timeout value of 1000 ms. But since there is no mdelay(1) or similar in the loop body, the loop just runs 1000 times, without regard for the time elapsed. To correct this, use the standard get_timer functionality to properly time out the loop after 1000 ms. Signed-off-by:
Mario Six <mario.six@gdsys.cc> Acked-by:
Jagan Teki <jagan@amarulasolutions.com>
-
Decreasing the bit length and increasing the write data pointer should be done when there are more than 32 bit of data, not 16 bit. This did not produce incorrect behavior, because the only time where the two checks produce different outcomes is the case of 16 < bitlen < 32, and in this case the subsequent transmission is the last one regardless, hence the additional bit length decrease and write data pointer increase has no effect anyway. Still, the correct check is the check for "bitlen > 32", so correct this behavior. Signed-off-by:
Mario Six <mario.six@gdsys.cc> Acked-by:
Jagan Teki <jagan@amarulasolutions.com>
-
Minize the time the adapter is disabled (via SPI_MODE_EN clearing/setting) to just the character length setting, and only set up the temporary data writing variable right before we need it, so there is a more clear distinction between setting up the SPI adapter, and setting up the data to be written. Signed-off-by:
Mario Six <mario.six@gdsys.cc> Acked-by:
Jagan Teki <jagan@amarulasolutions.com>
-
Instead of having a table right before the code implementing the length setting for documentation, have inline comments for the if branches actually implementing the length setting described table's entries (which is readable thanks to the set_char_len function). Signed-off-by:
Mario Six <mario.six@gdsys.cc> Acked-by:
Jagan Teki <jagan@amarulasolutions.com>
-
The variable "char_size" holds the number of bits to be transferred in the current loop iteration. A better name would be "xfer_bitlen", which we rename this variable to. Signed-off-by:
Mario Six <mario.six@gdsys.cc> Acked-by:
Jagan Teki <jagan@amarulasolutions.com>
-
Introduce the to_prescale_mod and set_char_len inline functions to make the code more readable. Note that the added "if (bitlen > 16)" check does not change the semantics of the current code, and hence only preserves the current error (this will be fixed in a later patch in the series). Signed-off-by:
Mario Six <mario.six@gdsys.cc> Acked-by:
Jagan Teki <jagan@amarulasolutions.com>
-
The transmission loop starts with setting some variables, which are only used inside the loop. Reduce the scope to the loop to make the declaration and initialization of these variables coincide. In the case of char_size this also always initializes the variable immediately with the final value actually used in the loop (instead of the placeholder value 32). Signed-off-by:
Mario Six <mario.six@gdsys.cc> Acked-by:
Jagan Teki <jagan@amarulasolutions.com>
-
We do nothing in the loop if the "not empty" event was not detected. To simplify the logic, check if this is the case, and skip the execution of the loop early to reduce the nesting level and flag checking. Signed-off-by:
Mario Six <mario.six@gdsys.cc> Acked-by:
Jagan Teki <jagan@amarulasolutions.com>
-
Get rid of the is_read variable, and just keep the state of the "not empty" and "not full" events in two boolean variables within the loop body. Signed-off-by:
Mario Six <mario.six@gdsys.cc> Acked-by:
Jagan Teki <jagan@amarulasolutions.com>
-
Instead of having a nested if block, just have two branches within the overarching if block to eliminate one nesting level. Signed-off-by:
Mario Six <mario.six@gdsys.cc> Acked-by:
Jagan Teki <jagan@amarulasolutions.com>
-
Accesses to the register map are currently done by directly reading and writing the structure. Switch to the appropriate IO accessors instead. Signed-off-by:
Mario Six <mario.six@gdsys.cc> Acked-by:
Jagan Teki <jagan@amarulasolutions.com>
-
Replace pre-processor defines with proper enums, and use the BIT macro where applicable. Signed-off-by:
Mario Six <mario.six@gdsys.cc> Acked-by:
Jagan Teki <jagan@amarulasolutions.com>
-
Replace the function name with a "%s" format string and the __func__ variable in debug statements (as proposed by checkpatch). Signed-off-by:
Mario Six <mario.six@gdsys.cc> Acked-by:
Jagan Teki <jagan@amarulasolutions.com>
-
Fix all "superfluous space after case" style errors. Signed-off-by:
Mario Six <mario.six@gdsys.cc> Acked-by:
Jagan Teki <jagan@amarulasolutions.com>
-
There are three variables that have camel-case names, which is not the preferred naming style. Give those variables more compliant names instead. Signed-off-by:
Mario Six <mario.six@gdsys.cc> Acked-by:
Jagan Teki <jagan@amarulasolutions.com>
-
There are some comments on the same line as the code they document. Put comments above the code lines they document, so the line length is not unnecessarily increased. Signed-off-by:
Mario Six <mario.six@gdsys.cc> Acked-by:
Jagan Teki <jagan@amarulasolutions.com>
-
The function signatures in the driver are quite long as is. Use short type names (uint etc.) to make them more readable. Signed-off-by:
Mario Six <mario.six@gdsys.cc> Acked-by:
Jagan Teki <jagan@amarulasolutions.com>
-
With the recent SPI changes, the ids8313 board won't compile anymore. Until further information from the manufacturer, disable SPI support, so that the board will at least compile again. Signed-off-by:
Mario Six <mario.six@gdsys.cc> Acked-by:
Heiko Schocher <hs@denx.de> Reviewed-by:
Jagan Teki <jagan@amarulasolutions.com>
-
- Jun 08, 2019
-
-
git://git.denx.de/u-boot-tegraTom Rini authored
The bulk of these changes are an effort to unify Tegra186 builds with builds of prior 64-bit Tegra generations. On top of that there are various improvements that allow data (such as the MAC address and boot arguments) to be passed through from early firmware to the kernel on boot.
-
Tom Rini authored
When introduced this limit was an int but was then changed to hex without noting as much in the prompt nor changing existing users. Put this back to an int. Reported-by:
Fabio Estevam <festevam@gmail.com> Tested-by:
Fabio Estevam <festevam@gmail.com> Fixes: 2577015d ("spl: add overall SPL size check") Signed-off-by:
Tom Rini <trini@konsulko.com>
-
- Jun 07, 2019
-
-
Tom Rini authored
- Include Heinrich's series to move the i.MX board size check function to be more widely available. - Include Simon Goldschmidt's patch to make it possible to have a more accurate SPL size check applied.
-
This adds a size check for SPL that can dynamically check generated SPL binaries (including devicetree) for a size limit that ensures this image plus global data, heap and stack fit in initial SRAM. Since some of these sizes are not available to make, a new host tool 'spl_size_limit' is added that dumps the resulting maximum size for an SPL binary to stdout. This tool is used in toplevel Makefile to implement the size check on SPL binaries. Signed-off-by:
Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
-
The SPL image for the Tinker Board has to fit into 32 KiB. This includes up to 2 KiB for the file header. Signed-off-by:
Heinrich Schuchardt <xypron.glpk@gmx.de>
-
A new configuration variable CONFIG_SPL_SIZE_LIMIT is introduced to define the board specific maximum size for the SPL file. Use Makefile function size_check() to implement the test. Depending on the size of CONFIG_SPL_SIZE_LIMIT an error like the following is thrown: spl/u-boot-spl.bin exceeds file size limit: limit: 30720 bytes actual: 33426 bytes excess: 2706 bytes make: *** [Makefile:1663: spl/u-boot-spl.bin] Error 1 Signed-off-by:
Heinrich Schuchardt <xypron.glpk@gmx.de>
-
We currently have duplicate definitions for BOARD_SIZE_CHECK in Makefile and arch/arm/mach-imx/Makefile. Move the board size check from arch/arm/mach-imx/Makefile to Makefile. Depending on the value of CONFIG_BOARD_SIZE_LIMIT an error like an error like the following is thrown: u-boot-dtb.imx exceeds file size limit: limit: 503696 bytes actual: 509720 bytes excess: 6024 bytes make: *** [Makefile:1051: u-boot-dtb.imx] Error 1 Signed-off-by:
Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by:
Fabio Estevam <festevam@gmail.com>
-
Carve out function size_check from macro BOARD_SIZE_CHECK. This will allow us to reuse the function for other file size checks. Depending on the value of CONFIG_BOARD_SIZE_LIMIT an error like the following is thrown: u-boot-dtb.img exceeds file size limit: limit: 409516 bytes actual: 444346 bytes excess: 34830 bytes make: *** [Makefile:1212: u-boot-dtb.img] Error 1 Signed-off-by:
Heinrich Schuchardt <xypron.glpk@gmx.de>
-
In the UEFI context GUIDs are expected to be rendered in upper case. The patch uses the formerly unused bit 1 of the parameter str_format of function uuid_bin_to_str() to indicate if we need upper or lower case output. Function uuid_string() in vsprint.c is adjusted to correctly set the bit depending on the print format code. %pUb: 01020304-0506-0708-090a-0b0c0d0e0f10 %pUB: 01020304-0506-0708-090A-0B0C0D0E0F10 %pUl: 04030201-0605-0807-090a-0b0c0d0e0f10 %pUL: 04030201-0605-0807-090A-0B0C0D0E0F10 Up to this point only a diagnostic message in mount_ubifs() using '%pUB' is concerned by the change. Further patches are needed to adjust the UEFI subsystem. A unit test is provided inside the ut_print command. Signed-off-by:
Heinrich Schuchardt <xypron.glpk@gmx.de>
-
- Jun 06, 2019
-
-
Eugen Hristev authored
Enabled CONFIG_SPL_AT91_MCK_BYPASS and resync with savedefconfig Signed-off-by:
Eugen Hristev <eugen.hristev@microchip.com>
-