mb/google/kahlee: Add register address mapping for FCH MISC
Audio machine driver will enable/disable clock by making it as a CCF clock in kernel. BUG=b:74570989 TEST=cherry-picked https://patchwork.kernel.org/patch/10291875/ on 4.14 kernel aplay -vv <file> check register to see clock enabled kill aplay check register to see clock disabled Change-Id: Ia553e55ffb358415067000d2d2d2744322d1c4db Signed-off-by: Akshu Agrawal <akshu.agrawal@amd.com> Reviewed-on: https://review.coreboot.org/25263 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
bf7dea0028
commit
e11a11265b
|
@ -12,7 +12,7 @@
|
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
#include <soc/iomap.h>
|
||||
|
||||
/* Grunt specific I2S machine driver */
|
||||
Device (I2S)
|
||||
|
@ -20,4 +20,14 @@ Device (I2S)
|
|||
Name (_ADR, 1)
|
||||
Name (_HID, "AMD7219")
|
||||
Name (_CID, "AMD7219")
|
||||
|
||||
Method (_CRS, 0x0, NotSerialized) {
|
||||
Name (RBUF, ResourceTemplate () {
|
||||
// Memory resource is for MISC FCH register set.
|
||||
// It is needed for enabling the clock.
|
||||
Memory32Fixed(ReadWrite, MISC_MMIO_BASE, 0x100)
|
||||
})
|
||||
|
||||
Return (RBUF)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue