sunxi: fix CCM MBUS N factor interpretation

N is stored as the exponent of a power of two, so 8 needs to return 3,
4 needs to return 2, etc.

Signed-off-by: Emilio López <emilio@elopez.com.ar>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi: fast MBUS support on sun7i

For qualifying hardware, we can run MBUS at 400MHz without risking
stability if we raise the DCDC3 voltage to 1.3V

Signed-off-by: Emilio López <emilio@elopez.com.ar>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi: enable 400MHz MBUS on Cubieboard2 and Cubietruck

This has been tested on 50 pieces of Cubieboard2 by Cubietech and no
issues of any kind were reported.

Signed-off-by: Emilio López <emilio@elopez.com.ar>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sun5i: Give PLL6 a sane initial value

The upstream kernel does not override PLL values as set by power-on-reset
and/or the bootloader if it can avoid doing so.

The power-on-reset value for PLL6 is 2400MHz, which does not actually work,
the kernel does not know this and 2400 / 48 is 50 MHz, so the kernel happily
tries to use it as is for mmc.

Set PLL6 to a working frequency so that the kernel can use it. This fixes
mmc in the upstream kernel not working on sun5i.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi: Add Jesurun-Q5 board

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi: fix gpio pull mask

Signed-off-by: Ma Haijun <mahaijuns@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>