| Age | Commit message (Collapse) | Author |
|
Drop direct access to SOC's registers and use
the function of the GPIO driver for da8xx.
[Tom: Remove gpio[68]_base as it's now unused]
Signed-off-by: Stefano Babic <[email protected]>
CC: Bastian Ruppert <[email protected]>
CC: [email protected]
CC: Sandeep Paulraj <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
|
|
Signed-off-by: Stefano Babic <[email protected]>
Cc: Tom Rini <[email protected]>
|
|
Fix chipselect timing for FPGA
Signed-off-by: Stefano Babic <[email protected]>
Cc: Tom Rini <[email protected]>
|
|
twl4030_pmrecv_vsel_cfg currently first sets up device group (effectively
enabling the supply), and only then sets vsel (selects voltage). This could
lead to wrong voltage for a short time, or even long time if second i2c
write fails.
Fix this by writing vsel first and device group after that. Also
introduce error checking to not enable the supply if we failed to set
the voltage, and start logging errors as power supply problems are
usually important.
Signed-off-by: Grazvydas Ignotas <[email protected]>
|
|
The following warnings are reported for boards using SOFT ECC.
omap_gpmc.c:33:30: warning: 'hw_nand_oob' defined but not used
omap_gpmc.c:78:13: warning: 'omap_hwecc_init' defined but not used
omap_gpmc.c:116:12: warning: 'omap_correct_data' defined but not used
omap_gpmc.c:182:12: warning: 'omap_calculate_ecc' defined but not used
omap_gpmc.c:208:13: warning: 'omap_enable_hwecc' defined but not used
Signed-off-by: Stefano Babic <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Scott Wood <[email protected]>
|
|
To avoid a conflict with common/cmd_bootm.c's 'images' (which is
exposed as part of the Linux SPL series), rename the board-specific
'images' to 'imgs'.
Cc: Heiko Schocher <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
Acked-by: Heiko Schocher <[email protected]>
Tested-by: Heiko Schocher <[email protected]>
|
|
Adds prep subcommand to bootm implementation of ARM. When bootm is called
with the subcommand prep the function stops right after ATAGS creation and
before announce_and_cleanup.
This is used in command "cmd_spl export"
Signed-off-by: Simon Schwarz <[email protected]>
Acked-by: Stefano Babic <[email protected]>
Tested-by: Stefano Babic <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
|
|
Signed-off-by: Stefano Babic <[email protected]>
CC: Tom Rini <[email protected]>
CC: Wolfgang Denk <[email protected]>
CC: Simon Schwarz <[email protected]>
|
|
Signed-off-by: Stefano Babic <[email protected]>
CC: Tom Rini <[email protected]>
CC: Wolfgang Denk <[email protected]>
CC: Simon Schwarz <[email protected]>
|
|
Call i2c initialization in spl_board_init only if I2C
is configured for the board.
Signed-off-by: Stefano Babic <[email protected]>
CC: Tom Rini <[email protected]>
CC: Wolfgang Denk <[email protected]>
CC: Simon Schwarz <[email protected]>
|
|
Signed-off-by: Stefano Babic <[email protected]>
CC: Tom Rini <[email protected]>
CC: Wolfgang Denk <[email protected]>
CC: Simon Schwarz <[email protected]>
|
|
- Implements spl_start_uboot() for devkit8000
- Add configs to activate direct OS boot from SPL
Signed-off-by: Simon Schwarz <[email protected]>
CC: Tom Rini <[email protected]>
CC: Stefano Babic <[email protected]>
CC: Wolfgang Denk <[email protected]>
|
|
This only outputs "Assuming u-boot.bin..." if debug is active.
Signed-off-by: Simon Schwarz <[email protected]>
CC: Tom Rini <[email protected]>
CC: Stefano Babic <[email protected]>
CC: Wolfgang Denk <[email protected]>
|
|
This adds Linux booting to the SPL
This depends on CONFIG_MACH_TYPE patch by Igor Grinberg
(http://article.gmane.org/gmane.comp.boot-loaders.u-boot/105809)
Related CONFIGs:
CONFIG_SPL_OS_BOOT
Activates/Deactivates the OS booting feature
CONFIG_SPL_OS_BOOT_KEY
defines the IO-pin number u-boot switch - if pressed u-boot is
booted
CONFIG_SYS_NAND_SPL_KERNEL_OFFS
Offset in NAND of direct boot kernel image to use in SPL
CONFIG_SYS_SPL_ARGS_ADDR
Address where the kernel boot arguments are expected - this is
normaly RAM-begin + 0x100
Signed-off-by: Simon Schwarz <[email protected]>
CC: Tom Rini <[email protected]>
CC: Stefano Babic <[email protected]>
CC: Wolfgang Denk <[email protected]>
|
|
Linux crashes if the GPMC isn't configured for the dm9000.
Signed-off-by: Simon Schwarz <[email protected]>
CC: Tom Rini <[email protected]>
CC: Stefano Babic <[email protected]>
CC: Wolfgang Denk <[email protected]>
|
|
This implements booting of Linux from NAND in SPL
Related config parameters:
CONFIG_SYS_NAND_SPL_KERNEL_OFFS
Offset in NAND of direct boot kernel image to use in SPL
CONFIG_SYS_SPL_ARGS_ADDR
Address where the kernel boot arguments are expected - this is
normally RAM-start + 0x100 (on ARM)
Signed-off-by: Simon Schwarz <[email protected]>
CC: Tom Rini <[email protected]>
CC: Stefano Babic <[email protected]>
CC: Wolfgang Denk <[email protected]>
|
|
This adds some configs for devkit8000 to use the new spl command
Signed-off-by: Simon Schwarz <[email protected]>
CC: Tom Rini <[email protected]>
CC: Stefano Babic <[email protected]>
CC: Wolfgang Denk <[email protected]>
|
|
This adds a spl command to the u-boot.
Related config:
CONFIG_CMD_SPL
activate/deactivate the command
CONFIG_CMD_SPL_NAND_OFS
Offset in NAND to use
Signed-off-by: Simon Schwarz <[email protected]>
Signed-off-by: Stefano Babic <[email protected]>
CC: Tom Rini <[email protected]>
CC: Wolfgang Denk <[email protected]>
|
|
The variable "rc" is the return of board_eth_init() function. Initialize
it with an error code, so that this function can return an error when
CONFIG_SMC911X is not set.
Signed-off-by: Fabio Estevam <[email protected]>
Acked-by: Stefano Babic <[email protected]>
|
|
Change the parent UART clock to be PLL2, so that U-boot can also boot
a Freescale 2.6.35 kernel for mx53.
FSL kernel and U-boot changed the UART parent from PLL3 to PLL2 to avoid
conflicts with IPU clocks, so that the video resolution can be changed
without affecting the UART clock.
On a 2.6.35 kernel the serial console is messed up after IPU driver is loaded
and this patch fixes this problem.
Tested on a mx53loco board booting a FSL kernel and also a mainline kernel.
Reported-by: Otavio Salvador <[email protected]>
Signed-off-by: Fabio Estevam <[email protected]>
Acked-by: Otavio Salvador <[email protected]>
|
|
CONFIG_SPI_FLASH_CS is not used anywhere.
Use CONFIG_SF_DEFAULT_CS instead.
Signed-off-by: Fabio Estevam <[email protected]>
Acked-by: Marek Vasut <[email protected]>
Acked-by: Stefano Babic <[email protected]>
|
|
Provide default values for SPI bus and chip select.
This allows the command "sf probe" to work without passing SPI bus and chip
select numbers as arguments.
Signed-off-by: Fabio Estevam <[email protected]>
Acked-by: Marek Vasut <[email protected]>
|
|
Add proper IO accessors for mx6 usb registers.
Signed-off-by: Fabio Estevam <[email protected]>
Acked-by: Stefano Babic <[email protected]>
Acked-by: Marek Vasut <[email protected]>
Acked-by: Jason Liu <[email protected]>
|
|
Instead of hardcoding the mx6 silicon revision, read it in run-time.
Also, besides the silicon version print the mx6 variant type: quad,dual/solo
or solo-lite.
Tested on a mx6qsabrelite, where it shows:
CPU: Freescale i.MX6Q rev1.0 at 792 MHz
Signed-off-by: Fabio Estevam <[email protected]>
Acked-by: Stefano Babic <[email protected]>
Acked-by: Jason Liu <[email protected]>
|
|
Instead of compiling the function and using the result as a constant, simply use
the constant.
NOTE: This patch works around bug:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52546
Signed-off-by: Marek Vasut <[email protected]>
Cc: Stefano Babic <[email protected]>
Cc: Tom Rini <[email protected]>
|
|
Instead of returning -1, it is preferred to return -ETIMEDOUT in case of timeouts.
Signed-off-by: Fabio Estevam <[email protected]>
Acked-by: Marek Vasut <[email protected]>
|
|
Cut down the VDDIO/VDDA regulator stabilization delays to 500 uS. That should be
enough according to the datasheet and bootlets.
Signed-off-by: Marek Vasut <[email protected]>
Cc: Wolfgang Denk <[email protected]>
Cc: Detlev Zundel <[email protected]>
Cc: Stefano Babic <[email protected]>
Cc: Robert Deliën <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Matthias Fuchs <[email protected]>
|
|
Return error in case of invalid pmic_i2c_tx_num.
Signed-off-by: Fabio Estevam <[email protected]>
Acked-by: Marek Vasut <[email protected]>
Acked-by: Lukasz Majewski <[email protected]>
Acked-by: Stefano Babic <[email protected]>
|
|
Remove duplicate definition of ANATOP_BASE_ADDR.
Signed-off-by: Fabio Estevam <[email protected]>
|
|
After booting mx6qsabrelite from POR the following is reported:
CPU: Freescale i.MX61 family rev1.0 at 792 MHz
Reset cause: unknown reset
This is because both the POR and WDOG bits are set after reset.
Fix this by also checking both bits in the POR case.
Signed-off-by: Fabio Estevam <[email protected]>
|
|
Allow non-dt kernels to boot
Signed-off-by: Troy Kisky <[email protected]>
|
|
This is needed to support Freescale-supplied userspaces.
At the moment, both the IPU and VPU libraries provided by Freescale
in the "imx-lib" package contain routines which scrape the system
revision from /proc/cpuinfo. In the VPU library, this information is
used to load the proper firmware, allowing a single binary to be used
across various i.MX processors.
Signed-off-by: Eric Nelson <[email protected]>
Acked-by: Marek Vasut <[email protected]>
Acked-by: Stefano Babic <[email protected]>
|
|
Enables all fourteen address lines for DRAM
Signed-off-by: Marek Vasut <[email protected]>
Acked-by: Marek Vasut <[email protected]>
Tested-by: Marek Vasut <[email protected]>
|
|
for environment
Signed-off-by: Eric Nelson <[email protected]>
|
|
Add missing reset reason 7 to get_reset_cause().
Signed-off-by: Helmut Raiger <[email protected]>
|
|
CONFIG_SYS_MEMTEST_END should be higher than CONFIG_SYS_MEMTEST_START.
Signed-off-by: Fabio Estevam <[email protected]>
|
|
CONFIG_SYS_MEMTEST_END should be higher than CONFIG_SYS_MEMTEST_START.
Cc: Marek Vasut <[email protected]>
Signed-off-by: Fabio Estevam <[email protected]>
Acked-by: Marek Vasut <[email protected]>
Tested-by: Marek Vasut <[email protected]>
|
|
CONFIG_SYS_MEMTEST_END should be higher than CONFIG_SYS_MEMTEST_START.
Signed-off-by: Fabio Estevam <[email protected]>
|
|
CONFIG_SYS_MEMTEST_END should be higher than CONFIG_SYS_MEMTEST_START.
Cc: Jason Liu <[email protected]>
Signed-off-by: Fabio Estevam <[email protected]>
|
|
CONFIG_SYS_MEMTEST_END should be higher than CONFIG_SYS_MEMTEST_START.
Signed-off-by: Fabio Estevam <[email protected]>
|
|
Current Ubuntu releases from Freescale contain a boot script in ext3 filesystem.
Signed-off-by: Eric Nelson <[email protected]>
|
|
The flash header supports different flash offsets for different
boot devices. E.g. parallel NOR or OneNAND use a different offset
than FLASH_OFFSET_STANDARD (== 0x400).
The flash offset is correctly read from the configuration in
parse_cfg_cmd(). But is then overwritten wrongly in set_imx_hdr_v1/2().
Fix this by removing this overwriting. Use the flash offset
correctly read from the configuration, instead.
If there is no flash_offset read from the configuration file, i.e.
the BOOT_FROM tag is missing, exit with an error message.
Signed-off-by: Dirk Behme <[email protected]>
CC: Jason Liu <[email protected]>
CC: Stefano Babic <[email protected]>
Tested-by: Stefano Babic <[email protected]>
|
|
The GPIO_INT_ACT_LOW_SET was incorrectly handling interrupt lines higher than 7.
This is due to the fact that there are two registers for total of 16 lines.
Signed-off-by: Marek Vasut <[email protected]>
Cc: Bryan Hundven <[email protected]>
Cc: Michael Schwingen <[email protected]>
|
|
nand.c: In function ‘pdnb3_nand_read_buf’:
nand.c:107:4: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
nand.c: In function ‘pdnb3_nand_dev_ready’:
nand.c:124:18: warning: variable ‘val’ set but not used [-Wunused-but-set-variable]
Remove the 4-byte-at-time read mode altogether, the most is bogus and will
likely cause unaligned accesses.
Signed-off-by: Marek Vasut <[email protected]>
Cc: Bryan Hundven <[email protected]>
Cc: Michael Schwingen <[email protected]>
|
|
Signed-off-by: Marek Vasut <[email protected]>
Cc: Bryan Hundven <[email protected]>
Cc: Michael Schwingen <[email protected]>
|
|
IxEthAcc.c: In function ‘ixEthAccInit’:
IxEthAcc.c:105:21: warning: comparison between ‘IxEthDBStatus’ and ‘enum <anonymous>’ [-Wenum-compare]
IxEthDBAPISupport.c: In function ‘ixEthDBPortAddressSet’:
IxEthDBAPISupport.c:633:18: warning: variable ‘ackPortAddressLock’ set but not used [-Wunused-but-set-variable]
IxQMgrDispatcher.c: In function ‘ixQMgrLLPShow’:
IxQMgrDispatcher.c:1194:18: warning: variable ‘q’ set but not used [-Wunused-but-set-variable]
Signed-off-by: Marek Vasut <[email protected]>
Cc: Bryan Hundven <[email protected]>
Cc: Michael Schwingen <[email protected]>
|
|
These symbols are no longer defined in Linux-ARM's mach-types files. Replace
these with CONFIG_MACH_TYPE instead.
Signed-off-by: Marek Vasut <[email protected]>
Cc: Bryan Hundven <[email protected]>
Cc: Michael Schwingen <[email protected]>
|
|
Add -EB flag to LD to switch endianness of the linker. This should make armeb
targets buildable again. Also, make use of U-Boot's internal libgcc instead of
toolchain's one, this works around the use of libraries from GCC, which might be
little endian.
Signed-off-by: Marek Vasut <[email protected]>
Cc: Bryan Hundven <[email protected]>
Cc: Michael Schwingen <[email protected]>
|
|
The LD command in examples/standalone/Makefile ignored platform specific
LDFLAGS setup. Pass these LDFLAGS to the command.
Signed-off-by: Marek Vasut <[email protected]>
Cc: Bryan Hundven <[email protected]>
Cc: Michael Schwingen <[email protected]>
|
|
Cc: Chandan Nath <[email protected]>
Tested-by: Tom Rini <[email protected]>
Signed-off-by: Matt Porter <[email protected]>
|