FogBugz #165063: SDRAM ECC Error Injection for Testing

The current SDRAM ECC testing was performed by shorting an address
line to ground. In the case of an uncorrectable error (2 bit error)
2 address lines had to be shorted to ground.
The Altera SDRAM controller has the ability to inject ECC errors
(single or double bit) during write operations. This change
implements the injection of SDRAM ECC errors in software.
- Requires that EDAC debugging (CONFIG_EDAC_DEBUG) is defined.
- Single or double bit errors are generated depending upon
  string size sent (1 character = 1 bit error/2 char=2bit)
- To inject a single bit error (correctable)
       echo "1" > /sys/kernel/debug/edac/mc0/inject_ctl
- To inject a double bit error (uncorrectable - panic)
       echo "12" > /sys/kernel/debug/edac/mc0/inject_ctl

V2:
- Make double bit error case very restrictive

Signed-off-by: Thor Thayer <tthayer@altera.com>
FogBugz #152777: Fix out-of-order QSPI chip select configuration.

Set chip select value before using it as index into array.

Signed-off-by: Graham Moore <grmoore@altera.com>
FogBugz #166216: Fix DMA pl330 initialization for 3.11

During the 3.11 kernel upgrade cycle, I merged the pl330 dma driver
incorrectly. The merge removed that platform specific initialization
call from the pl330 driver.

Putting back the initialization code.

Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
FogBugz #165941: FPGA bridge drivers need to be started early

The fpga bridge framework needs be started before the
individual bridge drivers, and the individual bridge
drivers need to be started before any other driver
for components on the FPGA.  The earliest the bridge
drivers successfully start is during arch_init().

Signed-off-by: Matthew Gerlach <mgerlach@altera.com>
FogBugz #166582: Kernel needs option to support IPv6

The IPv6 option needs to be specific in socfpga_defconfig for
IPv6 networking to be available in the Linux networking stack.

Signed-off-by: Vince Bridgers <vbridger@altera.com>
FogBugz #163821: arch/nios2: Add devtmpfs to defconfig

Enable DEVTMFS as default and removed non-exist configs.
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y

Note, need to compile rootfs with BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS
enabled.

Signed-off-by: Ley Foon Tan <lftan@altera.com>
FogBugz #166446: nios2: move .GOT section after .text section

Fix boot from flash issue.
.GOT section needs to be after .text section because
arch/nios2/boot/compressed/misc.c:decompress_kernel() assumes kernel is
at top of the memory region.

Signed-off-by: Ley Foon Tan <lftan@altera.com>