summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ec/lenovo/h8/acpi/thinkpad.asl6
-rw-r--r--src/ec/smsc/mec1308/acpi/battery.asl2
-rw-r--r--src/mainboard/aopen/dxplplusu/acpi/e7505_pri.asl2
-rw-r--r--src/mainboard/aopen/dxplplusu/acpi/e7505_sec.asl2
-rw-r--r--src/mainboard/aopen/dxplplusu/acpi/superio.asl2
-rw-r--r--src/mainboard/lenovo/s230u/acpi/gpe.asl4
-rw-r--r--src/soc/intel/baytrail/acpi/irqlinks.asl16
-rw-r--r--src/soc/intel/braswell/acpi/irqlinks.asl16
-rw-r--r--src/southbridge/intel/i82371eb/acpi/intx.asl2
-rw-r--r--src/southbridge/intel/i82371eb/acpi/pirq.asl2
-rw-r--r--src/superio/acpi/pnp.asl4
-rw-r--r--src/superio/winbond/w83627hf/acpi/superio.asl22
12 files changed, 40 insertions, 40 deletions
diff --git a/src/ec/lenovo/h8/acpi/thinkpad.asl b/src/ec/lenovo/h8/acpi/thinkpad.asl
index e1c979eaae..28431e8f03 100644
--- a/src/ec/lenovo/h8/acpi/thinkpad.asl
+++ b/src/ec/lenovo/h8/acpi/thinkpad.asl
@@ -51,7 +51,7 @@ Device (HKEY)
/* Report event */
Method (RHK, 1, NotSerialized) {
- ShiftLeft (One, Arg0 - 1, Local0)
+ Local0 = One << (Arg0 - 1)
If (EMSK & Local0) {
BTN = Arg0
Notify (HKEY, 0x80)
@@ -60,7 +60,7 @@ Device (HKEY)
/* Report tablet */
Method (RTAB, 1, NotSerialized) {
- ShiftLeft (One, Arg0 - 1, Local0)
+ Local0 = One << (Arg0 - 1)
If (ETAB & Local0) {
BTAB = Arg0
Notify (HKEY, 0x80)
@@ -84,7 +84,7 @@ Device (HKEY)
/* Enable/disable event. */
Method (MHKM, 2, NotSerialized) {
If (Arg0 <= 0x20) {
- ShiftLeft (One, Arg0 - 1, Local0)
+ Local0 = One << (Arg0 - 1)
If (Arg1)
{
Or (DHKN, Local0, DHKN)
diff --git a/src/ec/smsc/mec1308/acpi/battery.asl b/src/ec/smsc/mec1308/acpi/battery.asl
index dbccf0fa21..fad52d2091 100644
--- a/src/ec/smsc/mec1308/acpi/battery.asl
+++ b/src/ec/smsc/mec1308/acpi/battery.asl
@@ -60,7 +60,7 @@ Device (BAT0)
Method (SWAB, 1, NotSerialized)
{
Local0 = Arg0 >> 8
- ShiftLeft (Arg0, 8, Local1)
+ Local1 = Arg0 << 8
And (Local1, 0xFF00, Local1)
Or (Local0, Local1, Local0)
If (Local0 == 0xFFFF) {
diff --git a/src/mainboard/aopen/dxplplusu/acpi/e7505_pri.asl b/src/mainboard/aopen/dxplplusu/acpi/e7505_pri.asl
index 5f27bff67c..4189271493 100644
--- a/src/mainboard/aopen/dxplplusu/acpi/e7505_pri.asl
+++ b/src/mainboard/aopen/dxplplusu/acpi/e7505_pri.asl
@@ -40,7 +40,7 @@ Device (MBRS)
Local1++
If (Local1 > 0x40)
{
- ShiftLeft (Local1, 0x1A, LELM)
+ LELM = Local1 << 0x1A
}
diff --git a/src/mainboard/aopen/dxplplusu/acpi/e7505_sec.asl b/src/mainboard/aopen/dxplplusu/acpi/e7505_sec.asl
index a2537c271b..6976be84d4 100644
--- a/src/mainboard/aopen/dxplplusu/acpi/e7505_sec.asl
+++ b/src/mainboard/aopen/dxplplusu/acpi/e7505_sec.asl
@@ -43,7 +43,7 @@ Method (_CRS, 0, NotSerialized)
CreateDWordField (PBRS, \_SB.PCI0._Y08._LEN, LENM)
And (\_SB.PCI0.TOLM, 0xF800, Local1)
Local1 >>= 4
- ShiftLeft (Local1, 0x14, MEML)
+ MEML = Local1 << 0x14
MEMH = IO_APIC_ADDR - 1
LENM = IO_APIC_ADDR - MEML
diff --git a/src/mainboard/aopen/dxplplusu/acpi/superio.asl b/src/mainboard/aopen/dxplplusu/acpi/superio.asl
index 1d1d2d81db..22b0e2297e 100644
--- a/src/mainboard/aopen/dxplplusu/acpi/superio.asl
+++ b/src/mainboard/aopen/dxplplusu/acpi/superio.asl
@@ -76,7 +76,7 @@ Method (_CRS, 0, NotSerialized)
IOM1 = 0x00
IOM2 = 0x00
Or (\_SB.PCI0.ICH0.SMSC.IOAH, IOM1, IOM1)
- ShiftLeft (IOM1, 0x08, IOM1)
+ IOM1 <<= 8
Or (\_SB.PCI0.ICH0.SMSC.IOAL, IOM1, IOM1)
IOM2 = IOM1
If (IOM1 != 0)
diff --git a/src/mainboard/lenovo/s230u/acpi/gpe.asl b/src/mainboard/lenovo/s230u/acpi/gpe.asl
index 76461f619d..9b22e67ecc 100644
--- a/src/mainboard/lenovo/s230u/acpi/gpe.asl
+++ b/src/mainboard/lenovo/s230u/acpi/gpe.asl
@@ -4,7 +4,7 @@ Scope (_GPE)
{
Name (PDET, Zero)
Method (PNOT, 2, Serialized) {
- ShiftLeft (Arg0, Arg1, Local0)
+ Local0 = Arg0 << Arg1
Not( ShiftLeft (One, Arg1), Local1)
Or (Local0, And (Local1, PDET), PDET)
If (PDET == Zero) {
@@ -17,7 +17,7 @@ Scope (_GPE)
}
Method (TINV, 2, Serialized) {
- ShiftLeft (One, Arg1, Local0)
+ Local0 = One << Arg1
If (Arg0 == Zero) {
Not (Local0, Local0)
And (GIV0, Local0, GIV0)
diff --git a/src/soc/intel/baytrail/acpi/irqlinks.asl b/src/soc/intel/baytrail/acpi/irqlinks.asl
index d0f3dcb691..9d42bef600 100644
--- a/src/soc/intel/baytrail/acpi/irqlinks.asl
+++ b/src/soc/intel/baytrail/acpi/irqlinks.asl
@@ -31,7 +31,7 @@ Device (LNKA)
IRQ0 = Zero
/* Set the bit from PRTA */
- ShiftLeft(1, And(PRTA, 0x0f), IRQ0)
+ IRQ0 = 1 << And(PRTA, 0x0f)
Return (RTLA)
}
@@ -90,7 +90,7 @@ Device (LNKB)
IRQ0 = Zero
/* Set the bit from PRTB */
- ShiftLeft(1, And(PRTB, 0x0f), IRQ0)
+ IRQ0 = 1 << And(PRTB, 0x0f)
Return (RTLB)
}
@@ -149,7 +149,7 @@ Device (LNKC)
IRQ0 = Zero
/* Set the bit from PRTC */
- ShiftLeft(1, And(PRTC, 0x0f), IRQ0)
+ IRQ0 = 1 << And(PRTC, 0x0f)
Return (RTLC)
}
@@ -208,7 +208,7 @@ Device (LNKD)
IRQ0 = Zero
/* Set the bit from PRTD */
- ShiftLeft(1, And(PRTD, 0x0f), IRQ0)
+ IRQ0 = 1 << And(PRTD, 0x0f)
Return (RTLD)
}
@@ -267,7 +267,7 @@ Device (LNKE)
IRQ0 = Zero
/* Set the bit from PRTE */
- ShiftLeft(1, And(PRTE, 0x0f), IRQ0)
+ IRQ0 = 1 << And(PRTE, 0x0f)
Return (RTLE)
}
@@ -326,7 +326,7 @@ Device (LNKF)
IRQ0 = Zero
/* Set the bit from PRTF */
- ShiftLeft(1, And(PRTF, 0x0f), IRQ0)
+ IRQ0 = 1 << And(PRTF, 0x0f)
Return (RTLF)
}
@@ -385,7 +385,7 @@ Device (LNKG)
IRQ0 = Zero
/* Set the bit from PRTG */
- ShiftLeft(1, And(PRTG, 0x0f), IRQ0)
+ IRQ0 = 1 << And(PRTG, 0x0f)
Return (RTLG)
}
@@ -444,7 +444,7 @@ Device (LNKH)
IRQ0 = Zero
/* Set the bit from PRTH */
- ShiftLeft(1, And(PRTH, 0x0f), IRQ0)
+ IRQ0 = 1 << And(PRTH, 0x0f)
Return (RTLH)
}
diff --git a/src/soc/intel/braswell/acpi/irqlinks.asl b/src/soc/intel/braswell/acpi/irqlinks.asl
index 42fc97e6b2..bfb80fcb0d 100644
--- a/src/soc/intel/braswell/acpi/irqlinks.asl
+++ b/src/soc/intel/braswell/acpi/irqlinks.asl
@@ -31,7 +31,7 @@ Device (LNKA)
IRQ0 = Zero
/* Set the bit from PRTA */
- ShiftLeft(1, And(PRTA, 0x0f), IRQ0)
+ IRQ0 = 1 << And(PRTA, 0x0f)
Return (RTLA)
}
@@ -90,7 +90,7 @@ Device (LNKB)
IRQ0 = Zero
/* Set the bit from PRTB */
- ShiftLeft(1, And(PRTB, 0x0f), IRQ0)
+ IRQ0 = 1 << And(PRTB, 0x0f)
Return (RTLB)
}
@@ -149,7 +149,7 @@ Device (LNKC)
IRQ0 = Zero
/* Set the bit from PRTC */
- ShiftLeft(1, And(PRTC, 0x0f), IRQ0)
+ IRQ0 = 1 << And(PRTC, 0x0f)
Return (RTLC)
}
@@ -208,7 +208,7 @@ Device (LNKD)
IRQ0 = Zero
/* Set the bit from PRTD */
- ShiftLeft(1, And(PRTD, 0x0f), IRQ0)
+ IRQ0 = 1 << And(PRTD, 0x0f)
Return (RTLD)
}
@@ -267,7 +267,7 @@ Device (LNKE)
IRQ0 = Zero
/* Set the bit from PRTE */
- ShiftLeft(1, And(PRTE, 0x0f), IRQ0)
+ IRQ0 = 1 << And(PRTE, 0x0f)
Return (RTLE)
}
@@ -326,7 +326,7 @@ Device (LNKF)
IRQ0 = Zero
/* Set the bit from PRTF */
- ShiftLeft(1, And(PRTF, 0x0f), IRQ0)
+ IRQ0 = 1 << And(PRTF, 0x0f)
Return (RTLF)
}
@@ -385,7 +385,7 @@ Device (LNKG)
IRQ0 = Zero
/* Set the bit from PRTG */
- ShiftLeft(1, And(PRTG, 0x0f), IRQ0)
+ IRQ0 = 1 << And(PRTG, 0x0f)
Return (RTLG)
}
@@ -444,7 +444,7 @@ Device (LNKH)
IRQ0 = Zero
/* Set the bit from PRTH */
- ShiftLeft(1, And(PRTH, 0x0f), IRQ0)
+ IRQ0 = 1 << And(PRTH, 0x0f)
Return (RTLH)
}
diff --git a/src/southbridge/intel/i82371eb/acpi/intx.asl b/src/southbridge/intel/i82371eb/acpi/intx.asl
index 087ab4d5e4..ae5aeeed30 100644
--- a/src/southbridge/intel/i82371eb/acpi/intx.asl
+++ b/src/southbridge/intel/i82371eb/acpi/intx.asl
@@ -30,7 +30,7 @@ Device(intx) { \
\
Method(_CRS ,0) { \
CreateWordField(IRQB, 1, IRQN) \
- ShiftLeft(1, And(pinx, 0x0f), IRQN) \
+ IRQN = 1 << And(pinx, 0x0f) \
Return(IRQB) \
} \
\
diff --git a/src/southbridge/intel/i82371eb/acpi/pirq.asl b/src/southbridge/intel/i82371eb/acpi/pirq.asl
index f39c6d5edc..3f7518c76e 100644
--- a/src/southbridge/intel/i82371eb/acpi/pirq.asl
+++ b/src/southbridge/intel/i82371eb/acpi/pirq.asl
@@ -40,7 +40,7 @@ Device(intx) { \
\
Method(_CRS ,0) { \
CreateWordField(IRQB, 1, IRQN) \
- ShiftLeft(1, And(pinx, 0x0f), IRQN) \
+ IRQN = 1 << And(pinx, 0x0f) \
Return(IRQB) \
} \
\
diff --git a/src/superio/acpi/pnp.asl b/src/superio/acpi/pnp.asl
index f403a669b1..51fdb4fbb8 100644
--- a/src/superio/acpi/pnp.asl
+++ b/src/superio/acpi/pnp.asl
@@ -108,11 +108,11 @@
#define PNP_READ_IRQ(IRQ_FROM, RESOURCE_TEMPLATE, IRQ_TAG) \
CreateWordField (RESOURCE_TEMPLATE, IRQ_TAG._INT, IRQ_TAG##W)\
- ShiftLeft (One, IRQ_FROM, IRQ_TAG##W)
+ IRQ_TAG##W = One << IRQ_FROM
#define PNP_READ_DMA(DMA_FROM, RESOURCE_TEMPLATE, DMA_TAG) \
CreateByteField (RESOURCE_TEMPLATE, DMA_TAG._DMA, DMA_TAG##W)\
- ShiftLeft (One, DMA_FROM, DMA_TAG##W)
+ DMA_TAG##W = One << DMA_FROM
#define PNP_WRITE_IO(IO_TO, RESOURCE, IO_TAG) \
CreateWordField (RESOURCE, IO_TAG._MIN, IO_TAG##I)\
diff --git a/src/superio/winbond/w83627hf/acpi/superio.asl b/src/superio/winbond/w83627hf/acpi/superio.asl
index d2b7264153..37f5cfa3e8 100644
--- a/src/superio/winbond/w83627hf/acpi/superio.asl
+++ b/src/superio/winbond/w83627hf/acpi/superio.asl
@@ -304,7 +304,7 @@ Device(SIO) {
Local1 = IO1H
Local2 = IO1L
EXIT_CONFIG_MODE ()
- ShiftLeft(Local1, 8, Local1)
+ Local1 <<= 8
Or(Local1, Local2, Local1)
If (!Local0) {
Return (FDE)
@@ -503,7 +503,7 @@ Device(SIO) {
}
/* Calculate IRQ bitmap */
Local0 = One
- ShiftLeft (Local0, Local5, IRQW)
+ IRQW = Local0 << Local5
/* Return resource template */
Return (CRS)
}
@@ -660,7 +660,7 @@ Device(SIO) {
CreateWordField (CRS, IRQX._INT, IRQW)
Local3 = One
- ShiftLeft (Local3, Local2, IRQW)
+ IRQW = Local3 << Local2
Return (CRS)
}
@@ -785,7 +785,7 @@ Device(SIO) {
CreateWordField (CRS, IRQX._INT, IRQW)
Local3 = One
- ShiftLeft (Local3, Local2, IRQW)
+ IRQW = Local3 << Local2
Return (CRS)
}
@@ -910,7 +910,7 @@ Device(SIO) {
CreateWordField (CRS, IRQX._INT, IRQW)
Local3 = One
- ShiftLeft (Local3, Local2, IRQW)
+ IRQW = Local3 << Local2
Return (CRS)
}
@@ -1013,7 +1013,7 @@ Device(SIO) {
CreateWordField (CRS, IRQX._INT, IRQW)
Local3 = One
- ShiftLeft (Local3, Local2, IRQW)
+ IRQW = Local3 << Local2
Return (CRS)
}
@@ -1114,7 +1114,7 @@ Device(SIO) {
CreateWordField (CRS, IRQX._INT, IRQW)
Local5 = One
- ShiftLeft (Local5, Local4, IRQW)
+ IRQW = Local5 << Local4
Return (CRS)
}
@@ -1199,7 +1199,7 @@ Device(SIO) {
CreateWordField (CRS, IRQX._INT, IRQW)
Local5 = One
- ShiftLeft (Local5, Local4, IRQW)
+ IRQW = Local5 << Local4
Return (CRS)
}
@@ -1278,7 +1278,7 @@ Device(SIO) {
If (Local2) {
CreateWordField (CRS, IRQX._INT, IRQW)
Local3 = One
- ShiftLeft (Local3, Local2, IRQW)
+ IRQW = Local3 << Local2
}
Return (CRS)
@@ -1333,7 +1333,7 @@ Device(SIO) {
If (Local2) {
CreateWordField (CRS, IRQX._INT, IRQW)
Local3 = One
- ShiftLeft (Local3, Local2, IRQW)
+ IRQW = Local3 << Local2
}
Return (CRS)
@@ -1432,7 +1432,7 @@ Device(SIO) {
If (Local2) {
CreateWordField (CRS, IRQX._INT, IRQW)
Local3 = One
- ShiftLeft (Local3, Local2, IRQW)
+ IRQW = Local3 << Local2
}
Return (CRS)
}