WARNING: This page is about a different car, the 2006 Toyota Tundra and 2005 Toyota Tundra. However, it is still accessible from the selected car via links, so may be relevant.
The skid control ECU inputs the stop light switch signal and detects the status of brake operation.