mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
03eca205254a273e4b2815a0ea8bf082757c4e5d
This patch Adds delay after reset deassert to make sure
reset done before do enabling xfer.
Considering the follow situation:
- i2s_mclk for 8K capture [2.048M]
- i2s_hclk for i2s register access [150M]
- pclk_cru for cru register access [100M]
SW HW
i2s reset assert [pclk_cru] |
| |
delay time |
| i2s reset assert [i2s_mclk]
i2s reset deassert [pclk_cru] |
| |
i2s xfer enable [i2s_hclk] |
| i2s reset deassert [i2s_mclk]
Obviously, pclk_cru(10ns per cycle) is much faster than i2s_mclk
(500ns per cycle). so delay should be added after reset deassert
to make sure hw reset done. Otherwise, the race between reset and
enable xfer maybe break i2s data aligned.
Fixes: A 10us delay is enough
SW HW
i2s reset assert [pclk_cru] |
| |
delay 10us |
| i2s reset assert [i2s_mclk]
i2s reset deassert [pclk_cru] |
| |
delay 10us |
| i2s reset deassert [i2s_mclk]
i2s xfer enable [i2s_hclk] |
| |
Change-Id: Id370b0aa13f771053841ce04a554b408e9e3c831
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
…
…
Linux kernel
============
There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.
In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``. The formatted documentation can also be read online at:
https://www.kernel.org/doc/html/latest/
There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
See Documentation/00-INDEX for a list of what is contained in each file.
Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
Description
Languages
C
97.7%
Assembly
1.6%
Makefile
0.3%
Perl
0.1%