init: add property based abstraction for DIO gpios

Ventana boards typically have 4 digital IO's going to a connector, but the
Linux gpio's associated with these varies per board. To aid in creating a
firmware image that is board-agnostic we will set an Android property
describing the gpio for each dio as 'gpio.dio<n>'.

For example, if you wish to operate on DIO0 use the value returned from
gpio.dio0 property as the gpio in /sys/class/gpio/gpio<n>

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
init: set the orientation for the accelerometer regardless of input dev

The accelerometer may not always be input0 and also is not present on all
boards. We will ensure the device is present, and determine which input device
it is before adjusting its orientation.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
init: add some comments and output to init script

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
add can-utils, i2c-tools and v4l2-ctl

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
removed uneeded file touches

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
add manufacturer and brand defines
init: added canbus configuration

if board supports canbus, make sure the can_stby gpio is exported,
writable by user apps, and the bitrate is configured. Remove the
interface configuration from init.rc as the userspace tools are not
present at that point in time.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
init: move camera configuration to init script

Detect per-board camera presence and only define cameras if input devices
are present and have a signal. If an input device has no signal, the
camera will get no frames and undefined behavior occurs (ie camera app
crashes).

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
mksdcard.sh: use already created uramdisk.img

Remove dependence on ramdisk-recovery.img by using the already existing
uramdisk-recovery.img to reduce necessary build artifacts.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
mksdcard.sh: add a delay before calling udisk for slowing dev hosts

On slower ubuntu systems a delay is needed after formatting partitions before
udisks is run.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
boot filesystem: move bootscript and ramdisk into boot subdir

The Ventana bootscripts expect a bootscript and kernel to reside in the
/boot directory of the first filesystem on the boot media.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
mksdcard.sh: resize system partition

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
added tca8418_keypad matrix keyboard controller support

The GW16107 Display adapter has a TCA8418 Matrix Keyboard controller.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
init: add a gpio function for gpio config

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
init: add gpio/led config for GW16107 display adapter

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
bootscript: add support for AUO G070VW01 with TSC2007 display

Add support for configuring the G070VW01 display based on detecting a
TSC2007 touchscreen controller at 0x49.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>