]> git.ipfire.org Git - u-boot.git/log
u-boot.git
9 years agosunxi: Fix H3 DRAM impedance calibration on rev. A chips
Jens Kuske [Wed, 21 Sep 2016 18:08:30 +0000 (20:08 +0200)] 
sunxi: Fix H3 DRAM impedance calibration on rev. A chips

H3 seems to have a silicon bug breaking the impedance calibration.
This is currently worked around in software by multiple steps
combining the results to replace the wrong values.

Revision A chips need a different workaround, which is present in
the vendor bootloader too, but got overlooked in lack of
information and affected boards till now.
This commit adds a simplified version without correction factor,
which would be 1.00 for all known boards anyway.

Signed-off-by: Jens Kuske <jenskuske@gmail.com>
Reviewed-by: Jagan Teki <jteki@openedev.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
9 years agommc: sdhci: use the generic error number
Jaehoon Chung [Sun, 25 Sep 2016 23:10:02 +0000 (08:10 +0900)] 
mmc: sdhci: use the generic error number

Use the generic error number instead of meaningless value.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
9 years agommc: sdhci: use the host version value in sdhci_setup_cfg
Jaehoon Chung [Sun, 25 Sep 2016 23:10:01 +0000 (08:10 +0900)] 
mmc: sdhci: use the host version value in sdhci_setup_cfg

"host->version" isn't a SoC specific value.
It doesn't need to get in each SoC drivers.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Minkyu Kang <mk7.kang@samsung.com>
9 years agommc: dw_mmc: remove the unnecessary arguments for dwmci_setup_cfg
Jaehoon Chung [Fri, 23 Sep 2016 10:13:16 +0000 (19:13 +0900)] 
mmc: dw_mmc: remove the unnecessary arguments for dwmci_setup_cfg

Some arguments don't need to pass to dwmci_setup_cfg.
They are already included in dwmci_host structure.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
9 years agommc: s5p_sdhci: support the Driver model for Exynos
Jaehoon Chung [Fri, 9 Sep 2016 09:23:23 +0000 (18:23 +0900)] 
mmc: s5p_sdhci: support the Driver model for Exynos

This patch support the driver model for s5p_sdhci controller.
To support the legacy model, maintained the existing code.

Note: If use the Driver Model, it needs to modify the device-tree.
In future, will update the Device-tree and enable the configuratioin.
(CONFIG_BLK, CONFIG_DM_MMC and CONFING_DM_MMC_OPS)

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Minkyu Kang <mk7.kang@samsung.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
9 years agodm: mmc: Support erase
Simon Glass [Sat, 1 Oct 2016 20:43:17 +0000 (14:43 -0600)] 
dm: mmc: Support erase

At present erase is not suported with CONFIG_DM_OPS. Add it so that MMC
devices can be erased.

Signed-off-by: Simon Glass <sjg@chromium.org>
9 years agoreset: uniphier: add reset controller driver for UniPhier SoCs
Masahiro Yamada [Sat, 8 Oct 2016 04:25:31 +0000 (13:25 +0900)] 
reset: uniphier: add reset controller driver for UniPhier SoCs

This is the initial commit for UniPhier reset controller driver.
Most code was ported from Linux.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
9 years agoreset: declare fdtdec_phandle_args as struct to fix warning
Masahiro Yamada [Sat, 8 Oct 2016 04:25:30 +0000 (13:25 +0900)] 
reset: declare fdtdec_phandle_args as struct to fix warning

The of_xlate() callback needs to know fdtdec_phandle_args is struct.

Otherwise, the following warning is displayed.

include/reset-uclass.h:40:11: warning: 'struct fdtdec_phandle_args'
declared inside parameter list
    struct fdtdec_phandle_args *args);
           ^
include/reset-uclass.h:40:11: warning: its scope is only this
definition or declaration, which is probably not what you want

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
9 years agoARM: uniphier: insert udelay() just before support_card_reset_deassert()
Masahiro Yamada [Sat, 8 Oct 2016 04:25:29 +0000 (13:25 +0900)] 
ARM: uniphier: insert udelay() just before support_card_reset_deassert()

As for LD11/LD20, we can no longer rely on the udelay() in the PLL
init functions.  udelay(200) is needed here to keep the ethernet
device in the reset state for enough time.  Anyway, 200 usec is
quite short for humans, so nobody cares it.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
9 years agoARM: uniphier: define CONFIG_SMC911X along with CONFIG_MICRO_SUPPORT_CARD
Masahiro Yamada [Sat, 8 Oct 2016 04:25:28 +0000 (13:25 +0900)] 
ARM: uniphier: define CONFIG_SMC911X along with CONFIG_MICRO_SUPPORT_CARD

This is an on-board Ethernet device.  It has no point if the Micro
Support Card is not available.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
9 years agoARM: uniphier: enable CONFIG_SYS_NO_FLASH if no CONFIG_MICRO_SUPPORT_CARD
Masahiro Yamada [Sat, 8 Oct 2016 04:25:27 +0000 (13:25 +0900)] 
ARM: uniphier: enable CONFIG_SYS_NO_FLASH if no CONFIG_MICRO_SUPPORT_CARD

NOR flash devices are seldom used on UniPhier platforms these days.
The only use case I see is the Micro Support Card is connected.
Otherwise, define CONFIG_SYS_NO_FLASH to disable NOR FLASH.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
9 years agoARM: uniphier: fix typos in a comment block
Masahiro Yamada [Sat, 8 Oct 2016 04:25:26 +0000 (13:25 +0900)] 
ARM: uniphier: fix typos in a comment block

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
9 years agoARM: uniphier: add work-around for VBO noise problem
Masahiro Yamada [Sat, 8 Oct 2016 04:25:25 +0000 (13:25 +0900)] 
ARM: uniphier: add work-around for VBO noise problem

