Can i deduct interest on a home equity loan on my primary home that I used to buy a rental property?

I want to know if I can report this as mortgage interest for my rental property even though I didn't use the rental property to secure the loan.