pandora-u-boot.git
8 years agotry to reduce boot vs root partition confusion letux-extensions-v2016.07
notaz [Sun, 14 Aug 2016 16:01:33 +0000 (19:01 +0300)]
try to reduce boot vs root partition confusion

8 years agoPyra/LC15: v2016.07 requires more config
notaz [Sun, 14 Aug 2016 14:13:19 +0000 (17:13 +0300)]
Pyra/LC15: v2016.07 requires more config

settings taken from omap5_uevm_defconfig

8 years agoPyra: increase bq24297 input current limit only if we boot without battery; simplify...
H. Nikolaus Schaller [Wed, 13 Apr 2016 19:22:07 +0000 (21:22 +0200)]
Pyra: increase bq24297 input current limit only if we boot without battery; simplify bq24 code

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoPyra: debug print tca6424 registers before and after initialization (can be reverted...
H. Nikolaus Schaller [Thu, 7 Apr 2016 17:42:59 +0000 (19:42 +0200)]
Pyra: debug print tca6424 registers before and after initialization (can be reverted later)

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoPyra: print bq24297 current limit value
H. Nikolaus Schaller [Thu, 7 Apr 2016 17:41:59 +0000 (19:41 +0200)]
Pyra: print bq24297 current limit value

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoPyra: properly initialize tca6424 (differently from OMAP5432EVM)
H. Nikolaus Schaller [Thu, 7 Apr 2016 17:41:27 +0000 (19:41 +0200)]
Pyra: properly initialize tca6424 (differently from OMAP5432EVM)

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoPyra: activate peripheral reset to bring tca6424 and is31fl96 into defined state
H. Nikolaus Schaller [Thu, 7 Apr 2016 17:40:17 +0000 (19:40 +0200)]
Pyra: activate peripheral reset to bring tca6424 and is31fl96 into defined state

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoPyra: turn on keyboard backlight by MLO/SPL for quick feedback
H. Nikolaus Schaller [Thu, 7 Apr 2016 17:38:23 +0000 (19:38 +0200)]
Pyra: turn on keyboard backlight by MLO/SPL for quick feedback

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoLC15: add board revision detection and control of (new) eMMC/uSD switch
H. Nikolaus Schaller [Sun, 13 Mar 2016 09:05:17 +0000 (10:05 +0100)]
LC15: add board revision detection and control of (new) eMMC/uSD switch

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoLC15+Pyra: fix reset GPIO for HSIC3 client
H. Nikolaus Schaller [Wed, 3 Feb 2016 19:40:13 +0000 (20:40 +0100)]
LC15+Pyra: fix reset GPIO for HSIC3 client

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoomap_hsmmc: print and abort if mmc controller reports other error/status
H. Nikolaus Schaller [Fri, 29 Jan 2016 17:48:48 +0000 (18:48 +0100)]
omap_hsmmc: print and abort if mmc controller reports other error/status

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agodefault env: renamed test scripts and added one for testi2c
H. Nikolaus Schaller [Fri, 29 Jan 2016 17:49:32 +0000 (18:49 +0100)]
default env: renamed test scripts and added one for testi2c

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoomap_hsmmc: print and abort if mmc controller reports other error/status
H. Nikolaus Schaller [Fri, 29 Jan 2016 17:48:48 +0000 (18:48 +0100)]
omap_hsmmc: print and abort if mmc controller reports other error/status

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoLC15+Pyra: fix pinmux for gpio3_80
H. Nikolaus Schaller [Fri, 29 Jan 2016 17:48:19 +0000 (18:48 +0100)]
LC15+Pyra: fix pinmux for gpio3_80

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoPyra/Palmas: remove special code to print interrupt and watchdog status registers...
H. Nikolaus Schaller [Wed, 27 Jan 2016 19:17:19 +0000 (20:17 +0100)]
Pyra/Palmas: remove special code to print interrupt and watchdog status registers (no longer needed - they are ok after boot)

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoPyra: use inherited set_muxconf_regs_essential and overwrite only changes incl. perip...
H. Nikolaus Schaller [Wed, 27 Jan 2016 19:14:11 +0000 (20:14 +0100)]
Pyra: use inherited set_muxconf_regs_essential and overwrite only changes incl. peripheral reset and usb hub reset

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoLC15: enable clocks and define driver instances for MMC3 and MMC4
H. Nikolaus Schaller [Wed, 27 Jan 2016 19:13:12 +0000 (20:13 +0100)]
LC15: enable clocks and define driver instances for MMC3 and MMC4

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoOMAP5: remove automatic mtest and define 1.5 GByte mtest default range
H. Nikolaus Schaller [Wed, 27 Jan 2016 19:12:15 +0000 (20:12 +0100)]
OMAP5: remove automatic mtest and define 1.5 GByte mtest default range

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoPyra: turn on LDO2 for VMMC for the SDIO4 (right SD card) slot
H. Nikolaus Schaller [Wed, 27 Jan 2016 19:11:23 +0000 (20:11 +0100)]
Pyra: turn on LDO2 for VMMC for the SDIO4 (right SD card) slot

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoomap hsmmc: define base_addr for HSMMC4 and HSMMC5
H. Nikolaus Schaller [Wed, 27 Jan 2016 19:10:31 +0000 (20:10 +0100)]
omap hsmmc: define base_addr for HSMMC4 and HSMMC5

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoOMAP5: define HSMMC4 and HSMMC5 base
H. Nikolaus Schaller [Wed, 27 Jan 2016 19:09:41 +0000 (20:09 +0100)]
OMAP5: define HSMMC4 and HSMMC5 base

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoPyra: print interrupt and watchdog registers to analyse the palmas initialization
H. Nikolaus Schaller [Wed, 27 Jan 2016 14:13:45 +0000 (15:13 +0100)]
Pyra: print interrupt and watchdog registers to analyse the palmas initialization

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoPyra: disable b2429x watchdog timer or the board will shut down ~30 seconds after...
H. Nikolaus Schaller [Wed, 27 Jan 2016 14:12:44 +0000 (15:12 +0100)]
Pyra: disable b2429x watchdog timer or the board will shut down ~30 seconds after U-Boot did start

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoenable mtest command for OMAP5432EVM
H. Nikolaus Schaller [Wed, 27 Jan 2016 10:15:40 +0000 (11:15 +0100)]
enable mtest command for OMAP5432EVM

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoadd tca642x commands and enable mtest command
H. Nikolaus Schaller [Mon, 25 Jan 2016 15:13:57 +0000 (16:13 +0100)]
add tca642x commands and enable mtest command

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agofix config_cmd_tca642x
H. Nikolaus Schaller [Mon, 25 Jan 2016 15:13:30 +0000 (16:13 +0100)]
fix config_cmd_tca642x

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoadd paramters for mtest command and run mtest before booting
H. Nikolaus Schaller [Mon, 25 Jan 2016 15:13:03 +0000 (16:13 +0100)]
add paramters for mtest command and run mtest before booting

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agofix boot directory
H. Nikolaus Schaller [Mon, 25 Jan 2016 15:10:47 +0000 (16:10 +0100)]
fix boot directory

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoLC15: fix for #ifndef structure
H. Nikolaus Schaller [Wed, 20 Jan 2016 14:05:31 +0000 (15:05 +0100)]
LC15: fix for #ifndef structure

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoBoot Scripts: all boot scripts replaced by uEnv.txt setup
H. Nikolaus Schaller [Wed, 20 Jan 2016 11:06:13 +0000 (12:06 +0100)]
Boot Scripts: all boot scripts replaced by uEnv.txt setup

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoPyra: take IINLIM code from Linux driver
H. Nikolaus Schaller [Wed, 20 Jan 2016 11:05:34 +0000 (12:05 +0100)]
Pyra: take IINLIM code from Linux driver

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoFix bootcmd and some initialization in ti_omap5_common so that we don't need a boot...
H. Nikolaus Schaller [Wed, 20 Jan 2016 11:01:57 +0000 (12:01 +0100)]
Fix bootcmd and some initialization in ti_omap5_common so that we don't need a boot.scr any more

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoPyra+LC15: remove some debugging printf()
H. Nikolaus Schaller [Sun, 10 Jan 2016 17:54:59 +0000 (18:54 +0100)]
Pyra+LC15: remove some debugging printf()

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoLC15: fix pinmux address for gpio1_wk7
H. Nikolaus Schaller [Sat, 9 Jan 2016 19:42:49 +0000 (20:42 +0100)]
LC15: fix pinmux address for gpio1_wk7

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoPyra+LC15: fix writing bq24297 registers
H. Nikolaus Schaller [Sat, 9 Jan 2016 19:42:24 +0000 (20:42 +0100)]
Pyra+LC15: fix writing bq24297 registers

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoPyra+LC15: move bq24297 initialization to U-Boot where all I2C busses are working
H. Nikolaus Schaller [Sat, 9 Jan 2016 19:08:57 +0000 (20:08 +0100)]
Pyra+LC15: move bq24297 initialization to U-Boot where all I2C busses are working

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoPyra+LC15: tried to hack bq24297 driver into SPL (hangs: I2C2 does not initialize)
H. Nikolaus Schaller [Sat, 9 Jan 2016 18:58:05 +0000 (19:58 +0100)]
Pyra+LC15: tried to hack bq24297 driver into SPL (hangs: I2C2 does not initialize)

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoLC15: preliminary code for boot switch (not tested)
H. Nikolaus Schaller [Sat, 9 Jan 2016 18:56:59 +0000 (19:56 +0100)]
LC15: preliminary code for boot switch (not tested)

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoPyra+LC15: add hook where we can increase the bq24297 current limit beyond 500mA
H. Nikolaus Schaller [Sat, 9 Jan 2016 15:01:21 +0000 (16:01 +0100)]
Pyra+LC15: add hook where we can increase the bq24297 current limit beyond 500mA

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoLetux Cortex 15: define third MMC and prepare for uSD/eMMC switch control
H. Nikolaus Schaller [Sat, 9 Jan 2016 15:00:29 +0000 (16:00 +0100)]
Letux Cortex 15: define third MMC and prepare for uSD/eMMC switch control

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoPyra: code cleanup for the Pyra specific pinmux settings
H. Nikolaus Schaller [Sat, 9 Jan 2016 14:58:22 +0000 (15:58 +0100)]
Pyra: code cleanup for the Pyra specific pinmux settings

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoPyra/LC15: unset CONFIG_SYS_MALLOC_CLEAR_ON_INIT because the memset(..., 16M) call...
H. Nikolaus Schaller [Sat, 9 Jan 2016 14:57:01 +0000 (15:57 +0100)]
Pyra/LC15: unset CONFIG_SYS_MALLOC_CLEAR_ON_INIT because the memset(..., 16M) call in malloc init increases power consumption of OMAP5+DDR3 beyond what the bq24297 wants to supply and makes the Palmas shut down

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoLC15 and Pyra+LC15: show different Board: message by u-boot
H. Nikolaus Schaller [Tue, 5 Jan 2016 12:08:21 +0000 (13:08 +0100)]
LC15 and Pyra+LC15: show different Board: message by u-boot

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoLetux: bootscr: fixed boot scripts for OMAP5EVM and Pyra
H. Nikolaus Schaller [Wed, 23 Dec 2015 12:43:38 +0000 (13:43 +0100)]
Letux: bootscr: fixed boot scripts for OMAP5EVM and Pyra

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoLC15: don't try mmc0/1 if loadbootscript succeeded; don't store environment in eMMC
H. Nikolaus Schaller [Sat, 19 Dec 2015 14:41:58 +0000 (15:41 +0100)]
LC15: don't try mmc0/1 if loadbootscript succeeded; don't store environment in eMMC

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoboot.scr: more fixes for all OMAP5 devices
H. Nikolaus Schaller [Sat, 19 Dec 2015 14:40:43 +0000 (15:40 +0100)]
boot.scr: more fixes for all OMAP5 devices

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoLetux: added more bootscript variants
H. Nikolaus Schaller [Tue, 15 Dec 2015 06:57:43 +0000 (07:57 +0100)]
Letux: added more bootscript variants

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoPyra+LC15: use latest LC15 config and adjust where needed
H. Nikolaus Schaller [Sat, 12 Dec 2015 21:58:29 +0000 (22:58 +0100)]
Pyra+LC15: use latest LC15 config and adjust where needed

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoLC15: fix config and default boot script so that we can use a boot.scr
H. Nikolaus Schaller [Sat, 12 Dec 2015 21:57:51 +0000 (22:57 +0100)]
LC15: fix config and default boot script so that we can use a boot.scr

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoboot-scr: adjust names to what the default boot script for omap5 is using
H. Nikolaus Schaller [Sat, 12 Dec 2015 21:57:00 +0000 (22:57 +0100)]
boot-scr: adjust names to what the default boot script for omap5 is using

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoomap5_uevm: don't call tca642x_set_inital_state() if CONFIG_TCA642X is not configured
H. Nikolaus Schaller [Sat, 12 Dec 2015 21:56:15 +0000 (22:56 +0100)]
omap5_uevm: don't call tca642x_set_inital_state() if CONFIG_TCA642X is not configured

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoadd Pyra config and board file and make it include the goldelico/letux-cortex15 code
H. Nikolaus Schaller [Sat, 12 Dec 2015 14:31:29 +0000 (15:31 +0100)]
add Pyra config and board file and make it include the goldelico/letux-cortex15 code

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoadd Letux Cortex 15 config and board file and make it include the ti/omap5_evm code
H. Nikolaus Schaller [Sat, 12 Dec 2015 14:30:08 +0000 (15:30 +0100)]
add Letux Cortex 15 config and board file and make it include the ti/omap5_evm code

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoadd boot script for letux cortex 15 board + pyra mainboard
H. Nikolaus Schaller [Fri, 11 Dec 2015 13:37:45 +0000 (14:37 +0100)]
add boot script for letux cortex 15 board + pyra mainboard

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoadd bootscript source for omap5-uevm
H. Nikolaus Schaller [Sun, 25 Oct 2015 16:43:20 +0000 (17:43 +0100)]
add bootscript source for omap5-uevm

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoadd boot script for letux cortex 15 board
H. Nikolaus Schaller [Sun, 13 Sep 2015 08:04:49 +0000 (10:04 +0200)]
add boot script for letux cortex 15 board

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoadded pyra and lc15 defconfig
H. Nikolaus Schaller [Thu, 10 Dec 2015 18:02:09 +0000 (19:02 +0100)]
added pyra and lc15 defconfig

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
8 years agoPrepare v2016.07 v2016.07
Tom Rini [Mon, 11 Jul 2016 19:01:01 +0000 (15:01 -0400)]
Prepare v2016.07

Signed-off-by: Tom Rini <trini@konsulko.com>
8 years agodoc: ARMv8: add README.pine64
Andre Przywara [Fri, 8 Jul 2016 14:25:23 +0000 (15:25 +0100)]
doc: ARMv8: add README.pine64

Since we lack information about the DRAM initialization for the
Allwinner A64 SoC, booting any A64 based board like the Pine64 is a bit
involved at the moment.
Add a README file to explain the process.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
[trini: Move to board/sunxi/ from doc/]
Signed-off-by: Tom Rini <trini@konsulko.com>
8 years agomkimage -l is broken for images after gpimage
Stefano Babic [Mon, 11 Jul 2016 14:09:48 +0000 (16:09 +0200)]
mkimage -l is broken for images after gpimage

Because a gpimage cannot be detected, a false
GP header is printed instead of checking
for further image types.

Move gpimage as last to be linked, letting check
all other image types and printing a GP header just
in case no image is detected.

Signed-off-by: Stefano Babic <sbabic@denx.de>
8 years agogit-mailrc: add rockchip alias
jk.kernel@gmail.com [Sat, 9 Jul 2016 13:12:04 +0000 (21:12 +0800)]
git-mailrc: add rockchip alias

It's easier to Cc rockchip maintainers on rockchip-releated patches.

Signed-off-by: jk <jk.kernel@gmail.com>
8 years agoarmv8: Enable CPUECTLR.SMPEN for coherency
Mingkai Hu [Thu, 7 Jul 2016 04:22:12 +0000 (12:22 +0800)]
armv8: Enable CPUECTLR.SMPEN for coherency

For A53, data coherency is enabled only when the CPUECTLR.SMPEN bit is
set. The SMPEN bit should be set before enabling the data cache.
If not enabled, the cache is not coherent with other cores and
data corruption could occur.

For A57/A72, SMPEN bit enables the processor to receive instruction
cache and TLB maintenance operations broadcast from other processors
in the cluster. This bit should be set before enabling the caches and
MMU, or performing any cache and TLB maintenance operations.

Signed-off-by: Mingkai Hu <mingkai.hu@nxp.com>
Signed-off-by: Gong Qianyu <Qianyu.Gong@nxp.com>
Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
8 years agotest/py: support 'memstart =' in u_boot_utils.find_ram_base()
Daniel Schwierzeck [Wed, 6 Jul 2016 10:44:22 +0000 (12:44 +0200)]
test/py: support 'memstart =' in u_boot_utils.find_ram_base()

Some archs like MIPS or PPC have a different 'bdinfo' output
than ARM regarding the memory configuration. Also support
'memstart = 0x*' in u_boot_utils.find_ram_base() to make
all tests requiring the RAM base working on those archs.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
8 years agotest/py: strip VT100 codes from match buffer
Stephen Warren [Wed, 6 Jul 2016 16:34:30 +0000 (10:34 -0600)]
test/py: strip VT100 codes from match buffer

Prior to this patch, any VT100 codes emitted by U-Boot are considered part
of a command's output, which often causes tests to fail. For example,
test_env_echo_exists executes printenv, and then considers any text on a
line before an = sign as a valid U-Boot environment variable name. This
includes any VT100 codes emitted. When the test later attempts to use that
variable, the name would be invalid since it includes the VT100 codes.
Solve this by stripping VT100 codes from the match buffer, so they are
never seen by higher level test code.

The codes are still logged unmodified, so that users can expect U-Boot's
exact output without interference. This does clutter the log file a bit.
However, it allows users to see exactly what U-Boot emitted rather than a
modified version, which hopefully is better for debugging. It's also much
simpler to implement, since logging happens as soon as text is received,
and so stripping the VT100 codes from the log would require handling
reception and stripping of partial VT100 codes.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
8 years agoarm: Fix setjmp (again)
Alexander Graf [Tue, 5 Jul 2016 18:37:17 +0000 (20:37 +0200)]
arm: Fix setjmp (again)

Commit e677724 (arm: Fix setjmp) added code to fix compilation of the setjmp
code path with thumv1. Unfortunately it missed a constraint that the adr
instruction can only refer to 4 byte aligned offsets.

So this patch adds the required alignment hooks to make compilation
work again even when setjmp doesn't happen to be 4 byte aligned.

Signed-off-by: Alexander Graf <agraf@suse.de>
Tested-by: Tom Rini <trini@konsulko.com>
8 years agoSPL: tiny-printf: avoid any BSS usage
Andre Przywara [Fri, 8 Jul 2016 14:18:35 +0000 (15:18 +0100)]
SPL: tiny-printf: avoid any BSS usage

As printf calls may be executed quite early, we should avoid using any
BSS stored variables, since some boards put BSS in DRAM, which may not
have been initialised yet.
Explicitly mark those "static global" variables as belonging to the
.data section, to keep tiny-printf clear of any BSS usage.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
8 years agotest/py: fix CONFIG_ tests
Stephen Warren [Wed, 6 Jul 2016 15:04:08 +0000 (09:04 -0600)]
test/py: fix CONFIG_ tests

Some CONFIG_ variables were recently renamed, but test/py wasn't updated
to match. This causes some tests to be skipped. Fix test/py so the tests
are run.

Fixes: 11636258981a ("Rename reset to sysreset")
Fixes: f1f9d4fac527 ("hush: complete renaming CONFIG_SYS_HUSH_PARSER to CONFIG_HUSH_PARSER")
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
8 years agommc: msm_sdhci: Set mmc->dev pointer in msm_sdc_probe()
Mateusz Kulikowski [Sun, 26 Jun 2016 20:43:55 +0000 (22:43 +0200)]
mmc: msm_sdhci: Set mmc->dev pointer in msm_sdc_probe()

MMC core expects (now) valid mmc->dev pointer.
During conversion in commit cffe5d86 not every driver was updated.

This patch fixes crash while accessing MMC on
boards using Qualcomm SDHCI controller.

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
8 years agoMerge branch 'master' of git://git.denx.de/u-boot-usb
Tom Rini [Thu, 7 Jul 2016 13:58:41 +0000 (09:58 -0400)]
Merge branch 'master' of git://git.denx.de/u-boot-usb

8 years agopowerpc: mpc85xx: kmp204x: Fix compiling error for usb errata
York Sun [Wed, 6 Jul 2016 23:39:51 +0000 (16:39 -0700)]
powerpc: mpc85xx: kmp204x: Fix compiling error for usb errata

Commit 9262367 moves USB errata workaround into a C file. This
causes compiling error for kmcoge4 and kmlion1. To enable the
errata workaround, define CONFIG_USB_EHCI_FSL in common header.

Signed-off-by: York Sun <york.sun@nxp.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Ed Swarthout <Ed.Swarthout@nxp.com>
Cc: Sriram Dash <sriram.dash@nxp.com>
Fixes: 92623672f9d3 ("fsl: usb: make errata function common for PPC and ARM")

8 years agoMerge branch 'master' of git://git.denx.de/u-boot-tegra
Tom Rini [Wed, 6 Jul 2016 19:55:36 +0000 (15:55 -0400)]
Merge branch 'master' of git://git.denx.de/u-boot-tegra

8 years agoMerge branch 'master' of git://git.denx.de/u-boot-net
Tom Rini [Wed, 6 Jul 2016 19:55:21 +0000 (15:55 -0400)]
Merge branch 'master' of git://git.denx.de/u-boot-net

8 years agonet: rtl8169: Fix return value for rtl_send_common
Oleksandr Tymoshenko [Fri, 1 Jul 2016 20:22:00 +0000 (13:22 -0700)]
net: rtl8169: Fix return value for rtl_send_common

Return value of rtl_send_common propogates unmodified all the way
up to eth_send and further to API consumer if CONFIG_API is enabled.
Previously rtl_send_common returned number of bytes sent on success
which was erroneouly detected as error condition by API consumers
that checked for operation success by comparing return value with 0.

Switch rtl_send_common to use common convention: return 0 on success
and negative value for failure.

Cc: Stephen Warren <swarren@nvidia.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Signed-off-by: Oleksandr Tymoshenko <gonzo@bluezbox.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
8 years agonet: Fix incorrect RPC packets on 64-bit systems
Ralf Hubert [Fri, 1 Jul 2016 11:19:51 +0000 (13:19 +0200)]
net: Fix incorrect RPC packets on 64-bit systems

This patch fixes incorrect RPC packet layout caused by
'long' type size difference on 64 and 32-bit architectures.

Signed-off-by: Ralf Hubert <r.hubert@technisat.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
8 years agodriver: net: phylib: add support for aquantia AQR106/107 PHY
Mingkai Hu [Fri, 1 Jul 2016 11:03:23 +0000 (19:03 +0800)]
driver: net: phylib: add support for aquantia AQR106/107 PHY

This patch adds support for aquantia AQR106/107 PHY.

Signed-off-by: Mingkai Hu <mingkai.hu@nxp.com>
Signed-off-by: Gong Qianyu <Qianyu.Gong@nxp.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
8 years agonet: designware: Make driver independent from DM_GPIO again
Alexey Brodkin [Mon, 27 Jun 2016 10:17:51 +0000 (13:17 +0300)]
net: designware: Make driver independent from DM_GPIO again

Commit 90b7fc924adf "net: designware: support phy reset device-tree
bindings" made DW GMAC driver dependent on DM_GPIO by unconditional
usage of purely DM_GPIO stuff like:
 * dm_gpio_XXX()
 * gpio_request_by_name()

But since that driver as of today might be easily used without
DM_GPIO (that's the case for Synopsys AXS10x boards) we're
shielding all DM_GPIO things by ifdefs.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Beniamino Galvani <b.galvani@gmail.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Cc: Sonic Zhang <sonic.zhang@analog.com>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Marek Vasut <marex@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
8 years agocommon: Always include errno.h in common.h
Joe Hershberger [Mon, 4 Apr 2016 09:07:33 +0000 (04:07 -0500)]
common: Always include errno.h in common.h

We want people using errnos for errors instead of -1, so make it easy
by always including the definition of all the errnos.

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
8 years agofdt: Drop some unused compatible strings
Simon Glass [Sun, 8 May 2016 22:55:22 +0000 (16:55 -0600)]
fdt: Drop some unused compatible strings

We have driver-model drivers for some of these now, so drop them.
Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
8 years agotegra: video: Always use write-through cache on LCD
Simon Glass [Sun, 8 May 2016 22:55:21 +0000 (16:55 -0600)]
tegra: video: Always use write-through cache on LCD

This seems to give the best performance, so let's use it always.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
8 years agovideo: tegra: Move to using simple-panel and pwm-backlight
Simon Glass [Sun, 8 May 2016 22:55:20 +0000 (16:55 -0600)]
video: tegra: Move to using simple-panel and pwm-backlight

We have standard drivers for panels and backlights which can do most of the
work for us. Move the tegra20 LCD driver over to use those instead of custom
code.

This patch includes device tree changes for the nvidia boards. I have only
been able to test seaboard. If this patch is applied, these boards will
also need to be synced with the kernel, and updated to use display-timings:

   - colibri
   - medcom-wide
   - paz00
   - tec

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
8 years agotegra: dts: Sync tegra20 device tree files with Linux
Simon Glass [Sun, 8 May 2016 22:55:19 +0000 (16:55 -0600)]
tegra: dts: Sync tegra20 device tree files with Linux

Sync everything except the display panel, which will come in a future patch.
One USB port is left disabled since we don't want to support it in U-Boot.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
8 years agoerrno: Allow errno_str() to be used without CONFIG_ERRNO_STR
Simon Glass [Sun, 8 May 2016 22:55:18 +0000 (16:55 -0600)]
errno: Allow errno_str() to be used without CONFIG_ERRNO_STR

The pmic framework uses errno_str() and this requires board that use it to
enable CONFIG_ERRNO_STR to avoid a build error. Update the header to provide
a NULL error message when CONFIG_ERRNO_STR is not defined, and fix the build
error.

This will show as "(null)" when U-Boot prints it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
8 years agoerrno: Add copyright header and header guard
Simon Glass [Sun, 8 May 2016 22:55:17 +0000 (16:55 -0600)]
errno: Add copyright header and header guard

Bring in a copyright for this file from cmd/pmic.c since this file was
submitted by the same author at around the same time. Also fix the missing
header guard.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
8 years agopci: tegra: actually program REFCLK_CFG* on recent SoCs
Stephen Warren [Fri, 24 Jun 2016 14:36:04 +0000 (08:36 -0600)]
pci: tegra: actually program REFCLK_CFG* on recent SoCs

On recent SoCs, tegra_pcie_phy_enable() isn't called; but instead
tegra_pcie_enable_controller() calls tegra_xusb_phy_enable(). However,
part of tegra_pcie_phy_enable() needs to happen in all cases. Move that
code to tegra_pcie_port_enable() instead.

For reference, NVIDIA's downstream Linux kernel performs this operation
in tegra_pcie_enable_rp_features(), which is called immediately after
tegra_pcie_port_enable(). Since that function doesn't exist in the U-Boot
driver, we'll just add it to the tail of tegra_pcie_port_enable() instead.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
8 years agopci: tegra: correctly program PADS_REFCLK registers
Stephen Warren [Tue, 21 Jun 2016 18:47:51 +0000 (12:47 -0600)]
pci: tegra: correctly program PADS_REFCLK registers

The value that should be programmed into the PADS_REFCLK register varies
per SoC. Fix the Tegra PCIe driver to program the correct values. Future
SoCs will require different values in cfg0/1, so the two values are stored
separately in the per-SoC data structures.

For reference, the values are all documented in NV bug 1771116 comment 20.
The Tegra210 value doesn't match the current TRM, but I've filed a bug to
get the TRM fixed. Earlier TRMs don't document the value this register
should contain, but the ASIC team has validated all these values, except
for the Tegra20 value which is simply left unchanged in this patch.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
8 years agorockchip: video: Lower hpd wait time
Sjoerd Simons [Sun, 28 Feb 2016 21:40:02 +0000 (22:40 +0100)]
rockchip: video: Lower hpd wait time

Waiting 30 seconds for the hpd to go high seems a bit much, especially
on headless boots. Lowering the timeout to 300ms.

Sending as RFC because frankly i don't know what a sensible timeout is
here, but 30 seconds is clearly not it :)

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Reviewed-by: Simon Glass <sjg@chromium.org>
Dropped RFC tag:
Signed-off-by: Simon Glass <sjg@chromium.org>
8 years agopowerpc: mpc85xx: Do not build errata command in SPL
Marek Vasut [Tue, 5 Jul 2016 15:40:27 +0000 (17:40 +0200)]
powerpc: mpc85xx: Do not build errata command in SPL

The errata command is useless in SPL, so don't build it. This fixes
multiple build failures on PowerPC.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: York Sun <york.sun@nxp.com>
Fixes: 92623672f9d3 ("fsl: usb: make errata function common for PPC and ARM")

8 years agousb: dm: Make "usb info" use usb_for_each_root_dev()
Hans de Goede [Sun, 3 Jul 2016 18:22:05 +0000 (20:22 +0200)]
usb: dm: Make "usb info" use usb_for_each_root_dev()

The old dm "usb info" implementation has several issues:

1) NULL pointer deref when a bus has no children
2) Not showing usb devices on busses without an emulated root-hub (otg host)
3) Attempting to show devices on inactive busses
4) "usb info" Would cause some hosts to get re-probed something which only
   "usb reset" should do

