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:
Akshu Agrawal 2018-03-19 10:30:47 +05:30 committed by Aaron Durbin
parent bf7dea0028
commit e11a11265b
1 changed files with 11 additions and 1 deletions

View File

@ -12,7 +12,7 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
*/ */
#include <soc/iomap.h>
/* Grunt specific I2S machine driver */ /* Grunt specific I2S machine driver */
Device (I2S) Device (I2S)
@ -20,4 +20,14 @@ Device (I2S)
Name (_ADR, 1) Name (_ADR, 1)
Name (_HID, "AMD7219") Name (_HID, "AMD7219")
Name (_CID, "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)
}
} }