- May 07, 2018
-
-
Tom Rini authored
When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by:
Tom Rini <trini@konsulko.com>
-
- Apr 27, 2018
-
-
Tom Rini authored
We have a large number of places where while we historically referenced gd in the code we no longer do, as well as cases where the code added that line "just in case" during development and never dropped it. Signed-off-by:
Tom Rini <trini@konsulko.com>
-
- Jan 10, 2018
-
-
Tom Rini authored
Given gcc-6.1 and later we can now safely have strings discarded when the functions are unused. This lets us drop certain cases of not building something so that we don't have the strings brought in when the code was discarded. Simplify the code now by dropping guards we don't need now. Cc: Stefano Babic <sbabic@denx.de> Cc: Fabio Estevam <fabio.estevam@nxp.com> Cc: Chander Kashyap <k.chander@samsung.com> Cc: Thomas Abraham <thomas.ab@samsung.com> Cc: Vipin Kumar <vipin.kumar@st.com> Cc: Wenyou Yang <wenyou.yang@microchip.com> Signed-off-by:
Tom Rini <trini@konsulko.com>
-
- Sep 02, 2015
-
-
Peng Fan authored
Use new formula for get_cpu_rev, since we need to use this formula to do runtime check for all i.MXes. Signed-off-by:
Peng Fan <Peng.Fan@freescale.com> Cc: Stefano Babic <sbabic@denx.de> Reviewed-by:
Stefano Babic <sbabic@denx.de>
-
- Mar 02, 2015
-
-
Fabio Estevam authored
Since commit 3ff46cc4 ("arm: relocate the exception vectors") mx31 does not boot anymore. Add a specific relocate_vectors macro that skips the vector relocation, as the i.MX31 SoC does not provide RAM at the high vectors address (0xFFFF0000), and (0x00000000) maps to ROM. This allows mx31 to boot again. Cc: Anatolij Gustschin <agust@denx.de> Cc: Magnus Lilja <lilja.magnus@gmail.com> Signed-off-by:
Fabio Estevam <fabio.estevam@freescale.com>
-
- Sep 16, 2014
-
-
Andrew Ruder authored
This patch moves mx31 to the common timer functions added in commit 8dfafdde - Introduce common timer functions <Rob Herring> The (removed) mx31 timer code (specifically __udelay()) could deadlock at the 32-bit boundary of get_ticks(). get_ticks() returned a 32-bit value cast up to a 64-bit value. If get_ticks() + tmo in __udelay() crossed the 32-bit boundary, the while condition became unconditionally true and locks the processor. Rather than patch the specific mx31 issues, simply move everything over to the common code. Signed-off-by:
Andrew Ruder <andrew.ruder@elecsyscorp.com> Cc: Marek Vasut <marex@denx.de> Cc: Linus Walleij <linus.walleij@linaro.org> Cc: Wolfgang Denk <wd@denx.de> Cc: Fabio Estevam <fabio.estevam@freescale.com> Cc: Helmut Raiger <helmut.raiger@hale.at>
-
- Oct 31, 2013
-
-
Masahiro Yamada authored
Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com>
-
- Jul 24, 2013
-
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de> [trini: Fixup common/cmd_io.c] Signed-off-by:
Tom Rini <trini@ti.com>
-
- Feb 01, 2013
-
-
Simon Glass authored
Move this field into arch_global_data and tidy up. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
Simon Glass authored
Move this field into arch_global_data and tidy up. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Jan 13, 2013
-
-
Troy Kisky authored
Use a common watchdog driver for all these cpus. Signed-off-by:
Troy Kisky <troy.kisky@boundarydevices.com> Acked-by:
Stefano Babic <sbabic@denx.de>
-
- Oct 15, 2012
-
-
Matthias Weisser authored
i2c didn't work on imx25 due to missing MXC_IPG_PERCLK. Now using MXC_I2C_CLK on all imx systems using i2c. Signed-off-by:
Matthias Weisser <weisserm@arcor.de> Acked-by:
Stefano Babic <sbabic@denx.de>
-
- Sep 06, 2012
-
-
Benoît Thébaudeau authored
Define default SoC input clock frequencies for i.MX31 in order to get rid of duplicated definitions. Signed-off-by:
Benoît Thébaudeau <benoit.thebaudeau@advansee.com> Cc: Stefano Babic <sbabic@denx.de> Cc: Fabio Estevam <fabio.estevam@freescale.com> Cc: Wolfgang Denk <wd@denx.de> Cc: Helmut Raiger <helmut.raiger@hale.at>
-
Benoît Thébaudeau authored
The MFN bit-field of the PLL registers represents a signed value. See the reference manual. Signed-off-by:
Benoît Thébaudeau <benoit.thebaudeau@advansee.com> Cc: Stefano Babic <sbabic@denx.de>
-
- Mar 27, 2012
-
-
Helmut Raiger authored
Add missing reset reason 7 to get_reset_cause(). Signed-off-by:
Helmut Raiger <helmut.raiger@hale.at>
-
- Feb 27, 2012
-
-
Stefano Babic authored
Signed-off-by:
Stefano Babic <sbabic@denx.de> CC: Helmut Raiger <helmut.raiger@hale.at>
-
- Feb 12, 2012
-
-
Helmut Raiger authored
This patch modifies mxcmmc.c to be used not only by i.MX27 but also by i.MX31 boards. Both use the same SD controller, but have different clock set-ups. The i.MX27 imx_get_XXXclock functions are made static to generic.c and a public mxc_get_clock() function is provided. Pins, base address and prototypes for an i.MX31 specific board_init_mmc() are provided. Some of the i.MX27 clock getters are unused and marked as such to avoid warnings (./MAKEALL -s mx27), but the code was left in for future use. Signed-off-by:
Helmut Raiger <helmut.raiger@hale.at> Acked-by:
Stefano Babic <sbabic@denx.de>
-
- Dec 06, 2011
-
-
Stefano Babic authored
The serial driver for iMX SOCs is continuosly changed if a new SOC or not yet used port is used. CONFIG_SYS_<SOC>_<UART Port> defines were used only to find the base address for the selected UART. Instead of that, move the base address to the board configuration file and drop all #ifdef from driver. Signed-off-by:
Stefano Babic <sbabic@denx.de> CC: Marek Vasut <marek.vasut@gmail.com> CC: Wolfgang Denk <wd@denx.de> CC: Fabio Estevam <fabio.estevam@freescale.com> CC: Helmut Raiger <helmut.raiger@hale.at> CC: John Rigby <jcrigby@gmail.com> CC: Matthias Weisser <weisserm@arcor.de> CC: Jason Liu <jason.hui@linaro.org> Acked-by:
Jason Liu <jason.hui@linaro.org>
-
- Nov 11, 2011
-
-
Fabio Estevam authored
Fix checkpatch warnings in generic.c. Signed-off-by:
Fabio Estevam <fabio.estevam@freescale.com> Acked-by:
Stefano Babic <sbabic@denx.de>
-
Fabio Estevam authored
Use proper IO accessor for GPR register. Signed-off-by:
Fabio Estevam <fabio.estevam@freescale.com> Acked-by:
Stefano Babic <sbabic@denx.de>
-
Fabio Estevam authored
GPR register definition is already available at imx-regs.h, so remove the duplication. Signed-off-by:
Fabio Estevam <fabio.estevam@freescale.com> Acked-by:
Stefano Babic <sbabic@denx.de>
-
- Nov 03, 2011
-
-
Helmut Raiger authored
Signed-off-by:
Helmut Raiger <helmut.raiger@hale.at> Acked-by:
Stefano Babic <sbabic@denx.de>
-
Fabio Estevam authored
Introduce mx31_set_gpr function for setting the GPR (General Purpose Register) on MX31. This function can be useful for setting a group of pins into tied to some specific peripherals. Reuse this function from the linux kernel. Signed-off-by:
Fabio Estevam <fabio.estevam@freescale.com>
-
- Oct 27, 2011
-
-
Fabio Estevam authored
Fix checkpatch warning and errors in several i.MX related files. While at it also address a checkpatch warning at arch/arm/cpu/armv7/mx5/soc.c regarding the usage of extern in a C file. Signed-off-by:
Fabio Estevam <fabio.estevam@freescale.com>
-
Helmut Raiger authored
setup_weimcs() and some macros are added to support the setup for i.MX31 WEIM chip selects. As a compromise between verbosity and readability an ASCII-art'ish bit comment is used instead of bitfields. All i.MX31 boards have been patched to use this approach using a helper program to verify the changes. Signed-off-by:
Helmut Raiger <helmut.raiger@hale.at> Acked-by:
Stefano Babic <sbabic@denx.de>
-
- Oct 17, 2011
-
-
Helmut Raiger authored
This additionally updates mx31/generic.c by - replacing __REG() macro accesses with readl() and writel() - providing macros for PDR0 and PLL bit accesses Signed-off-by:
Helmut Raiger <helmut.raiger@hale.at> Acked-by:
Marek Vasut <marek.vasut@gmail.com> Cc: Stefano Babic <sbabic@denx.de> Acked-by:
Stefano Babic <sbabic@denx.de> Signed-off-by:
Anatolij Gustschin <agust@denx.de>
-
- Oct 13, 2011
-
-
Helmut Raiger authored
This additionally updates mx31/generic.c by - replacing __REG() macro accesses with readl() and writel() - providing macros for PDR0 and PLL bit accesses Signed-off-by:
Helmut Raiger <helmut.raiger@hale.at> Acked-by:
Marek Vasut <marek.vasut@gmail.com> Cc: Stefano Babic <sbabic@denx.de> Acked-by:
Stefano Babic <sbabic@denx.de> Signed-off-by:
Anatolij Gustschin <agust@denx.de>
-
- Sep 30, 2011
-
-
Fabio Estevam authored
Turn on the watchdog WDZST bit so that watchdog timer does not count during low power modes. Prior to applying this patch mx31pdk board got watchdog resets because when it booted in the Linux prompt and there was no activity, the system entered into idle mode while watchdog timer was still active. Fix this by disabling watchdog timer during idle mode. Signed-off-by:
Fabio Estevam <fabio.estevam@freescale.com>
-
Fabio Estevam authored
Currently the reset cause is printed like: CPU: Freescale i.MX31 rev 2.0 at 531 MHz.Reset cause: POR Improve readability by adding a new line like it is done on other i.MX boards. Signed-off-by:
Fabio Estevam <fabio.estevam@freescale.com>
-
- Sep 07, 2011
-
-
Stefano Babic authored
Add missing case to be used in common MXC code. Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
- Jul 26, 2011
-
-
Graeme Russ authored
In some circumstances, reset_timer_masked() was called be timer_init() in order to perform architecture specific timer initialisation. In such cases, the required code in reset_timer_masked() has been moved into timer_init()
-
Graeme Russ authored
-
Graeme Russ authored
-
- Jul 18, 2011
-
-
Stefano Babic authored
The patch provide the same API used with other i.MX processors and get rid of mx31_ functions. Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
- May 23, 2011
-
-
Stefano Babic authored
get_reset_cause() should not be exported. Drop code in the function after return statement that can generate warnings due to unreachable code. Signed-off-by:
Stefano Babic <sbabic@denx.de> Signed-off-by:
Fabio Estevam <fabio.estevam@freescale.com>
-
- May 11, 2011
-
-
Stefano Babic authored
Drop warnings in get_cpu_rev and changes the return value (a u32 instead of char * is returned) of the function to be coherent with other processors. Signed-off-by:
Stefano Babic <sbabic@denx.de> CC: Detlev Zundel <dzu@denx.de> CC: Fabio Estevam <fabio.estevam@freescale.com>
-
- Apr 27, 2011
-
-
Fabio Estevam authored
Signed-off-by:
Fabio Estevam <fabio.estevam@freescale.com> Acked-by:
Detlev Zundel <dzu@denx.de>
-
Fabio Estevam authored
Use the same method of the Linux kernel to print the MX31 silicon version on boot. Tested on a MX31PDK with a 2.0 silicon, where it shows: CPU: Freescale i.MX31 rev 2.0 at 531 MHz Signed-off-by:
Fabio Estevam <fabio.estevam@freescale.com>
-
Stefano Babic authored
As exception among the i.MX processors, the i.MX31 has headers without general names (mx31-regs.h, mx31.h instead of imx-regs.h and clock.h). This requires several nasty #ifdef in the drivers to include the correct header. The patch cleans up the driver and renames the header files as for the other i.MX processors. Signed-off-by:
Stefano Babic <sbabic@denx.de>
-
Stefano Babic authored
The patch add CONFIG_HW_WATCHDOG to be used with the internal watchdog timer of the MX31 processor. Two function are exported for the board maintainers: mxc_hw_watchdog_enable mxc_hw_watchdog_reset The board maintainer can decide to use mxc_hw_watchdog_reset as hw_watchdog_reset, or to implement his own function to reset the watchdog. The watchdog timer can be configured with CONFIG_SYS_WD_TIMER_SECS (value in seconds). The MX31 allows values between 0.5 (CONFIG_SYS_WD_TIMER_SECS = 0) and 128 seconds. Signed-off-by:
Stefano Babic <sbabic@denx.de>
-