Raise the VDD09 voltage line to 1.0V to suppress VBO noise.
This errata work-around code is needed only for ES1.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
9 years agoARM: uniphier: update DRAM init code for LD20 SoC (2nd)
Masahiro Yamada [Sat, 8 Oct 2016 04:25:24 +0000 (13:25 +0900)] 
ARM: uniphier: update DRAM init code for LD20 SoC (2nd)

- Do not reference CONFIG_DDR_FREQ; now the DDR frequency
    is passed from the uniphier_board_data structure
  - Constify parameter arrays
  - Tidy up cluttered macros
  - Lots of code cleanups
  - Lots of coding style fixes

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
9 years agoARM: uniphier: enable SSC for DPLL (DRAM PLL) on LD11 SoC
Masahiro Yamada [Sat, 8 Oct 2016 04:25:23 +0000 (13:25 +0900)] 
ARM: uniphier: enable SSC for DPLL (DRAM PLL) on LD11 SoC

For Electro-Magnetic Compatibility test.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
9 years agoARM: uniphier: do not setup pins for System Bus on NAND boot mode
Masahiro Yamada [Mon, 26 Sep 2016 04:13:16 +0000 (13:13 +0900)] 
ARM: uniphier: do not setup pins for System Bus on NAND boot mode

For LD11 and LD20 SoCs, the System Bus and NAND are multiplexed
in the same I/O pins.  When booting from a NAND device, pin-mux
for the System Bus must not be set-up because they are exclusive
with each other.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
9 years agotools: buildman: Add compiler wrapper
York Sun [Tue, 4 Oct 2016 21:33:51 +0000 (14:33 -0700)] 
tools: buildman: Add compiler wrapper

Now we can use compiler wrapper such as ccache or distcc for buildman.

Signed-off-by: York Sun <york.sun@nxp.com>
CC: Simon Glass <sjg@chromium.org>
Acked-by: Simon Glass <sjg@chromium.org>
9 years agotools: buildman: Remove duplicated code
York Sun [Tue, 4 Oct 2016 21:33:50 +0000 (14:33 -0700)] 
tools: buildman: Remove duplicated code

Signed-off-by: York Sun <york.sun@nxp.com>
CC: Simon Glass <sjg@chromium.org>
Fixed commit subject:
Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Simon Glass <sjg@chromium.org>
9 years agodtoc: Make integer division python 3.x safe
Paul Burton [Tue, 27 Sep 2016 15:03:58 +0000 (16:03 +0100)] 
dtoc: Make integer division python 3.x safe

If we use the '/' operator then python 3.x will produce a float, and
refuse to multiply the string sequence in Conv_name_to_c by it with:

    TypeError: can't multiply sequence by non-int of type 'float'

Use the '//' operator instead to enforce that we want integer rather
than floating point division.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Acked-by: Simon Glass <sjg@chromium.org>
9 years agodtoc: Decode strings for struct.unpack on python 3.x
Paul Burton [Tue, 27 Sep 2016 15:03:57 +0000 (16:03 +0100)] 
dtoc: Decode strings for struct.unpack on python 3.x

On python 3.x struct.unpack will complain if we provide it with a
string since it expects to operate on a bytes object. In order to
satisfy this requirement, encode the string to a bytes object when
running on python 3.x.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Acked-by: Simon Glass <sjg@chromium.org>
9 years agodtoc: Use items() to iterate over dictionaries in python 3.x
Paul Burton [Tue, 27 Sep 2016 15:03:56 +0000 (16:03 +0100)] 
dtoc: Use items() to iterate over dictionaries in python 3.x

In python 3.x the iteritems() method has been removed from dictionaries,
and the items() method does effectively the same thing. On python 2.x
using items() is a little less efficient since it involves copying data,
but as speed isn't a concern in the affected code switch to using
items() anyway for simplicity.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Acked-by: Simon Glass <sjg@chromium.org>
9 years agopatman: Fix doctest StringIO import for python 3.x
Paul Burton [Tue, 27 Sep 2016 15:03:55 +0000 (16:03 +0100)] 
patman: Fix doctest StringIO import for python 3.x

In python 3.x StringIO is no longer a module, and the class can instead
be found in the io module. Adjust the code in the doctest input to
account for both.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Acked-by: Simon Glass <sjg@chromium.org>
9 years agopatman: Use items() to iterate over dictionaries
Paul Burton [Tue, 27 Sep 2016 15:03:54 +0000 (16:03 +0100)] 
patman: Use items() to iterate over dictionaries

In python 3.x the iteritems() method has been removed from dictionaries,
and the items() method does effectively the same thing. On python 2.x
using items() is a little less efficient since it involves copying data,
but as speed isn't a concern in this code switch to using items() anyway
for simplicity.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Acked-by: Simon Glass <sjg@chromium.org>
9 years agopatman: Import 'configparser' lower case to be python 3.x safe
Paul Burton [Tue, 27 Sep 2016 15:03:52 +0000 (16:03 +0100)] 
patman: Import 'configparser' lower case to be python 3.x safe

In python 3.x module names used in import statements are case sensitive,
and the configparser module is named in all lower-case. Import it as such
in order to avoid errors when running with python 3.x.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Acked-by: Simon Glass <sjg@chromium.org>
9 years agopatman: Make exception handling python 3.x safe
Paul Burton [Tue, 27 Sep 2016 15:03:51 +0000 (16:03 +0100)] 
patman: Make exception handling python 3.x safe

