int misc_init_f(void) { /* configure QRIO pis for i2c deblocking */ i2c_deblock_gpio_cfg(); return 0; }
int misc_init_f(void) { /* configure QRIO pis for i2c deblocking */ i2c_deblock_gpio_cfg(); /* configure the front phy's prstcfg and take it out of reset */ qrio_prstcfg(ETH_FRONT_PHY_RST, PRSTCFG_POWUP_UNIT_CORE_RST); qrio_prst(ETH_FRONT_PHY_RST, false, false); /* set the ZL30343 prstcfg to reset at power-up only */ qrio_prstcfg(ZL30343_RST, PRSTCFG_POWUP_RST); /* and enable the WD on it */ qrio_wdmask(ZL30343_RST, true); /* set the QSFPs' prstcfg to reset at power-up and unit rst only */ qrio_prstcfg(QSFP1_RST, PRSTCFG_POWUP_UNIT_RST); qrio_prstcfg(QSFP2_RST, PRSTCFG_POWUP_UNIT_RST); /* and enable the WD on them */ qrio_wdmask(QSFP1_RST, true); qrio_wdmask(QSFP2_RST, true); return 0; }