Merge pull request #2 from tobetter/odroid-v2010.12

Odroid v2010.12
Merge pull request #3 from tobetter/odroid-v2010.12

Odroid v2010.12
[PATCH 1/1] This enables USB to function on the Odroid
[PATCH 1/1] USB Ether Net port
Added ext2/ext3/ext4 support.
 Added LED lights on the SMSC LAN9730 USB ethernet.
Porting generic ls/load command for ext and fat.
Reset LAN9730 on a usb stop/reset command
Configure USB3503 with i2c for CFG1 - self powered
Enable netconsole and usb keyboard with console mux.
Bug fix and boot menu

Fix netconsole bug and usb keyboard related slowness.
Add bootscan to present user with menu
Android as bootable option

Added Android in bootscan menu
Make buffer DMA aligned

Make the response buffer DMA aligned

Signed-off-by: Mauro Ribeiro <mauro.ribeiro@hardkernel.com>
Leave default behavior intact so it works with official images
Fix overflow
ehci-exynos: Allow to specify clken_polarity from env

ODROID-X2 boards expect active high to enable 24Mhz clock
This patch introduces 'usb_invert_clken' environment variable
that does the trick.
For X2 boards - set to 1, for U/U2 - set to 0 (default)

Signed-off-by: Andrew Andrianov <andrew@ncrmnt.org>
Merge pull request #5 from nekromant/odroid-v2010.12

ehci-exynos: Allow to specify clken_polarity from env
[UMS 1/1] Add support for ums command
Merge branch 'odroid-v2010.12' of github.com:hardkernel/u-boot into odroid-v2010.12
Update smdk4412.h

modified mapped ram base 0x40000000 to 0xc0000000
sd_fuse: sd_fusing: Add Embedded MMC (eMMC) support

Odroid boards can boot from either a SD/MMC or an eMMC. The iROM
load the bootloader binaries (first and second stage bootloader,
trustzone, DRM, etc) from the first sectors of the boot device.

An SD exposes all its physical address space as just one device
(e.g: /dev/mmcblk0) so its first sectors are just located on that
device but the eMMC split its physical address space in different
virtual devices (e.g: mmcblk0boot0, mmcblk0boot1, mmcblk0rpmb and
mmcblk0). So the eMMC first sectors are not located on the device
but on the virtual ${device}boot0.

Also, the addresses are at a different offset for SD/MMC and eMMC
so special care has to be taken when flashing images to an eMMC
since just dd'ing an image to the block device won't work.

The binaries written and their offset on both a SD/MMC and eMMC are:

+---------------------------------+--------------+-----------------+
|                               eMMC                               |
+---------------------------------+--------------+-----------------+
| Binary                          | Start sector | Length (sector) |
+---------------------------------+--------------+-----------------+
|                                 |              |                 |
| bl1.HardKernel (BL1/DRM)        |    0         |   30            |
|                                 |              |                 |
| bl2.HardKernel (BL2/SPL)        |   30         |   32            |
|                                 |              |                 |
| u-boot.bin (U-Boot)             |   62         | 1024            |
|                                 |              |                 |
| tzsw.HardKernel (TrustZone S/W) | 2110         |  312            |
+---------------------------------+--------------+-----------------+

+---------------------------------+--------------+-----------------+
|                              SD/MMC                              |
+---------------------------------+--------------+-----------------+
| Binary                          | Start sector | Length (sector) |
+---------------------------------+--------------+-----------------+
|                                 |              |                 |
| bl1.HardKernel (BL1/DRM)        |    1         |   30            |
|                                 |              |                 |
| bl2.HardKernel (BL2/SPL)        |   31         |   32            |
|                                 |              |                 |
| u-boot.bin (U-Boot)             |   63         | 1024            |
|                                 |              |                 |
| tzsw.HardKernel (TrustZone S/W) | 2111         |  312            |
+---------------------------------+--------------+-----------------+

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>