Merge branch 'next'
This brings in the u-boot-net PR from Joe.
This commit is contained in:
@@ -11,6 +11,11 @@
|
||||
chosen {
|
||||
stdout-path = &uart5;
|
||||
};
|
||||
|
||||
aliases {
|
||||
ethernet0 = &mac0;
|
||||
ethernet1 = &mac1;
|
||||
};
|
||||
};
|
||||
|
||||
&uart5 {
|
||||
@@ -36,3 +41,21 @@
|
||||
u-boot,dm-pre-reloc;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&mac0 {
|
||||
status = "okay";
|
||||
|
||||
phy-mode = "rgmii";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_mac1link_default &pinctrl_mdio1_default>;
|
||||
};
|
||||
|
||||
&mac1 {
|
||||
status = "okay";
|
||||
|
||||
phy-mode = "rgmii";
|
||||
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&pinctrl_mac2link_default &pinctrl_mdio2_default>;
|
||||
};
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -57,19 +57,6 @@
|
||||
/* MDIO clock output frequency */
|
||||
#define EMAC_MDIO_CLOCK_FREQ 2500000 /* 2.5 MHz */
|
||||
|
||||
/* MII Status Register */
|
||||
#define MII_STATUS_REG 1
|
||||
#define MII_STATUS_LINK_MASK 0x4
|
||||
|
||||
#define MDIO_CONTROL_IDLE 0x80000000
|
||||
#define MDIO_CONTROL_ENABLE 0x40000000
|
||||
#define MDIO_CONTROL_FAULT_ENABLE 0x40000
|
||||
#define MDIO_CONTROL_FAULT 0x80000
|
||||
#define MDIO_USERACCESS0_GO 0x80000000
|
||||
#define MDIO_USERACCESS0_WRITE_READ 0x0
|
||||
#define MDIO_USERACCESS0_WRITE_WRITE 0x40000000
|
||||
#define MDIO_USERACCESS0_ACK 0x20000000
|
||||
|
||||
#define EMAC_MACCONTROL_MIIEN_ENABLE 0x20
|
||||
#define EMAC_MACCONTROL_FULLDUPLEX_ENABLE 0x1
|
||||
#define EMAC_MACCONTROL_GIGABIT_ENABLE BIT(7)
|
||||
@@ -242,18 +229,4 @@ struct mdio_regs {
|
||||
u32 userphysel1;
|
||||
};
|
||||
|
||||
struct eth_priv_t {
|
||||
char int_name[32];
|
||||
int rx_flow;
|
||||
int phy_addr;
|
||||
int slave_port;
|
||||
int sgmii_link_type;
|
||||
phy_interface_t phy_if;
|
||||
struct phy_device *phy_dev;
|
||||
};
|
||||
|
||||
int keystone2_emac_initialize(struct eth_priv_t *eth_priv);
|
||||
void sgmii_serdes_setup_156p25mhz(void);
|
||||
void sgmii_serdes_shutdown(void);
|
||||
|
||||
#endif /* _KEYSTONE_NET_H_ */
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <net.h>
|
||||
#include <dp83848.h>
|
||||
#include <asm/arch/emac_defs.h>
|
||||
#include "../../../drivers/net/davinci_emac.h"
|
||||
#include "../../../drivers/net/ti/davinci_emac.h"
|
||||
|
||||
#ifdef CONFIG_DRIVER_TI_EMAC
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <net.h>
|
||||
#include <miiphy.h>
|
||||
#include <asm/arch/emac_defs.h>
|
||||
#include "../../../drivers/net/davinci_emac.h"
|
||||
#include "../../../drivers/net/ti/davinci_emac.h"
|
||||
|
||||
#ifdef CONFIG_DRIVER_TI_EMAC
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include <net.h>
|
||||
#include <asm/arch/emac_defs.h>
|
||||
#include <asm/io.h>
|
||||
#include "../../../drivers/net/davinci_emac.h"
|
||||
#include "../../../drivers/net/ti/davinci_emac.h"
|
||||
|
||||
int ksz8873_is_phy_connected(int phy_addr)
|
||||
{
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include <miiphy.h>
|
||||
#include <lxt971a.h>
|
||||
#include <asm/arch/emac_defs.h>
|
||||
#include "../../../drivers/net/davinci_emac.h"
|
||||
#include "../../../drivers/net/ti/davinci_emac.h"
|
||||
|
||||
#ifdef CONFIG_DRIVER_TI_EMAC
|
||||
|
||||
|
||||
Reference in New Issue
Block a user