1 // SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 2 /* Copyright 2013-2019 IBM Corp. */ 3 4 #ifndef __CONFIG_H 5 #define __CONFIG_H 6 7 /* Alignment to which skiboot lays out memory. */ 8 #define PAGE_SIZE 0x10000 9 10 #define HAVE_TYPEOF 1 11 #define HAVE_BUILTIN_TYPES_COMPATIBLE_P 1 12 13 /* Keep -Wundef happy by defining whatever isn't on commandline to 0 */ 14 #if defined(HAVE_LITTLE_ENDIAN) && HAVE_LITTLE_ENDIAN 15 #define HAVE_BIG_ENDIAN 0 16 #endif 17 #if defined(HAVE_BIG_ENDIAN) && HAVE_BIG_ENDIAN 18 #define HAVE_LITTLE_ENDIAN 0 19 #endif 20 21 /* We don't have a byteswap.h, and thus no bswap_64 */ 22 #define HAVE_BYTESWAP_H 0 23 #define HAVE_BSWAP_64 0 24 25 /* 26 * Build options. 27 */ 28 29 /* Enable lock debugging */ 30 #define DEBUG_LOCKS 1 31 32 /* Enable printing of backtraces when locks not released */ 33 #ifdef DEBUG 34 #define DEBUG_LOCKS_BACKTRACE 1 35 #else 36 //#define DEBUG_LOCKS_BACKTRACE 1 37 #endif 38 39 /* Enable lock dependency checker */ 40 #define DEADLOCK_CHECKER 1 41 42 /* Enable OPAL entry point tracing */ 43 //#define OPAL_TRACE_ENTRY 1 44 45 /* Enable tracing of event state change */ 46 //#define OPAL_TRACE_EVT_CHG 1 47 48 /* Enable various levels of OPAL_console debug */ 49 //#define OPAL_DEBUG_CONSOLE_IO 1 50 //#define OPAL_DEBUG_CONSOLE_POLL 1 51 52 /* Enable this to force all writes to the in-memory console to 53 * be mirrored on the mambo console 54 */ 55 //#define MAMBO_DEBUG_CONSOLE 1 56 57 /* Enable this to hookup SkiBoot log to the DVS console */ 58 #define DVS_CONSOLE 1 59 60 /* Enable this to force the dummy console to the kernel. 61 * (ie, an OPAL console that injects into skiboot own console) 62 * Where possible, leave this undefined and enable it dynamically using 63 * the chosen->sapphire,enable-dummy-console in the device tree. 64 * 65 * Note: This only gets enabled if there is no FSP console. If there 66 * is one it always takes over for now. This also cause the LPC UART 67 * node to be marked "reserved" so Linux doesn't instanciate a 8250 68 * driver for it. 69 */ 70 //#define FORCE_DUMMY_CONSOLE 1 71 72 /* Enable this to disable setting of the output pending event when 73 * sending things on the console. The FSP is very slow to consume 74 * and older kernels wait after each character during early boot so 75 * things get very slow. Eventually, we may want to create an OPAL 76 * API for the kernel to activate or deactivate that functionality 77 */ 78 #define DISABLE_CON_PENDING_EVT 1 79 80 #endif /* __CONFIG_H */ 81 82