Home | History | Annotate | Line # | Download | only in rockchip
      1  1.1  jmcneill /* $NetBSD: rk3288_cru.h,v 1.1 2021/11/12 22:02:08 jmcneill Exp $ */
      2  1.1  jmcneill 
      3  1.1  jmcneill /*-
      4  1.1  jmcneill  * Copyright (c) 2021 Jared McNeill <jmcneill (at) invisible.ca>
      5  1.1  jmcneill  * All rights reserved.
      6  1.1  jmcneill  *
      7  1.1  jmcneill  * Redistribution and use in source and binary forms, with or without
      8  1.1  jmcneill  * modification, are permitted provided that the following conditions
      9  1.1  jmcneill  * are met:
     10  1.1  jmcneill  * 1. Redistributions of source code must retain the above copyright
     11  1.1  jmcneill  *    notice, this list of conditions and the following disclaimer.
     12  1.1  jmcneill  * 2. Redistributions in binary form must reproduce the above copyright
     13  1.1  jmcneill  *    notice, this list of conditions and the following disclaimer in the
     14  1.1  jmcneill  *    documentation and/or other materials provided with the distribution.
     15  1.1  jmcneill  *
     16  1.1  jmcneill  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     17  1.1  jmcneill  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     18  1.1  jmcneill  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     19  1.1  jmcneill  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     20  1.1  jmcneill  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
     21  1.1  jmcneill  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
     22  1.1  jmcneill  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
     23  1.1  jmcneill  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
     24  1.1  jmcneill  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     25  1.1  jmcneill  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     26  1.1  jmcneill  * SUCH DAMAGE.
     27  1.1  jmcneill  */
     28  1.1  jmcneill 
     29  1.1  jmcneill #ifndef _RK3328_CRU_H
     30  1.1  jmcneill #define _RK3328_CRU_H
     31  1.1  jmcneill 
     32  1.1  jmcneill #define  RK3288_PLL_APLL                            1
     33  1.1  jmcneill #define  RK3288_PLL_DPLL                            2
     34  1.1  jmcneill #define  RK3288_PLL_CPLL                            3
     35  1.1  jmcneill #define  RK3288_PLL_GPLL                            4
     36  1.1  jmcneill #define  RK3288_PLL_NPLL                            5
     37  1.1  jmcneill #define  RK3288_ARMCLK                              6
     38  1.1  jmcneill #define  RK3288_SCLK_GPU                            64
     39  1.1  jmcneill #define  RK3288_SCLK_SPI0                           65
     40  1.1  jmcneill #define  RK3288_SCLK_SPI1                           66
     41  1.1  jmcneill #define  RK3288_SCLK_SPI2                           67
     42  1.1  jmcneill #define  RK3288_SCLK_SDMMC                          68
     43  1.1  jmcneill #define  RK3288_SCLK_SDIO0                          69
     44  1.1  jmcneill #define  RK3288_SCLK_SDIO1                          70
     45  1.1  jmcneill #define  RK3288_SCLK_EMMC                           71
     46  1.1  jmcneill #define  RK3288_SCLK_TSADC                          72
     47  1.1  jmcneill #define  RK3288_SCLK_SARADC                         73
     48  1.1  jmcneill #define  RK3288_SCLK_PS2C                           74
     49  1.1  jmcneill #define  RK3288_SCLK_NANDC0                         75
     50  1.1  jmcneill #define  RK3288_SCLK_NANDC1                         76
     51  1.1  jmcneill #define  RK3288_SCLK_UART0                          77
     52  1.1  jmcneill #define  RK3288_SCLK_UART1                          78
     53  1.1  jmcneill #define  RK3288_SCLK_UART2                          79
     54  1.1  jmcneill #define  RK3288_SCLK_UART3                          80
     55  1.1  jmcneill #define  RK3288_SCLK_UART4                          81
     56  1.1  jmcneill #define  RK3288_SCLK_I2S0                           82
     57  1.1  jmcneill #define  RK3288_SCLK_SPDIF                          83
     58  1.1  jmcneill #define  RK3288_SCLK_SPDIF8CH                       84
     59  1.1  jmcneill #define  RK3288_SCLK_TIMER0                         85
     60  1.1  jmcneill #define  RK3288_SCLK_TIMER1                         86
     61  1.1  jmcneill #define  RK3288_SCLK_TIMER2                         87
     62  1.1  jmcneill #define  RK3288_SCLK_TIMER3                         88
     63  1.1  jmcneill #define  RK3288_SCLK_TIMER4                         89
     64  1.1  jmcneill #define  RK3288_SCLK_TIMER5                         90
     65  1.1  jmcneill #define  RK3288_SCLK_TIMER6                         91
     66  1.1  jmcneill #define  RK3288_SCLK_HSADC                          92
     67  1.1  jmcneill #define  RK3288_SCLK_OTGPHY0                        93
     68  1.1  jmcneill #define  RK3288_SCLK_OTGPHY1                        94
     69  1.1  jmcneill #define  RK3288_SCLK_OTGPHY2                        95
     70  1.1  jmcneill #define  RK3288_SCLK_OTG_ADP                        96
     71  1.1  jmcneill #define  RK3288_SCLK_HSICPHY480M                    97
     72  1.1  jmcneill #define  RK3288_SCLK_HSICPHY12M                     98
     73  1.1  jmcneill #define  RK3288_SCLK_MACREF                         99
     74  1.1  jmcneill #define  RK3288_SCLK_LCDC_PWM0                      100
     75  1.1  jmcneill #define  RK3288_SCLK_LCDC_PWM1                      101
     76  1.1  jmcneill #define  RK3288_SCLK_MAC_RX                         102
     77  1.1  jmcneill #define  RK3288_SCLK_MAC_TX                         103
     78  1.1  jmcneill #define  RK3288_SCLK_EDP_24M                        104
     79  1.1  jmcneill #define  RK3288_SCLK_EDP                            105
     80  1.1  jmcneill #define  RK3288_SCLK_RGA                            106
     81  1.1  jmcneill #define  RK3288_SCLK_ISP                            107
     82  1.1  jmcneill #define  RK3288_SCLK_ISP_JPE                        108
     83  1.1  jmcneill #define  RK3288_SCLK_HDMI_HDCP                      109
     84  1.1  jmcneill #define  RK3288_SCLK_HDMI_CEC                       110
     85  1.1  jmcneill #define  RK3288_SCLK_HEVC_CABAC                     111
     86  1.1  jmcneill #define  RK3288_SCLK_HEVC_CORE                      112
     87  1.1  jmcneill #define  RK3288_SCLK_I2S0_OUT                       113
     88  1.1  jmcneill #define  RK3288_SCLK_SDMMC_DRV                      114
     89  1.1  jmcneill #define  RK3288_SCLK_SDIO0_DRV                      115
     90  1.1  jmcneill #define  RK3288_SCLK_SDIO1_DRV                      116
     91  1.1  jmcneill #define  RK3288_SCLK_EMMC_DRV                       117
     92  1.1  jmcneill #define  RK3288_SCLK_SDMMC_SAMPLE                   118
     93  1.1  jmcneill #define  RK3288_SCLK_SDIO0_SAMPLE                   119
     94  1.1  jmcneill #define  RK3288_SCLK_SDIO1_SAMPLE                   120
     95  1.1  jmcneill #define  RK3288_SCLK_EMMC_SAMPLE                    121
     96  1.1  jmcneill #define  RK3288_SCLK_USBPHY480M_SRC                 122
     97  1.1  jmcneill #define  RK3288_SCLK_PVTM_CORE                      123
     98  1.1  jmcneill #define  RK3288_SCLK_PVTM_GPU                       124
     99  1.1  jmcneill #define  RK3288_SCLK_CRYPTO                         125
    100  1.1  jmcneill #define  RK3288_SCLK_MIPIDSI_24M                    126
    101  1.1  jmcneill #define  RK3288_SCLK_VIP_OUT                        127
    102  1.1  jmcneill #define  RK3288_SCLK_MAC                            151
    103  1.1  jmcneill #define  RK3288_SCLK_MACREF_OUT                     152
    104  1.1  jmcneill #define  RK3288_DCLK_VOP0                           190
    105  1.1  jmcneill #define  RK3288_DCLK_VOP1                           191
    106  1.1  jmcneill #define  RK3288_ACLK_GPU                            192
    107  1.1  jmcneill #define  RK3288_ACLK_DMAC1                          193
    108  1.1  jmcneill #define  RK3288_ACLK_DMAC2                          194
    109  1.1  jmcneill #define  RK3288_ACLK_MMU                            195
    110  1.1  jmcneill #define  RK3288_ACLK_GMAC                           196
    111  1.1  jmcneill #define  RK3288_ACLK_VOP0                           197
    112  1.1  jmcneill #define  RK3288_ACLK_VOP1                           198
    113  1.1  jmcneill #define  RK3288_ACLK_CRYPTO                         199
    114  1.1  jmcneill #define  RK3288_ACLK_RGA                            200
    115  1.1  jmcneill #define  RK3288_ACLK_RGA_NIU                        201
    116  1.1  jmcneill #define  RK3288_ACLK_IEP                            202
    117  1.1  jmcneill #define  RK3288_ACLK_VIO0_NIU                       203
    118  1.1  jmcneill #define  RK3288_ACLK_VIP                            204
    119  1.1  jmcneill #define  RK3288_ACLK_ISP                            205
    120  1.1  jmcneill #define  RK3288_ACLK_VIO1_NIU                       206
    121  1.1  jmcneill #define  RK3288_ACLK_HEVC                           207
    122  1.1  jmcneill #define  RK3288_ACLK_VCODEC                         208
    123  1.1  jmcneill #define  RK3288_ACLK_CPU                            209
    124  1.1  jmcneill #define  RK3288_ACLK_PERI                           210
    125  1.1  jmcneill #define  RK3288_PCLK_GPIO0                          320
    126  1.1  jmcneill #define  RK3288_PCLK_GPIO1                          321
    127  1.1  jmcneill #define  RK3288_PCLK_GPIO2                          322
    128  1.1  jmcneill #define  RK3288_PCLK_GPIO3                          323
    129  1.1  jmcneill #define  RK3288_PCLK_GPIO4                          324
    130  1.1  jmcneill #define  RK3288_PCLK_GPIO5                          325
    131  1.1  jmcneill #define  RK3288_PCLK_GPIO6                          326
    132  1.1  jmcneill #define  RK3288_PCLK_GPIO7                          327
    133  1.1  jmcneill #define  RK3288_PCLK_GPIO8                          328
    134  1.1  jmcneill #define  RK3288_PCLK_GRF                            329
    135  1.1  jmcneill #define  RK3288_PCLK_SGRF                           330
    136  1.1  jmcneill #define  RK3288_PCLK_PMU                            331
    137  1.1  jmcneill #define  RK3288_PCLK_I2C0                           332
    138  1.1  jmcneill #define  RK3288_PCLK_I2C1                           333
    139  1.1  jmcneill #define  RK3288_PCLK_I2C2                           334
    140  1.1  jmcneill #define  RK3288_PCLK_I2C3                           335
    141  1.1  jmcneill #define  RK3288_PCLK_I2C4                           336
    142  1.1  jmcneill #define  RK3288_PCLK_I2C5                           337
    143  1.1  jmcneill #define  RK3288_PCLK_SPI0                           338
    144  1.1  jmcneill #define  RK3288_PCLK_SPI1                           339
    145  1.1  jmcneill #define  RK3288_PCLK_SPI2                           340
    146  1.1  jmcneill #define  RK3288_PCLK_UART0                          341
    147  1.1  jmcneill #define  RK3288_PCLK_UART1                          342
    148  1.1  jmcneill #define  RK3288_PCLK_UART2                          343
    149  1.1  jmcneill #define  RK3288_PCLK_UART3                          344
    150  1.1  jmcneill #define  RK3288_PCLK_UART4                          345
    151  1.1  jmcneill #define  RK3288_PCLK_TSADC                          346
    152  1.1  jmcneill #define  RK3288_PCLK_SARADC                         347
    153  1.1  jmcneill #define  RK3288_PCLK_SIM                            348
    154  1.1  jmcneill #define  RK3288_PCLK_GMAC                           349
    155  1.1  jmcneill #define  RK3288_PCLK_PWM                            350
    156  1.1  jmcneill #define  RK3288_PCLK_RKPWM                          351
    157  1.1  jmcneill #define  RK3288_PCLK_PS2C                           352
    158  1.1  jmcneill #define  RK3288_PCLK_TIMER                          353
    159  1.1  jmcneill #define  RK3288_PCLK_TZPC                           354
    160  1.1  jmcneill #define  RK3288_PCLK_EDP_CTRL                       355
    161  1.1  jmcneill #define  RK3288_PCLK_MIPI_DSI0                      356
    162  1.1  jmcneill #define  RK3288_PCLK_MIPI_DSI1                      357
    163  1.1  jmcneill #define  RK3288_PCLK_MIPI_CSI                       358
    164  1.1  jmcneill #define  RK3288_PCLK_LVDS_PHY                       359
    165  1.1  jmcneill #define  RK3288_PCLK_HDMI_CTRL                      360
    166  1.1  jmcneill #define  RK3288_PCLK_VIO2_H2P                       361
    167  1.1  jmcneill #define  RK3288_PCLK_CPU                            362
    168  1.1  jmcneill #define  RK3288_PCLK_PERI                           363
    169  1.1  jmcneill #define  RK3288_PCLK_DDRUPCTL0                      364
    170  1.1  jmcneill #define  RK3288_PCLK_PUBL0                          365
    171  1.1  jmcneill #define  RK3288_PCLK_DDRUPCTL1                      366
    172  1.1  jmcneill #define  RK3288_PCLK_PUBL1                          367
    173  1.1  jmcneill #define  RK3288_PCLK_WDT                            368
    174  1.1  jmcneill #define  RK3288_PCLK_EFUSE256                       369
    175  1.1  jmcneill #define  RK3288_PCLK_EFUSE1024                      370
    176  1.1  jmcneill #define  RK3288_PCLK_ISP_IN                         371
    177  1.1  jmcneill #define  RK3288_HCLK_GPS                            448
    178  1.1  jmcneill #define  RK3288_HCLK_OTG0                           449
    179  1.1  jmcneill #define  RK3288_HCLK_USBHOST0                       450
    180  1.1  jmcneill #define  RK3288_HCLK_USBHOST1                       451
    181  1.1  jmcneill #define  RK3288_HCLK_HSIC                           452
    182  1.1  jmcneill #define  RK3288_HCLK_NANDC0                         453
    183  1.1  jmcneill #define  RK3288_HCLK_NANDC1                         454
    184  1.1  jmcneill #define  RK3288_HCLK_TSP                            455
    185  1.1  jmcneill #define  RK3288_HCLK_SDMMC                          456
    186  1.1  jmcneill #define  RK3288_HCLK_SDIO0                          457
    187  1.1  jmcneill #define  RK3288_HCLK_SDIO1                          458
    188  1.1  jmcneill #define  RK3288_HCLK_EMMC                           459
    189  1.1  jmcneill #define  RK3288_HCLK_HSADC                          460
    190  1.1  jmcneill #define  RK3288_HCLK_CRYPTO                         461
    191  1.1  jmcneill #define  RK3288_HCLK_I2S0                           462
    192  1.1  jmcneill #define  RK3288_HCLK_SPDIF                          463
    193  1.1  jmcneill #define  RK3288_HCLK_SPDIF8CH                       464
    194  1.1  jmcneill #define  RK3288_HCLK_VOP0                           465
    195  1.1  jmcneill #define  RK3288_HCLK_VOP1                           466
    196  1.1  jmcneill #define  RK3288_HCLK_ROM                            467
    197  1.1  jmcneill #define  RK3288_HCLK_IEP                            468
    198  1.1  jmcneill #define  RK3288_HCLK_ISP                            469
    199  1.1  jmcneill #define  RK3288_HCLK_RGA                            470
    200  1.1  jmcneill #define  RK3288_HCLK_VIO_AHB_ARBI                   471
    201  1.1  jmcneill #define  RK3288_HCLK_VIO_NIU                        472
    202  1.1  jmcneill #define  RK3288_HCLK_VIP                            473
    203  1.1  jmcneill #define  RK3288_HCLK_VIO2_H2P                       474
    204  1.1  jmcneill #define  RK3288_HCLK_HEVC                           475
    205  1.1  jmcneill #define  RK3288_HCLK_VCODEC                         476
    206  1.1  jmcneill #define  RK3288_HCLK_CPU                            477
    207  1.1  jmcneill #define  RK3288_HCLK_PERI                           478
    208  1.1  jmcneill 
    209  1.1  jmcneill #endif /* !_RK3328_CRU_H */
    210