Syntax for exception handling is a little more strict in python 3.x.
Convert all uses to a form accepted by both python 2.x & python 3.x.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Acked-by: Simon Glass <sjg@chromium.org>
9 years agopatman: Make print statements python 3.x safe
Paul Burton [Tue, 27 Sep 2016 15:03:50 +0000 (16:03 +0100)] 
patman: Make print statements python 3.x safe

In python 3.x, print must be used as a function call. Convert all print
statements to the function call style, importing from __future__ where
we print with no trailing newline or print to a file object.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Acked-by: Simon Glass <sjg@chromium.org>
9 years agopatman: Replace tabs with spaces
Paul Burton [Tue, 27 Sep 2016 15:03:49 +0000 (16:03 +0100)] 
patman: Replace tabs with spaces

In preparation for running on python 3.x, which will refuse to run
scripts which mix tabs & spaces for indentation, replace 2 tab
characters present in series.py with spaces.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Acked-by: Simon Glass <sjg@chromium.org>
9 years agodtoc: Add a way for tests to request the fallback library
Simon Glass [Sun, 25 Sep 2016 21:52:19 +0000 (15:52 -0600)] 
dtoc: Add a way for tests to request the fallback library

We need to test both the normal (Python libfdt module) and fallback (fdtget)
implementations of the Fdt class. Add a way to select which implementation
to use.

Signed-off-by: Simon Glass <sjg@chromium.org>
9 years agodtoc: Adjust GetProps() in fdt_normal to use the node path
Simon Glass [Sun, 25 Sep 2016 21:52:18 +0000 (15:52 -0600)] 
dtoc: Adjust GetProps() in fdt_normal to use the node path

There is no need to pass a node path separately. Instead we should use the
path for the node provided. Correct this.

Signed-off-by: Simon Glass <sjg@chromium.org>
9 years agodtoc: Fix bug in GetProp()
Simon Glass [Sun, 25 Sep 2016 21:52:17 +0000 (15:52 -0600)] 
dtoc: Fix bug in GetProp()

This does not actually call fdtget correctly when requesting a particular
type. Fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
9 years agocros_ec: Fix issue with cros_ec_flash_write command
Moritz Fischer [Mon, 12 Sep 2016 19:57:52 +0000 (12:57 -0700)] 
cros_ec: Fix issue with cros_ec_flash_write command

This commit fixes an issue where data is written to an
invalid memory location.
The issue has been introduced in commit
(88364387 cros: add cros_ec_driver)

Cc: Simon Glass <sjg@chromium.org>
Cc: u-boot@lists.denx.de
Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
9 years agocros_ec: Add crosec flashinfo command
Moritz Fischer [Tue, 13 Sep 2016 21:44:49 +0000 (14:44 -0700)] 
cros_ec: Add crosec flashinfo command

Add command to print out the flash info as reported by the
ec. The data read back includes size, write block size,
erase block size.

Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: u-boot@lists.denx.de
Acked-by: Simon Glass <sjg@chromium.org>
9 years agocros_ec: Add function to read back flash parameters
Moritz Fischer [Tue, 13 Sep 2016 21:44:48 +0000 (14:44 -0700)] 
cros_ec: Add function to read back flash parameters

Add support for reading back flash parameters as reported by
the ec.

Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: u-boot@lists.denx.de
Acked-by: Simon Glass <sjg@chromium.org>
9 years agobuildman: Drop the 'alive' flag in BuilderThread
Simon Glass [Sun, 18 Sep 2016 22:48:38 +0000 (16:48 -0600)] 
buildman: Drop the 'alive' flag in BuilderThread

This is not used, so drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
9 years agobuildman: Don't show a stacktrace on Ctrl-C
Simon Glass [Sun, 18 Sep 2016 22:48:37 +0000 (16:48 -0600)] 
buildman: Don't show a stacktrace on Ctrl-C

When Ctrl-C is pressed, just exited quietly. There is no sense in displaying
a stack trace since buildman will always be in the same place: waiting for
threads to complete building all the jobs on the queue.

Signed-off-by: Simon Glass <sjg@chromium.org>
9 years agobuildman: Drop the 'active' flag in the builder
Simon Glass [Sun, 18 Sep 2016 22:48:36 +0000 (16:48 -0600)] 
buildman: Drop the 'active' flag in the builder

This serves no real purpose, since when we are not active, we exit. Drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
9 years agobuildman: Allow builds to terminate cleanly
Simon Glass [Sun, 18 Sep 2016 22:48:35 +0000 (16:48 -0600)] 
buildman: Allow builds to terminate cleanly

It is annoying that buildman does not respond cleanly to Ctrl-C or SIGINT,
particularly on machines with lots of CPUS. Unfortunately queue.join()
blocks the main thread and does not allow it to see the signal. Use a
separate thread instead,

Signed-off-by: Simon Glass <sjg@chromium.org>
9 years agobuildman: Put our local libraries first in the path
Simon Glass [Sun, 18 Sep 2016 22:48:34 +0000 (16:48 -0600)] 
buildman: Put our local libraries first in the path

If patman is installed on the machine (e.g. in the standard dist-packages
directory), it will find libraries from there in preference to our local
libraries. Adjust the order of the path to ensure that local libraries are
found first.

Signed-off-by: Simon Glass <sjg@chromium.org>
9 years agobuildman: Print a message indicating the build is starting
Simon Glass [Sun, 18 Sep 2016 22:48:33 +0000 (16:48 -0600)] 
buildman: Print a message indicating the build is starting

Make it clear when buildman actually starts building. This happens when it
has prepared the threads, working directory and output directories.