TL;DR: proper iterating over usb bus root devs is hard, use the helper
for it.

Reported-by: Bernhard Nortmann <bernhard.nortmann@web.de>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
8 years agousb: dm: Add a usb_for_each_root_dev() helper function
Hans de Goede [Sun, 3 Jul 2016 18:22:04 +0000 (20:22 +0200)]
usb: dm: Add a usb_for_each_root_dev() helper function

Iterating over usb-root devs and doing something for all of them is
a bit tricky with dm, factor out the proven usb_show_tree() for this
into a helper function.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
8 years agoMerge git://git.denx.de/u-boot-arc
Tom Rini [Mon, 4 Jul 2016 15:46:21 +0000 (11:46 -0400)]
Merge git://git.denx.de/u-boot-arc

8 years agoarc: make global_data.h usable in assembly files
Alexey Brodkin [Mon, 4 Jul 2016 08:37:55 +0000 (11:37 +0300)]
arc: make global_data.h usable in assembly files

Currently on attempt to use global_data.h in an assembly file following
will happen:
-------------------->8-----------------
./arch/arc/include/asm/global_data.h: Assembler messages:
./arch/arc/include/asm/global_data.h:11: Error: bad instruction 'struct arch_global_data{'
./arch/arc/include/asm/global_data.h:12: Error: junk at end of line, first unrecognized character is `}'
scripts/Makefile.build:316: recipe for target 'arch/arc/lib/start.o' failed
-------------------->8-----------------

In this change we disable struct arch_global_data in ASM which fixes
the issue above.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
8 years agoarc: Use "-mcpu=archs" instead of deprecated "-marchs" for ARC HS
Alexey Brodkin [Thu, 16 Jun 2016 08:55:00 +0000 (10:55 +0200)]
arc: Use "-mcpu=archs" instead of deprecated "-marchs" for ARC HS

Newer ARC toolchains don't support "-marchs" option any longer.
Instead "-mcpu=archs" should be used. What's also important older
toiolchains that support ARC HS cores will also happily accept
"-mcpu=archs" so that's a very safe move.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
8 years agoMerge branch 'master' of http://git.denx.de/u-boot-sunxi
Tom Rini [Sat, 2 Jul 2016 20:32:15 +0000 (16:32 -0400)]
Merge branch 'master' of git.denx.de/u-boot-sunxi

8 years agosunxi: Add defconfig and DTS file for Allwinner R16 EVB (Parrot)
Quentin Schulz [Fri, 24 Jun 2016 12:33:35 +0000 (14:33 +0200)]
sunxi: Add defconfig and DTS file for Allwinner R16 EVB (Parrot)

The Parrot Board is an evaluation board with an Allwinner R16 (assumed
to be close to an Allwinner A33), 4GB of eMMC, 512MB of RAM, USB host
and OTG, a WiFi/Bluetooth combo chip, a micro SD Card reader, 2
controllable buttons, an LVDS port with separated backlight and
capacitive touch panel ports, an audio/microphone jack, a camera CSI
port, 2 sets of 22 GPIOs and an accelerometer.

The DTS file is identical to the one submitted to the upstream kernel.

Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
8 years agosunxi: Add missing boot_media fields in the SPL header
Olliver Schinagl [Mon, 13 Jun 2016 16:13:07 +0000 (18:13 +0200)]
sunxi: Add missing boot_media fields in the SPL header

Commit b19236fd1 ("sunxi: Increase SPL header size to 64 bytes to avoid
code corruption") Added defines for MMC0 and SPI as boot identification.
After verifying on an OLinuXino Lime2 with NAND and eMMC, the expected
values have been confirmed and added to spl.h

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
8 years agosunxi: spl: Fix DRAM info printing
Hans de Goede [Sun, 26 Jun 2016 11:56:01 +0000 (13:56 +0200)]
sunxi: spl: Fix DRAM info printing

The switch to simple_printf was causing the SPL dram info to show as:

DRAM: u MiB

This fixes this by switching from %lu to %d for printing the DRAM size.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Ian Campbell <ijc@hellion.org.uk>
8 years agoMerge branch 'master' of git://git.denx.de/u-boot-usb
Tom Rini [Sat, 2 Jul 2016 02:35:20 +0000 (22:35 -0400)]
Merge branch 'master' of git://git.denx.de/u-boot-usb

8 years agoMerge branch 'master' of git://git.denx.de/u-boot-socfpga
Tom Rini [Sat, 2 Jul 2016 02:35:12 +0000 (22:35 -0400)]
Merge branch 'master' of git://git.denx.de/u-boot-socfpga

8 years agoPrepare v2016.07-rc3 v2016.07-rc3
Tom Rini [Fri, 1 Jul 2016 21:37:17 +0000 (17:37 -0400)]
Prepare v2016.07-rc3

Signed-off-by: Tom Rini <trini@konsulko.com>
8 years agoMerge branch 'master' of git://git.denx.de/u-boot-uniphier
Tom Rini [Fri, 1 Jul 2016 21:43:06 +0000 (17:43 -0400)]
Merge branch 'master' of git://git.denx.de/u-boot-uniphier