Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

DM814x Eval Board CPSW phy_id values in U-Boot evm.c file

$
0
0

Hi,

I'm working with the DM814x Eval Board and when porting U-boot to my custom board I came across the cpsw_slave structure in the evm.c file where the phy_id's look backwards to me.  Here's the portion of code:

static struct cpsw_slave_data cpsw_slaves[] = {
1335         {
1336                 .slave_reg_ofs  = 0x50,
1337                 .sliver_reg_ofs = 0x700,
1338                 .phy_id         = 1,
1339         },
1340         {
1341                 .slave_reg_ofs  = 0x90,
1342                 .sliver_reg_ofs = 0x740,
1343                 .phy_id         = 0,
1344         },
1345 };

Based on the schematic and the micro datasheet, it seems that the phy_id values don't match up with the register offsets.  Or maybe that was done on purpose for some reason?  What am I missing here?  I just want to make sure I understand how to port this correctly.  I've swapped the id values and the networking in U-boot seems to function either way.

Thanks,

Eric


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>