Diagnosis & Repair
WARNING: This page is about a different car, the 2003 Toyota Tundra. However, it is still accessible from the selected car via links, so may be relevant.
For diagnosis and repair procedure, see DTC P0504: BRAKE SWITCH "A"/"B" CORRELATION .