Check out this thread for instructions on rotating the screen – make sure you read down to the part about updating the touch input matrix as well as the display output.
Edit: Regarding your comment on 180-degrees – you can rotate any multiple of 90 depending on your value of display_rotate
. Read that thread in detail and you should find what you need.