Home | History | Annotate | Line # | Download | only in clock
      1      1.1  jmcneill /*	$NetBSD: bcm-sr.h,v 1.1.1.2 2018/06/27 16:27:08 jmcneill Exp $	*/
      2      1.1  jmcneill 
      3      1.1  jmcneill /*
      4      1.1  jmcneill  *  BSD LICENSE
      5      1.1  jmcneill  *
      6      1.1  jmcneill  *  Copyright(c) 2017 Broadcom. All rights reserved.
      7      1.1  jmcneill  *
      8      1.1  jmcneill  *  Redistribution and use in source and binary forms, with or without
      9      1.1  jmcneill  *  modification, are permitted provided that the following conditions
     10      1.1  jmcneill  *  are met:
     11      1.1  jmcneill  *
     12      1.1  jmcneill  *    * Redistributions of source code must retain the above copyright
     13      1.1  jmcneill  *      notice, this list of conditions and the following disclaimer.
     14      1.1  jmcneill  *    * Redistributions in binary form must reproduce the above copyright
     15      1.1  jmcneill  *      notice, this list of conditions and the following disclaimer in
     16      1.1  jmcneill  *      the documentation and/or other materials provided with the
     17      1.1  jmcneill  *      distribution.
     18      1.1  jmcneill  *    * Neither the name of Broadcom Corporation nor the names of its
     19      1.1  jmcneill  *      contributors may be used to endorse or promote products derived
     20      1.1  jmcneill  *      from this software without specific prior written permission.
     21      1.1  jmcneill  *
     22      1.1  jmcneill  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
     23      1.1  jmcneill  *  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
     24      1.1  jmcneill  *  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
     25      1.1  jmcneill  *  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
     26      1.1  jmcneill  *  OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
     27      1.1  jmcneill  *  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
     28      1.1  jmcneill  *  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     29      1.1  jmcneill  *  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     30      1.1  jmcneill  *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     31      1.1  jmcneill  *  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
     32      1.1  jmcneill  *  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     33      1.1  jmcneill  */
     34      1.1  jmcneill 
     35      1.1  jmcneill #ifndef _CLOCK_BCM_SR_H
     36      1.1  jmcneill #define _CLOCK_BCM_SR_H
     37      1.1  jmcneill 
     38      1.1  jmcneill /* GENPLL 0 clock channel ID SCR HSLS FS PCIE */
     39      1.1  jmcneill #define BCM_SR_GENPLL0			0
     40  1.1.1.2  jmcneill #define BCM_SR_GENPLL0_125M_CLK		1
     41      1.1  jmcneill #define BCM_SR_GENPLL0_SCR_CLK		2
     42      1.1  jmcneill #define BCM_SR_GENPLL0_250M_CLK		3
     43      1.1  jmcneill #define BCM_SR_GENPLL0_PCIE_AXI_CLK	4
     44      1.1  jmcneill #define BCM_SR_GENPLL0_PAXC_AXI_X2_CLK	5
     45      1.1  jmcneill #define BCM_SR_GENPLL0_PAXC_AXI_CLK	6
     46      1.1  jmcneill 
     47      1.1  jmcneill /* GENPLL 1 clock channel ID MHB PCIE NITRO */
     48      1.1  jmcneill #define BCM_SR_GENPLL1			0
     49      1.1  jmcneill #define BCM_SR_GENPLL1_PCIE_TL_CLK	1
     50      1.1  jmcneill #define BCM_SR_GENPLL1_MHB_APB_CLK	2
     51      1.1  jmcneill 
     52      1.1  jmcneill /* GENPLL 2 clock channel ID NITRO MHB*/
     53      1.1  jmcneill #define BCM_SR_GENPLL2			0
     54      1.1  jmcneill #define BCM_SR_GENPLL2_NIC_CLK		1
     55  1.1.1.2  jmcneill #define BCM_SR_GENPLL2_TS_500_CLK	2
     56      1.1  jmcneill #define BCM_SR_GENPLL2_125_NITRO_CLK	3
     57      1.1  jmcneill #define BCM_SR_GENPLL2_CHIMP_CLK	4
     58  1.1.1.2  jmcneill #define BCM_SR_GENPLL2_NIC_FLASH_CLK	5
     59  1.1.1.2  jmcneill #define BCM_SR_GENPLL2_FS4_CLK		6
     60      1.1  jmcneill 
     61      1.1  jmcneill /* GENPLL 3 HSLS clock channel ID */
     62      1.1  jmcneill #define BCM_SR_GENPLL3			0
     63      1.1  jmcneill #define BCM_SR_GENPLL3_HSLS_CLK		1
     64      1.1  jmcneill #define BCM_SR_GENPLL3_SDIO_CLK		2
     65      1.1  jmcneill 
     66      1.1  jmcneill /* GENPLL 4 SCR clock channel ID */
     67      1.1  jmcneill #define BCM_SR_GENPLL4			0
     68      1.1  jmcneill #define BCM_SR_GENPLL4_CCN_CLK		1
     69  1.1.1.2  jmcneill #define BCM_SR_GENPLL4_TPIU_PLL_CLK	2
     70  1.1.1.2  jmcneill #define BCM_SR_GENPLL4_NOC_CLK		3
     71  1.1.1.2  jmcneill #define BCM_SR_GENPLL4_CHCLK_FS4_CLK	4
     72  1.1.1.2  jmcneill #define BCM_SR_GENPLL4_BRIDGE_FSCPU_CLK	5
     73      1.1  jmcneill 
     74      1.1  jmcneill /* GENPLL 5 FS4 clock channel ID */
     75      1.1  jmcneill #define BCM_SR_GENPLL5			0
     76  1.1.1.2  jmcneill #define BCM_SR_GENPLL5_FS4_HF_CLK	1
     77  1.1.1.2  jmcneill #define BCM_SR_GENPLL5_CRYPTO_AE_CLK	2
     78  1.1.1.2  jmcneill #define BCM_SR_GENPLL5_RAID_AE_CLK	3
     79      1.1  jmcneill 
     80      1.1  jmcneill /* GENPLL 6 NITRO clock channel ID */
     81      1.1  jmcneill #define BCM_SR_GENPLL6			0
     82      1.1  jmcneill #define BCM_SR_GENPLL6_48_USB_CLK	1
     83      1.1  jmcneill 
     84      1.1  jmcneill /* LCPLL0  clock channel ID */
     85      1.1  jmcneill #define BCM_SR_LCPLL0			0
     86  1.1.1.2  jmcneill #define BCM_SR_LCPLL0_SATA_REFP_CLK	1
     87  1.1.1.2  jmcneill #define BCM_SR_LCPLL0_SATA_REFN_CLK	2
     88  1.1.1.2  jmcneill #define BCM_SR_LCPLL0_SATA_350_CLK	3
     89  1.1.1.2  jmcneill #define BCM_SR_LCPLL0_SATA_500_CLK	4
     90      1.1  jmcneill 
     91      1.1  jmcneill /* LCPLL1  clock channel ID */
     92      1.1  jmcneill #define BCM_SR_LCPLL1			0
     93      1.1  jmcneill #define BCM_SR_LCPLL1_WAN_CLK		1
     94  1.1.1.2  jmcneill #define BCM_SR_LCPLL1_USB_REF_CLK	2
     95  1.1.1.2  jmcneill #define BCM_SR_LCPLL1_CRMU_TS_CLK	3
     96      1.1  jmcneill 
     97      1.1  jmcneill /* LCPLL PCIE  clock channel ID */
     98      1.1  jmcneill #define BCM_SR_LCPLL_PCIE		0
     99      1.1  jmcneill #define BCM_SR_LCPLL_PCIE_PHY_REF_CLK	1
    100      1.1  jmcneill 
    101      1.1  jmcneill /* GENPLL EMEM0 clock channel ID */
    102      1.1  jmcneill #define BCM_SR_EMEMPLL0			0
    103      1.1  jmcneill #define BCM_SR_EMEMPLL0_EMEM_CLK	1
    104      1.1  jmcneill 
    105      1.1  jmcneill /* GENPLL EMEM0 clock channel ID */
    106      1.1  jmcneill #define BCM_SR_EMEMPLL1			0
    107      1.1  jmcneill #define BCM_SR_EMEMPLL1_EMEM_CLK	1
    108      1.1  jmcneill 
    109      1.1  jmcneill /* GENPLL EMEM0 clock channel ID */
    110      1.1  jmcneill #define BCM_SR_EMEMPLL2			0
    111      1.1  jmcneill #define BCM_SR_EMEMPLL2_EMEM_CLK	1
    112      1.1  jmcneill 
    113      1.1  jmcneill #endif /* _CLOCK_BCM_SR_H */
    114