Matt DeVillier | 54e0fd2 | 2020-10-29 20:30:08 -0500 | [diff] [blame] | 1 | config BOARD_PURISM_BASEBOARD_LIBREM_CNL |
Matt DeVillier | ceb409a | 2020-06-26 00:21:39 -0500 | [diff] [blame] | 2 | def_bool n |
| 3 | select BOARD_ROMSIZE_KB_16384 |
| 4 | select DRIVERS_GENERIC_CBFS_SERIAL |
| 5 | select DRIVERS_USB_ACPI |
| 6 | select HAVE_ACPI_RESUME |
| 7 | select HAVE_ACPI_TABLES |
| 8 | select INTEL_GMA_HAVE_VBT |
Angel Pons | 14ea5a0 | 2020-10-21 13:25:55 +0200 | [diff] [blame] | 9 | select MAINBOARD_HAS_LIBGFXINIT |
Matt DeVillier | ceb409a | 2020-06-26 00:21:39 -0500 | [diff] [blame] | 10 | select NO_UART_ON_SUPERIO |
Matt DeVillier | ceb409a | 2020-06-26 00:21:39 -0500 | [diff] [blame] | 11 | select SOC_INTEL_COMMON_BLOCK_HDA_VERB |
Matt DeVillier | 087c4f2 | 2020-12-02 15:35:34 -0600 | [diff] [blame] | 12 | select SPD_CACHE_IN_FMAP |
Matt DeVillier | ceb409a | 2020-06-26 00:21:39 -0500 | [diff] [blame] | 13 | select SPD_READ_BY_WORD |
| 14 | select USE_LEGACY_8254_TIMER |
| 15 | |
Felix Singer | 0be8ac5 | 2023-05-08 19:09:11 +0200 | [diff] [blame] | 16 | config BOARD_PURISM_LIBREM_MINI |
| 17 | select BOARD_PURISM_BASEBOARD_LIBREM_CNL |
Jonathon Hall | a4f701e | 2022-12-20 11:22:35 -0500 | [diff] [blame^] | 18 | select HAVE_CMOS_DEFAULT |
| 19 | select HAVE_OPTION_TABLE |
Felix Singer | 0be8ac5 | 2023-05-08 19:09:11 +0200 | [diff] [blame] | 20 | select SOC_INTEL_WHISKEYLAKE |
| 21 | select SUPERIO_ITE_IT8528E |
| 22 | |
| 23 | config BOARD_PURISM_LIBREM_MINI_V2 |
| 24 | select BOARD_PURISM_BASEBOARD_LIBREM_CNL |
Jonathon Hall | a4f701e | 2022-12-20 11:22:35 -0500 | [diff] [blame^] | 25 | select HAVE_CMOS_DEFAULT |
| 26 | select HAVE_OPTION_TABLE |
Felix Singer | 0be8ac5 | 2023-05-08 19:09:11 +0200 | [diff] [blame] | 27 | select SOC_INTEL_COMETLAKE_1 |
| 28 | select SUPERIO_ITE_IT8528E |
| 29 | |
| 30 | config BOARD_PURISM_LIBREM_14 |
| 31 | select BOARD_PURISM_BASEBOARD_LIBREM_CNL |
| 32 | select DRIVERS_I2C_HID |
| 33 | select EC_LIBREM_EC |
| 34 | select MEMORY_MAPPED_TPM |
| 35 | select MAINBOARD_HAS_TPM1 |
| 36 | select SOC_INTEL_COMETLAKE_1 |
| 37 | select SYSTEM_TYPE_LAPTOP |
| 38 | |
Matt DeVillier | 54e0fd2 | 2020-10-29 20:30:08 -0500 | [diff] [blame] | 39 | if BOARD_PURISM_BASEBOARD_LIBREM_CNL |
Matt DeVillier | ceb409a | 2020-06-26 00:21:39 -0500 | [diff] [blame] | 40 | |
| 41 | config MAINBOARD_DIR |
Matt DeVillier | 54e0fd2 | 2020-10-29 20:30:08 -0500 | [diff] [blame] | 42 | default "purism/librem_cnl" |
Matt DeVillier | ceb409a | 2020-06-26 00:21:39 -0500 | [diff] [blame] | 43 | |
| 44 | config MAINBOARD_FAMILY |
| 45 | string |
Matt DeVillier | 12d515d | 2020-11-02 17:19:53 -0600 | [diff] [blame] | 46 | default "Librem Mini" if BOARD_PURISM_LIBREM_MINI || BOARD_PURISM_LIBREM_MINI_V2 |
Matt DeVillier | 4c3851a | 2020-11-17 14:17:06 -0600 | [diff] [blame] | 47 | default "Librem 14" if BOARD_PURISM_LIBREM_14 |
Matt DeVillier | ceb409a | 2020-06-26 00:21:39 -0500 | [diff] [blame] | 48 | |
| 49 | config MAINBOARD_PART_NUMBER |
Matt DeVillier | ceb409a | 2020-06-26 00:21:39 -0500 | [diff] [blame] | 50 | default "Librem Mini" if BOARD_PURISM_LIBREM_MINI |
Matt DeVillier | 12d515d | 2020-11-02 17:19:53 -0600 | [diff] [blame] | 51 | default "Librem Mini v2" if BOARD_PURISM_LIBREM_MINI_V2 |
Matt DeVillier | 4c3851a | 2020-11-17 14:17:06 -0600 | [diff] [blame] | 52 | default "Librem 14" if BOARD_PURISM_LIBREM_14 |
Matt DeVillier | ceb409a | 2020-06-26 00:21:39 -0500 | [diff] [blame] | 53 | |
| 54 | config VARIANT_DIR |
Matt DeVillier | 12d515d | 2020-11-02 17:19:53 -0600 | [diff] [blame] | 55 | default "librem_mini" if BOARD_PURISM_LIBREM_MINI || BOARD_PURISM_LIBREM_MINI_V2 |
Matt DeVillier | 4c3851a | 2020-11-17 14:17:06 -0600 | [diff] [blame] | 56 | default "librem_14" if BOARD_PURISM_LIBREM_14 |
Matt DeVillier | ceb409a | 2020-06-26 00:21:39 -0500 | [diff] [blame] | 57 | |
Matt DeVillier | 77c86aa | 2022-06-15 15:31:24 -0500 | [diff] [blame] | 58 | config OVERRIDE_DEVICETREE |
| 59 | default "variants/\$(CONFIG_VARIANT_DIR)/overridetree.cb" |
Matt DeVillier | bf355e7 | 2020-10-29 20:37:56 -0500 | [diff] [blame] | 60 | |
Matt DeVillier | ceb409a | 2020-06-26 00:21:39 -0500 | [diff] [blame] | 61 | config CBFS_SIZE |
Matt DeVillier | bf355e7 | 2020-10-29 20:37:56 -0500 | [diff] [blame] | 62 | default 0x800000 if BOARD_PURISM_LIBREM_MINI |
Matt DeVillier | 12d515d | 2020-11-02 17:19:53 -0600 | [diff] [blame] | 63 | default 0xA00000 if BOARD_PURISM_LIBREM_MINI_V2 |
Matt DeVillier | 4c3851a | 2020-11-17 14:17:06 -0600 | [diff] [blame] | 64 | default 0x900000 if BOARD_PURISM_LIBREM_14 |
Matt DeVillier | ceb409a | 2020-06-26 00:21:39 -0500 | [diff] [blame] | 65 | |
Matt DeVillier | ceb409a | 2020-06-26 00:21:39 -0500 | [diff] [blame] | 66 | config DIMM_MAX |
Matt DeVillier | ceb409a | 2020-06-26 00:21:39 -0500 | [diff] [blame] | 67 | default 2 |
| 68 | |
| 69 | config DIMM_SPD_SIZE |
Matt DeVillier | ceb409a | 2020-06-26 00:21:39 -0500 | [diff] [blame] | 70 | default 512 |
| 71 | |
| 72 | config VGA_BIOS_ID |
| 73 | string |
Matt DeVillier | bf355e7 | 2020-10-29 20:37:56 -0500 | [diff] [blame] | 74 | default "8086,3ea0" if BOARD_PURISM_LIBREM_MINI |
Matt DeVillier | 4c3851a | 2020-11-17 14:17:06 -0600 | [diff] [blame] | 75 | default "8086,9b41" if BOARD_PURISM_LIBREM_MINI_V2 || BOARD_PURISM_LIBREM_14 |
Matt DeVillier | ceb409a | 2020-06-26 00:21:39 -0500 | [diff] [blame] | 76 | |
| 77 | config PXE_ROM_ID |
| 78 | string |
| 79 | default "10ec,8168" |
| 80 | |
| 81 | # This platform has limited means to display POST codes |
| 82 | config NO_POST |
| 83 | default y |
| 84 | |
| 85 | endif |
Jonathon Hall | aeb8b3d | 2022-10-18 16:33:27 -0400 | [diff] [blame] | 86 | |
Jonathon Hall | a23ec07 | 2023-05-01 10:10:00 -0400 | [diff] [blame] | 87 | if BOARD_PURISM_LIBREM_MINI || BOARD_PURISM_LIBREM_MINI_V2 |
| 88 | |
| 89 | config PC_CMOS_BASE_PORT_BANK1 |
| 90 | default 0x360 |
| 91 | |
Jonathon Hall | a4f701e | 2022-12-20 11:22:35 -0500 | [diff] [blame^] | 92 | config CMOS_LAYOUT_FILE |
| 93 | default "src/mainboard/\$(MAINBOARDDIR)/variants/librem_mini/cmos.layout" |
| 94 | |
| 95 | config CMOS_DEFAULT_FILE |
| 96 | default "src/mainboard/\$(MAINBOARDDIR)/variants/librem_mini/cmos.default" |
| 97 | |
Jonathon Hall | a23ec07 | 2023-05-01 10:10:00 -0400 | [diff] [blame] | 98 | endif |
| 99 | |
Jonathon Hall | aeb8b3d | 2022-10-18 16:33:27 -0400 | [diff] [blame] | 100 | config ENABLE_EC_UART1 |
| 101 | bool "Enable EC UART1" |
| 102 | depends on BOARD_PURISM_LIBREM_MINI || BOARD_PURISM_LIBREM_MINI_V2 |
| 103 | default n |
| 104 | select DRIVERS_UART_8250IO |
| 105 | help |
| 106 | Enable UART1 on the EC. |
| 107 | |
| 108 | This UART can be used for boot logging by coreboot, SeaBIOS, or |
| 109 | Linux. It also works as a general-purpose UART. |
| 110 | |
| 111 | Soldering is required to access these signals. Locate the pads for |
| 112 | U81 on the bottom of the board near the front edge; the IC is not |
| 113 | populated. TX is pin 14, RX is pin 19. The signals are 3.3V (do NOT |
| 114 | connect directly to an RS-232 serial port). |