sandbox.h 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. /*
  2. * Copyright (c) 2011 The Chromium OS Authors.
  3. * SPDX-License-Identifier: GPL-2.0+
  4. */
  5. #ifndef __CONFIG_H
  6. #define __CONFIG_H
  7. #ifdef FTRACE
  8. #define CONFIG_TRACE
  9. #define CONFIG_CMD_TRACE
  10. #define CONFIG_TRACE_BUFFER_SIZE (16 << 20)
  11. #define CONFIG_TRACE_EARLY_SIZE (8 << 20)
  12. #define CONFIG_TRACE_EARLY
  13. #define CONFIG_TRACE_EARLY_ADDR 0x00100000
  14. #endif
  15. #define CONFIG_IO_TRACE
  16. #define CONFIG_CMD_IOTRACE
  17. #define CONFIG_SYS_TIMER_RATE 1000000
  18. #define CONFIG_BOOTSTAGE
  19. #define CONFIG_BOOTSTAGE_REPORT
  20. #define CONFIG_DM
  21. #define CONFIG_CMD_DEMO
  22. #define CONFIG_CMD_DM
  23. #define CONFIG_DM_DEMO
  24. #define CONFIG_DM_DEMO_SIMPLE
  25. #define CONFIG_DM_DEMO_SHAPE
  26. #define CONFIG_DM_GPIO
  27. #define CONFIG_DM_TEST
  28. /* Number of bits in a C 'long' on this architecture */
  29. #define CONFIG_SANDBOX_BITS_PER_LONG 64
  30. #define CONFIG_OF_CONTROL
  31. #define CONFIG_OF_HOSTFILE
  32. #define CONFIG_OF_LIBFDT
  33. #define CONFIG_LMB
  34. #define CONFIG_FIT
  35. #define CONFIG_FIT_SIGNATURE
  36. #define CONFIG_RSA
  37. #define CONFIG_CMD_FDT
  38. #define CONFIG_DEFAULT_DEVICE_TREE sandbox
  39. #define CONFIG_ANDROID_BOOT_IMAGE
  40. #define CONFIG_FS_FAT
  41. #define CONFIG_FS_EXT4
  42. #define CONFIG_EXT4_WRITE
  43. #define CONFIG_CMD_FAT
  44. #define CONFIG_CMD_EXT4
  45. #define CONFIG_CMD_EXT4_WRITE
  46. #define CONFIG_CMD_PART
  47. #define CONFIG_DOS_PARTITION
  48. #define CONFIG_HOST_MAX_DEVICES 4
  49. #define CONFIG_CMD_FS_GENERIC
  50. #define CONFIG_SYS_VSNPRINTF
  51. #define CONFIG_CMD_GPIO
  52. #define CONFIG_SANDBOX_GPIO
  53. #define CONFIG_SANDBOX_GPIO_COUNT 128
  54. #define CONFIG_CMD_GPT
  55. #define CONFIG_PARTITION_UUIDS
  56. #define CONFIG_EFI_PARTITION
  57. /*
  58. * Size of malloc() pool, before and after relocation
  59. */
  60. #define CONFIG_SYS_MALLOC_F_LEN (1 << 10)
  61. #define CONFIG_MALLOC_F_ADDR 0x0010000
  62. #define CONFIG_SYS_MALLOC_LEN (32 << 20) /* 32MB */
  63. #define CONFIG_SYS_HUSH_PARSER
  64. #define CONFIG_SYS_LONGHELP /* #undef to save memory */
  65. #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
  66. /* Print Buffer Size */
  67. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
  68. #define CONFIG_SYS_MAXARGS 16
  69. /* turn on command-line edit/c/auto */
  70. #define CONFIG_CMDLINE_EDITING
  71. #define CONFIG_COMMAND_HISTORY
  72. #define CONFIG_AUTO_COMPLETE
  73. #define CONFIG_BOOTDELAY 3
  74. #define CONFIG_ENV_SIZE 8192
  75. #define CONFIG_ENV_IS_NOWHERE
  76. /* SPI */
  77. #define CONFIG_SANDBOX_SPI
  78. #define CONFIG_CMD_SF
  79. #define CONFIG_CMD_SF_TEST
  80. #define CONFIG_CMD_SPI
  81. #define CONFIG_SPI_FLASH
  82. #define CONFIG_OF_SPI
  83. #define CONFIG_OF_SPI_FLASH
  84. #define CONFIG_SPI_FLASH_SANDBOX
  85. #define CONFIG_SPI_FLASH_STMICRO
  86. #define CONFIG_SPI_FLASH_WINBOND
  87. /* Memory things - we don't really want a memory test */
  88. #define CONFIG_SYS_LOAD_ADDR 0x00000000
  89. #define CONFIG_SYS_MEMTEST_START 0x00100000
  90. #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + 0x1000)
  91. #define CONFIG_SYS_FDT_LOAD_ADDR 0x100
  92. #define CONFIG_PHYSMEM
  93. /* Size of our emulated memory */
  94. #define CONFIG_SYS_SDRAM_BASE 0
  95. #define CONFIG_SYS_SDRAM_SIZE (128 << 20)
  96. #define CONFIG_SYS_TEXT_BASE 0
  97. #define CONFIG_SYS_MONITOR_BASE 0
  98. #define CONFIG_NR_DRAM_BANKS 1
  99. #define CONFIG_BAUDRATE 115200
  100. #define CONFIG_SYS_BAUDRATE_TABLE {4800, 9600, 19200, 38400, 57600,\
  101. 115200}
  102. #define CONFIG_SANDBOX_SERIAL
  103. #define CONFIG_SYS_NO_FLASH
  104. /* include default commands */
  105. #include <config_cmd_default.h>
  106. /* We don't have networking support yet */
  107. #undef CONFIG_CMD_NET
  108. #undef CONFIG_CMD_NFS
  109. #define CONFIG_CMD_HASH
  110. #define CONFIG_HASH_VERIFY
  111. #define CONFIG_SHA1
  112. #define CONFIG_SHA256
  113. #define CONFIG_TPM_TIS_SANDBOX
  114. #define CONFIG_CMD_SANDBOX
  115. #define CONFIG_BOOTARGS ""
  116. #define CONFIG_CROS_EC
  117. #define CONFIG_CMD_CROS_EC
  118. #define CONFIG_CROS_EC_SANDBOX
  119. #define CONFIG_ARCH_EARLY_INIT_R
  120. #define CONFIG_BOARD_LATE_INIT
  121. #define CONFIG_SOUND
  122. #define CONFIG_SOUND_SANDBOX
  123. #define CONFIG_CMD_SOUND
  124. #ifndef SANDBOX_NO_SDL
  125. #define CONFIG_SANDBOX_SDL
  126. #endif
  127. /* LCD and keyboard require SDL support */
  128. #ifdef CONFIG_SANDBOX_SDL
  129. #define CONFIG_LCD
  130. #define CONFIG_VIDEO_SANDBOX_SDL
  131. #define CONFIG_CMD_BMP
  132. #define CONFIG_BOARD_EARLY_INIT_F
  133. #define CONFIG_CONSOLE_MUX
  134. #define CONFIG_SYS_CONSOLE_IS_IN_ENV
  135. #define LCD_BPP LCD_COLOR16
  136. #define CONFIG_CROS_EC_KEYB
  137. #define CONFIG_KEYBOARD
  138. #define CONFIG_EXTRA_ENV_SETTINGS "stdin=serial,cros-ec-keyb\0" \
  139. "stdout=serial,lcd\0" \
  140. "stderr=serial,lcd\0"
  141. #else
  142. #define CONFIG_EXTRA_ENV_SETTINGS "stdin=serial\0" \
  143. "stdout=serial,lcd\0" \
  144. "stderr=serial,lcd\0"
  145. #endif
  146. #define CONFIG_GZIP_COMPRESSED
  147. #define CONFIG_BZIP2
  148. #define CONFIG_LZO
  149. #define CONFIG_LZMA
  150. #define CONFIG_TPM_TIS_SANDBOX
  151. #define CONFIG_CMD_LZMADEC
  152. #endif