sunxi: use DIV_ROUND_UP in clock setup instead of custom RDIV

RDIV is lacking a set of brackets compared with DIV_ROUND_UP but due to
precedence rules things work out the same for all callers.

Confirmed with objdump before and after.

Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi: gpio: rename name_to_gpio

Upstream review led to a request to remove the #define name_to_gpio
name_to_gpio macro. Rename the function to sunxi_name_to_gpio and #define
name_to_gpio to that.

Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi: use clrsetbit in gpio/pinmux code

I was concerned that this would remove some barriers which were previously
implicitly present in the readl/writel calls.

Comparing the preprocessed code shows that the old code had compiler barrers
(not CPU instruction barriers) between the reads and writes while the new code
does everything as a single statement without barriers. I think this is safe.

In any case the generated code is identical (confirmed with objdump).

Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi: remove some unnecesssary ()s from bare numbers

Picked up during upstream review.

Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi: whitespace cleanup to fel mode linker script.

This makes the script somewhat more conformant to the upstream coding style
using in other linker scripts.

Add a license header at the same time.

Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
Cc: Henrik Nordstrom <henrik@henriknordstrom.net>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>