i2c: xi2cps: Streamline divider calculation

Refactor the code to calculate clock dividers. Making it more readable
and getting rid of a useless loop.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
microblaze: Remove selfmodified feature

This was experimental feature which has never been
widely used because it expects GCC behaviour.
Also remove INTC_BASE and TIMER_BASE macros.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
microblaze: intc: Remove unused headers

Trivial.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
microblaze: intc: Update header

Update dates in header and add Xilinx to it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
microblaze: intc: Using irqchip

- Move init_IRQ to irq.c
- Use IRQCHIP_DECLARE macro

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
microblaze: intc: Clean driver init function

- Use of_iomap
- Use of_property_read_u32
- Fix printk

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
microblaze: intc: Remove unused header

asm/irq.h is included in linux/irq.h
asm/prom.h and linux/init.h is not needed

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
microblaze: timer: Use CLKSRC_OF initialization

Simplify timer initialization and prepare the driver
for moving to drivers/clocksource folder.
Also remove system-timer property from binding because
the name is too generic.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
microblaze: timer: Clear driver init function

- Use of_iomap
- Use of_property_read_u32
- Fix printk

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
microblaze: timer: Remove unused header

Remove unused headers.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
microblaze: timer: Update header

Update dates in header and add Xilinx to it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
microblaze: timer: Replace microblaze_ prefix by xilinx_

The main reason that this driver can be used by ARM
and PPC. The part of preparing of move to generic location.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
microblaze: Add PVR version string for MB v9.0 and v9.1

Extend PVR reg decoding.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
gpio: xilinx: Fix type for irq_base

irq_alloc_descs() returns negative numbers
on error path. Use int type to capture it.

Bug was introduced by this commit:
"GPIO: xilinx: Add irq support to the driver"
(sha1: 796ae5e3e4ae5f550e0ba01ade34604c83b08cfd)

Reported-by: Kester Aernoudt <kestera@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
gpio: xilinx: Fix minor coding style issue.

Trivial.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
gpio: xilinx: Use platform_driver

Register driver as platform driver.
Based on this change, probe function uses devm_
which clear incorrect kfree(chip) usage.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
net: emaclite: Let's make xemaclite_adjust_link static

xemaclite_adjust_link is used locally.
It removes sparse warning:
drivers/net/ethernet/xilinx/xilinx_emaclite.c:916:6: warning:
symbol 'xemaclite_adjust_link' was not declared. Should it be static?

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net: emaclite: Do not use microblaze and ppc IO functions

Emaclite can be used on ARM zynq where in_be32/out_be32 IO
functions are not present. Use standard __raw_readl/__raw_writel
IO functions instead.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net: emaclite: Update driver header

Correct email address and years.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net: emaclite: Synchronize printk message with the mainline

Commit sync.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>