Only federal Direct Loans are eligible for PSLF. However, if you have other types of federal loans, you can consolidate them into a Direct Consolidation Loan and then apply for PSLF.
Suppose your consolidation loan is not a Direct Consolidation Loan. In that case, it will only qualify for PSLF after the consolidation unless you change it to one by completing an application with FedLoan Service and applying for a new loan number.