Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d4a67d9d authored by Gabor Juhos's avatar Gabor Juhos Committed by Ralf Baechle
Browse files

MIPS: Add initial support for the Atheros AR71XX/AR724X/AR931X SoCs



This patch adds initial support for various Atheros SoCs based on the
MIPS 24Kc core. The following models are supported at the moment:

  - AR7130
  - AR7141
  - AR7161
  - AR9130
  - AR9132
  - AR7240
  - AR7241
  - AR7242

The current patch contains minimal support only, but the resulting
kernel can boot into user-space with using of an initramfs image on
various boards which are using these SoCs. Support for more built-in
devices and individual boards will be implemented in further patches.

Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>
Signed-off-by: default avatarImre Kaloz <kaloz@openwrt.org>
Cc: linux-mips@linux-mips.org
Cc: Luis R. Rodriguez <lrodriguez@atheros.com>
Cc: Cliff Holden <Cliff.Holden@Atheros.com>
Cc: Kathy Giori <Kathy.Giori@Atheros.com>
Patchwork: https://patchwork.linux-mips.org/patch/1947/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 94bb0c1a
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -2,6 +2,7 @@


platforms += alchemy
platforms += alchemy
platforms += ar7
platforms += ar7
platforms += ath79
platforms += bcm47xx
platforms += bcm47xx
platforms += bcm63xx
platforms += bcm63xx
platforms += cavium-octeon
platforms += cavium-octeon
+15 −0
Original line number Original line Diff line number Diff line
@@ -66,6 +66,20 @@ config AR7
	  Support for the Texas Instruments AR7 System-on-a-Chip
	  Support for the Texas Instruments AR7 System-on-a-Chip
	  family: TNETD7100, 7200 and 7300.
	  family: TNETD7100, 7200 and 7300.


config ATH79
	bool "Atheros AR71XX/AR724X/AR913X based boards"
	select BOOT_RAW
	select CEVT_R4K
	select CSRC_R4K
	select DMA_NONCOHERENT
	select IRQ_CPU
	select SYS_HAS_CPU_MIPS32_R2
	select SYS_HAS_EARLY_PRINTK
	select SYS_SUPPORTS_32BIT_KERNEL
	select SYS_SUPPORTS_BIG_ENDIAN
	help
	  Support for the Atheros AR71XX/AR724X/AR913X SoCs.

config BCM47XX
config BCM47XX
	bool "Broadcom BCM47XX based boards"
	bool "Broadcom BCM47XX based boards"
	select CEVT_R4K
	select CEVT_R4K
@@ -718,6 +732,7 @@ config CAVIUM_OCTEON_REFERENCE_BOARD
endchoice
endchoice


source "arch/mips/alchemy/Kconfig"
source "arch/mips/alchemy/Kconfig"
source "arch/mips/ath79/Kconfig"
source "arch/mips/bcm63xx/Kconfig"
source "arch/mips/bcm63xx/Kconfig"
source "arch/mips/jazz/Kconfig"
source "arch/mips/jazz/Kconfig"
source "arch/mips/jz4740/Kconfig"
source "arch/mips/jz4740/Kconfig"
+12 −0
Original line number Original line Diff line number Diff line
if ATH79

config SOC_AR71XX
	def_bool n

config SOC_AR724X
	def_bool n

config SOC_AR913X
	def_bool n

endif
+18 −0
Original line number Original line Diff line number Diff line
#
# Makefile for the Atheros AR71XX/AR724X/AR913X specific parts of the kernel
#
# Copyright (C) 2008-2011 Gabor Juhos <juhosg@openwrt.org>
# Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 as published
# by the Free Software Foundation.

obj-y	:= prom.o setup.o irq.o common.o clock.o

obj-$(CONFIG_EARLY_PRINTK)		+= early_printk.o

#
# Devices
#
obj-y					+= dev-common.o
+7 −0
Original line number Original line Diff line number Diff line
#
# Atheros AR71xx/AR724x/AR913x
#

platform-$(CONFIG_ATH79)	+= ath79/
cflags-$(CONFIG_ATH79)		+= -I$(srctree)/arch/mips/include/asm/mach-ath79
load-$(CONFIG_ATH79)		= 0xffffffff80060000
Loading