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 #183984: Do not use _relaxed() function for Altera PIO driver

This is to remove the use of _relaxed() function from Altera PIO driver.
The FPGA driver should be more generic and not use _relaxed() function
since not all architecture supports _relaxed() function

Signed-off-by: Tien Hock Loh <thloh@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>