google/kahlee/grunt: Move ASL to variants
Move the apci/ to the baseboard and move mainboard.asl to each variant. BUG=b:71873651 TEST=build BRANCH=none Change-Id: I8a829f2946e4b280cd78574eb8dbda6c2a9a1028 Signed-off-by: Marc Jones <marcj303@gmail.com> Reviewed-on: https://review.coreboot.org/23229 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Richard Spiegel <richard.spiegel@silverbackltd.com>
This commit is contained in:
		| @@ -31,7 +31,7 @@ DefinitionBlock ( | |||||||
| 	#include <globalnvs.asl> | 	#include <globalnvs.asl> | ||||||
|  |  | ||||||
| 	/* Globals for the platform */ | 	/* Globals for the platform */ | ||||||
| 	#include "acpi/mainboard.asl" | 	#include <variant/acpi/mainboard.asl> | ||||||
|  |  | ||||||
| 	/* PCI IRQ mapping for the Southbridge */ | 	/* PCI IRQ mapping for the Southbridge */ | ||||||
| 	#include <pcie.asl> | 	#include <pcie.asl> | ||||||
| @@ -43,7 +43,7 @@ DefinitionBlock ( | |||||||
| 	#include <sleepstates.asl> | 	#include <sleepstates.asl> | ||||||
|  |  | ||||||
| 	/* Contains the Sleep methods (WAK, PTS, GTS, etc.) */ | 	/* Contains the Sleep methods (WAK, PTS, GTS, etc.) */ | ||||||
| 	#include "acpi/sleep.asl" | 	#include <variant/acpi/sleep.asl> | ||||||
|  |  | ||||||
| 	/* System Bus */ | 	/* System Bus */ | ||||||
| 	Scope(\_SB) { /* Start \_SB scope */ | 	Scope(\_SB) { /* Start \_SB scope */ | ||||||
| @@ -51,7 +51,7 @@ DefinitionBlock ( | |||||||
| 		#include <arch/x86/acpi/globutil.asl> | 		#include <arch/x86/acpi/globutil.asl> | ||||||
|  |  | ||||||
| 		/* IRQ Routing mapping for this platform (in \_SB scope) */ | 		/* IRQ Routing mapping for this platform (in \_SB scope) */ | ||||||
| 		#include "acpi/routing.asl" | 		#include <variant/acpi/routing.asl> | ||||||
|  |  | ||||||
| 		Device(PWRB) { | 		Device(PWRB) { | ||||||
| 			Name(_HID, EISAID("PNP0C0C")) | 			Name(_HID, EISAID("PNP0C0C")) | ||||||
| @@ -64,7 +64,7 @@ DefinitionBlock ( | |||||||
| 	} /* End \_SB scope */ | 	} /* End \_SB scope */ | ||||||
|  |  | ||||||
| 	/* Thermal handler */ | 	/* Thermal handler */ | ||||||
| 	#include "acpi/thermal.asl" | 	#include <variant/acpi/thermal.asl> | ||||||
|  |  | ||||||
| 	/* Chrome OS specific */ | 	/* Chrome OS specific */ | ||||||
| 	#include <vendorcode/google/chromeos/acpi/chromeos.asl> | 	#include <vendorcode/google/chromeos/acpi/chromeos.asl> | ||||||
| @@ -82,6 +82,6 @@ DefinitionBlock ( | |||||||
| 	#include <smbus.asl> | 	#include <smbus.asl> | ||||||
|  |  | ||||||
| 	/* Define the General Purpose Events for the platform */ | 	/* Define the General Purpose Events for the platform */ | ||||||
| 	#include "acpi/gpe.asl" | 	#include <variant/acpi/gpe.asl> | ||||||
| } | } | ||||||
| /* End of ASL file */ | /* End of ASL file */ | ||||||
|   | |||||||
| @@ -56,20 +56,20 @@ Device (ETPA) | |||||||
| 	Name (_S0W, 3) | 	Name (_S0W, 3) | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /* Realtek Audio Codec */ | /* DA7219 codec */ | ||||||
| Device (RTEK)   /* Audio Codec driver I2CS*/ | Device (DIAL)  /* audio codec*/ | ||||||
| { | { | ||||||
| 	Name (_ADR, 0) | 	Name (_ADR, 0) | ||||||
| 	Name (_HID, "10EC5650") | 	Name (_HID, "DLGS7219") | ||||||
| 	Name (_CID, "10EC5650") | 	Name (_CID, "DLGS7219") | ||||||
| 	Name (_DDN, "RTEK Codec Controller ") | 	Name (_DDN, "DA7219 Codec Controller ") | ||||||
| 	Name (_UID, 1) | 	Name (_UID, 1) | ||||||
| 
 | 
 | ||||||
| 	Device (I2S) /* I2S machine driver for RT5650 */ | 	Device (I2S) /* I2S machine driver for RT5650 */ | ||||||
| 	{ | 	{ | ||||||
| 		Name (_ADR, 1) | 		Name (_ADR, 1) | ||||||
| 		Name (_HID, "AMDI1002") | 		Name (_HID, "AMDI7219") | ||||||
| 		Name (_CID, "AMDI1002") | 		Name (_CID, "AMDI7219") | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	Method (_CRS, 0x0, Serialized) | 	Method (_CRS, 0x0, Serialized) | ||||||
| @@ -84,9 +84,9 @@ Device (RTEK)   /* Audio Codec driver I2CS*/ | |||||||
| 			"\\_SB.I2CA",           /* ResourceSource: I2C bus controller name */ | 			"\\_SB.I2CA",           /* ResourceSource: I2C bus controller name */ | ||||||
| 			) | 			) | ||||||
| 
 | 
 | ||||||
| 			/* Jack Detect AGPIO90 */ | 			/* Jack Detect AGPIO14 */ | ||||||
| 			GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullNone,, | 			GpioInt (Edge, ActiveLow, ExclusiveAndWake, PullNone,, | ||||||
| 				"\\_SB.GPIO") { 90 } | 				"\\_SB.GPIO") { 14 } | ||||||
| 		}) | 		}) | ||||||
| 		Return (SBUF) | 		Return (SBUF) | ||||||
| 	} | 	} | ||||||
| @@ -96,3 +96,17 @@ Device (RTEK)   /* Audio Codec driver I2CS*/ | |||||||
| 		Return (0xF) | 		Return (0xF) | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  | 
 | ||||||