Signed-off-by: Simon Glass <sjg@chromium.org>
9 years agobuildman: Print a message when removing old directories
Simon Glass [Sun, 18 Sep 2016 22:48:32 +0000 (16:48 -0600)] 
buildman: Print a message when removing old directories

When buildman starts, it prepares its output directory by removing any old
build directories which will not be used this time. This can happen if a
previous build left directories around for commit hashes which are no-longer
part of the branch.

This can take quite a while, so print a message to indicate what is going
on.

Signed-off-by: Simon Glass <sjg@chromium.org>
9 years agobuildman: Tidy up the 'cloning' message
Simon Glass [Sun, 18 Sep 2016 22:48:31 +0000 (16:48 -0600)] 
buildman: Tidy up the 'cloning' message

On a machine with a lot of CPUs this prints a lot of useless lines of the
form:

   Cloning repo for thread <n>

Adjust the output so that these all appear on one line, and disappear when
the cloning is complete.

Note: This cloning is actually unnecessary and very wasteful on disk space
(about 3.5GB each time). It would be better to create symlinks.

Signed-off-by: Simon Glass <sjg@chromium.org>
9 years agopatman: Flush output when there is no newline
Simon Glass [Sun, 18 Sep 2016 22:48:30 +0000 (16:48 -0600)] 
patman: Flush output when there is no newline

Output which does not include a newline will not be displayed unless
flushed. Add a flush to ensure that it becomes visible.

Signed-off-by: Simon Glass <sjg@chromium.org>
9 years agoarm: kirkwood: fix Synology board tag
Walter Schweizer [Thu, 6 Oct 2016 21:30:00 +0000 (23:30 +0200)] 
arm: kirkwood: fix Synology board tag

Signed-off-by: Walter Schweizer <swwa@users.sourceforge.net>
Signed-off-by: Stefan Roese <sr@denx.de>
9 years agoarm: kirkwood: fix output enable settings
Walter Schweizer [Thu, 6 Oct 2016 21:29:59 +0000 (23:29 +0200)] 
arm: kirkwood: fix output enable settings

Signed-off-by: Walter Schweizer <swwa@users.sourceforge.net>
Signed-off-by: Stefan Roese <sr@denx.de>
9 years agoarm: kirkwood: fix kirkwood initial setup
Walter Schweizer [Thu, 6 Oct 2016 21:29:58 +0000 (23:29 +0200)] 
arm: kirkwood: fix kirkwood initial setup

Signed-off-by: Walter Schweizer <swwa@users.sourceforge.net>
Signed-off-by: Stefan Roese <sr@denx.de>
9 years agoarm: kirkwood: ds109 board is maintained
Walter Schweizer [Thu, 6 Oct 2016 21:29:57 +0000 (23:29 +0200)] 
arm: kirkwood: ds109 board is maintained

Signed-off-by: Walter Schweizer <swwa@users.sourceforge.net>
Signed-off-by: Stefan Roese <sr@denx.de>
9 years agoarm: kirkwood: add support for Synology DS109 board
Walter Schweizer [Thu, 6 Oct 2016 21:29:56 +0000 (23:29 +0200)] 
arm: kirkwood: add support for Synology DS109 board

Synology DS109 is based on MV88F6281. The code
is based on Dreamplug code with modificatons
from Synologys open source repository.

Signed-off-by: Walter Schweizer <swwa@users.sourceforge.net>
Signed-off-by: Stefan Roese <sr@denx.de>
9 years agoMerge branch 'master' of git://www.denx.de/git/u-boot-imx
Tom Rini [Sat, 8 Oct 2016 02:02:10 +0000 (22:02 -0400)] 
Merge branch 'master' of git://www.denx.de/git/u-boot-imx

9 years agoARM: AM437X: Add Silicon ID support
Lokesh Vutla [Tue, 4 Oct 2016 04:04:50 +0000 (09:34 +0530)] 
ARM: AM437X: Add Silicon ID support

Add silicon ID code for AM437x silicon. This can be used to print
the cpu info using CONFIG_DISPLAY_CPUINFO.
Also printing "CPU :" along with cpu name in order to be consistent
with other OMAP platforms.

Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
9 years agospl: saveenv: adding saveenv support in SPL
B, Ravi [Wed, 28 Sep 2016 09:16:18 +0000 (14:46 +0530)] 
spl: saveenv: adding saveenv support in SPL

By default saveenv option is not supported for SPL. This patch
enable the support for save environment variable for SPL build.

Enable save environment support in SPL after setenv. By default
the saveenv option is not provided in SPL, but some boards need
this support in 'Falcon' boot, where SPL need to boot from
different images based on environment variable set by OS. For
example OS may set "reboot_image" environment variable to
"recovery" inorder to boot recovery image by SPL. The SPL read
"reboot_image" and act accordingly and change the reboot_image
to default mode using setenv and save the environemnt.

Signed-off-by: Ravi Babu <ravibabu@ti.com>
Reviewed-by: Simon Glass <sig@chromium.org>
change in v1:
- dropped SUPPORT, use CONFIG_SPL_SAVEENV
- updates the comments in mmc_private.h

9 years agocros_ec: Honor the google,remote-bus dt property
Moritz Fischer [Tue, 27 Sep 2016 22:42:07 +0000 (15:42 -0700)] 
cros_ec: Honor the google,remote-bus dt property

Boards where ECs that use a I2C port != 0 specify this in the
devicetree file via the google,remote-bus property.
Previously this was ignored and hardcoded to port 0.

Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Heiko Schocher <hs@denx.de>
Cc: u-boot@lists.denx.de
Acked-by: Simon Glass <sjg@chromium.org>
9 years agoboard: ti: dra7xx: complex definitions should be protected with parentheses
Mugunthan V N [Tue, 27 Sep 2016 07:31:42 +0000 (13:01 +0530)] 
board: ti: dra7xx: complex definitions should be protected with parentheses

