ENGR00176347-1 mx6solo sabreauto: add configuration support

The serial of patches adds the initial support for mx6solo
sabra auto board:
- DDR3 400MHz@32bit
- SD/MMC basic operations
- SPI-NOR basic operations
- OTP fuse
- clock command
- Anatop regulator command
- splash screen support by enabling "CONFIG_SPLASH_SCREEN"

Because i.mx6solo share the same ARD board with i.mx6dq,
the same board file is shared between i.mx6dq and i.mx6solo.
CONFIG_MX6DL configuration is used to distinguish the difference.

This patch is used to add mx6solo sabreauto configuration support.

Signed-off-by: Lily Zhang <r58066@freescale.com>
ENGR00176347-2 mx6solo sabreauto: add DDR3 support

Add DDR3 script (400MHz@32 bit) in mx6solo sabre auto
board. MX6Solo_DDR3_400MHZ_32bit.inc was delivered
on Mar 7, 2012 by Fan Chongbin-B32609

Signed-off-by: Lily Zhang <r58066@freescale.com>
ENGR00176347-3 mx6solo sabreauto: add board support

- Add PIN/IOMUX support for mx6solo sabreauto board
- Remove GPIO_9 codes because GPIO_9 is not the backlight
- change system_rev as 0x610000

Signed-off-by: Lily Zhang <r58066@freescale.com>
ENGR00176347-4 anatop: add support for mx6solo/dl

Enable anatop command "regul" for mx6solo/DL

Signed-off-by: Lily Zhang <r58066@freescale.com>
ENGR00176347-5 mx6solo sabreauto: set system_rev

Add set_system_rev function. The layout of system_rev is:
bit 0-7: Chip Revision ID. Read from Anatop register
bit 8-11: Board Revision ID. Read from fuse OCOTP_GP1[15:8]
	1: RevA Board
	0: RevB board, Unknown board
bit 12-19: Chip Silicon ID. Read from Anatop register
	0x63: i.MX 6Dual/Quad
	0x61: i.MX 6Solo/DualLite

board_is_rev(system_rev,BOARD_REV_1) can be used to
distinguish RevB board.
board_is_rev(system_rev,BOARD_REV_2) is for RevA board.

Signed-off-by: Lily Zhang <r58066@freescale.com>
ENGR00176347-6 mx6solo sabreauto: remove build warning

Remove the following build warning:
mx6q_sabreauto.c: In function 'enet_board_init':
mx6q_sabreauto.c:999: warning: unused variable 'reg'
mx6q_sabreauto.c: At top level:
mx6q_sabreauto.c:921: warning: 'phy_read' defined but not used

Signed-off-by: Lily Zhang <r58066@freescale.com>
ENGR00176347-7 bootm: remove build warning

Remove the following build warning:
bootm.c: In function 'do_booti_linux':
bootm.c:147: warning: pointer targets in assignment differ in signedness

Signed-off-by: Lily Zhang <r58066@freescale.com>
ENGR00176347-8 cmd_bootm: remove build warning

Remove the following build warning:
cmd_bootm.c: In function 'do_booti':
cmd_bootm.c:1524: warning: unused variable 'partno'
cmd_bootm.c:1520: warning: unused variable 'pte'
cmd_bootm.c:1654: warning: implicit declaration of function 'do_booti_linux'
cmd_bootm.c:1596: warning: 'info.start' may be used uninitialized in
this function
cmd_bootm.c:1502: warning: 'addr' may be used uninitialized in this function

Signed-off-by: Lily Zhang <r58066@freescale.com>
ENGR00176347-9 fec : increase wait time for phy link

- remove the excrescent code in enet_board_init function.
- KSZ9021 phy auto-negotiation in mx6solo sabreauto RevA
  is used to establish link with the remote hub or switch.
  In general, the negotiation time is about 3-5 senconds
  But connecting to Gbps hub, the time
  is range from 8s to 15s. So, changing the MAX link waiting time
  to 20s.
  According to repetitious tests, solo ARD ethernet is ok in 100Mbps
  environment. It is not stable in 1000Mbps mode.

