rockchip: rk3399: Add support i2s

Hardware / Coreboot - Xing Zheng [rock-chips.com] - 8 June 2016 16:27 UTC

This patch enable and configure the clocks and IOMUX for i2s audio path, and the i2s0 clock is from CPLL.

Please refer to TRM V0.3 Part 1 Chapter 3 CRU, P126/P128/P144/P154/P155 for the i2s clock div and gate setting.

BRANCH=none BUG=chrome-os-partner:52172 TEST=boot kevin rev1, press ctrl+u and hear the beep voice.

Change-Id: Id00baac965c8b9213270ba5516e1ca684e4304a6

96fbc31 rockchip: rk3399: Add support i2s
src/mainboard/google/gru/mainboard.c | 18 +++++++++++
src/soc/rockchip/rk3399/clock.c | 44 +++++++++++++++++++++++++++
src/soc/rockchip/rk3399/include/soc/clock.h | 1 +
src/soc/rockchip/rk3399/include/soc/grf.h | 15 +++++++--
4 files changed, 76 insertions(+), 2 deletions(-)

Upstream: review.coreboot.org


  • Share