input:touchscreen:ft5x_ts: Enable needed bits for xorg input device probe.

[    17.888] (II) config/udev: Adding input device ft5x_ts (/dev/input/event1)
[    17.888] (**) ft5x_ts: Applying InputClass "evdev touchscreen catchall"
[    17.888] (II) Using input driver 'evdev' for 'ft5x_ts'
[    17.888] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
[    17.888] (**) ft5x_ts: always reports core events
[    17.889] (**) evdev: ft5x_ts: Device: "/dev/input/event1"
[    17.889] (--) evdev: ft5x_ts: Vendor 0 Product 0
[    17.889] (--) evdev: ft5x_ts: Found absolute axes
[    17.889] (--) evdev: ft5x_ts: Found absolute multitouch axes
[    17.889] (--) evdev: ft5x_ts: Found x and y absolute axes
[    17.889] (--) evdev: ft5x_ts: Found absolute touchscreen
[    17.890] (II) evdev: ft5x_ts: Configuring as touchscreen
[    17.890] (**) evdev: ft5x_ts: YAxisMapping: buttons 4 and 5
[    17.890] (**) evdev: ft5x_ts: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[    17.890] (**) Option "config_info" "udev:/sys/devices/platform/sun4i-i2c.2/i2c-2/2-0038/input/input1/event1"
[    17.891] (II) XINPUT: Adding extended input device "ft5x_ts" (type: TOUCHSCREEN, id 7)
[    17.891] (II) evdev: ft5x_ts: initialized for absolute axes.
[    17.893] (**) ft5x_ts: (accel) keeping acceleration scheme 1
[    17.893] (**) ft5x_ts: (accel) acceleration profile 0
[    17.893] (**) ft5x_ts: (accel) acceleration factor: 2.000
[    17.893] (**) ft5x_ts: (accel) acceleration threshold: 4
[    17.895] (II) config/udev: Adding input device ft5x_ts (/dev/input/mouse0)
[    17.896] (II) No input driver specified, ignoring this device.
[    17.896] (II) This device may have been added with another device file.

Signed-off-by: Jari Helaakoski <tekkuli@gmail.com>
sunxi-hdmi: Fix data byte 1 of hdmi avi frame

Fix the low nibble of data byte 1 of hdmi avi frame, before this patch
it was being set to 0 for YUV_COLORSPACE, which is wrong since that
means no bar-data, no overscan-data. But we want to explicitly disable
overscan so as to for example not make xfce's panel(s) go offscreen.

And it was being set to e for RGB colorspace, which is wrong since that
means both horz. and vert. bar-data, underscan. While the avi frame does
not contain any (valid) bar data.

This patch changes the low nibble to 2 for each case, or iow to:
no bar-data, underscan.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi-hdmi: Fix data byte 2 of hdmi avi frame

Before this patch the YUV_COLORSPACE was dynamically adjusting the 2nd data
byte based on the pixelclock, to select between the ITU601 (old standard
tv colorspace) and ITU709 colorspace (new hd tv colorspace), as well as
between 4:3 and 16:9 picture aspect ratio.

But in RGB colorspace mode the 2nd data byte is hardcoded to ITO601 4:3.

This patch fixes this, and also makes only the colorspace selection depend
on the pixelclock (checking for sd-mode clocks). While using the actual
picture aspect ratio to set the aspect ratio. This is necessary since with
EDID support non SD modes may still have a 4:3 aspect ratio.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
sunxi-hdmi: Fix data byte 3 of hdmi avi frame

Always set the IT content flag, to tell the display to not do scaling /
filtering (which conflicts with for example computer rendered anti-aliased
text). And for RGB colorspace also set the Full Range flag (pixel values
go from 0-255).

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