- 论坛徽章:
- 0
|
遇到问题,在这里请教各位高手,在线坐等
平台:MPCP1022DS (与P1013的差别就在于多一个核)
Linux内核:2.6.35
u-boot:u-boot-2010.12
现在自己的设计是把原来P1022DS上的两个网口中的一个eth0用来做网口,phy由VT的换成了bcm54616S;另一个eth1用来连接BCM5396 switch芯片的管理口,通过MDIO来控制,连接方式为RGMII,其实就是MAC to MAC的连接方式。
这个在u-boot中对于eth1的配置需要做哪些工作?
在kernel中,把dts修改完后,具体还要做哪些工作?
现在被这个问题给卡住了,期盼有高手给以指点。
曾经参考过 http://blog.chinaunix.net/uid-13889805-id-3382225.html
dts内容修改:
............
mdio@24000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,etsec2-mdio";
reg = <0x24000 0x1000 0xb0030 0x4>;
phy0: ethernet-phy@0 {
interrupt-parent = <&mpic>;
interrupts = <3 1>;
reg = <0x1>;
};
/*phy1: ethernet-phy@1 {
interrupt-parent = <&mpic>;
interrupts = <9 1>;
reg = <0x2>;
};*/
};
............
enet0: ethernet@B0000 {
#address-cells = <1>;
#size-cells = <1>;
cell-index = <0>;
device_type = "network";
model = "eTSEC";
compatible = "fsl,etsec2";
fsl,num_rx_queues = <0x8>;
fsl,num_tx_queues = <0x8>;
fsl,magic-packet;
fsl,wake-on-filer;
clk-handle = <&etsec1_clk>;
local-mac-address = [ 00 00 00 00 00 00 ];
interrupt-parent = <&mpic>;
fixed-link = <1 1 1000 0 0>;
phy-handle = <&phy0>;
phy-connection-type = "rgmii-id";
queue-group@0{
#address-cells = <1>;
#size-cells = <1>;
reg = <0xB0000 0x1000>;
interrupts = <29 2 30 2 34 2>;
};
queue-group@1{
#address-cells = <1>;
#size-cells = <1>;
reg = <0xB4000 0x1000>;
interrupts = <17 2 18 2 24 2>;
};
};
enet1: ethernet@B1000 {
#address-cells = <1>;
#size-cells = <1>;
cell-index = <0>;
device_type = "network";
model = "eTSEC";
compatible = "fsl,etsec2";
fsl,num_rx_queues = <0x8>;
fsl,num_tx_queues = <0x8>;
fsl,magic-packet;
fsl,wake-on-filer;
clk-handle = <&etsec2_clk>;
local-mac-address = [ 00 00 00 00 00 00 ];
interrupt-parent = <&mpic>;
fixed-link = <1 1 1000 0 0>;
/*phy-handle = <&phy1>;*/
phy-connection-type = "rgmii-id";
queue-group@0{
#address-cells = <1>;
#size-cells = <1>;
reg = <0xB1000 0x1000>;
interrupts = <35 2 36 2 40 2>;
};
queue-group@1{
#address-cells = <1>;
#size-cells = <1>;
reg = <0xB5000 0x1000>;
interrupts = <51 2 52 2 67 2>;
};
};
盼有人给以帮助,联系方式:
QQ:185230542
E-mail: suipl@yahoo.com.cn
|
|