Big, Blaze: Set I2S1 Source to CLK_M to Fix Beep
This is a companion patch of CL:191692 "Tegra: Fix Beep". TEST=Booted Big. Verified beeps at dev screen. Measured frequency by smartphone. Built Blaze. BUG=chrome-os-partner:26609 BRANCH=none Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Change-Id: I9ba47d06202e9968a908c4a15cfbeac4bfe2c20c Reviewed-on: https://chromium-review.googlesource.com/192063 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Commit-Queue: Daisuke Nojiri <dnojiri@chromium.org> Tested-by: Daisuke Nojiri <dnojiri@chromium.org>
This commit is contained in:
parent
756ee3a698
commit
87a0f166e4
2 changed files with 8 additions and 6 deletions
|
|
@ -53,10 +53,11 @@ static void set_clock_sources(void)
|
|||
clock_configure_irregular_source(extperiph1, CLK_M, 12000, 3);
|
||||
|
||||
/*
|
||||
* I2S1 can use either PLLP or PLLA. Using PLLP is sufficient now since
|
||||
* we only need 4.8MHz. Note the source id of PLLP for I2S is 4.
|
||||
* We need 1.5MHz. So, we use CLK_M. CLK_DIVIDER macro returns a divisor
|
||||
* (0xe) a little bit off from the ideal value (0xd) but it's good
|
||||
* enough for beeps. The source id of CLK_M for I2S is 6.
|
||||
*/
|
||||
clock_configure_irregular_source(i2s1, PLLP, 4800, 4);
|
||||
clock_configure_irregular_source(i2s1, CLK_M, 1500, 6);
|
||||
|
||||
/* Note source id of PLLP for HOST1x is 4. */
|
||||
clock_configure_irregular_source(host1x, PLLP, 408000, 4);
|
||||
|
|
|
|||
|
|
@ -53,10 +53,11 @@ static void set_clock_sources(void)
|
|||
clock_configure_irregular_source(extperiph1, CLK_M, 12000, 3);
|
||||
|
||||
/*
|
||||
* I2S1 can use either PLLP or PLLA. Using PLLP is sufficient now since
|
||||
* we only need 4.8MHz. Note the source id of PLLP for I2S is 4.
|
||||
* We need 1.5MHz. So, we use CLK_M. CLK_DIVIDER macro returns a divisor
|
||||
* (0xe) a little bit off from the ideal value (0xd) but it's good
|
||||
* enough for beeps. The source id of CLK_M for I2S is 6.
|
||||
*/
|
||||
clock_configure_irregular_source(i2s1, PLLP, 4800, 4);
|
||||
clock_configure_irregular_source(i2s1, CLK_M, 1500, 6);
|
||||
|
||||
/* Note source id of PLLP for HOST1x is 4. */
|
||||
clock_configure_irregular_source(host1x, PLLP, 408000, 4);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue