FogBugz #192124: Fix SPI IRQ numbers in the DTS

The IRQ numbers for the SPI master entries was incorrectly using the SPI
slave IRQ numbers.

Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
FogBugz #192127: Fix CTI address length

The register base length for the CTI module should be 0x1000, not 0x100.

Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
FogBugz #175246: SLD HUB Driver

This patch is the GPL V2 driver for the SLD (System Level Debug)
Hub Controller IP.

V2:
Incorporate review comments, clean up code, remove debug code.
Use kfifo instead of custom ring buffer.
Use simple_write_to_buffer(), copy_to_user(), and kfifo_to_user()
for copying data to/from user space.
Add header file for ioctl.
Move driver source to drivers/char.

V3:
Remove blank line at end of sld-hub.txt.

V4:
Elaborate V2 comments.
Remove more blank lines and divider lines.
Format multi-line comments properly.
Fix code error in sld_hub_release().
Use gotos for handling errors in probe function instead of calling
release function.
Replace conditional operator with if... in sld_hub_read_romid().
Remove request_and_map(), replace with devm_request_and_ioremap().
Remove unnecessary of_match_ptr().
Add "depends on OF" to Kconfig.

V5:
Move sld-hub.h to include/linux for external use.

Signed-off-by: Graham Moore <grmoore@altera.com>
Revert "FogBugz #192124: Fix SPI IRQ numbers in the DTS"

This reverts commit b3157ef96fc3b06b1e12cc5fb6253f179bbe022d.
The original SPI IRQ numbers are correct.

Signed-off-by: Dinh Nguyen <dinguyen@altera.com>
FogBugz #178225: Add Altera interrupt latency counter driver

Adding Altera interrupt latency counter driver support. This driver works
together with the Altera interrupt latency driver soft IP to measure the
time from the interrupt being asserted to the execution of the interrupt
service routine. This driver and soft ip supports for both edge and level
interrupt.

V2:
- Update fifo-depth property name in device tree
- Update binding document to add sysfs path and use case
- Update includes header in alphabetical order
- Remove global variables
- Rename kfifo stucts naming to avoid confusion
- Validate offset return value
- Changing read and write register functions
- Update on misc coding styles and format

V3:
- Update coding styles
- Update irq_request function
- Changing print out to dev_dbg() in ISR
- Fix ISR return values

V4:
- Remove stray line

Signed-off-by: Phoon Chee Nouk <cnphoon@altera.com>
i2c: designware: make SCL and SDA falling time configurable

This patch allows to set independantly SCL and SDA falling times.
The tLOW period is computed by taking into account the SCL falling time.
The tHIGH period is computed by taking into account the SDA falling time.

For instance in case the margin on tLOW is considered too small, it can
be increased by increasing the SCL falling time which is by default set
at 300ns.

The same applies for tHIGH period with the help of SDA falling time.

Signed-off-by: Romain Baeriswyl <romainba@abilis.com>
Reviewed-by: Christian Ruppert <christian.ruppert@abilis.com>
Acked-by: Shinya Kuribayashi <skuribay@pobox.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
FogBugz #194601: Fix I2C clock parent

The correct parents for the I2C should be the l4_sp_clk.

Signed-off-by: Dinh Nguyen <dinguyen@altera.com>