As a standard practice complex definitions should be protected
with parentheses, as it might fail when used in a complex if
statements.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
9 years agoARM: dts: dra72: add rev C evm support
Mugunthan V N [Tue, 27 Sep 2016 07:31:41 +0000 (13:01 +0530)] 
ARM: dts: dra72: add rev C evm support

Add DTS support for dra72 evm Rev C which has the following
changes
* Two ethernet ports now instead of the single one in rev B.
* DP83867 ethernet phy instead of DP838865.

Cc: Vignesh R <vigneshr@ti.com>
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
9 years agoarm: Add return value argument to longjmp
Alexander Graf [Tue, 27 Sep 2016 07:30:32 +0000 (09:30 +0200)] 
arm: Add return value argument to longjmp

The normal longjmp command allows for a caller to pass the return value
of the setjmp() invocation. This patch adds that semantic to the arm
implementation of it and adjusts the efi_loader call respectively.

Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
9 years agoenv: tool: add command line option to input lockfile path
B, Ravi [Mon, 26 Sep 2016 12:54:08 +0000 (18:24 +0530)] 
env: tool: add command line option to input lockfile path

The default lockname is set to /var/lock. This limits the
usage of this application where OS uses different lockfile
location parameter.
For example, In case of android, the default lock
path location is /data.
Hence by providing the command line option to input lockfile
path will be useful to reuse the tool across multiple
operating system.

usage: ./fw_printenv -l <lockfile path>

Signed-off-by: Ravi Babu <ravibabu@ti.com>
9 years agodra7x: dfu: qspi: increase the qspi spl partition to 256K
B, Ravi [Mon, 26 Sep 2016 12:51:13 +0000 (18:21 +0530)] 
dra7x: dfu: qspi: increase the qspi spl partition to 256K

The SPL size for dra7x platform increased beyond 64K,
increasing the size to 256K to cater for future enhancement.

Signed-off-by: Ravi Babu <ravibabu@ti.com>
9 years agodra7xx: config: cleanup: moved to kconfig for CONFIG_SPL_ENV_SUPPORT
B, Ravi [Mon, 26 Sep 2016 12:50:33 +0000 (18:20 +0530)] 
dra7xx: config: cleanup: moved to kconfig for CONFIG_SPL_ENV_SUPPORT

removing CONFIG_SPL_ENV_SUPPORT defined in header files
due to moved to kconfig option for CONFIG_SPL_ENV_SUPPORT

Signed-off-by: Ravi Babu <ravibabu@ti.com>
9 years agoRevert "ns16650: Make sure we have CONFIG_CLK set before using infrastructure"
Masahiro Yamada [Mon, 26 Sep 2016 11:45:27 +0000 (20:45 +0900)] 
Revert "ns16650: Make sure we have CONFIG_CLK set before using infrastructure"

This reverts commit 82f5279b0cd99a9163d34cfe926d0316d9dc0d37.

The build failure of k2*evm boards was fixed in a different way by
the previous commit.  It is nasty to patch generic drivers around
with #ifdef CONFIG_CLK just for the KeyStone's matter.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
9 years agoARM: keystone: rename clk_get_rate() to ks_clk_get_rate()
Masahiro Yamada [Mon, 26 Sep 2016 11:45:26 +0000 (20:45 +0900)] 
ARM: keystone: rename clk_get_rate() to ks_clk_get_rate()

The KeyStone platform has its own clk_get_rate() but its prototype
is different from that of the common-clk (clk-uclass) framework.

Prefix the KeyStone specific implementation with ks_ in order to
avoid name-space conflict.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Lokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
9 years agoboard: ls1012afrdm: overwrite CONFIG_EXTRA_ENV_SETTINGS
Pratiyush Srivastava [Fri, 7 Oct 2016 17:38:38 +0000 (23:08 +0530)] 
board: ls1012afrdm: overwrite CONFIG_EXTRA_ENV_SETTINGS

LS1012AFRDM has 512MB of DDR. So update kernel load address to
0x96000000.

Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Signed-off-by: Pratiyush Mohan Srivastava <pratiyush.srivastava@nxp.com>
[York Sun: Reformatted commit message]
Reviewed-by: York Sun <york.sun@nxp.com>
9 years agoarmv8: ls1012a: Updating CONFIG_EXTRA_ENV_SETTINGS
Pratiyush Srivastava [Fri, 7 Oct 2016 17:37:36 +0000 (23:07 +0530)] 
armv8: ls1012a: Updating CONFIG_EXTRA_ENV_SETTINGS

Remove ramdisk_addr, ramdisk_size and update UART baud-rate.

Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Signed-off-by: Pratiyush Mohan Srivastava <pratiyush.srivastava@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
9 years agoarmv8: ls2080a: Add USB node in dts for ls2080a
Sriram Dash [Fri, 7 Oct 2016 08:37:36 +0000 (14:07 +0530)] 
armv8: ls2080a: Add USB node in dts for ls2080a

Add the USB node for LS2080a in dts.

Signed-off-by: Sriram Dash <sriram.dash@nxp.com>
[York Sun: replace ls2080 with ls2080a in commit message]
Reviewed-by: York Sun <york.sun@nxp.com>
9 years agoarmv8: ls2080: Enable CONFIG_DM_USB in defconfigs
Sriram Dash [Fri, 7 Oct 2016 08:37:35 +0000 (14:07 +0530)] 
armv8: ls2080: Enable CONFIG_DM_USB in defconfigs