Signed-off-by: Fugang Duan <B38611@freescale.com>
ENGR00177070 android: isolate booti command to fix build.

fix build error invoke by this patch:

commit e3303f5b59df570c1f76b043d85e42be3dc7a63f
Author: Lily Zhang <r58066@freescale.com>
Date:   Fri Mar 9 21:16:51 2012 +0800

Signed-off-by: Zhang Jiejing <jiejing.zhang@freescale.com>
ENGR00176834-1 - [imx6] : add fsl_system_rev to check chip and board.

- Add fsl_system_rev to distinguish chip ID and board reversion.
- Add some api:
  mx6_chip_is_dq()
  mx6_chip_is_dl()
  mx6_chip_is_solo()
  mx6_chip_is_sololite()

  mx6_board_is_reva()
  mx6_board_is_revb()
  mx6_board_is_revc()

Signed-off-by: Fugang Duan <B38611@freescale.com>
ENGR00176834-2 - i.MX6DL sabresd: board bringup

The serial of patches adds the initial support for mx6dl
sabra sd board:

- DDR3 400MHz@64bit, 1G, 256M*4
- SD/MMC basic operations
- Add PIN/IOMUX support for mmx6dl sabresd.
- Ethernet is ok for 100/1000Mbps.
- OTP fuse

Signed-off-by: Fugang Duan <B38611@freescale.com>
ENGR00176834-3 - i.MX6DL sabresd : DDR init script update

 Use the ddr init script “MX6DL_init_DDR3_400MHz_64bit_1.2.inc”
 for SD revB with Rigel mounted, and update the calibration parameters
 (write leveling, DQS gating, read delay, write delay),
 which is located at:
 	http://compass.freescale.net/livelink/livelink?func=ll&
 objid=225128962&objAction=browse&sort=name

 Signed-off-by: Fugang Duan <B38611@freescale.com>
ENGR00177244 - imx6 : Use common fsl_sys_rev to check board reversion

- Use fsl_sys_rev to check Sebreauto board reversion.
- Add macro define for expedient print the board and chip name.
  mx6_chip_name()
  mx6_board_rev_name()

Signed-off-by: Fugang Duan <B38611@freescale.com>
ENGR00176837-1 - imx6 sabreauto : add net support for revb boards.

- In imx6 sabreauto board REVB Ethernet phy adopt AR8031. Add
  phy init rework.

  Signed-off-by: Fugang Duan  <B38611@freescale.com>
ENGR00176837-2 - imx6 sabreauto : add i2c3 support for revb board.

- Add i2c3_SDA iomux config for the change of signal traces.

Signed-off-by: Fugang Duan  <B38611@freescale.com>
ENGR00176837-3 - FEC : detect phy ID to match the phy type.

- Add phy id macro definitions.
- Add mxc_get_phy_ouid helper function.
- Use phy ouid to check the phy type.

Signed-off-by: Fugang Duan  <B38611@freescale.com>
ENGR00176837-4 - imx6solo sabreauto : remove Ethernet phy MICREL macro.

- FEC detect phy OUID to check phy type, so remove MICREL macro
  in board config file.

 Signed-off-by: Fugang Duan  <B38611@freescale.com>
ENGR00177657: Add mfg configs for mx6dl sabresd and mx6solo sabreauto

Add mfg configs for mx6dl sabresd and mx6solo sabreauto.

Signed-off-by: Terry Lv <r65388@freescale.com>
ENGR00177783: i.mx6dl: sabresd revB: update DD3 init script

Update the DDR3 script on i.mx6dl SabreSD revB board, the
script got from:
http://wiki.freescale.net/download/attachments/33954617/MX6DL_init_DDR3
_400MHz_64bit_1_2_For_SD_RevB.inc?version=1&modificationDate=1332495827000

Signed-off-by: Jason Liu <r64343@freescale.com>