sunxi-disp: ignore invalid arguments for FBIOPUTCMAP

Just do nothing and return 0 for the unsupported palette indexes
instead of returning -EINVAL. The vesafb and uvesafb drivers do
the same.

Otherwise xf86-video-fbdev or anything else derived from it writes
a lot of "FBIOPUTCMAP: Invalid argument" spam to /var/log/Xorg.0.log
when the X server starts. And apparently also when the screensaver
and/or screen blanking/unblanking kicks in. These error messages
are scaring the users and also distracting attention when doing
real troubleshooting. Not to mention slowing down the X server
startup and wasting extra disk space for storing logs.

Yes, it is ugly to ignore errors. And the right solution would
be to fix the userland code not to use this ioctl with wrong
arguments. But frankly speaking, I don't want to touch the
prehistoric paletted formats in the X server as long as we don't
have a real use case where they can be tested.

Signed-off-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
axp209: Fix interrupts on sun7i

The A20 has some extra control registers for the external NMI interrupt
pin, adding the need to be enable and clear it explictly on sun7i.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi-spdif:  fix spdif issue for sun7i platform

The problem is that we have not request SP/DIF pin resource

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
G2D: Fix A20 interrupt number

Change G2D interrupt from hard-coded 46 to SW_INT_IRQNO_MP

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sun4i_g2d: Allow building on sun7i

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
axp152: Add support for power button

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi: Fix reboot not working on sun5i

Replace our current watchdog based system reset code with code from the
allwinner sun7i 3.3 sources. This fixes reboot hanging once every 2 attempts
on sun5i (tested on A13 and various A10s based boards). Also tested on A10
and A20 based boards to avoid causing a reboot regression there.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sun4i/sun7i combined cedarx driver

Modify sun4i cedarx driver to work on sun7i as well
Only tested a few video files on A10 and A20 Cubieboards

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