Commit 697ad24
i2c: exynos5: Add bus clock support
In new Exynos SoCs (like Exynos850) where HSI2C is implemented as a
part of USIv2 block, there are two clocks provided to HSI2C controller:
- PCLK: bus clock (APB), provides access to register interface
- IPCLK: operating IP-core clock; SCL is derived from this one
Both clocks have to be asserted for HSI2C to be functional in that case.
Add code to obtain and enable/disable PCLK in addition to already
handled operating clock. Make it optional though, as older Exynos SoC
variants only have one HSI2C clock.
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: Chanho Park <chanho61.park@samsung.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>1 parent 3f68910 commit 697ad24
1 file changed
Lines changed: 38 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
| 186 | + | |
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
| |||
757 | 758 | | |
758 | 759 | | |
759 | 760 | | |
760 | | - | |
| 761 | + | |
761 | 762 | | |
762 | 763 | | |
763 | 764 | | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
764 | 769 | | |
765 | 770 | | |
766 | 771 | | |
767 | 772 | | |
768 | 773 | | |
769 | 774 | | |
770 | 775 | | |
| 776 | + | |
| 777 | + | |
771 | 778 | | |
772 | 779 | | |
773 | 780 | | |
| |||
807 | 814 | | |
808 | 815 | | |
809 | 816 | | |
810 | | - | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
811 | 822 | | |
812 | 823 | | |
813 | 824 | | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
814 | 829 | | |
815 | 830 | | |
816 | 831 | | |
| |||
853 | 868 | | |
854 | 869 | | |
855 | 870 | | |
| 871 | + | |
856 | 872 | | |
857 | 873 | | |
858 | 874 | | |
859 | 875 | | |
860 | 876 | | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
861 | 880 | | |
862 | 881 | | |
863 | 882 | | |
| |||
868 | 887 | | |
869 | 888 | | |
870 | 889 | | |
| 890 | + | |
871 | 891 | | |
872 | 892 | | |
873 | 893 | | |
| |||
879 | 899 | | |
880 | 900 | | |
881 | 901 | | |
| 902 | + | |
882 | 903 | | |
883 | 904 | | |
884 | 905 | | |
| |||
888 | 909 | | |
889 | 910 | | |
890 | 911 | | |
891 | | - | |
| 912 | + | |
892 | 913 | | |
893 | 914 | | |
894 | 915 | | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
895 | 920 | | |
896 | | - | |
897 | | - | |
898 | | - | |
899 | | - | |
| 921 | + | |
| 922 | + | |
900 | 923 | | |
901 | 924 | | |
902 | 925 | | |
| 926 | + | |
903 | 927 | | |
904 | 928 | | |
905 | 929 | | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
906 | 936 | | |
907 | 937 | | |
908 | 938 | | |
| |||
0 commit comments