video: add an option to skip cfb console init

This patch add an option to skip cfb console init for boards
who want to show a logo, but not use the cfb console. This is
needed for the siemens boards, which have a bmp bootlogo, but
do not need the cfb console.

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Anatolij Gustschin <agust@denx.de>
i2c, omap24xx: fix spl mode

Signed-off-by: Heiko Schocher <hs@denx.de>
net, phy: fix NULL pointer deference

if phydev is a NULL pointer, code crash, so add check if phydev != NULL

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Andy Fleming <afleming@freescale.com>
Cc: Kumar Gala <galak@kernel.crashing.org>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Cc: Tom Rini <trini@ti.com>

***
Found on the dxr2 board with no phy connected to the board,
U-Boot crashes with:

U-Boot# tftp 0x80200000 /tftpboot/dxr2/u-boot.bin
data abort

    MAYBE you should read doc/README.arm-unaligned-accesses

pc : [<87f80ffc>]          lr : [<87f7fbdc>]
sp : 86f5ace0  ip : ffffff00     fp : 87f9a2c2
r10: 00000000  r9 : 87f9a2c7     r8 : 86f5af30
r7 : 00000000  r6 : 86f5f750     r5 : 86f5f7f0  r4 : 86f5f750
r3 : 86f5f804  r2 : 86f5f7f0     r1 : 00000014  r0 : 00000000
Flags: Nzcv  IRQs off  FIQs on  Mode SVC_32
Resetting CPU ...

resetting ...
arm, am335x, siemens board: add splashpos environment var to default

add splashpos=m,m to default environment, so splash screen is always
centered.

Signed-off-by: Heiko Schocher <hs@denx.de>
siemens,rut: SPL add early reset pulse for eth-phy, maXTouch and display

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
rut: display timing aenderungen

Signed-off-by: Heiko Schocher <hs@denx.de>
siemens boards: adapt for background color = white

Signed-off-by: Heiko Schocher <hs@denx.de>
video, cfb_console: make background and foreground color configurable

make CONSOLE_BG_COL/CONSOLE_FG_COL configurable through board config file.
Clear video screen in video_init().

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Anatolij Gustschin <agust@denx.de>
dfu:cosmetic: Fix printf text for buffer overflow condition

Correct error message if overflow is detected.

Change-Id: I8a915c7353d49822c046fbc36241237b370e6c98
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
dfu: Make maximum DFU file size equal to default DFU data buffer

Up till now the DFU maximum file size (to be written to e.g. eMMC)
was different from the DFU data buffer size. It caused errors when
one buffer was smaller than data to be written.

Now, the maximum DFU file size is equal to default DFU buffer size.
In spite of this, user is still able to manually adjust those default
values.

Change-Id: Ied75d0f7b59588ebd79dae9a22af801d36622216
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
dfu: Find DFU alt setting number by passing its name

New function - dfu_get_alt() has been added to dfu core. If proper
alt setting is present, this function returns its number
corresponding to passed name.

Change-Id: Icd75f3aa3a6f6e306c77b28cabe620e4e6a253ea
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
dfu: Extract common DFU code to handle "dfu_alt_info" environment variable

New dfu_init_env_entities() function has been extracted from cmd_dfu.c and
stored at dfu core.

This is a dfu centric code, so it shall be processed in the core.

Change-Id: I756c5de922fa31399d8804eaadc004ee98844ec2
Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
arm, am335x: rut change display init

- change spi mode from 3 to 0
- add gpio pin for lcd reset with state 0 and add mdelay

Signed-off-by: Heiko Schocher <hs@denx.de>
arm, am335x, rut: fix compile warning

Signed-off-by: Heiko Schocher <hs@denx.de>
video, formike: change tag/val write

write first the "tag" 8 bit value and then the "val" 8-bit
to the display.

Tested on the rut board.

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Anatolij Gustschin <agust@denx.de>
usb, g_dnl: make iSerialNumber board configurable

add the possibility to set the iSerialNumber board specific.
Therefore the CONFIG_G_DNL_SERIAL_STRING is introduced, which
defines the maximum length of the iSerialNumber string.
The new function g_dnl_set_serialnumber() must called from
g_dnl_bind_fixup(), to setup the iSerialNumber string.

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Lukasz Majewski <l.majewski@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
usb, g_dnl: make bcdDevice value configurable

add the possibility to set the bcdDevice number board specific.
Therefore the weak function g_dnl_get_board_bcd_device_number()
is introduced. Used on the siemens boards.

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Lukasz Majewski <l.majewski@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
arm, am335x: add dfu serial and device number for siemens boards

Add for the siemens boards the possibility to define in dfu mode,
the iSerialNumber and the bcdDevice fields in the USB Device
descriptor.

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Tom Rini <trini@ti.com>