i.MX28: use a clear name for DDR2 initialization

The mx28 prefix has been added to the initialization data and function
so it is clear by which SoC it is used as i.MX233 will have a specific
one. While on that, we also change it to static.

Series-to: u-boot
Series-version: 2
Series-changes: 2
- use static for the allocation of memory initialization matrix

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

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

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>
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: reorganize source directory for easy sharing of code in i.MXS SoCs

Most code can be shared between i.MX23 and i.MX28 as both are from
i.MXS family; this source directory structure makes easy to share code
among them.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
mxs: prefix register acessor macros with 'mxs' prefix

As the register accessing mode is the same for all i.MXS SoCs we ought
to use 'mxs' prefix intead of 'mx28'.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
mxs: prefix register structs with 'mxs' prefix

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
mxs: SPL: use 'mxs' prefix for methods as it is mostly generic code

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
mxs: rename mx28.c to mxs.c as it is common to i.MX233 and i.MX28 SoCs

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

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

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

The address space layout is a bit different on MX233.

Signed-off-by: Marek Vasut <marex@denx.de>
i.MX233: add regs-clkctrl-mx23.h

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

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
i.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>
Cc: Marek Vasut <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
i.MX233: add iomux-mx23.h

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

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
i.MX233: SPL: Disable i.MX28 specific power code

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
mxsboot: refer to i.MX23/i.MX28 as it works for both SoCs

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
mx23evk: add board information

This adds the i.MX23EVK board to be build. This board has:

 Processor: Freescale i.MX233

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
wip
use 64m of ram for testing