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>

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
ARC: [plat-eznps] Add eznps DTS file

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: [plat-eznps] Add device for Data Plane Linux

Add new device /dev/dpl.
This device enable access to cmem in other cores.

It is usefull for debugging when gdbserver is attached to process
which runs in a different CPU than gdbserver.

Signed-off-by: Noam Camus <noamc@ezchip.com>
Signed-off-by: Tal Zilcer <talz@ezchip.com>
ARC: [plat-eznps] restore aux dpc at context switch

Now thread_struct got new field for dp.
At the moment it got place for auxiliary DPC.

This commit insures that data plane control is part of task status.

We give special care while trying to access from ptrace by gdb.
Then DPC is taken from debuged task and not the current which is gdb.

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: Set user stack top from configuration.

Now per configuration user stack top address can be set.
It is usefull in case the default (TASK_SIZE) is used by other
special memory e.g. CMEM/FMT in eznps platform.

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: cmdline not from bootloader

When there is no bootloader then we get cmdline from memory.
e.g. when using nSIM vmlinux is launched without u-boot.

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: [SMP] don't use identity AUX reg.

With identity num of CPUs is limited to 256 (8 bit).
We use our own alternative AUX register GLOBAL_ID (12 bit).
Now we can support up to 4096 CPUs.

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: [SMP] init cpus maps according to given maps.

platform can set its own set of possible/present cpus at run time.

NOTE: map must include cpu 0.

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: [mm] fix compilation error

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: [plat-eznps] add pmu support

Now one can use performance counters if available
Signed-off-by: Noam Camus <noamc@ezchip.com>