goldfish: add the goldfish virtual bus
authorJun Nakajima <jnakajim@gmail.com>
Mon, 21 Jan 2013 23:48:07 +0000 (23:48 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jan 2013 21:49:34 +0000 (13:49 -0800)
commite809c22b8fb0282048fc008cfcdd017186090dbc
treee7ec287e609adc1835d12ef489a8fa9ebdab0ecf
parentc0594ee9ea20388310d2669a7c6122c5305dcf80
goldfish: add the goldfish virtual bus

This imports the current Google code and cleans it up slightly to use pr_ and
to properly request its resources.

Goldfish is an emulator used for Android development. It has a virtual bus where
the emulator passes platform device information to the guest which then creates
the appropriate devices.

This part of the emulation is not architecture specific so should not be hiding
in architecture trees as it does in the Google Android tree. The constants it
uses do depend on the platform and the platform creates the bus device which then
talks to the emulator to ascertain the actual devices present.

Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Yunhong Jiang <yunhong.jiang@intel.com>
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
[Moved out of x86, cleaned up headers]
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/platform/Makefile
drivers/platform/goldfish/Makefile [new file with mode: 0644]
drivers/platform/goldfish/pdev_bus.c [new file with mode: 0644]