mxs: Remove not required explicit iomux-mx28.h include

The iomux header is included on sys_proto.h so to avoid SoC specific
header inclusion.

Series-changes: 2
- no changes

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
mxs: Remove not required include of iomux-mx28.h

The iomux-mx28.h include is not required on spl_mem_init.c so it has
been droped.

Series-changes: 2
- change short description to clearly describe what has been done

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
mxs: rename regs-clkctrl.h to regs-clkctrl-mx28.h

The CLKCTRL registers are SoC specific so we ought to have it clear on
filename.

Series-changes: 2
- no changes

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
mxs: Convert sys_proto.h prefixes to 'mxs'

The sys_proto.h functions (except the boot modes) are compatible with
i.MX233 and i.MX28 so we use 'mxs' prefix for its methods.

Series-to: u-boot
Series-version: 2
Series-changes: 2
- no changes

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
mxs: Avoid i.MX28 SPL specific power code to run on i.MX233 boards

This adds #ifdef / #endif around i.MX28 specific power code to avoid
those to be run when building for i.MX233 based boards.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
MX28: config: Allow different target generation in elftosb call

The elftosb call needs to use a target param specific for i.MX28. This
patch allow for later addition of i.MX233.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
MX28: Move "regs-base.h" include after SoC type configuration

For i.MX233 addition the base registers need to be change so the SoC
definition needs to be known before the header include.

The following boards has been changed:

 * apx4devkit
 * m28evk
 * mx28evk
 * sc_sps_1

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
MX233: Add register base addresses

This adds the base addresses of i.MX233 and easy the detection of
wrong order in board setup, in case no SoC has been set, an error is
raised during build.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
MX233: add regs-clkctrl-mx23.h

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
MX233: power: Add comment about registers with same offsets

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
MX233: add support on print_cpuinfo()

Add information to identify i.MX233 chips and its known revisions.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
MX233: add iomux-mx23.h

This has been copied from Linux source at revision 786f02b719f.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
MX233: Add boot mode description

This adds the boot mode description conditionally if code is being
build for i.MX233 or i.MX28.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
MX233: Handle iomux-mx23.h including in sys_proto.h

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
MX233: config: Enable building of u-boot.sb binary

For i.MX233 we need to pass imx23 as elftosb param.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
MX233: config: Enable mxsboot tool for MX23 based boards

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
mx28evk: extend default environment

The environment has been based on mx53loco and m28evk but keeping the
possibility to easy change the default console device as Freescale and
mainline kernels differ on the device name.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
mx53loco: change default environment to cope with OE changes

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
mxs: Check if we are using a valid VBUS for power initialization

Series-to: u-boot
Series-version: 3

Series-changes: 4
- rebase against imx/master

Series-changes: 3
- change short-description prefix

Series-changes: 2
- fix when we have vbus OR vdd5v
- improve patch short description
- add comments

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
patman: Allow for changelog use in first version of a series

When a patchset had a RFC series, a v1 might have a changelog of
changes done since the RFC. The patch changes the range checked for
changelog and allow it to start for version 1.

Series-to: u-boot

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>