broadcom-diag: remove broadcom-diag
broadcom-diag is not supported any more and was replaced by configuration the GPIOs in the arch code Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 41047
This commit is contained in:
parent
d72ff79546
commit
1714048d7f
5 changed files with 0 additions and 1343 deletions
|
@ -1,42 +0,0 @@
|
|||
#
|
||||
# Copyright (C) 2006-2010 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:=broadcom-diag
|
||||
PKG_RELEASE:=11
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define KernelPackage/diag
|
||||
SUBMENU:=Other modules
|
||||
DEPENDS:=@TARGET_brcm47xx @!LINUX_3_14
|
||||
TITLE:=Driver for router LEDs and Buttons
|
||||
FILES:=$(PKG_BUILD_DIR)/diag.ko
|
||||
AUTOLOAD:=$(call AutoLoad,05,diag,1)
|
||||
endef
|
||||
|
||||
define KernelPackage/diag/description
|
||||
Kernel modules for Broadcom LED and Button driver
|
||||
endef
|
||||
|
||||
define Build/Prepare
|
||||
mkdir -p $(PKG_BUILD_DIR)
|
||||
$(CP) ./src/* $(PKG_BUILD_DIR)/
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE) -C "$(LINUX_DIR)" \
|
||||
CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||
ARCH="$(LINUX_KARCH)" \
|
||||
SUBDIRS="$(PKG_BUILD_DIR)" \
|
||||
EXTRA_CFLAGS="$(BUILDFLAGS)" \
|
||||
modules
|
||||
endef
|
||||
|
||||
$(eval $(call KernelPackage,diag))
|
|
@ -1,17 +0,0 @@
|
|||
#
|
||||
# Makefile for diag driver
|
||||
#
|
||||
# Copyright (C) 2005 Felix Fietkau <nbd@openwrt.org>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU General Public License
|
||||
# as published by the Free Software Foundation; either version
|
||||
# 2 of the License, or (at your option) any later version.
|
||||
#
|
||||
|
||||
obj-m := diag.o
|
||||
|
||||
ifeq ($(MAKING_MODULES),1)
|
||||
|
||||
-include $(TOPDIR)/Rules.make
|
||||
endif
|
File diff suppressed because it is too large
Load diff
|
@ -1,87 +0,0 @@
|
|||
/*
|
||||
* diag.h - GPIO interface driver for Broadcom boards
|
||||
*
|
||||
* Copyright (C) 2006 Mike Baker <mbm@openwrt.org>,
|
||||
* Felix Fietkau <nbd@openwrt.org>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <linux/irq.h>
|
||||
#define MODULE_NAME "diag"
|
||||
|
||||
#define MAX_GPIO 16
|
||||
#define FLASH_TIME HZ/6
|
||||
|
||||
enum polarity_t {
|
||||
REVERSE = 0,
|
||||
NORMAL = 1,
|
||||
INPUT = 2,
|
||||
};
|
||||
|
||||
enum {
|
||||
PROC_BUTTON,
|
||||
PROC_LED,
|
||||
PROC_MODEL,
|
||||
PROC_GPIOMASK
|
||||
};
|
||||
|
||||
struct prochandler_t {
|
||||
int type;
|
||||
void *ptr;
|
||||
};
|
||||
|
||||
struct button_t {
|
||||
struct prochandler_t proc;
|
||||
char *name;
|
||||
u32 gpio;
|
||||
unsigned long seen;
|
||||
u8 pressed;
|
||||
};
|
||||
|
||||
struct led_t {
|
||||
struct prochandler_t proc;
|
||||
char *name;
|
||||
u32 gpio;
|
||||
u8 polarity;
|
||||
u8 flash;
|
||||
u8 state;
|
||||
};
|
||||
|
||||
struct platform_t {
|
||||
char *name;
|
||||
|
||||
struct button_t buttons[MAX_GPIO];
|
||||
u32 button_mask;
|
||||
u32 button_polarity;
|
||||
void (*platform_init)(void);
|
||||
|
||||
struct led_t leds[MAX_GPIO];
|
||||
};
|
||||
|
||||
struct event_t {
|
||||
struct work_struct wq;
|
||||
unsigned long seen;
|
||||
char *name, *action;
|
||||
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,0)
|
||||
struct sk_buff *skb;
|
||||
#else
|
||||
char *scratch;
|
||||
char *argv[4];
|
||||
char *envp[7];
|
||||
u8 enr, anr;
|
||||
#endif
|
||||
};
|
|
@ -1,22 +0,0 @@
|
|||
#ifndef __DIAG_GPIO_H
|
||||
#define __DIAG_GPIO_H
|
||||
|
||||
#include <linux/interrupt.h>
|
||||
#include <linux/ssb/ssb_embedded.h>
|
||||
#include <linux/gpio.h>
|
||||
#include <bcm47xx.h>
|
||||
|
||||
#define EXTIF_ADDR 0x1f000000
|
||||
#define EXTIF_UART (EXTIF_ADDR + 0x00800000)
|
||||
|
||||
/* GPIO pins driving LEDs through a shift register */
|
||||
#define SHIFTREG_DATA (1 << 6)
|
||||
#define SHIFTREG_CLK (1 << 7)
|
||||
#define SHIFTREG_MAX_BITS 8
|
||||
|
||||
#define GPIO_TYPE_NORMAL (0x0 << 24)
|
||||
#define GPIO_TYPE_EXTIF (0x1 << 24)
|
||||
#define GPIO_TYPE_SHIFT (0x2 << 24)
|
||||
#define GPIO_TYPE_MASK (0xf << 24)
|
||||
|
||||
#endif /* __DIAG_GPIO_H */
|
Loading…
Reference in a new issue