Enables driver model flag CONFIG_DM_USB for LS2080A
platform defconfigs.

Signed-off-by: Sriram Dash <sriram.dash@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
9 years agoarmv8: LS2080A: Add device tree support for nand boot
Sriram Dash [Fri, 7 Oct 2016 08:37:34 +0000 (14:07 +0530)] 
armv8: LS2080A: Add device tree support for nand boot

Add device tree support for LS2080ARDB nand boot.

Signed-off-by: Sriram Dash <sriram.dash@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
9 years agoboard: ge: bx50v3: Pass video bootargs for b850v3
Ken Lin [Fri, 7 Oct 2016 14:26:56 +0000 (10:26 -0400)] 
board: ge: bx50v3: Pass video bootargs for b850v3

Due to clock source restrictions on i.MX6, certain pixel clock rates can
not be supported. Hence default the resolution/frame rate during boot to a
supported value by passing video bootargs 1024x768@60 for
HDMI (Display Port1) and LVDS (Display Port2) on B850v3.

Signed-off-by: Ken Lin <ken.lin@advantech.com.tw>
Signed-off-by: Akshay Bhat <akshay.bhat@timesys.com>
9 years agoARM: keystone: remove declaration of unused functions
Masahiro Yamada [Mon, 26 Sep 2016 11:45:25 +0000 (20:45 +0900)] 
ARM: keystone: remove declaration of unused functions

These two functions are neither defined nor referenced.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Lokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
9 years agokbuild: generate u-boot.cfg as a byproduct of include/autoconf.mk
Masahiro Yamada [Mon, 26 Sep 2016 04:05:01 +0000 (13:05 +0900)] 
kbuild: generate u-boot.cfg as a byproduct of include/autoconf.mk

Our build system still parses ad-hoc CONFIG options in header files
and generates include/autoconf.mk so that Makefiles can reference
them.  This gimmick was introduced in the pre-Kconfig days and will
be kept until Kconfig migration is completed.

The include/autoconf.mk is generated like follows:

  [1] Preprocess include/common.h with -DDO_DEPS_ONLY and
      retrieve macros into include/autoconf.mk.tmp
  [2] Reformat include/autoconf.mk.dep into include/autoconf.mk
      with tools/scripts/define2mk.sed script
  [3] Remove include/autoconf.mk.tmp

Here, include/autoconf.mk.tmp is similar to u-boot.cfg, which is
also generated by preprocessing include/config.h with -DDO_DEPS_ONLY.
In other words, there is much overlap among include/autoconf.mk and
u-boot.cfg build rules.

So, the idea is to split the build rule of include/autoconf.mk
into two stages.  The first preprocesses headers into u-boot.cfg.
The second parses the u-boot.cfg into include/autoconf.mk.  The
build rules of u-boot.cfg in Makefile and spl/Makefile will be gone.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
9 years agokbuild: make dependencies in scripts/Makefile.autoconf more readable
Masahiro Yamada [Mon, 26 Sep 2016 04:05:00 +0000 (13:05 +0900)] 
kbuild: make dependencies in scripts/Makefile.autoconf more readable

I do not remember why I wrote the code like this, but let's make it
a bit more readable.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
9 years agokbuild: move no_new_adhoc_configs_check to "all" target command
Masahiro Yamada [Mon, 26 Sep 2016 04:04:59 +0000 (13:04 +0900)] 
kbuild: move no_new_adhoc_configs_check to "all" target command

I am going to move the build rule of u-boot.cfg.  Before that,
no_new_adhoc_configs_check must be tweaked to not depend on it.

The ad-hoc option check can be done at the end of build, along
with other checks.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
9 years agocheck-config: fix wrong comment about how to build whitelist
Masahiro Yamada [Mon, 26 Sep 2016 04:04:58 +0000 (13:04 +0900)] 
check-config: fix wrong comment about how to build whitelist

The command suggested in this comment block is wrong; it would not
rip off CONFIG options that had already been converted to Kconfig.

Instead, we should use the scripts/build-whitelist.sh tool.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
9 years agoconfig_whitelist: remove bogus options
Masahiro Yamada [Mon, 26 Sep 2016 02:52:30 +0000 (11:52 +0900)] 
config_whitelist: remove bogus options

These are not CONFIG options (detected by my eyes).

CONFIG_SPL_BUILD and CONFIG_TPL_BUILD are build options defined only
for building SPL and TPL, respectively.

The others are just mentioned in comment blocks.

Now, scripts/build-whitelist.sh never picks up new options.  Once
we kill these false ones, they will never revive.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
9 years agoconfig_whitelist: sync by tool
Masahiro Yamada [Mon, 26 Sep 2016 02:52:29 +0000 (11:52 +0900)] 
config_whitelist: sync by tool

It is a good practice to drop an option from the whitelist when we
convert it to Kconfig, but we may sometimes forget to do that.

So, it might be a good idea to sync the whitelist from time to time.

This commit was generated by:
  scripts/build-whitelist.sh

Looks like we had a bit progress...

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
9 years agobuild-whitelist: do not add new options to whitelist when update
Masahiro Yamada [Mon, 26 Sep 2016 02:52:28 +0000 (11:52 +0900)] 
build-whitelist: do not add new options to whitelist when update

If somebody adds references to new CONFIG options in source files,
they will be added in the whitelist when we sync it.  (For example,
if we run scripts/build-whitelist.sh against commit 42f75050667b,
new options CONFIG_SPL_DFU_SUPPORT and CONFIG_USB_XHCI_UNIPHIER will
appear in the list.)

