android_kernel_oneplus_msm8998/arch/mips
Miodrag Dinic 0bc65cbcc3 FROMLIST: MIPS: ranchu: Add Ranchu as a new generic-based board
Provide amendments to the MIPS generic platform framework so that
the new generic-based board Ranchu can be chosen to be built.

The Ranchu board is intended to be used by Android emulator. The name
"Ranchu" originates from Android development community. "Goldfish" and
"Ranchu" are terms used for two generations of virtual boards used by
Android emulator. The name "Ranchu" is a newer one among the two, and
this patch deals with Ranchu. However, for historical reasons, some
devices/drivers still contain the name "Goldfish".

MIPS Ranchu machine includes a number of Goldfish devices. The support
for Virtio devices is also included. Ranchu board supports up to 16
Virtio devices which can be attached using Virtio MMIO Bus. This is
summarized in the following picture:

       ABUS
        ||----MIPS CPU
        ||       |                    IRQs
        ||----Goldfish PIC------------(32)--------
        ||                     | | | | | | | | |
        ||----Goldfish TTY------ | | | | | | | |
        ||                       | | | | | | | |
        ||----Goldfish RTC-------- | | | | | | |
        ||                         | | | | | | |
        ||----Goldfish FB----------- | | | | | |
        ||                           | | | | | |
        ||----Goldfish Events--------- | | | | |
        ||                             | | | | |
        ||----Goldfish Audio------------ | | | |
        ||                               | | | |
        ||----Goldfish Battery------------ | | |
        ||                                 | | |
        ||----Android PIPE------------------ | |
        ||                                   | |
        ||----Virtio MMIO Bus                | |
        ||    |    |    |                    | |
        ||    |    |   (virtio-block)--------- |
        ||   (16)  |                           |
        ||    |   (virtio-net)------------------

Device Tree is created on the QEMU side based on the information about
devices IO map and IRQ numbers. Kernel will load this DTB using UHI
boot protocol DTB handover mode.

Signed-off-by: Miodrag Dinic <miodrag.dinic@mips.com>
Signed-off-by: Goran Ferenc <goran.ferenc@mips.com>
Signed-off-by: Aleksandar Markovic <aleksandar.markovic@mips.com>
Reviewed-by: James Hogan <jhogan@kernel.org>
(cherry picked from: https://patchwork.linux-mips.org/patch/18138/)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2018-02-05 08:58:37 -08:00
..
alchemy UPSTREAM: MIPS: Sanitise coherentio semantics 2018-02-05 08:58:32 -08:00
ar7 MIPS: AR7: ensure the port type's FCR value is used 2018-01-23 19:50:18 +01:00
ath25
ath79 MIPS: ath79: fix regression in PCI window initialization 2017-07-05 14:37:17 +02:00
bcm47xx MIPS: BCM47XX: Fix LED inversion for WRT54GSv1 2017-11-30 08:37:20 +00:00
bcm63xx
bmips BACKPORT: MIPS: store the appended dtb address in a variable 2018-02-05 08:58:31 -08:00
boot UPSTREAM: MIPS: generic: Introduce generic DT-based board support 2018-02-05 08:58:32 -08:00
cavium-octeon UPSTREAM: MIPS: Fix misspellings in comments. 2018-02-05 08:58:30 -08:00
cobalt
configs FROMLIST: MIPS: ranchu: Add Ranchu as a new generic-based board 2018-02-05 08:58:37 -08:00
dec UPSTREAM: MIPS: Fix misspellings in comments. 2018-02-05 08:58:30 -08:00
emma
fw UPSTREAM: MIPS: Fix misspellings in comments. 2018-02-05 08:58:30 -08:00
generic FROMLIST: MIPS: ranchu: Add Ranchu as a new generic-based board 2018-02-05 08:58:37 -08:00
include UPSTREAM: MIPS: smp-cps: Support MIPSr6 Virtual Processors 2018-02-05 08:58:34 -08:00
jazz
jz4740
kernel FROMLIST: MIPS: Add noexec=on|off kernel parameter 2018-02-05 08:58:37 -08:00
kvm UPSTREAM: MIPS: Fix misspellings in comments. 2018-02-05 08:58:30 -08:00
lantiq MIPS: Lantiq: Fix another request_mem_region() return code check 2017-10-08 10:14:18 +02:00
lasat
lib
loongson32
loongson64 MIPS: hpet: Increase HPET_MIN_PROG_DELTA and decrease HPET_MIN_CYCLES 2016-08-20 18:09:27 +02:00
math-emu FROMLIST: MIPS: math-emu: Mark fall throughs in switch statements with a comment 2018-02-05 08:58:37 -08:00
mm UPSTREAM: MIPS: Fix early CM probing 2018-02-05 08:58:35 -08:00
mti-malta UPSTREAM: MIPS: Fix early CM probing 2018-02-05 08:58:35 -08:00
mti-sead3
net
netlogic MIPS: Netlogic: Exclude netlogic,xlp-pic code from XLR builds 2017-11-21 09:21:22 +01:00
oprofile
paravirt
pci UPSTREAM: MIPS: Sanitise coherentio semantics 2018-02-05 08:58:32 -08:00
pistachio
pmcs-msp71xx
pnx833x
power
ralink MIPS: ralink: Fix typo in mt7628 pinmux function 2017-11-30 08:37:19 +00:00
rb532
sgi-ip22 MIPS: ip22: Fix ip28 build for modern gcc 2017-03-18 19:09:56 +08:00
sgi-ip27 UPSTREAM: MIPS: Spelling fix lets -> let's 2018-02-05 08:58:31 -08:00
sgi-ip32
sibyte
sni UPSTREAM: MIPS: Spelling fix lets -> let's 2018-02-05 08:58:31 -08:00
txx9
vdso UPSTREAM: MIPS: VDSO: Fix clobber lists in fallback code paths 2018-02-05 08:58:32 -08:00
vr41xx
xilfpga
Kbuild
Kbuild.platforms UPSTREAM: MIPS: generic: Introduce generic DT-based board support 2018-02-05 08:58:32 -08:00
Kconfig UPSTREAM: MIPS: Allow storing pgd in C0_CONTEXT for MIPSr6 2018-02-05 08:58:35 -08:00
Kconfig.debug MIPS: Remove compact branch policy Kconfig entries 2016-09-30 10:18:39 +02:00
Makefile UPSTREAM: MIPS: build: Fix "-modd-spreg" switch usage when compiling for mips32r6 2018-02-05 08:58:32 -08:00