goldfish: Add goldfish platform.

Change-Id: Iafb853c3496f53a7b18e11e3ec8284382b55e0f7
Signed-off-by: Tom Keel <thomas.keel@intel.com>
Signed-off-by: keunyoung <keunyoung@google.com>
goldfish: Add switch device.

Each platform device named goldfish-switch gets a directory
under /sys/class/switch with a state and direction entry.

Change-Id: I73df2430f102e37ce55e38c17011370805ffb48a
Signed-off-by: Tom Keel <thomas.keel@intel.com>
goldfish: Add audio driver for goldfish.

Change-Id: I1ee34e30b1970a1e59783aa54ee9d9bfdae079be
Signed-off-by: Tom Keel <thomas.keel@intel.com>
goldfish: Implement suspend as wait-for-interrupt.

Change-Id: I0cc1d68ce7d9e2a5ef5d10ab802ea301cc42fb65
Signed-off-by: Tom Keel <thomas.keel@intel.com>
goldfish: tty: Adding tty driver for goldfish.

Change-Id: Ie58c0c1059ddef0c85b1fb0cfd744321413e37c7
Signed-off-by: Tom Keel <thomas.keel@intel.com>
goldfish: events: Add event driver for goldfish

this device is a direct pipe from "hardware" to the input
event subsystem, allowing us to avoid having to route
"keypad" style events through an AT keyboard driver (gross!)

Change-Id: Id3cbeed37eb18985397a89cf8a18135cf20321d5
Signed-off-by: Tom Keel <thomas.keel@intel.com>
goldfish: mmc: MMC driver building and runnning in 2.6.27.

Change-Id: I852cd5d737f5a34e64b22c671b3a691dd30fb598
Signed-off-by: Tom Keel <thomas.keel@intel.com>
goldfish: NAND: Add nand driver for goldfish.

Change-Id: I84ece028d666da5b4b4cc5741282a81971297505
Signed-off-by: Tom Keel <thomas.keel@intel.com>
goldfish: POWER: New power supply driver for goldfish.

Change-Id: I9a9bb2301ddacd2a2180dbf8e28559ccdebe6189
Signed-off-by: Tom Keel <thomas.keel@intel.com>
goldfish: fb: Add fb driver for goldfish.

Supports panning for double buffering.

Change-Id: I8d1d421acdbc8e0e0fa56ec7ea781163fc9242f1
Signed-off-by: Tom Keel <thomas.keel@intel.com>
goldfish: RTC: Add RTC driver for goldfish.

Gets the current time from the host.
Alarms are not supported yet.

Change-Id: Ibb0be4bcd475b1ffea1334335607b17c38397836
Signed-off-by: Tom Keel <thomas.keel@intel.com>
goldfish: qemutrace: instrumentation for tracing events.

Like fork, context switch, execve and exit.
This code is to complement Jack's tracing facility.

To turn tracing on:
echo 1 > /sysfs/qemu_trace/state
To turn tracing off: echo 0 > /sysfs/qemu_trace/state
I also added java methods to Debug.java to turn tracing on and off.
The kernel driver also supports adding dynamic symbols to the trace.
To add a symbol 'foo' with hex address 'abcd1234' to the trace:
echo 'abcd1234 foo' > /sysfs/qemu_trace/symbol

[ARM] goldfish: qemutrace: Improved support for tracing thread and process names.

Added a new pseudo file /sys/qemu_trace/process_name to allow user
programs to add a trace record for a process name change.  Removed
the tracing of thread and process names from the exit() system call
because that was not sufficiently general.  Added tracing of thread
names in set_task_comm() and daemonize().  Added tracing of the
thread group id to fork() and clone().

change in kernel/sched.c is merged to kernel/sched/core.c

Change-Id: Ia6be72b7d48b4b8ed312840fc16352c5dfbe1c69
Signed-off-by: Tom Keel <thomas.keel@intel.com>
Signed-off-by: keunyoung <keunyoung@google.com>
goldfish: qemutrace: Add mmap support.

This makes a page of data available for writing from user-space to
allow the Dalvik interpreter to send method trace information to the
emulator.

Change-Id: Ia4445bac16fd966c0deaa512a9695dfffd6e21a2
Signed-off-by: Tom Keel <thomas.keel@intel.com>
goldfish: Disable hotplug helper in defconfig.

Change-Id: Ibc26fcec167df195e07d3ecfdcf6779270fd8266
Signed-off-by: Tom Keel <thomas.keel@intel.com>
goldfish: Enable low-level kernel debugging.

This provides a working implementation of the assembly routines
required to have CONFIG_DEBUG_LL working with the goldfish kernel.
For the record, this instructs the kernel to send each printk() to
the serial port as soon as possible, instead of buffering the output.

This turned out valuable to debug some tricky ARMv7 emulation support
issues.

This also cleans up a bit existing code related to the goldfish TTY.
Signed-off-by: David 'Digit' Turner <digit@android.com>

Change-Id: I90d3fa6b3954c27d2c31df6c3c485d0517542871
Signed-off-by: Tom Keel <thomas.keel@intel.com>
goldfish: Add a new machine named goldfish_armv7

This corresponds to the same emulator-specific machine than "goldfish"
except that it emulates an ARMv7 CPU with VFP and NEON instructions.

Change-Id: Id3a042e1987c22146cf3dbd6cb4365b498d09217
Signed-off-by: Tom Keel <thomas.keel@intel.com>
goldfish: Add scheduling class support to configs

Change-Id: Ie775351a87b0d69f4160f0ef3d87b453ecdc7cda
Signed-off-by: Tom Keel <thomas.keel@intel.com>
arm: goldfish: pdev_bus: Fix enumeration ordering

Change-Id: I9e8e11ba94689c1096624149f2c827e6a87e70b6
Signed-off-by: Tom Keel <thomas.keel@intel.com>
mmc: goldfish: Add CMD_TIMEOUT irq support, clean up card detect.

This patch adds support for the new CMD_TIMEOUT irq status which is
indicated when we make a request to a card that isn't there. Also
card-detection is kicked off by the mmc stack after mmc_add_host(),
so the explicit call causes an extra detection cycle.

Change-Id: I3b19df1d8d5a9987ce63ea2f36d80035cc678e09
Signed-off-by: Tom Keel <thomas.keel@intel.com>
mmc: goldfish: Remove userspace switches, get card detect...

Remove the userspace switches and get card detect from MMC_STATE.

Change-Id: Id6988acfc0bad4761d7f06064c1d24ea8cb4701e
Signed-off-by: Tom Keel <thomas.keel@intel.com>