ARC: [plat-*] Enable CONFIG_DEVTMPFS and CONFIG_HOTPLUG

This allows us to dynamically create/populate /dev folder on target,
removing the need for static device nodes which in turn require a
one-time root/sudo permission on host.

Fixes STAR ARS0096392

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
ARC: Various PS/2 driver fixes

This patch includes:
 * fix for build problem (due to lacking headers)
 * fix for crash due to name of interrupt:
     The '/' causes problems when request_irq tries to create
     a procfs entry.
 * conversion for all 8 bit I/O accesses to 32 bit
     The ARC Angel 4 has no problems with this, and other architectures
     may have buses that do not support byte accesses in this way.

Signed-off-by: Mischa Jonker <mischa.jonker@synopsys.com>
ARC: Separate platform driver and device for ARC PS/2

The PS/2 driver registered both the platform driver and the platform device
at the same location. This patch splits the two, so that the platform
device with its resources is registered in the board-specific code.

Signed-off-by: Mischa Jonker <mischa.jonker@synopsys.com>
ARC: [plat-haps51] dw_pgu2fb: Use generic functions for fillrect etc.

fb_fillrect, fb_copyarea and fb_imageblit are required functions for a
frame buffer driver. They cannot be NULL, as this will cause crashes when
enabling certain kernel options (such as fbcon). This patch makes sure
that these function pointers are not NULL, but point to the generic
(unaccelerated) implementations.

This fixes STAR 9000575139.

Signed-off-by: Mischa Jonker <mischa.jonker@synopsys.com>
ARC: [plat-haps51] dw_pgu2fb: Various fixes

This patch removes a few warnings, and fixes a couple of
for & while statements that do nothing in their loops.

Signed-off-by: Mischa Jonker <mischa.jonker@synopsys.com>
ARC: Legacy serial driver depends on legacy FPGA platform

Make it explicit in Kconfig:
SERIAL_ARC depends on ARC_PLAT_FPGA_LEGACY

Signed-off-by: Mischa Jonker <mischa.jonker@synopsys.com>
ARC: [plat-haps51] Rename HAPS51 board

There's only one HAPS51 board. This also makes naming consistent with
ML509, ANGEL4.

Signed-off-by: Mischa Jonker <mischa.jonker@synopsys.com>
ARC: [plat-haps51] Add support for nSIM based OSCI System C model

This model is compatible with some of the peripherals that are also used
for the HAPS51 FPGA system.

[vgupta: some tweaks to irq.h/Kconfig]

Signed-off-by: Mischa Jonker <mischa.jonker@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
ARC: [plat-haps51] Add defconfig for NSIM OSCI virtual model

This adds a default configuration file for the NSIM System C OSCI
virtual model.

Signed-off-by: Mischa Jonker <mischa.jonker@synopsys.com>
ARC: build: uImage binaries/tmps generated in boot folder

[vgupta:

1: This partiall reverts commit 9902f811d
"ARC: Improvements to uImage target building" since buildroot expects
the uImage to be generated NOt in top folder but in arch/arc/boot

2. Noam's patch updated to remove the clean-files rule no longer needed]

Signed-off-by: Noam Camus <noamc@ezchip.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
ARC: build: Toolchain workaround for --build-id option

arc-linux-uclibc-ld (buildroot) or arceb-elf32-ld (EZChip) don't
recognize vanilla --build-id (-marclinux has to be passed).

The default arc-elf32-ld is fine though !

This workaround can be reverted once STAR 9000518362 is addressed by GNU
folks.

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
modpost: ARC specific section added to white-list

GNU tools now correctly aggregate .gnu.linkonce.arcext* into .arcextmap
section.

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
ARC: Linux as an Eclipse project

This is to enable developer import Linux sources into eclipse.

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: clock source with SMP

In SMP we need some global clock source.
Need some call to platform specific routine from cycle_read_t1.

Signed-off-by: Noam Camus <noamc@ezchip.com>
NET: Add network driver

This patch adds an driver for the debug LAN device used in EZchip NPS boards.

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: [plat-eznps] Add eznps platform

This platform include boards:
	Hardware Emulator (HE) version 0,1...
	Simulator based upon nSIM.

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: [plat-eznps] Add eznps default board configurations

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: TLB flush for SMP

This is for cases we need to flush tlb's in several CPU's since a memory
structure may be held by several threads in the same time in different
CPU's.

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: ASID with SMP

Each CPU got its own TLB and therefore it's own software cache.
Also each mmu context may reside at the same in several CPU's thanks to
threads sharing the context therefore may have different ASID.

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: Add initrd from external file.

We now can easly get rootfs from external file.
It may be cpio, ext2, cramfs...

This makes vmlinux usable not only for internal cpio.

Signed-off-by: Noam Camus <noamc@ezchip.com>