|  | /* MAX98357 codec */ | ||||||
|  | Device (MAXA) | ||||||
|  | { | ||||||
|  | 	Name (_ADR, 0) | ||||||
|  | 	Name (_HID, "MX98357A") | ||||||
|  | 	Name (_CID, "MX98357A") | ||||||
|  | 	Name (_DDN, "MX98357A Codec Controller ") | ||||||
|  | 	Name (_UID, 1) | ||||||
|  | 
 | ||||||
|  | 	Method (_STA, 0x0, NotSerialized) { | ||||||
|  | 			Return (0x0F) | ||||||
|  | 	} | ||||||
|  | } | ||||||
| @@ -0,0 +1,16 @@ | |||||||
|  | /* | ||||||
|  |  * This file is part of the coreboot project. | ||||||
|  |  * | ||||||
|  |  * Copyright (C) 2018 Sage Electronic Engineering, LLC | ||||||
|  |  * | ||||||
|  |  * This program is free software; you can redistribute it and/or modify | ||||||
|  |  * it under the terms of the GNU General Public License as published by | ||||||
|  |  * the Free Software Foundation; version 2 of the License. | ||||||
|  |  * | ||||||
|  |  * This program is distributed in the hope that it will be useful, | ||||||
|  |  * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||||
|  |  * GNU General Public License for more details. | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include <baseboard/acpi/gpe.asl> | ||||||
| @@ -0,0 +1,16 @@ | |||||||
|  | /* | ||||||
|  |  * This file is part of the coreboot project. | ||||||
|  |  * | ||||||
|  |  * Copyright (C) 2018 Sage Electronic Engineering, LLC | ||||||
|  |  * | ||||||
|  |  * This program is free software; you can redistribute it and/or modify | ||||||
|  |  * it under the terms of the GNU General Public License as published by | ||||||
|  |  * the Free Software Foundation; version 2 of the License. | ||||||
|  |  * | ||||||
|  |  * This program is distributed in the hope that it will be useful, | ||||||
|  |  * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||||
|  |  * GNU General Public License for more details. | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include <baseboard/acpi/mainboard.asl> | ||||||
| @@ -0,0 +1,16 @@ | |||||||
|  | /* | ||||||
|  |  * This file is part of the coreboot project. | ||||||
|  |  * | ||||||
|  |  * Copyright (C) 2018 Sage Electronic Engineering, LLC | ||||||
|  |  * | ||||||
|  |  * This program is free software; you can redistribute it and/or modify | ||||||
|  |  * it under the terms of the GNU General Public License as published by | ||||||
|  |  * the Free Software Foundation; version 2 of the License. | ||||||
|  |  * | ||||||
|  |  * This program is distributed in the hope that it will be useful, | ||||||
|  |  * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||||
|  |  * GNU General Public License for more details. | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include <baseboard/acpi/routing.asl> | ||||||
| @@ -0,0 +1,16 @@ | |||||||
|  | /* | ||||||
|  |  * This file is part of the coreboot project. | ||||||
|  |  * | ||||||
|  |  * Copyright (C) 2018 Sage Electronic Engineering, LLC | ||||||
|  |  * | ||||||
|  |  * This program is free software; you can redistribute it and/or modify | ||||||
|  |  * it under the terms of the GNU General Public License as published by | ||||||
|  |  * the Free Software Foundation; version 2 of the License. | ||||||
|  |  * | ||||||
|  |  * This program is distributed in the hope that it will be useful, | ||||||
|  |  * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||||
|  |  * GNU General Public License for more details. | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include <baseboard/acpi/sleep.asl> | ||||||
| @@ -0,0 +1,16 @@ | |||||||
|  | /* | ||||||
|  |  * This file is part of the coreboot project. | ||||||
|  |  * | ||||||
|  |  * Copyright (C) 2018 Sage Electronic Engineering, LLC | ||||||
|  |  * | ||||||
|  |  * This program is free software; you can redistribute it and/or modify | ||||||
|  |  * it under the terms of the GNU General Public License as published by | ||||||
|  |  * the Free Software Foundation; version 2 of the License. | ||||||
|  |  * | ||||||
|  |  * This program is distributed in the hope that it will be useful, | ||||||
|  |  * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||||
|  |  * GNU General Public License for more details. | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include <baseboard/acpi/thermal.asl> | ||||||
| @@ -0,0 +1,16 @@ | |||||||
|  | /* | ||||||
|  |  * This file is part of the coreboot project. | ||||||
|  |  * | ||||||
|  |  * Copyright (C) 2018 Sage Electronic Engineering, LLC | ||||||
|  |  * | ||||||
|  |  * This program is free software; you can redistribute it and/or modify | ||||||
|  |  * it under the terms of the GNU General Public License as published by | ||||||
|  |  * the Free Software Foundation; version 2 of the License. | ||||||
|  |  * | ||||||
|  |  * This program is distributed in the hope that it will be useful, | ||||||
|  |  * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||||
|  |  * GNU General Public License for more details. | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include <baseboard/acpi/gpe.asl> | ||||||
| @@ -0,0 +1,16 @@ | |||||||
|  | /* | ||||||
|  |  * This file is part of the coreboot project. | ||||||
|  |  * | ||||||
|  |  * Copyright (C) 2018 Sage Electronic Engineering, LLC | ||||||
|  |  * | ||||||
|  |  * This program is free software; you can redistribute it and/or modify | ||||||
|  |  * it under the terms of the GNU General Public License as published by | ||||||
|  |  * the Free Software Foundation; version 2 of the License. | ||||||
|  |  * | ||||||
|  |  * This program is distributed in the hope that it will be useful, | ||||||
|  |  * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||||
|  |  * GNU General Public License for more details. | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include <baseboard/acpi/mainboard.asl> | ||||||
| @@ -0,0 +1,16 @@ | |||||||
|  | /* | ||||||
|  |  * This file is part of the coreboot project. | ||||||
|  |  * | ||||||
|  |  * Copyright (C) 2018 Sage Electronic Engineering, LLC | ||||||
|  |  * | ||||||
|  |  * This program is free software; you can redistribute it and/or modify | ||||||
|  |  * it under the terms of the GNU General Public License as published by | ||||||
|  |  * the Free Software Foundation; version 2 of the License. | ||||||
|  |  * | ||||||
|  |  * This program is distributed in the hope that it will be useful, | ||||||
|  |  * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||||
|  |  * GNU General Public License for more details. | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include <baseboard/acpi/routing.asl> | ||||||
| @@ -0,0 +1,16 @@ | |||||||
|  | /* | ||||||
|  |  * This file is part of the coreboot project. | ||||||
|  |  * | ||||||
|  |  * Copyright (C) 2018 Sage Electronic Engineering, LLC | ||||||
|  |  * | ||||||
|  |  * This program is free software; you can redistribute it and/or modify | ||||||
|  |  * it under the terms of the GNU General Public License as published by | ||||||
|  |  * the Free Software Foundation; version 2 of the License. | ||||||
|  |  * | ||||||
|  |  * This program is distributed in the hope that it will be useful, | ||||||
|  |  * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||||
|  |  * GNU General Public License for more details. | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include <baseboard/acpi/sleep.asl> | ||||||
| @@ -0,0 +1,16 @@ | |||||||
|  | /* | ||||||
|  |  * This file is part of the coreboot project. | ||||||
|  |  * | ||||||
|  |  * Copyright (C) 2018 Sage Electronic Engineering, LLC | ||||||
|  |  * | ||||||
|  |  * This program is free software; you can redistribute it and/or modify | ||||||
|  |  * it under the terms of the GNU General Public License as published by | ||||||
|  |  * the Free Software Foundation; version 2 of the License. | ||||||
|  |  * | ||||||
|  |  * This program is distributed in the hope that it will be useful, | ||||||
|  |  * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
|  |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||||
|  |  * GNU General Public License for more details. | ||||||
|  |  */ | ||||||
|  |  | ||||||
|  | #include <baseboard/acpi/thermal.asl> | ||||||
		Reference in New Issue
	
	Block a user