In order to make steady progress of Kconfig migration, we want to
only decrease whitelist options, but never increase.

So, when we update the whitelist, we should create a temporary list,
then take the intersection of the temporary one and the current one.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
9 years agovexpress: disable cci ace slave ports when booting in non-sec/hyp mode
Sudeep Holla [Fri, 23 Sep 2016 16:38:39 +0000 (17:38 +0100)] 
vexpress: disable cci ace slave ports when booting in non-sec/hyp mode

Commit f225d39d3093 ("vexpress: Check TC2 firmware support before defaulting
to nonsec booting") added support to check if the firmware on TC2  is
configured appropriately before booting in nonsec/hyp mode.

However when booting in non-secure/hyp mode, CCI control must be done in
secure firmware and can't  be done in non-secure/hyp mode. In order to
ensure that, this patch disables the cci slave port inteface so that it
is not accessed at all.

Cc: Jon Medhurst <tixy@linaro.org>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Acked-by: Jon Medhurst <tixy@linaro.org>
Tested-by: Jon Medhurst <tixy@linaro.org>
9 years agocommon/console.c: ensure GD_FLG_SILENT is set or cleared
Chris Packham [Fri, 23 Sep 2016 03:59:43 +0000 (15:59 +1200)] 
common/console.c: ensure GD_FLG_SILENT is set or cleared

When CONFIG_SILENT_CONSOLE is defined and the default environment has
silent=1 it is not possible for a user to make the console un-silent if
the environment is not available when console_init_f() is called (for
example because the environment is in SPI).

Add a new helper function console_update_silent() and call it from both
console_init_f() and console_init_r().

Signed-off-by: Chris Packham <judge.packham@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
9 years agoarm: dra7xx: Move fastboot options to defconfig
Semen Protsenko [Thu, 22 Sep 2016 18:52:07 +0000 (21:52 +0300)] 
arm: dra7xx: Move fastboot options to defconfig

Now that fastboot options are available in Kconfig, we can migrate them
from DRA7 header to corresponding DRA7 defconfigs.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
9 years agoARM: vf610: use strcpy for soc environment variable
Stefan Agner [Wed, 28 Sep 2016 09:29:28 +0000 (11:29 +0200)] 
ARM: vf610: use strcpy for soc environment variable

To create the soc environment variable we concatenate two strings
on the stack. So far, strcat has been used for the first string as
well as for the second string. Since the variable on the stack is
not initialized, the first strcat may not start using the first
entry in the character array. This then could lead to an buffer
overflow on the stack.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
9 years agoconfigs: enable device tree for Colibri iMX7
Stefan Agner [Wed, 5 Oct 2016 22:27:12 +0000 (15:27 -0700)] 
configs: enable device tree for Colibri iMX7

Enable device tree configuration and specify default device tree
for Toradex Colibri iMX7.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
9 years agocolibri_imx7: use Ricoh RN5T567 to reboot the board
Stefan Agner [Wed, 5 Oct 2016 22:27:11 +0000 (15:27 -0700)] 
colibri_imx7: use Ricoh RN5T567 to reboot the board

Use the external PMIC Ricoh RN5T567 to reliably restart the system.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
9 years agoarm: dts: imx7: add Ricoh RN5T567 PMIC node
Stefan Agner [Wed, 5 Oct 2016 22:27:10 +0000 (15:27 -0700)] 
arm: dts: imx7: add Ricoh RN5T567 PMIC node

Add device tree node for Ricoh RN5T567. Currently we do not need
the individual DC/DC converters or LDO's (and they are also not
yet supported by the driver).

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
9 years agopower: pmic: add Ricoh RN5T567 PMIC support
Stefan Agner [Wed, 5 Oct 2016 22:27:09 +0000 (15:27 -0700)] 
power: pmic: add Ricoh RN5T567 PMIC support

Add device model enabled PMIC driver for Ricoh RN5T567 PMIC used
on Colibri iMX7.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
9 years agocolibri_imx7: remove legancy UART platform data
Stefan Agner [Wed, 5 Oct 2016 22:27:08 +0000 (15:27 -0700)] 
colibri_imx7: remove legancy UART platform data

We now use device tree to provide SoC data to the UART driver, there
is no need for the legancy UART platform data.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
9 years agocolibri_imx7: remove legancy I2C support
Stefan Agner [Wed, 5 Oct 2016 22:27:07 +0000 (15:27 -0700)] 
colibri_imx7: remove legancy I2C support

Remove legancy I2C config and code in favor of upcomming DM/DT
enable I2C support.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
9 years agoarm: dts: imx7: add basic i.MX 7/Colibri iMX7 device tree
Stefan Agner [Wed, 5 Oct 2016 22:27:06 +0000 (15:27 -0700)] 
arm: dts: imx7: add basic i.MX 7/Colibri iMX7 device tree

Add base device for NXP i.MX 7Solo/7Dual. The two SoC are very
similar and hence can share the same device tree for boot loaders
purpose.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
9 years agoarm: dts: imx7: add pinctrl defines
Stefan Agner [Wed, 5 Oct 2016 22:27:05 +0000 (15:27 -0700)] 
arm: dts: imx7: add pinctrl defines

Add pinctrl defines for NXP i.MX 7Solo/7Dual SoC. The pinctrl format
is compatible to the Linux kernel, hence this file is a simple copy
from the Linux kernel (commit 97f5c1817b7e).

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
9 years agopinctrl: imx: do not announce driver initialization
Stefan Agner [Wed, 5 Oct 2016 22:27:04 +0000 (15:27 -0700)] 
pinctrl: imx: do not announce driver initialization

