--- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -59,6 +59,18 @@ config BCM47XX help Support for BCM47XX based boards +config ATHEROS + bool "Atheros SoC support (EXPERIMENTAL)" + depends on EXPERIMENTAL + select DMA_NONCOHERENT + select CEVT_R4K + select CSRC_R4K + select IRQ_CPU + select SYS_HAS_CPU_MIPS32_R1 + select SYS_SUPPORTS_BIG_ENDIAN + select SYS_SUPPORTS_32BIT_KERNEL + select GENERIC_GPIO + config MIPS_COBALT bool "Cobalt Server" select CEVT_R4K @@ -598,6 +610,7 @@ config WR_PPMC endchoice +source "arch/mips/atheros/Kconfig" source "arch/mips/au1000/Kconfig" source "arch/mips/basler/excite/Kconfig" source "arch/mips/jazz/Kconfig" --- a/arch/mips/Makefile +++ b/arch/mips/Makefile @@ -276,6 +276,13 @@ libs-$(CONFIG_MIPS_XXS1500) += arch/mips load-$(CONFIG_MIPS_XXS1500) += 0xffffffff80100000 # +# Atheros AR5312/AR2312 WiSoC +# +core-$(CONFIG_ATHEROS) += arch/mips/atheros/ +cflags-$(CONFIG_ATHEROS) += -Iinclude/asm-mips/mach-atheros +load-$(CONFIG_ATHEROS) += 0xffffffff80041000 + +# # Cobalt Server # core-$(CONFIG_MIPS_COBALT) += arch/mips/cobalt/ --- a/include/asm-mips/bootinfo.h +++ b/include/asm-mips/bootinfo.h @@ -57,6 +57,18 @@ #define MACH_MIKROTIK_RB532 0 /* Mikrotik RouterBoard 532 */ #define MACH_MIKROTIK_RB532A 1 /* Mikrotik RouterBoard 532A */ +/* + * Valid machtype for group ATHEROS + */ +#define MACH_GROUP_ATHEROS 26 +#define MACH_ATHEROS_AR5312 0 +#define MACH_ATHEROS_AR2312 1 +#define MACH_ATHEROS_AR2313 2 +#define MACH_ATHEROS_AR2315 3 +#define MACH_ATHEROS_AR2316 4 +#define MACH_ATHEROS_AR2317 5 +#define MACH_ATHEROS_AR2318 6 + #define CL_SIZE COMMAND_LINE_SIZE extern char *system_type; a href='/cgit.cgi/openwrt/upstream/about/?h=v21.02.0-rc2'>aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/spidev_test/Makefile
blob: b7c5227f91da22b220dc84154ab9ba20dd80cb07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#
# Copyright (C) 2009 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk

PKG_NAME:=spidev-test
PKG_RELEASE:=$(LINUX_VERSION)

include $(INCLUDE_DIR)/package.mk

define Package/spidev-test
  SECTION:=utils
  CATEGORY:=Utilities
  DEPENDS:=+kmod-spi-dev
  TITLE:=SPI testing utility
  VERSION:=$(LINUX_VERSION)-$(PKG_RELEASE)
  URL:=http://www.kernel.org
  MAINTAINER:=Florian Fainelli <florian@openwrt.org>
endef

define Package/spidev-test/description
  SPI testing utility.
endef

define Build/Compile
	$(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/spidev_test \
		$(PKG_BUILD_DIR)/spidev_test.c
endef

define Package/spidev-test/install
	$(INSTALL_DIR) $(1)/sbin
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/spidev_test $(1)/sbin/
endef

$(eval $(call BuildPackage,spidev-test))