davinci: EMAC platform support
Add SoC and platform-specific data and init for DaVinci EMAC network driver. Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
This commit is contained in:
36
arch/arm/mach-davinci/include/mach/emac.h
Normal file
36
arch/arm/mach-davinci/include/mach/emac.h
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* TI DaVinci EMAC platform support
|
||||
*
|
||||
* Author: Kevin Hilman, Deep Root Systems, LLC
|
||||
*
|
||||
* 2007 (c) Deep Root Systems, LLC. This file is licensed under
|
||||
* the terms of the GNU General Public License version 2. This program
|
||||
* is licensed "as is" without any warranty of any kind, whether express
|
||||
* or implied.
|
||||
*/
|
||||
#ifndef _MACH_DAVINCI_EMAC_H
|
||||
#define _MACH_DAVINCI_EMAC_H
|
||||
|
||||
#include <linux/if_ether.h>
|
||||
|
||||
struct emac_platform_data {
|
||||
char mac_addr[ETH_ALEN];
|
||||
u32 ctrl_reg_offset;
|
||||
u32 ctrl_mod_reg_offset;
|
||||
u32 ctrl_ram_offset;
|
||||
u32 mdio_reg_offset;
|
||||
u32 ctrl_ram_size;
|
||||
u32 phy_mask;
|
||||
u32 mdio_max_freq;
|
||||
u8 rmii_en;
|
||||
u8 version;
|
||||
};
|
||||
|
||||
enum {
|
||||
EMAC_VERSION_1, /* DM644x */
|
||||
EMAC_VERSION_2, /* DM646x */
|
||||
};
|
||||
void davinci_init_emac(struct emac_platform_data *pdata);
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user