sunxi-disp: Fix tv-out / standard tv-modes not working

For the tv / hdmi output lcd_clk_div is not used when programming the pll,
instead pre_scale is used. My commit titled:
"sunxi-hdmi: Dynamically determine pll frequency for hdmi modes"

Wrongly sets lcd_clk_div rather then setting pre_scale. This bug did not get
noticed sofar because pre_scale gets initialized to 1, which is the correct
value for non 27000000 Hz pixelclock modes.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi-disp: Add missing break

This fixes a kernel NULL ptr deref (trying to call hdmi functions before they
are registered) when trying to use tv-out.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi-disp: Use mode names like pal and ntsc for specifying tv-out modes

Some of the tv modes have the exact same dimensions but are different in
things like how the color is encoded, so specifying <width>x<height> is not
enough to uniquely identify them.

Therefore this patch changes the screen0_output_mode value to be a mode-name
like pal, ntsc or pal-nc when the screen0_output_type is set to tv.

As an added bonus this patch also limits which modes from the tv_mode table
can be selected, so that the user can no longer select hdmi only modes when
using tv-out.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
axp20-mfd.h: Re-format chip init register values

So that they can be read without needing horizontal scrolling.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
axp20-mfd.h: Fixup axp20_init_chip to not cause spurious interrupts

Before this patch axp20_init_chip did the following:
1) Set the interrupt enable registers to 0x000000000103ffd8
2) Write 0xffffffffffffffff to the interrupt status registers to
   write-clear all interrupt status bits
3) Write 0x0000000000000000 to the interrupt enable registers to
   disable all interrupts

Between 2 and 3 an unwanted interrupt can trigger and since this is all
done over slow i2c there is plenty of time for this.

This patch fixes this by changing the init sequence to:
1) Set the interrupt enable registers to 0x0000000000000000
2) Write 0xffffffffffffffff to the interrupt status registers to
   write-clear all interrupt status bits

Signed-off-by: Hans de Goede <hdegoede@redhat.com>