summaryrefslogtreecommitdiff
path: root/src/mainboard/google/zork/variants/dirinboz/overridetree.cb
blob: c43063c6883a46298538ab352b79f35b1bc7284e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# SPDX-License-Identifier: GPL-2.0-or-later
chip soc/amd/picasso

	# Start : OPN Performance Configuration
	# See devhub #56670 Chapter 5 for documentation
	# For the below fields, 0 indicates use SOC default

	# System config index
	register "system_config" = "1"

	# Set STAPM confiuration. All of these fields must be set >0 to take affect
	register "slow_ppt_limit" = "6000" #mw
	register "fast_ppt_limit" = "9000" #mw
	register "slow_ppt_time_constant" = "5" #second
	register "stapm_time_constant" = "2500" #second
	register "sustained_power_limit" = "4800" #mw

	# End : OPN Performance Configuration


	# I2C2 for touchscreen and trackpad
	register "i2c[2]" = "{
		.speed = I2C_SPEED_FAST,
		.rise_time_ns = 18,  /* 0 to 2.31 (3.3 * .7) */
		.fall_time_ns = 57,  /* 2.31 to 0 */
	}"

	# I2C3 for H1
	register "i2c[3]" = "{
		.speed = I2C_SPEED_FAST,
		.rise_time_ns = 184, /* 0 to 1.26v (1.8 * .7) */
		.fall_time_ns = 42,  /* 1.26v to 0 */
		.early_init = true,
	}"

	# See AMD 55570-B1 Table 13: PCI Device ID Assignments.
	device domain 0 on
		subsystemid 0x1022 0x1510 inherit
	end # domain

	device mmio 0xfedc4000 on # APU_I2C2_BASE
	end # device

end	# chip soc/amd/picasso