Infamous 2 was released exclusively for PlayStation 3 in 2011. It never launched on the PlayStation Portable (PSP).
The original Infamous also remained PS3-only. The PSP received a different title, Infamous: Festival of Blood? No—actually, the PSP got Infamous: First Light? Wait, correction: No Infamous game was released on PSP. The series has always been PlayStation home console exclusive (PS3, PS4, PS5).
If you're looking for portable superhero action, consider Spider-Man: Miles Morales on PS Vita (via remote play) or modern mobile titles, but Infamous 2 is strictly PS3.