source: trunk/target/linux/ar71xx/files/arch/mips/ar71xx/devices.h @ 14637

Last change on this file since 14637 was 14637, checked in by juhosg, 7 years ago

[ar71xx] TL-WR941ND: add DSA device for the Marvell 88E6060 switch

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1/*
2 *  Atheros AR71xx SoC device definitions
3 *
4 *  Copyright (C) 2008-2009 Gabor Juhos <juhosg@openwrt.org>
5 *  Copyright (C) 2008 Imre Kaloz <kaloz@openwrt.org>
6 *
7 *  This program is free software; you can redistribute it and/or modify it
8 *  under the terms of the GNU General Public License version 2 as published
9 *  by the Free Software Foundation.
10 */
11
12#ifndef __AR71XX_DEVICES_H
13#define __AR71XX_DEVICES_H
14
15#include <asm/mach-ar71xx/platform.h>
16
17#include <linux/leds.h>
18#include <linux/gpio_buttons.h>
19#include <linux/gpio_buttons.h>
20#include <net/dsa.h>
21
22void ar71xx_add_device_spi(struct ar71xx_spi_platform_data *pdata,
23                           struct spi_board_info const *info,
24                           unsigned n) __init;
25
26void ar71xx_set_mac_base(unsigned char *mac) __init;
27void ar71xx_parse_mac_addr(char *mac_str) __init;
28
29extern struct ag71xx_platform_data ar71xx_eth0_data;
30extern struct ag71xx_platform_data ar71xx_eth1_data;
31void ar71xx_add_device_eth(unsigned int id) __init;
32
33void ar71xx_add_device_mdio(u32 phy_mask) __init;
34
35void ar71xx_add_device_leds_gpio(int id,
36                                 unsigned num_leds,
37                                 struct gpio_led *leds) __init;
38
39void ar71xx_add_device_gpio_buttons(int id,
40                                    unsigned poll_interval,
41                                    unsigned nbuttons,
42                                    struct gpio_button *buttons) __init;
43
44#ifdef CONFIG_AR71XX_EARLY_SERIAL
45static inline void ar71xx_add_device_uart(void) {}
46#else
47void ar71xx_add_device_uart(void) __init;
48#endif
49
50void ar71xx_add_device_wdt(void) __init;
51
52void ar91xx_add_device_wmac(void) __init;
53
54void ar71xx_add_device_dsa(unsigned int id,
55                           struct dsa_platform_data *d) __init;
56
57#endif /* __AR71XX_DEVICES_H */
Note: See TracBrowser for help on using the repository browser.