Passcode for what?
What exactly are you doing when it asks for the passcode?
Likely this is the solution:
Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
If recovery mode does not work try DFU mode.