X-Git-Url: https://git.ti.com/gitweb?p=keystone-rtos%2Fibl.git;a=blobdiff_plain;f=src%2Fhw%2Fplls%2Fpll014phi%2Fcfgpll.c;h=a8808899c29747c66469ae59c1d8de5b933b0097;hp=4f2834206a12b2a990f02a0acae0ee510d36d402;hb=b4a975a6f9b1f078c78ddc45d790e75873c32959;hpb=55c984254e67ad9c7b08e5810ea9d48761982919 diff --git a/src/hw/plls/pll014phi/cfgpll.c b/src/hw/plls/pll014phi/cfgpll.c index 4f28342..a880889 100644 --- a/src/hw/plls/pll014phi/cfgpll.c +++ b/src/hw/plls/pll014phi/cfgpll.c @@ -98,27 +98,20 @@ SINT16 hwPllSetCfgPll (UINT32 base, UINT32 prediv, UINT32 mult, UINT32 postdiv, DEVICE_REG32_W (base + 4, regb); - /* Reset must be asserted for at least 5us. Give a huge amount of padding here to be safe - * (the factor of 100) */ + /* Reset must be asserted for at least 5us */ pass_pll_delay(7000); /* Clear bit 14 in register 1 to re-enable the pll */ regb = BOOT_SET_BITFIELD(regb, 0, 14, 14); DEVICE_REG32_W (base + 4, regb); - /* Wait for 50 us */ + /* Wait for atleast 500 * REFCLK cycles * (PLLD+1) */ pass_pll_delay(70000); /* Disable the bypass */ reg = BOOT_SET_BITFIELD (reg, 0, 23, 23); /* The value 0 disables the bypass */ DEVICE_REG32_W (base, reg); -#if 0 - /* Enable the output source (set bit 13) */ - regb = BOOT_SET_BITFIELD(regb, 1, 13, 13); - DEVICE_REG32_W (base + 4, regb); -#endif - return (0); } /* hwPllSetCfgPll */