diff options
Diffstat (limited to 'board/kb9202/kb9202.c')
-rw-r--r-- | board/kb9202/kb9202.c | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/board/kb9202/kb9202.c b/board/kb9202/kb9202.c index bab642657..4a7cf77ba 100644 --- a/board/kb9202/kb9202.c +++ b/board/kb9202/kb9202.c @@ -23,11 +23,13 @@ */ /* - * Adatped for KwikByte KB920x board from at91rm9200dk.c: 22APR2005 + * Adapted for KwikByte KB920x board from at91rm9200dk.c: 22APR2005 */ #include <common.h> #include <asm/arch/AT91RM9200.h> +#include <at91rm9200_net.h> +#include <lxt971a.h> /* ------------------------------------------------------------------------- */ /* @@ -64,3 +66,32 @@ int dram_init (void) gd->bd->bi_dram[0].size = PHYS_SDRAM_SIZE; return 0; } + +#ifdef CONFIG_DRIVER_ETHER +#if (CONFIG_COMMANDS & CFG_CMD_NET) + +unsigned int lxt972_IsPhyConnected (AT91PS_EMAC p_mac); +UCHAR lxt972_GetLinkSpeed (AT91PS_EMAC p_mac); +UCHAR lxt972_InitPhy (AT91PS_EMAC p_mac); +UCHAR lxt972_AutoNegotiate (AT91PS_EMAC p_mac, int *status); + +/* + * Name: + * at91rm9200_GetPhyInterface + * Description: + * Initialise the interface functions to the PHY + * Arguments: + * None + * Return value: + * None + */ +void at91rm9200_GetPhyInterface(AT91PS_PhyOps p_phyops) +{ + p_phyops->Init = lxt972_InitPhy; + p_phyops->IsPhyConnected = lxt972_IsPhyConnected; + p_phyops->GetLinkSpeed = lxt972_GetLinkSpeed; + p_phyops->AutoNegotiate = lxt972_AutoNegotiate; +} + +#endif /* CONFIG_COMMANDS & CFG_CMD_NET */ +#endif /* CONFIG_DRIVER_ETHER */ |