Revert "ARC: Makesure devtmpfs is present if building for initramfs"

This reverts commit f39d7525c60eee8a4f8ede0665891ae73c414fd5.

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
ARC: Makesure devtmpfs is present if building for initramfs [UPDATED]

Our initramfs now relies on devtmpfs and w/o it init just panics w/o a
clue of what's going on.

[vgupta: elaborate comment added

Noam figured out the Kconfig magic which I was tripping on !
Now Kbuild ensures that DEVTMPFS/HOTPLUG is auto-selected for INITRAMFS
We don't need the #error hack which requires manual selection.

Plausibly we could have also set DEVTMPFS_MOUNT and/or UEVENT_HELPER but
that's not apt for Kconfig, it belongs to platform speific defconfig.

kernel "code" (Kconfig) is not supposed to define policy (e.g. whether we
want to use mdev/udev etc - even if we only have mdev). That is best
done by user which means in a defconfig and/or in userland startup
scripts. The origi motivation for this change was to solve the common
annoyance where kernel with initramfs (which in turn relies on devtmps)
didn't have DEVTMPS, causing "init" to panic. We only solve that -
although that's also on the borderline of policy argument.]

Signed-off-by: Noam Camus <noamc@ezchip.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
ARC: breakage while !CONFIG_ARC_HAS_DCACHE

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: Essential changes to build perf-tools

Although this is still not enough, we need more "hacks" which needs to
be discussed on lkml first

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: PS/2 - Update after comments from open source community

* dev_dbg, dev_info instead of pr_*
* module_platform_driver() instead of explicit init()/exit()
* ioread32/iowrite32 instead of inl/outl
* updated error return values to correct ones
* add timeout to check_rx (in case of bad HW)
* reordering of code/cosmetics by Dmitry Torokhov
* minor things

Signed-off-by: Mischa Jonker <mischa.jonker@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>
tty/8250_early: Make serial_in/serial_out be overidable

Now one can replace default methods with ones fit to its needs.
For example choose other regshift or offset.

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>
ARC: Handle un-aligned user space access in BE.

Adding endian awarness to un-aligned access exception handling.

Signed-off-by: Noam Camus <noamc@ezchip.com>
ARC: uImage compression mode

It is possible to add configuration for gzip compression.

The default is none, no compression at all.

Signed-off-by: Noam Camus <noamc@ezchip.com>
Race between targets scripts_basic and asm-generic

This resolves race in make jobs (-j2 flag).
It happend when source tree is distcleaned (mrproper).

First job:
	running target asm-generic to generate all wrappers in architecure inlude/generated.
Second job:
	trying to compile empty.c since it is under taget always and it is dependency for __build.

The error is cause empty.o depends on some headers from arch/<arch>/include/generated/asm/.

This race hit once in a while and can be very annoying.

Signed-off-by: Noam Camus <noamc@ezchip.com>
Changed linux version to EXTRAVERSION = .EZchip_1.0