Commit f0f4a753 authored by Paul Cercueil's avatar Paul Cercueil Committed by Thomas Bogendoerfer
Browse files

MIPS: generic: Add support for Ingenic SoCs



Add support for Ingenic SoCs in arch/mips/generic/.

The Kconfig changes are here to ensure that it is possible to compile
either a generic kernel that supports Ingenic SoCs, or a Ingenic-only
kernel, both using the same code base, to avoid duplicated code.

Signed-off-by: default avatarPaul Cercueil <paul@crapouillou.net>
Signed-off-by: default avatarThomas Bogendoerfer <tsbogend@alpha.franken.de>
parent 02bd530f
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -13,7 +13,6 @@ platform-$(CONFIG_MIPS_COBALT) += cobalt/
platform-$(CONFIG_MACH_DECSTATION)	+= dec/
platform-$(CONFIG_MIPS_GENERIC)		+= generic/
platform-$(CONFIG_MACH_JAZZ)		+= jazz/
platform-$(CONFIG_MACH_INGENIC)		+= jz4740/
platform-$(CONFIG_LANTIQ)		+= lantiq/
platform-$(CONFIG_MACH_LOONGSON2EF)	+= loongson2ef/
platform-$(CONFIG_MACH_LOONGSON32)	+= loongson32/
+20 −12
Original line number Diff line number Diff line
@@ -96,6 +96,23 @@ config MIPS_FIXUP_BIGPHYS_ADDR
config MIPS_GENERIC
	bool

config MACH_INGENIC
	bool
	select SYS_SUPPORTS_32BIT_KERNEL
	select SYS_SUPPORTS_LITTLE_ENDIAN
	select SYS_SUPPORTS_ZBOOT
	select CPU_SUPPORTS_HUGEPAGES
	select DMA_NONCOHERENT
	select IRQ_MIPS_CPU
	select PINCTRL
	select GPIOLIB
	select COMMON_CLK
	select GENERIC_IRQ_CHIP
	select BUILTIN_DTB if MIPS_NO_APPENDED_DTB
	select USE_OF
	select CPU_SUPPORTS_CPUFREQ
	select MIPS_EXTERNAL_TIMER

menu "Machine selection"

choice
@@ -394,20 +411,11 @@ config MACH_JAZZ
	  Members include the Acer PICA, MIPS Magnum 4000, MIPS Millennium and
	  Olivetti M700-10 workstations.

config MACH_INGENIC
config MACH_INGENIC_SOC
	bool "Ingenic SoC based machines"
	select SYS_SUPPORTS_32BIT_KERNEL
	select SYS_SUPPORTS_LITTLE_ENDIAN
	select MIPS_GENERIC
	select MACH_INGENIC
	select SYS_SUPPORTS_ZBOOT_UART16550
	select CPU_SUPPORTS_HUGEPAGES
	select DMA_NONCOHERENT
	select IRQ_MIPS_CPU
	select PINCTRL
	select GPIOLIB
	select COMMON_CLK
	select GENERIC_IRQ_CHIP
	select BUILTIN_DTB if MIPS_NO_APPENDED_DTB
	select USE_OF

config LANTIQ
	bool "Lantiq based platforms"
+6 −0
Original line number Diff line number Diff line
@@ -73,6 +73,12 @@ config FIT_IMAGE_FDT_OCELOT
	  from Microsemi in the FIT kernel image.
	  This requires u-boot on the platform.

config BOARD_INGENIC
	bool "Support boards based on Ingenic SoCs"
	select MACH_INGENIC_GENERIC
	help
	  Enable support for boards based on Ingenic SoCs.

config VIRT_BOARD_RANCHU
	bool "Support Ranchu platform for Android emulator"
	help
+1 −0
Original line number Diff line number Diff line
@@ -11,4 +11,5 @@ obj-y += proc.o
obj-$(CONFIG_YAMON_DT_SHIM)		+= yamon-dt.o
obj-$(CONFIG_LEGACY_BOARD_SEAD3)	+= board-sead3.o
obj-$(CONFIG_LEGACY_BOARD_OCELOT)	+= board-ocelot.o
obj-$(CONFIG_MACH_INGENIC)			+= board-ingenic.o
obj-$(CONFIG_VIRT_BOARD_RANCHU)		+= board-ranchu.o
+3 −0
Original line number Diff line number Diff line
@@ -8,7 +8,10 @@
# option) any later version.
#

# Note: order matters, keep the asm/mach-generic include last.
cflags-$(CONFIG_MACH_INGENIC_SOC)	+= -I$(srctree)/arch/mips/include/asm/mach-jz4740
cflags-$(CONFIG_MIPS_GENERIC)	+= -I$(srctree)/arch/mips/include/asm/mach-generic

load-$(CONFIG_MIPS_GENERIC)	+= 0xffffffff80100000
zload-$(CONFIG_MIPS_GENERIC)	+= 0xffffffff81000000
all-$(CONFIG_MIPS_GENERIC)	:= vmlinux.gz.itb
Loading