This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DP83826E: DP83640 port to DP83826E

Part Number: DP83826E
Other Parts Discussed in Thread: DP83640, TMDS570LS31HDK, HALCOGEN,

Hello TI,

I am looking how to port a code which is already written for DP83640 on hercules EVM (TMDS570LS31HDK) with support of Halcogen
As I checked halcogen doesn't support for DP83826E. Please me know what changes needs to be done in terms of software to make a halcogen generated code of DP83640 to work with DP83826E.

Both are in MII configuration.

The controller used is TMS570LS3137


Thank you

  • Hi Adarsh,

    Started working on your issue, and we will provide an update very soon.

    --

    Thanks & regards,

    Jagadish.

  • Hi Adarsh,

    We never got this requirement before,

    what we have to verify here is, we have to compare register and bit locations of driver files(phy_dp83640.c and phy_dp83640.h) generated for 83640 generated by HALCoGen with the register and bit locations of 83826E.

    If they are identical then we no need to make any software changes otherwise we should correct the driver file.

    --

    Thanks & regards,
    Jagadish.

  • Hello Jagdish,

    The registers of the 2 phy differs. I have made a list of the same for comparison.
    I wanted to know how to integrate changes if we have a register which is not defined in the other phy.
    Is there anyway in which halcogen can generate DP83826E driver.

    SL.no DP83640 Registers DP83826 Registers
    1 BMCR BMCR
    2 BMSR BMSR
    3 PHYIDR1 PHYIDR1
    4 PHYIDR2 PHYIDR2
    5 ANAR ANAR
    6 ANLPAR ALNPAR
    7 ANER ANER
    8 ANNPTR ANNPTR
    9 RESERVED ANLNPTR
    10 PHYSTS CR1
    11 MICR CR2
    12 MISR CR3
    13 PAGESEL REGCR
    14 FCSCR ADDAR
    15 RECR FLDS
    16 PCSR PHYSTS
    17 RBR PHYSCR
    18 LEDCR MISR1
    19 PHYCR MISR2
    20 10BTSCR FCSCR
    21 CDCTRL1 RECR
    22 PHYCR2 BISCR
    23 EDCR RCSR
    24 RESERVED LEDCR
    25 PCFCR PHYCR
    26 RESERVED 10BTSCR
    27 SD_CNFG BICSR1
    28 RESERVED BICSR2
    29 LEN100_DET CDCR
    30 FREQ100 PHYRCR
    31 TDR_CTRL MLEDCR
    32 TDR_WIN COMPT Regsiter
    33 TDR_PEAK 10M_CFG
    34 TDR_THR FLD_CFG1
    35 VAR_CTRL FLD_CFG2
    36 VAR_DAT CDSCR
    37 RESERVED CDSCR2
    38 LQMR CDSCR3
    39 LQDR TDR_175
    40 LQMR2 TDR_176
    41 PTP_CTL CDSCR4
    42 PTP_TDR TDR_178
    43 PTP_STS CDLRR1
    44 PTP_TSTS CDLRR2
    45 PTP_RATEL CDLRR3
    46 PTP_RATEH CDLRR4
    47 PTP_RDCKSUM CDLRR5
    48 PTP_WRCKSUM CDLAR1
    49 PTP_TXTS CDLAR2
    50 PTP_RXTS CDLAR3
    51 PTP_ESTS CDLAR4
    52 PTP_EDATA CDLAR5
    53 PTP_TRIG CDLAR6
    54 PTP_EVNT IO_CFG1
    55 PTP_TXCFG0 LED0_GPIO_CFG
    56 PTP_TXCFG1 LED1_GPIO_CFG
    57 PSF_CFG0 LED2_GPIO_CFG
    58 PTP_RXCFG0 LED3_GPIO_CFG
    59 PTP_RXCFG1 CLK_OUT_LED_STATUS
    60 PTP_RXCFG2 VOD_CFG1
    61 PTP_RXCFG3 VOD_CFG2
    62 PTP_RXCFG4 VOD_CFG3
    63 PTP_TRDL ANA_LD_PROG_SL
    64 PTP_TRDH ANA_RX10BT_CTRL
    65 PTP_TRDH GENCFG
    66 PSF_CFG1 LEDCFG
    67 PSF_CFG2 IOCTRL
    68 PSF_CFG3 SOR1
    69 PSF_CFG4 SOR2
    70 PTP_SFDCFG LEDCFG2
    71 PTP_INTCTL RXFCFG1
    72 PTP_CLKSRC RXFS
    73 PTP_ETR RXFPMD1
    74 PTP_OFF RXFPMD2
    75 PTP_GPIOMON RXFPMD3
    76 PTP_RXHASH RXFSOP1
    77 Nil RXFSOP2
    78 Nil RXFSOP3
  • Hi Adarsh,

    Is there anyway in which halcogen can generate DP83826E driver.

    No, It is not possible because HALCoGen doesn't have support for DP83826E. We have to manually should make the changes in driver files.

    I wanted to know how to integrate changes if we have a register which is not defined in the other phy.

    Take a copy of the driver files and try to include the changes in user code sections or else have to create the complete new driver files.

    --

    Thanks & regards,
    Jagadish.