soc/intel/baytrail/acpi: Replace Store(a,b) with ASL 2.0 syntax
Replace `Store (a, b)` with `b = a`. Change-Id: Ic171f3343bb35e43be5fdb50c5c926eede6a1d93 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70684 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
This commit is contained in:
		@@ -26,7 +26,7 @@ Device (TCHG)
 | 
				
			|||||||
	Method (PPPC)
 | 
						Method (PPPC)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		/* Convert size of PPSS table to index */
 | 
							/* Convert size of PPSS table to index */
 | 
				
			||||||
		Store (SizeOf (\_SB.CHPS), Local0)
 | 
							Local0 = SizeOf (\_SB.CHPS)
 | 
				
			||||||
		Local0--
 | 
							Local0--
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* Check if charging is disabled (AC removed) */
 | 
							/* Check if charging is disabled (AC removed) */
 | 
				
			||||||
@@ -45,8 +45,8 @@ Device (TCHG)
 | 
				
			|||||||
	Method (SPPC, 1)
 | 
						Method (SPPC, 1)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		/* Retrieve Control (index 4) for specified PPSS level */
 | 
							/* Retrieve Control (index 4) for specified PPSS level */
 | 
				
			||||||
		Store (DeRefOf (Index (DeRefOf (Index
 | 
							Local0 = DeRefOf (Index (DeRefOf (Index
 | 
				
			||||||
			(\_SB.CHPS, ToInteger (Arg0))), 4)), Local0)
 | 
								(\_SB.CHPS, ToInteger (Arg0))), 4))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* Pass Control value to EC to limit charging */
 | 
							/* Pass Control value to EC to limit charging */
 | 
				
			||||||
		\_SB.PCI0.LPCB.EC0.CHGS (Local0)
 | 
							\_SB.PCI0.LPCB.EC0.CHGS (Local0)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -73,7 +73,7 @@ Device (TCPU)
 | 
				
			|||||||
	Method (_TDL)
 | 
						Method (_TDL)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		If (CondRefOf (\_SB.CP00._TSS)) {
 | 
							If (CondRefOf (\_SB.CP00._TSS)) {
 | 
				
			||||||
			Store (SizeOf (\_SB.CP00._TSS ()), Local0)
 | 
								Local0 = SizeOf (\_SB.CP00._TSS ())
 | 
				
			||||||
			Local0--
 | 
								Local0--
 | 
				
			||||||
			Return (Local0)
 | 
								Return (Local0)
 | 
				
			||||||
		} Else {
 | 
							} Else {
 | 
				
			||||||
@@ -92,7 +92,7 @@ Device (TCPU)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
	Method (SPPC, 1)
 | 
						Method (SPPC, 1)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		Store (Arg0, \PPCM)
 | 
							\PPCM = Arg0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* Notify OS to re-read _PPC limit on each CPU */
 | 
							/* Notify OS to re-read _PPC limit on each CPU */
 | 
				
			||||||
		\PPCN ()
 | 
							\PPCN ()
 | 
				
			||||||
@@ -116,7 +116,7 @@ Device (TCPU)
 | 
				
			|||||||
		If (CondRefOf (\_SB.MPDL)) {
 | 
							If (CondRefOf (\_SB.MPDL)) {
 | 
				
			||||||
			Return (\_SB.MPDL)
 | 
								Return (\_SB.MPDL)
 | 
				
			||||||
		} ElseIf (CondRefOf (\_SB.CP00._PSS)) {
 | 
							} ElseIf (CondRefOf (\_SB.CP00._PSS)) {
 | 
				
			||||||
			Store (SizeOf (\_SB.CP00._PSS ()), Local0)
 | 
								Local0 = SizeOf (\_SB.CP00._PSS ())
 | 
				
			||||||
			Local0--
 | 
								Local0--
 | 
				
			||||||
			Return (Local0)
 | 
								Return (Local0)
 | 
				
			||||||
		} Else {
 | 
							} Else {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6,7 +6,7 @@
 | 
				
			|||||||
#if CONFIG(EC_SUPPORTS_DPTF_TEVT)
 | 
					#if CONFIG(EC_SUPPORTS_DPTF_TEVT)
 | 
				
			||||||
Method (TEVT, 1, NotSerialized)
 | 
					Method (TEVT, 1, NotSerialized)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	Store (ToInteger (Arg0), Local0)
 | 
						Local0 = ToInteger (Arg0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef DPTF_TSR0_SENSOR_ID
 | 
					#ifdef DPTF_TSR0_SENSOR_ID
 | 
				
			||||||
	If (Local0 == DPTF_TSR0_SENSOR_ID) {
 | 
						If (Local0 == DPTF_TSR0_SENSOR_ID) {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -8,7 +8,7 @@ Device (LNKA)
 | 
				
			|||||||
	/* Disable method */
 | 
						/* Disable method */
 | 
				
			||||||
	Method (_DIS, 0, Serialized)
 | 
						Method (_DIS, 0, Serialized)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		Store (0x80, PRTA)
 | 
							PRTA = 0x80
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Possible Resource Settings for this Link */
 | 
						/* Possible Resource Settings for this Link */
 | 
				
			||||||
@@ -28,7 +28,7 @@ Device (LNKA)
 | 
				
			|||||||
		CreateWordField(RTLA, 1, IRQ0)
 | 
							CreateWordField(RTLA, 1, IRQ0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* Clear the WordField */
 | 
							/* Clear the WordField */
 | 
				
			||||||
		Store (Zero, IRQ0)
 | 
							IRQ0 = Zero
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* Set the bit from PRTA */
 | 
							/* Set the bit from PRTA */
 | 
				
			||||||
		ShiftLeft(1, And(PRTA, 0x0f), IRQ0)
 | 
							ShiftLeft(1, And(PRTA, 0x0f), IRQ0)
 | 
				
			||||||
@@ -45,7 +45,7 @@ Device (LNKA)
 | 
				
			|||||||
		FindSetRightBit(IRQ0, Local0)
 | 
							FindSetRightBit(IRQ0, Local0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		Local0--
 | 
							Local0--
 | 
				
			||||||
		Store(Local0, PRTA)
 | 
							PRTA = Local0
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Status */
 | 
						/* Status */
 | 
				
			||||||
@@ -67,7 +67,7 @@ Device (LNKB)
 | 
				
			|||||||
	/* Disable method */
 | 
						/* Disable method */
 | 
				
			||||||
	Method (_DIS, 0, Serialized)
 | 
						Method (_DIS, 0, Serialized)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		Store (0x80, PRTB)
 | 
							PRTB = 0x80
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Possible Resource Settings for this Link */
 | 
						/* Possible Resource Settings for this Link */
 | 
				
			||||||
@@ -87,7 +87,7 @@ Device (LNKB)
 | 
				
			|||||||
		CreateWordField(RTLB, 1, IRQ0)
 | 
							CreateWordField(RTLB, 1, IRQ0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* Clear the WordField */
 | 
							/* Clear the WordField */
 | 
				
			||||||
		Store (Zero, IRQ0)
 | 
							IRQ0 = Zero
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* Set the bit from PRTB */
 | 
							/* Set the bit from PRTB */
 | 
				
			||||||
		ShiftLeft(1, And(PRTB, 0x0f), IRQ0)
 | 
							ShiftLeft(1, And(PRTB, 0x0f), IRQ0)
 | 
				
			||||||
@@ -104,7 +104,7 @@ Device (LNKB)
 | 
				
			|||||||
		FindSetRightBit(IRQ0, Local0)
 | 
							FindSetRightBit(IRQ0, Local0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		Local0--
 | 
							Local0--
 | 
				
			||||||
		Store(Local0, PRTB)
 | 
							PRTB = Local0
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Status */
 | 
						/* Status */
 | 
				
			||||||
@@ -126,7 +126,7 @@ Device (LNKC)
 | 
				
			|||||||
	/* Disable method */
 | 
						/* Disable method */
 | 
				
			||||||
	Method (_DIS, 0, Serialized)
 | 
						Method (_DIS, 0, Serialized)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		Store (0x80, PRTC)
 | 
							PRTC = 0x80
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Possible Resource Settings for this Link */
 | 
						/* Possible Resource Settings for this Link */
 | 
				
			||||||
@@ -146,7 +146,7 @@ Device (LNKC)
 | 
				
			|||||||
		CreateWordField(RTLC, 1, IRQ0)
 | 
							CreateWordField(RTLC, 1, IRQ0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* Clear the WordField */
 | 
							/* Clear the WordField */
 | 
				
			||||||
		Store (Zero, IRQ0)
 | 
							IRQ0 = Zero
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* Set the bit from PRTC */
 | 
							/* Set the bit from PRTC */
 | 
				
			||||||
		ShiftLeft(1, And(PRTC, 0x0f), IRQ0)
 | 
							ShiftLeft(1, And(PRTC, 0x0f), IRQ0)
 | 
				
			||||||
@@ -163,7 +163,7 @@ Device (LNKC)
 | 
				
			|||||||
		FindSetRightBit(IRQ0, Local0)
 | 
							FindSetRightBit(IRQ0, Local0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		Local0--
 | 
							Local0--
 | 
				
			||||||
		Store(Local0, PRTC)
 | 
							PRTC = Local0
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Status */
 | 
						/* Status */
 | 
				
			||||||
@@ -185,7 +185,7 @@ Device (LNKD)
 | 
				
			|||||||
	/* Disable method */
 | 
						/* Disable method */
 | 
				
			||||||
	Method (_DIS, 0, Serialized)
 | 
						Method (_DIS, 0, Serialized)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		Store (0x80, PRTD)
 | 
							PRTD = 0x80
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Possible Resource Settings for this Link */
 | 
						/* Possible Resource Settings for this Link */
 | 
				
			||||||
@@ -205,7 +205,7 @@ Device (LNKD)
 | 
				
			|||||||
		CreateWordField(RTLD, 1, IRQ0)
 | 
							CreateWordField(RTLD, 1, IRQ0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* Clear the WordField */
 | 
							/* Clear the WordField */
 | 
				
			||||||
		Store (Zero, IRQ0)
 | 
							IRQ0 = Zero
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* Set the bit from PRTD */
 | 
							/* Set the bit from PRTD */
 | 
				
			||||||
		ShiftLeft(1, And(PRTD, 0x0f), IRQ0)
 | 
							ShiftLeft(1, And(PRTD, 0x0f), IRQ0)
 | 
				
			||||||
@@ -222,7 +222,7 @@ Device (LNKD)
 | 
				
			|||||||
		FindSetRightBit(IRQ0, Local0)
 | 
							FindSetRightBit(IRQ0, Local0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		Local0--
 | 
							Local0--
 | 
				
			||||||
		Store(Local0, PRTD)
 | 
							PRTD = Local0
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Status */
 | 
						/* Status */
 | 
				
			||||||
@@ -244,7 +244,7 @@ Device (LNKE)
 | 
				
			|||||||
	/* Disable method */
 | 
						/* Disable method */
 | 
				
			||||||
	Method (_DIS, 0, Serialized)
 | 
						Method (_DIS, 0, Serialized)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		Store (0x80, PRTE)
 | 
							PRTE = 0x80
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Possible Resource Settings for this Link */
 | 
						/* Possible Resource Settings for this Link */
 | 
				
			||||||
@@ -264,7 +264,7 @@ Device (LNKE)
 | 
				
			|||||||
		CreateWordField(RTLE, 1, IRQ0)
 | 
							CreateWordField(RTLE, 1, IRQ0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* Clear the WordField */
 | 
							/* Clear the WordField */
 | 
				
			||||||
		Store (Zero, IRQ0)
 | 
							IRQ0 = Zero
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* Set the bit from PRTE */
 | 
							/* Set the bit from PRTE */
 | 
				
			||||||
		ShiftLeft(1, And(PRTE, 0x0f), IRQ0)
 | 
							ShiftLeft(1, And(PRTE, 0x0f), IRQ0)
 | 
				
			||||||
@@ -281,7 +281,7 @@ Device (LNKE)
 | 
				
			|||||||
		FindSetRightBit(IRQ0, Local0)
 | 
							FindSetRightBit(IRQ0, Local0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		Local0--
 | 
							Local0--
 | 
				
			||||||
		Store(Local0, PRTE)
 | 
							PRTE = Local0
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Status */
 | 
						/* Status */
 | 
				
			||||||
@@ -303,7 +303,7 @@ Device (LNKF)
 | 
				
			|||||||
	/* Disable method */
 | 
						/* Disable method */
 | 
				
			||||||
	Method (_DIS, 0, Serialized)
 | 
						Method (_DIS, 0, Serialized)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		Store (0x80, PRTF)
 | 
							PRTF = 0x80
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Possible Resource Settings for this Link */
 | 
						/* Possible Resource Settings for this Link */
 | 
				
			||||||
@@ -323,7 +323,7 @@ Device (LNKF)
 | 
				
			|||||||
		CreateWordField(RTLF, 1, IRQ0)
 | 
							CreateWordField(RTLF, 1, IRQ0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* Clear the WordField */
 | 
							/* Clear the WordField */
 | 
				
			||||||
		Store (Zero, IRQ0)
 | 
							IRQ0 = Zero
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* Set the bit from PRTF */
 | 
							/* Set the bit from PRTF */
 | 
				
			||||||
		ShiftLeft(1, And(PRTF, 0x0f), IRQ0)
 | 
							ShiftLeft(1, And(PRTF, 0x0f), IRQ0)
 | 
				
			||||||
@@ -340,7 +340,7 @@ Device (LNKF)
 | 
				
			|||||||
		FindSetRightBit(IRQ0, Local0)
 | 
							FindSetRightBit(IRQ0, Local0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		Local0--
 | 
							Local0--
 | 
				
			||||||
		Store(Local0, PRTF)
 | 
							PRTF = Local0
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Status */
 | 
						/* Status */
 | 
				
			||||||
@@ -362,7 +362,7 @@ Device (LNKG)
 | 
				
			|||||||
	/* Disable method */
 | 
						/* Disable method */
 | 
				
			||||||
	Method (_DIS, 0, Serialized)
 | 
						Method (_DIS, 0, Serialized)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		Store (0x80, PRTG)
 | 
							PRTG = 0x80
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Possible Resource Settings for this Link */
 | 
						/* Possible Resource Settings for this Link */
 | 
				
			||||||
@@ -382,7 +382,7 @@ Device (LNKG)
 | 
				
			|||||||
		CreateWordField(RTLG, 1, IRQ0)
 | 
							CreateWordField(RTLG, 1, IRQ0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* Clear the WordField */
 | 
							/* Clear the WordField */
 | 
				
			||||||
		Store (Zero, IRQ0)
 | 
							IRQ0 = Zero
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* Set the bit from PRTG */
 | 
							/* Set the bit from PRTG */
 | 
				
			||||||
		ShiftLeft(1, And(PRTG, 0x0f), IRQ0)
 | 
							ShiftLeft(1, And(PRTG, 0x0f), IRQ0)
 | 
				
			||||||
@@ -399,7 +399,7 @@ Device (LNKG)
 | 
				
			|||||||
		FindSetRightBit(IRQ0, Local0)
 | 
							FindSetRightBit(IRQ0, Local0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		Local0--
 | 
							Local0--
 | 
				
			||||||
		Store(Local0, PRTG)
 | 
							PRTG = Local0
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Status */
 | 
						/* Status */
 | 
				
			||||||
@@ -421,7 +421,7 @@ Device (LNKH)
 | 
				
			|||||||
	/* Disable method */
 | 
						/* Disable method */
 | 
				
			||||||
	Method (_DIS, 0, Serialized)
 | 
						Method (_DIS, 0, Serialized)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		Store (0x80, PRTH)
 | 
							PRTH = 0x80
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Possible Resource Settings for this Link */
 | 
						/* Possible Resource Settings for this Link */
 | 
				
			||||||
@@ -441,7 +441,7 @@ Device (LNKH)
 | 
				
			|||||||
		CreateWordField(RTLH, 1, IRQ0)
 | 
							CreateWordField(RTLH, 1, IRQ0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* Clear the WordField */
 | 
							/* Clear the WordField */
 | 
				
			||||||
		Store (Zero, IRQ0)
 | 
							IRQ0 = Zero
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* Set the bit from PRTH */
 | 
							/* Set the bit from PRTH */
 | 
				
			||||||
		ShiftLeft(1, And(PRTH, 0x0f), IRQ0)
 | 
							ShiftLeft(1, And(PRTH, 0x0f), IRQ0)
 | 
				
			||||||
@@ -458,7 +458,7 @@ Device (LNKH)
 | 
				
			|||||||
		FindSetRightBit(IRQ0, Local0)
 | 
							FindSetRightBit(IRQ0, Local0)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		Local0--
 | 
							Local0--
 | 
				
			||||||
		Store(Local0, PRTH)
 | 
							PRTH = Local0
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Status */
 | 
						/* Status */
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -43,15 +43,15 @@ Device (LPEA)
 | 
				
			|||||||
	{
 | 
						{
 | 
				
			||||||
		/* Update BAR0 from NVS */
 | 
							/* Update BAR0 from NVS */
 | 
				
			||||||
		CreateDwordField (^RBUF, ^BAR0._BAS, BAS0)
 | 
							CreateDwordField (^RBUF, ^BAR0._BAS, BAS0)
 | 
				
			||||||
		Store (\LPB0, BAS0)
 | 
							BAS0 = \LPB0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* Update BAR1 from NVS */
 | 
							/* Update BAR1 from NVS */
 | 
				
			||||||
		CreateDwordField (^RBUF, ^BAR1._BAS, BAS1)
 | 
							CreateDwordField (^RBUF, ^BAR1._BAS, BAS1)
 | 
				
			||||||
		Store (\LPB1, BAS1)
 | 
							BAS1 = \LPB1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* Update LPE FW from NVS */
 | 
							/* Update LPE FW from NVS */
 | 
				
			||||||
		CreateDwordField (^RBUF, ^BAR2._BAS, BAS2)
 | 
							CreateDwordField (^RBUF, ^BAR2._BAS, BAS2)
 | 
				
			||||||
		Store (\LPFW, BAS2)
 | 
							BAS2 = \LPFW
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		/* Append any Mainboard defined GPIOs */
 | 
							/* Append any Mainboard defined GPIOs */
 | 
				
			||||||
		If (CondRefOf (^GBUF)) {
 | 
							If (CondRefOf (^GBUF)) {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -18,7 +18,7 @@ Device (SDM1)
 | 
				
			|||||||
	Method (_CRS)
 | 
						Method (_CRS)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
							CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
				
			||||||
		Store (\S0B0, RBAS)
 | 
							RBAS = \S0B0
 | 
				
			||||||
		Return (^RBUF)
 | 
							Return (^RBUF)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -50,7 +50,7 @@ Device (SDM2)
 | 
				
			|||||||
	Method (_CRS)
 | 
						Method (_CRS)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
							CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
				
			||||||
		Store (\S8B0, RBAS)
 | 
							RBAS = \S8B0
 | 
				
			||||||
		Return (^RBUF)
 | 
							Return (^RBUF)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -90,7 +90,7 @@ Device (I2C1)
 | 
				
			|||||||
	Method (_CRS)
 | 
						Method (_CRS)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
							CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
				
			||||||
		Store (\S1B0, RBAS)
 | 
							RBAS = \S1B0
 | 
				
			||||||
		Return (^RBUF)
 | 
							Return (^RBUF)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -149,7 +149,7 @@ Device (I2C2)
 | 
				
			|||||||
	Method (_CRS)
 | 
						Method (_CRS)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
							CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
				
			||||||
		Store (\S2B0, RBAS)
 | 
							RBAS = \S2B0
 | 
				
			||||||
		Return (^RBUF)
 | 
							Return (^RBUF)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -208,7 +208,7 @@ Device (I2C3)
 | 
				
			|||||||
	Method (_CRS)
 | 
						Method (_CRS)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
							CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
				
			||||||
		Store (\S3B0, RBAS)
 | 
							RBAS = \S3B0
 | 
				
			||||||
		Return (^RBUF)
 | 
							Return (^RBUF)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -267,7 +267,7 @@ Device (I2C4)
 | 
				
			|||||||
	Method (_CRS)
 | 
						Method (_CRS)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
							CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
				
			||||||
		Store (\S4B0, RBAS)
 | 
							RBAS = \S4B0
 | 
				
			||||||
		Return (^RBUF)
 | 
							Return (^RBUF)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -326,7 +326,7 @@ Device (I2C5)
 | 
				
			|||||||
	Method (_CRS)
 | 
						Method (_CRS)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
							CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
				
			||||||
		Store (\S5B0, RBAS)
 | 
							RBAS = \S5B0
 | 
				
			||||||
		Return (^RBUF)
 | 
							Return (^RBUF)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -385,7 +385,7 @@ Device (I2C6)
 | 
				
			|||||||
	Method (_CRS)
 | 
						Method (_CRS)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
							CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
				
			||||||
		Store (\S6B0, RBAS)
 | 
							RBAS = \S6B0
 | 
				
			||||||
		Return (^RBUF)
 | 
							Return (^RBUF)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -444,7 +444,7 @@ Device (I2C7)
 | 
				
			|||||||
	Method (_CRS)
 | 
						Method (_CRS)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
							CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
				
			||||||
		Store (\S7B0, RBAS)
 | 
							RBAS = \S7B0
 | 
				
			||||||
		Return (^RBUF)
 | 
							Return (^RBUF)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -497,7 +497,7 @@ Device (SPI1)
 | 
				
			|||||||
	Method (_CRS)
 | 
						Method (_CRS)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
							CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
				
			||||||
		Store (\S9B0, RBAS)
 | 
							RBAS = \S9B0
 | 
				
			||||||
		Return (^RBUF)
 | 
							Return (^RBUF)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -544,7 +544,7 @@ Device (PWM1)
 | 
				
			|||||||
	Method (_CRS)
 | 
						Method (_CRS)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
							CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
				
			||||||
		Store (\SAB0, RBAS)
 | 
							RBAS = \SAB0
 | 
				
			||||||
		Return (^RBUF)
 | 
							Return (^RBUF)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -572,7 +572,7 @@ Device (PWM2)
 | 
				
			|||||||
	Method (_CRS)
 | 
						Method (_CRS)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
							CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
				
			||||||
		Store (\SBB0, RBAS)
 | 
							RBAS = \SBB0
 | 
				
			||||||
		Return (^RBUF)
 | 
							Return (^RBUF)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -606,7 +606,7 @@ Device (UAR1)
 | 
				
			|||||||
	Method (_CRS)
 | 
						Method (_CRS)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
							CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
				
			||||||
		Store (\SCB0, RBAS)
 | 
							RBAS = \SCB0
 | 
				
			||||||
		Return (^RBUF)
 | 
							Return (^RBUF)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -659,7 +659,7 @@ Device (UAR2)
 | 
				
			|||||||
	Method (_CRS)
 | 
						Method (_CRS)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
							CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
				
			||||||
		Store (\SDB0, RBAS)
 | 
							RBAS = \SDB0
 | 
				
			||||||
		Return (^RBUF)
 | 
							Return (^RBUF)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -19,7 +19,7 @@ Device (EMMC)
 | 
				
			|||||||
	Method (_CRS)
 | 
						Method (_CRS)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
							CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
				
			||||||
		Store (\C0B0, RBAS)
 | 
							RBAS = \C0B0
 | 
				
			||||||
		Return (^RBUF)
 | 
							Return (^RBUF)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -82,7 +82,7 @@ Device (SDIO)
 | 
				
			|||||||
	Method (_CRS)
 | 
						Method (_CRS)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
							CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
				
			||||||
		Store (\C1B0, RBAS)
 | 
							RBAS = \C1B0
 | 
				
			||||||
		Return (^RBUF)
 | 
							Return (^RBUF)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -134,7 +134,7 @@ Device (SDCD)
 | 
				
			|||||||
	Method (_CRS)
 | 
						Method (_CRS)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
							CreateDwordField (^RBUF, ^BAR0._BAS, RBAS)
 | 
				
			||||||
		Store (\C2B0, RBAS)
 | 
							RBAS = \C2B0
 | 
				
			||||||
		Return (^RBUF)
 | 
							Return (^RBUF)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -157,15 +157,15 @@ Method (_CRS, 0, Serialized)
 | 
				
			|||||||
	CreateDWordField (MCRS, ^LMEM._LEN, LLEN)
 | 
						CreateDWordField (MCRS, ^LMEM._LEN, LLEN)
 | 
				
			||||||
	If (LAnd (LPFW != Zero, LPEN == One))
 | 
						If (LAnd (LPFW != Zero, LPEN == One))
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		Store (LPFW, LMIN)
 | 
							LMIN = LPFW
 | 
				
			||||||
		Store (0x00100000, LLEN)
 | 
							LLEN = 0x00100000
 | 
				
			||||||
		LMAX = LMIN + LLEN - One
 | 
							LMAX = LMIN + LLEN - One
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	Else
 | 
						Else
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		Store (Zero, LMIN)
 | 
							LMIN = Zero
 | 
				
			||||||
		Store (Zero, LMAX)
 | 
							LMAX = Zero
 | 
				
			||||||
		Store (Zero, LLEN)
 | 
							LLEN = Zero
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Update PCI resource area */
 | 
						/* Update PCI resource area */
 | 
				
			||||||
@@ -174,8 +174,8 @@ Method (_CRS, 0, Serialized)
 | 
				
			|||||||
	CreateDWordField (MCRS, ^PMEM._LEN, PLEN)
 | 
						CreateDWordField (MCRS, ^PMEM._LEN, PLEN)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* TOLM is BMBOUND accessible from IOSF so is saved in NVS */
 | 
						/* TOLM is BMBOUND accessible from IOSF so is saved in NVS */
 | 
				
			||||||
	Store (\TOLM, PMIN)
 | 
						PMIN = \TOLM
 | 
				
			||||||
	Store (CONFIG_ECAM_MMCONF_BASE_ADDRESS - 1, PMAX)
 | 
						PMAX = CONFIG_ECAM_MMCONF_BASE_ADDRESS - 1
 | 
				
			||||||
	PLEN = PMAX - PMIN + 1
 | 
						PLEN = PMAX - PMIN + 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	Return (MCRS)
 | 
						Return (MCRS)
 | 
				
			||||||
@@ -238,7 +238,7 @@ Device (IOSF)
 | 
				
			|||||||
	Method (_CRS)
 | 
						Method (_CRS)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		CreateDwordField (^RBUF, ^RBAR._BAS, RBAS)
 | 
							CreateDwordField (^RBUF, ^RBAR._BAS, RBAS)
 | 
				
			||||||
		Store (CONFIG_ECAM_MMCONF_BASE_ADDRESS + 0xD0, RBAS)
 | 
							RBAS = CONFIG_ECAM_MMCONF_BASE_ADDRESS + 0xD0
 | 
				
			||||||
		Return (^RBUF)
 | 
							Return (^RBUF)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -18,11 +18,11 @@ Device (XHCI)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
			// REV: Revision 0x02 for ACPI 5.0
 | 
								// REV: Revision 0x02 for ACPI 5.0
 | 
				
			||||||
			CreateField (DerefOf (Index (PCKG, Zero)), Zero, 0x07, REV)
 | 
								CreateField (DerefOf (Index (PCKG, Zero)), Zero, 0x07, REV)
 | 
				
			||||||
			Store (0x02, REV)
 | 
								REV = 0x02
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			// VISI: Port visibility to user per port
 | 
								// VISI: Port visibility to user per port
 | 
				
			||||||
			CreateField (DerefOf (Index (PCKG, Zero)), 0x40, One, VISI)
 | 
								CreateField (DerefOf (Index (PCKG, Zero)), 0x40, One, VISI)
 | 
				
			||||||
			Store (Arg0, VISI)
 | 
								VISI = Arg0
 | 
				
			||||||
			Return (PCKG)
 | 
								Return (PCKG)
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user