It is not usual that drivers announce when they have been initialized.
use dev_dbg to announce device initialization.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
9 years agodm: imx: serial: support device tree
Stefan Agner [Wed, 5 Oct 2016 22:27:03 +0000 (15:27 -0700)] 
dm: imx: serial: support device tree

Support instatiation through device tree. Also parse the fsl,dte-mode
property to determine whether DTE mode shall be used.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
9 years agoscripts: Add script to extract default environment
Lukasz Majewski [Sat, 17 Sep 2016 04:57:39 +0000 (06:57 +0200)] 
scripts: Add script to extract default environment

This script looks for env_common.o object file and extracts from it default
u-boot environment, which is afterwards printed on standard output.

Usage example:
get_default_envs.sh > u-boot-env-default.txt

The generated text file can be used as input for mkenvimage.

Signed-off-by: Lukasz Majewski <l.majewski@majess.pl>
Reviewed-by: Simon Glass <sjg@chromium.org>
9 years agoARM: Add register defines for am33xx ePWM registers
tomas.melin@vaisala.com [Fri, 16 Sep 2016 10:21:39 +0000 (10:21 +0000)] 
ARM: Add register defines for am33xx ePWM registers

Register definitions needed for configuring the
ePWM module.

Signed-off-by: Tomas Melin <tomas.melin@vaisala.com>
9 years agodoc: typo fix addess -> address
Jelle van der Waa [Wed, 14 Sep 2016 19:54:53 +0000 (21:54 +0200)] 
doc: typo fix addess -> address

Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
9 years agoARM: OMAP5+: Override switch_to_hypervisor function
Keerthy [Wed, 14 Sep 2016 05:13:33 +0000 (10:43 +0530)] 
ARM: OMAP5+: Override switch_to_hypervisor function

Override the switch_to_hypervisor function to switch cpu to hypervisor
mode using the available ROM code hook early in the boot phase before
the boot loader checks for HYP mode.

Based on the work done by Jonathan Bergsagel jbergsagel@ti.com.

Cc: beagleboard-x15@googlegroups.com
Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
9 years agoARM: Introduce function to switch to hypervisor mode
Keerthy [Wed, 14 Sep 2016 05:13:32 +0000 (10:43 +0530)] 
ARM: Introduce function to switch to hypervisor mode

On some of the SoCs one cannot enable hypervisor mode directly from the
u-boot because the ROM code puts the chip to supervisor mode after it
jumps to boot loader. Hence introduce a weak function which can be
overridden based on the SoC type and switch to hypervisor mode in a
custom way.

Cc: beagleboard-x15@googlegroups.com
Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
9 years agoconfigs: dra7xx_evm_defconfig: Enable LPAE mode
Keerthy [Wed, 14 Sep 2016 05:13:31 +0000 (10:43 +0530)] 
configs: dra7xx_evm_defconfig: Enable LPAE mode

Enable Linear Physical Address Extension mode which is a
prerequisite for hypervisor mode.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
9 years agoconfigs: am57xx_evm_defconfig: Enable LPAE mode
Keerthy [Wed, 14 Sep 2016 05:13:30 +0000 (10:43 +0530)] 
configs: am57xx_evm_defconfig: Enable LPAE mode

Enable Linear Physical Address Extension mode which is a
prerequisite for hypervisor mode.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
9 years agoomap: Set appropriate cache configuration for LPAE and non-LAPE cases
Keerthy [Wed, 14 Sep 2016 05:13:29 +0000 (10:43 +0530)] 
omap: Set appropriate cache configuration for LPAE and non-LAPE cases

Cache configuration methods is different for LPAE and non-LPAE cases.
Hence the bits and the interpretaion is different for two cases.
In case of non-LPAE mode short descriptor format is used and we need
to set Cache and Buffer bits.

In the case of LPAE the cache configuration happens via MAIR0 lookup.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
9 years agoomap: Remove hardcoding of mmu section shift to 20
Keerthy [Wed, 14 Sep 2016 05:13:28 +0000 (10:43 +0530)] 
omap: Remove hardcoding of mmu section shift to 20

As of now the mmu section shift is hardcoded to 20 but with LPAE
coming into picture this can be different. Hence replacing 20 with
MMU_SECTION_SHIFT macro.

Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
9 years agoPWM: Correct misspellings of "module" in context of PWM
Robert P. J. Day [Tue, 13 Sep 2016 12:35:18 +0000 (08:35 -0400)] 
PWM: Correct misspellings of "module" in context of PWM

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
Acked-by: Heiko Schocher <hs@denx.de>
9 years agoARM64: Add support for some of atomic64 operations
Adam Oleksy [Tue, 13 Sep 2016 06:40:58 +0000 (08:40 +0200)] 
ARM64: Add support for some of atomic64 operations

These functions are needed in UBI/UBIFS on ZynqMP platform (ARM64).

Signed-off-by: Adam Oleksy <adam.oleksy@nokia.com>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
9 years agocmd/onenand.c: block align warning
Ladislav Michl [Tue, 13 Sep 2016 05:40:00 +0000 (07:40 +0200)] 
cmd/onenand.c: block align warning

An attempt to write non block aligned data fails silently, add warning and
set result.

Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
9 years agosearch.h: Numerous grammatical fixes, comment updates
Robert P. J. Day [Fri, 9 Sep 2016 10:22:10 +0000 (06:22 -0400)] 
search.h: Numerous grammatical fixes, comment updates

Tweaks (no functional changes) to include/search.h, including:

 * use standard multiple inclusion check
 * fix spelling mistakes
 * have comments match actual names in function prototypes
 * remove obsolete reference to "do_apply"
 * replace "hashing table" with "hash table"

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>