2009-02-23 08:50:00 +00:00
|
|
|
/*
|
|
|
|
* Atheros AR71xx SoC device definitions
|
|
|
|
*
|
|
|
|
* Copyright (C) 2008-2009 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __AR71XX_DEVICES_H
|
|
|
|
#define __AR71XX_DEVICES_H
|
|
|
|
|
|
|
|
#include <asm/mach-ar71xx/platform.h>
|
2009-02-23 10:43:23 +00:00
|
|
|
|
2009-12-26 14:19:26 +00:00
|
|
|
struct platform_device;
|
2009-02-23 08:50:00 +00:00
|
|
|
|
|
|
|
void ar71xx_add_device_spi(struct ar71xx_spi_platform_data *pdata,
|
|
|
|
struct spi_board_info const *info,
|
|
|
|
unsigned n) __init;
|
|
|
|
|
2010-08-18 16:00:28 +00:00
|
|
|
extern unsigned char ar71xx_mac_base[] __initdata;
|
2009-02-23 08:50:00 +00:00
|
|
|
void ar71xx_parse_mac_addr(char *mac_str) __init;
|
2010-08-18 16:00:28 +00:00
|
|
|
void ar71xx_init_mac(unsigned char *dst, const unsigned char *src,
|
|
|
|
unsigned offset) __init;
|
2009-02-23 08:50:00 +00:00
|
|
|
|
2009-05-28 13:00:08 +00:00
|
|
|
struct ar71xx_eth_pll_data {
|
|
|
|
u32 pll_10;
|
|
|
|
u32 pll_100;
|
|
|
|
u32 pll_1000;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern struct ar71xx_eth_pll_data ar71xx_eth0_pll_data;
|
|
|
|
extern struct ar71xx_eth_pll_data ar71xx_eth1_pll_data;
|
|
|
|
|
2009-02-23 08:50:00 +00:00
|
|
|
extern struct ag71xx_platform_data ar71xx_eth0_data;
|
|
|
|
extern struct ag71xx_platform_data ar71xx_eth1_data;
|
2009-12-26 14:19:26 +00:00
|
|
|
extern struct platform_device ar71xx_eth0_device;
|
|
|
|
extern struct platform_device ar71xx_eth1_device;
|
2009-02-23 08:50:00 +00:00
|
|
|
void ar71xx_add_device_eth(unsigned int id) __init;
|
|
|
|
|
2009-12-26 14:19:26 +00:00
|
|
|
extern struct platform_device ar71xx_mdio_device;
|
2009-02-23 08:50:00 +00:00
|
|
|
void ar71xx_add_device_mdio(u32 phy_mask) __init;
|
|
|
|
|
|
|
|
void ar71xx_add_device_uart(void) __init;
|
|
|
|
|
|
|
|
void ar71xx_add_device_wdt(void) __init;
|
|
|
|
|
|
|
|
#endif /* __AR71XX_DEVICES_H */
|