mmc: atmel_mci: using IP version for different setting

Using IP version for different setting
  - Higher version supports 8bit mode
  - Higher version bus width setting is different

Signed-off-by: Bo Shen <voice.shen@atmel.com>
mmc: atmel_mci: add mmc card support

add mmc card support with atmel mci driver

Signed-off-by: Bo Shen <voice.shen@atmel.com>
fs: fat: fix bug when write size is less than a sector size
arm: at91: enable mci support for at91sam9g20ek.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
arm: at91: add at91sam9g20ek_mmc_config, which can save environment in mmc card

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
arm: at91sam9n12: change EBI IO to high drive mode

As both the DDR SDRAM and NAND flash connect to EBI on at91sam9n12
and share the lower 8 bits data line. If use low drive of the data
line, it will cause DDR data access corrupt in lower address, so
change the data line to high drive mode

This will fix the Linux kernel boot issue when use Lower address

Signed-off-by: Bo Shen <voice.shen@atmel.com>
net: ks8851_mll: add ethernet support

The device interface is 16 bits wide.
All the available packets are read from the incoming fifo.

Signed-off-by: Roberto Cerati <roberto.cerati@bticino.it>
Signed-off-by: Raffaele Recalcati <raffaele.recalcati@bticino.it>
[voice.shen@atmel.com: address comments from review results]
[voice.shen@atmel.com: clean up for submit]
Signed-off-by: Bo Shen <voice.shen@atmel.com>
Tested-by: Raffaele Recalcati <raffaele.recalcati@bticino.it>
ARM: at91sam9n12: add network support with ksz8851_16mll

add network support with ksz8851_16mll on at91sam9n12ek board

Signed-off-by: Bo Shen <voice.shen@atmel.com>
Acked-by: Andreas Bießmann <andreas.devel@googlemail.com>
arm: atmel: add nand trimffs subcommand for at91sam9n12 and at91sam9x5

as the at91sam9n12 and at91sam9x5 soc support PMECC, when use u-boot
to flash the rootfs, in order to avoid flash one sector with all 0xff
into NAND, so use nand trimffs subcommand to avoid it

Signed-off-by: Bo Shen <voice.shen@atmel.com>
mtd: atmel_nand: pmecc: fix bug fail to correct bit error in 1024-bytes sector

The PMECC use BCH algorithm to correct error. In BCH algorithm, the
primitive polynomial value is GF(2^13) for 512-bytes sector size. And it is
GF(2^14) for 1024-bytes sector size.

This patch will choose correct degree of the remainders(13 or 14) for
different sector size.
Tested in AT91SAM9X5-EK with MLC nand flash.

More detail can be refered to section 5.4.1 of:
  AT91SAM ARM-based Embedded MPU Application Note
  <http://www.atmel.com/Images/doc11127.pdf>

Signed-off-by: Josh Wu <josh.wu@atmel.com>
arm: sama5d3: fix smc cs related registers offset

the smc cs related registers start at 0x600 and loop with 5 registers
so the reserved register should be in at91_smc structure while no in
at91_cs structure. So fix it

Signed-off-by: Bo Shen <voice.shen@atmel.com>
arm: sama5d3: remove unused define

The CONFIG_MAX_NAND_CHIPS never used, remove it
No where define LCD_TEST_PATTERN, so no need undefine

Signed-off-by: Bo Shen <voice.shen@atmel.com>
arm: atmel: remove the config.mk file

remove the config.mk file
move text base define to board config file for following boards
  - at91sam9m10g45ek
  - at91sam9x5ek

Signed-off-by: Bo Shen <voice.shen@atmel.com>
gpio: atmel: fix code to use pointer for pio port

fix code to use pointer for pio port as the warning message suggested
remove the warning message

Signed-off-by: Bo Shen <voice.shen@atmel.com>
gpio: atmel: add gpio common API support

add gpio common API support for gpio command

Signed-off-by: Bo Shen <voice.shen@atmel.com>
gpio: atmel: add copyright and remove error header info

Signed-off-by: Bo Shen <voice.shen@atmel.com>
arm: atmel: sama5d3: fix typo error for CONFIG_ENV_IS_NOWHERE

fix typo error for CONFIG_ENV_IS_NOWHERE from CONIG_ENV_IS_NOWHERE

Signed-off-by: Bo Shen <voice.shen@gmail.com>
sama5d3: support sama5d36 chip

Signed-off-by: Josh Wu <josh.wu@atmel.com>
at91: change default bootcmd to bootz, which to load zImage kernel

change boards includes: at91sam9m10g45ek, at91sam9n12ek, at91sam9x5ek
and sama5d3xek.

Signed-off-by: Josh Wu <josh.wu@atmel.com>
at91sam9g20: change default bootcmd to bootz, which to load zImage.

Signed-off-by: Josh Wu <josh.wu@atmel.com>