/**
 * Copyright (c) 2015 Google Inc.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 * 1. Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following disclaimer in the documentation
 * and/or other materials provided with the distribution.
 * 3. Neither the name of the copyright holder nor the names of its
 * contributors may be used to endorse or promote products derived from this
 * software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#ifndef __COMMON_SPECIAL_TEST_H
#define __COMMON_SPECIAL_TEST_H


/* Special tests always require GPIO handshaking */
#if (defined _SPECIAL_TEST) && !(defined __HANDSHAKE)
#define _HANDSHAKE  1
#endif

/*
 * Special test identifiers for bootrom testing:
 */

/* Allow 3rd stage FW to try to put the chip into standby. */
#define SPECIAL_STANDBY_TEST            1

/*
 * STANDBY_TEST plus 3rd stage FW waits for the server to put UniPro to
 * hibern8 mode before suspend
 * */
#define SPECIAL_GBBOOT_SERVER_STANDBY   2

/* Run the SpiRom at different gear speeds */
#define SPECIAL_GEAR_CHANGE_TEST        3

#endif /* __COMMON_SPECIAL_TEST_H */

Build Tools: Moved special test flags into -spec
Bootrom: Build Tools: Moved special test flags into -spec

Converted the gear_change_test and suspend/resume tests from individual
compile flags into the special-test (-spec <num>) mechanism. (includes
file missing from original commit.

Testing Done: multiple builds and compile tests to ensure that the right
flags were being set at the compiler level.
Bug Number: SW-1205
Review URL: https://reviews.leaflabs.com/r/1843/
Reviewed by: Olin Sibert, Jun Li

Signed-off-by:  Morgan Girling <980e61e2e2b82c453db57c2e8646c01fbd3318cd@bsquare.com>
