ARC: add .gitignore files

Ignore the following files:
 * devicetree .dtb, .dtb.S files
 * vmlinux.lds

Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
ARC: Add perf support

This adds basic perf support for ARC. Most PERF_COUNT_HW* events are
supported now. Cache events and callchains are not (yet).

Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
ARC: Add basic TRACE_IRQFLAGS_SUPPORT

This is required for TRACING_SUPPORT, which in turn is very helpful for
various perf-related activities.

Note that we don't trace irq's inside kernel/entry.S yet; IRQ enable/
disable is not fully balanced within the assembly in some cases, and it
doesn't seem required for lockdep and tracing.

Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
ARC: Make arc_unwind_core accessible externally

The arc unwinder can also be used for perf callchains.

Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
ARC: Add kernel callchain support for perf

Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
ARC: stack unwinder: allow user-space addresses if desired

Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
ARC: perf: add callchains for user space

Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
Add a driver for the Synopsys DesignWare APB GPIO block

The Synopsys DesignWare block is used in some ARM devices (picoxcell)
and can be configured to provide multiple banks of GPIO pins.

This driver has been made by Jamie Iles but didn't make it to
mainline yet.

Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Linus Walleij <linus.walleij@stericsson.com>
Cc: Rob Herring <rob.herring@calxeda.com>
Cc: Jamie Iles <jamie@jamieiles.com>

Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
gpio: dwapb: add support for GPIO interrupts

The controller supports interrupts on bank A (up to 8 interrupt
sources).  Use the generic IRQ chip to implement interrupt support for
this bank.

This patch was originally posted by Jamie Iles, but hasn't appeared
in mainline yet.

Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Linus Walleij <linus.walleij@stericsson.com>
Cc: Rob Herring <rob.herring@calxeda.com>
Cc: Jamie Iles <jamie@jamieiles.com>

Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
gpio: dwapb: Fix interrupts and build problems for 3.10 kernel

Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
gpio: dwapb: use ioread32/iowrite32

Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
ARC: [xplorer] Add plat-xplorer

Timer, UART0 working

Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
ARC: [xplorer] Update .dts file

* reflect bus architecture (using ranges)
* add fpga tile
ARC: [xplorer] Initialize memory map

Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
ARC: [xplorer] Add driver for dw-apb-ictl interrupt controller

Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
ARC: Add basic support for HAPS51

Support for UART, Ethernet and MMC

Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
mmc/dw_mmc: Add support for ARC

* Adapt Kconfig to include ARC in supported architectures
* Make host->bus_hz default to the given bus rate (in devicetree), for
  platforms where clk_get_rate is unsupported and always returns 0.

Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
input/serio: disable i8042 PC keyboard ctrl for ARC

It causes crashes when enabled, and we don't have such a peripheral
anyway on ARC platforms.

Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
serial/arc-uart: Clear interrupts when encountering errors

If we get a frame error or overflow error without actually receiving
characters, the interrupt will not be cleared. This patch fixes this
problem by checking for these bits in the interrupt handler.

Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
Cc: Vineet Gupta <vgupta@synopsys.com>