As you have probably noticed, an endomorphism of this ring is fully determined by its value on $x$ (because it must be identity on ${\bf Z}_p$, as $1\mapsto 1$ and others are multiples of $1$), and any choice of this value yields an endomorphism.
The question that remains is for what choices of a polynomial $P$ does $x\mapsto P$ give an automorphism.
Note that we always have all the constants in the range of an endomorphism, and ${\bf Z}_p$ is a field, so for an endomorphism to be surjective its enough for its range to contain some degree one polynomial. It's not hard to see that it is true if and only if $P$ has degree $1$ (this follows from the fact that ${\bf Z}_p$ is a domain).
On the other hand, a simple analysis of highest order terms can show that such an endomorphism has nontrivial kernel if and only if $P$ is constant (again, because ${\bf Z}_p$ is a domain).
In summary, $x\mapsto P$ yields an automorphism iff $P$ has degree $1$.
I'll go to sleep, I'm saying stupid stuff. -_-
– Patrick Da Silva Jul 24 '13 at 01:51