Mario Scheithauer | 5716b4c | 2018-11-14 13:27:05 +0100 | [diff] [blame] | 1 | chip soc/intel/apollolake |
| 2 | |
| 3 | device cpu_cluster 0 on |
| 4 | device lapic 0 on end |
| 5 | end |
| 6 | |
| 7 | register "sci_irq" = "SCIS_IRQ10" |
| 8 | |
| 9 | # Disable unused clkreq of PCIe root ports |
Mario Scheithauer | 6c3912f | 2018-11-23 11:02:17 +0100 | [diff] [blame] | 10 | register "pcie_rp_clkreq_pin[0]" = "1" # 14.0 |
| 11 | register "pcie_rp_clkreq_pin[1]" = "CLKREQ_DISABLED" # 14.1 |
| 12 | register "pcie_rp_clkreq_pin[2]" = "0" # 13.0 |
| 13 | register "pcie_rp_clkreq_pin[3]" = "CLKREQ_DISABLED" # 13.1 |
| 14 | register "pcie_rp_clkreq_pin[4]" = "2" # 13.2 |
| 15 | register "pcie_rp_clkreq_pin[5]" = "3" # 13.3 |
Mario Scheithauer | 5716b4c | 2018-11-14 13:27:05 +0100 | [diff] [blame] | 16 | |
| 17 | # EMMC TX DATA Delay 1 |
| 18 | # Refer to EDS-Vol2-22.3. |
| 19 | # [14:8] steps of delay for HS400, each 125ps. |
| 20 | # [6:0] steps of delay for SDR104/HS200, each 125ps. |
| 21 | register "emmc_tx_data_cntl1" = "0x0C16" |
| 22 | |
| 23 | # EMMC TX DATA Delay 2 |
| 24 | # Refer to EDS-Vol2-22.3. |
| 25 | # [30:24] steps of delay for SDR50, each 125ps. |
| 26 | # [22:16] steps of delay for DDR50, each 125ps. |
| 27 | # [14:8] steps of delay for SDR25/HS50, each 125ps. |
| 28 | # [6:0] steps of delay for SDR12, each 125ps. |
| 29 | register "emmc_tx_data_cntl2" = "0x28162828" |
| 30 | |
| 31 | # EMMC RX CMD/DATA Delay 1 |
| 32 | # Refer to EDS-Vol2-22.3. |
| 33 | # [30:24] steps of delay for SDR50, each 125ps. |
| 34 | # [22:16] steps of delay for DDR50, each 125ps. |
| 35 | # [14:8] steps of delay for SDR25/HS50, each 125ps. |
| 36 | # [6:0] steps of delay for SDR12, each 125ps. |
| 37 | register "emmc_rx_cmd_data_cntl1" = "0x00181717" |
| 38 | |
| 39 | # EMMC RX CMD/DATA Delay 2 |
| 40 | # Refer to EDS-Vol2-22.3. |
| 41 | # [17:16] stands for Rx Clock before Output Buffer |
| 42 | # [14:8] steps of delay for Auto Tuning Mode, each 125ps. |
| 43 | # [6:0] steps of delay for HS200, each 125ps. |
| 44 | register "emmc_rx_cmd_data_cntl2" = "0x10008" |
| 45 | |
| 46 | # 0:HS400(Default), 1:HS200, 2:DDR50 |
| 47 | register "emmc_host_max_speed" = "2" |
| 48 | |
Werner Zeh | d7e5f4b | 2019-02-01 12:39:40 +0100 | [diff] [blame^] | 49 | # Enable Vtd feature |
| 50 | register "enable_vtd" = "1" |
| 51 | |
Mario Scheithauer | 5716b4c | 2018-11-14 13:27:05 +0100 | [diff] [blame] | 52 | # Intel Common SoC Config |
| 53 | #+-------------------+---------------------------+ |
| 54 | #| Field | Value | |
| 55 | #+-------------------+---------------------------+ |
| 56 | #| I2C0 | Proximity Sensor | |
| 57 | #+-------------------+---------------------------+ |
| 58 | register "common_soc_config" = "{ |
| 59 | .i2c[0] = { |
| 60 | .speed = I2C_SPEED_STANDARD |
| 61 | }, |
| 62 | }" |
| 63 | |
| 64 | device domain 0 on |
| 65 | device pci 00.0 on end # - Host Bridge |
| 66 | device pci 00.1 off end # - DPTF |
| 67 | device pci 00.2 off end # - NPK |
| 68 | device pci 02.0 on end # - Gen - Display |
| 69 | device pci 03.0 off end # - Iunit |
| 70 | device pci 0d.0 on end # - P2SB |
| 71 | device pci 0d.1 off end # - PMC |
| 72 | device pci 0d.2 on end # - SPI |
| 73 | device pci 0d.3 off end # - Shared SRAM |
| 74 | device pci 0e.0 off end # - Audio |
| 75 | device pci 11.0 on end # - ISH |
| 76 | device pci 12.0 on end # - SATA |
Mario Scheithauer | 6c3912f | 2018-11-23 11:02:17 +0100 | [diff] [blame] | 77 | device pci 13.0 on end # - RP 2 - PCIe A 0 |
| 78 | device pci 13.1 off end # - RP 3 - PCIe A 1 |
| 79 | device pci 13.2 on end # - RP 4 - PCIe-A 2 |
| 80 | device pci 13.3 on end # - RP 5 - PCIe-A 3 |
| 81 | device pci 14.0 on end # - RP 0 - PCIe-B 0 |
| 82 | device pci 14.1 off end # - RP 1 - PCIe-B 1 |
Mario Scheithauer | 5716b4c | 2018-11-14 13:27:05 +0100 | [diff] [blame] | 83 | device pci 15.0 on end # - XHCI |
| 84 | device pci 15.1 off end # - XDCI |
| 85 | device pci 16.0 on # - I2C 0 |
| 86 | # Enable external RTC chip |
| 87 | chip drivers/i2c/rx6110sa |
| 88 | register "pmon_sampling" = "PMON_SAMPL_256_MS" |
| 89 | register "bks_on" = "0" |
| 90 | register "bks_off" = "1" |
| 91 | register "iocut_en" = "1" |
| 92 | register "set_user_date" = "1" |
| 93 | register "user_year" = "04" |
| 94 | register "user_month" = "07" |
| 95 | register "user_day" = "01" |
| 96 | register "user_weekday" = "4" |
| 97 | device i2c 0x32 on end # RTC RX6110 SA |
| 98 | end |
| 99 | end |
| 100 | device pci 16.1 off end # - I2C 1 |
| 101 | device pci 16.2 off end # - I2C 2 |
| 102 | device pci 16.3 off end # - I2C 3 |
| 103 | device pci 17.0 off end # - I2C 4 |
| 104 | device pci 17.1 off end # - I2C 5 |
| 105 | device pci 17.2 off end # - I2C 6 |
| 106 | device pci 17.3 on end # - I2C 7 |
| 107 | device pci 18.0 on end # - UART 0 |
| 108 | device pci 18.1 on end # - UART 1 |
| 109 | device pci 18.2 on end # - UART 2 |
| 110 | device pci 18.3 on end # - UART 3 |
| 111 | device pci 19.0 off end # - SPI 0 |
| 112 | device pci 19.1 off end # - SPI 1 |
| 113 | device pci 19.2 off end # - SPI 2 |
| 114 | device pci 1a.0 off end # - PWM |
Mario Scheithauer | 36a4a9d | 2018-11-28 08:37:31 +0100 | [diff] [blame] | 115 | device pci 1b.0 on end # - SDCARD |
Mario Scheithauer | 5716b4c | 2018-11-14 13:27:05 +0100 | [diff] [blame] | 116 | device pci 1c.0 on end # - eMMC |
| 117 | device pci 1d.0 off end # - UFS |
| 118 | device pci 1e.0 off end # - SDIO |
| 119 | device pci 1f.0 on end # - LPC |
| 120 | device pci 1f.1 on end # - SMBUS |
| 121 | end |
| 122 | end |