The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/arm/freescale/imx/imx51_dpllreg.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*      $NetBSD: imx51_dpllreg.h,v 1.1 2012/04/17 09:33:31 bsh Exp $    */
    2 /*-
    3  * SPDX-License-Identifier: BSD-2-Clause AND BSD-2-Clause-FreeBSD
    4  *
    5  * Copyright (c) 2012  Genetec Corporation.  All rights reserved.
    6  * Written by Hashimoto Kenichi for Genetec Corporation.
    7  *
    8  * Redistribution and use in source and binary forms, with or without
    9  * modification, are permitted provided that the following conditions
   10  * are met:
   11  * 1. Redistributions of source code must retain the above copyright
   12  *    notice, this list of conditions and the following disclaimer.
   13  * 2. Redistributions in binary form must reproduce the above copyright
   14  *    notice, this list of conditions and the following disclaimer in the
   15  *    documentation and/or other materials provided with the distribution.
   16  *
   17  * THIS SOFTWARE IS PROVIDED BY GENETEC CORPORATION ``AS IS'' AND
   18  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   19  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   20  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL GENETEC CORPORATION
   21  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   22  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   23  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   24  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   25  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   26  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   27  * POSSIBILITY OF SUCH DAMAGE.
   28  */
   29 
   30 /*-
   31  * Copyright (c) 2012, 2013 The FreeBSD Foundation
   32  * All rights reserved.
   33  *
   34  * Portions of this software were developed by Oleksandr Rybalko
   35  * under sponsorship from the FreeBSD Foundation.
   36  *
   37  * Redistribution and use in source and binary forms, with or without
   38  * modification, are permitted provided that the following conditions
   39  * are met:
   40  * 1.   Redistributions of source code must retain the above copyright
   41  *      notice, this list of conditions and the following disclaimer.
   42  * 2.   Redistributions in binary form must reproduce the above copyright
   43  *      notice, this list of conditions and the following disclaimer in the
   44  *      documentation and/or other materials provided with the distribution.
   45  *
   46  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
   47  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   48  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   49  * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
   50  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   51  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   52  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   53  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   54  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   55  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   56  * SUCH DAMAGE.
   57  *
   58  * $FreeBSD$
   59  */
   60 
   61 #ifndef _IMX51_DPLLREG_H
   62 #define _IMX51_DPLLREG_H
   63 
   64 #include <sys/cdefs.h>
   65 
   66 /* register offset address */
   67 
   68 #define IMX51_N_DPLLS           3               /* 1..3 */
   69 
   70 #define DPLL_BASE(n)            (0x83F80000 + (0x4000 * ((n)-1)))
   71 #define DPLL_SIZE               0x100
   72 
   73 #define DPLL_DP_CTL             0x0000          /* 0x1223 */
   74 #define  DP_CTL_LRF             0x00000001
   75 #define  DP_CTL_BRM             0x00000002
   76 #define  DP_CTL_PLM             0x00000004
   77 #define  DP_CTL_RCP             0x00000008
   78 #define  DP_CTL_RST             0x00000010
   79 #define  DP_CTL_UPEN            0x00000020
   80 #define  DP_CTL_PRE             0x00000040
   81 #define  DP_CTL_HFSM            0x00000080
   82 #define  DP_CTL_REF_CLK_SEL_MASK        0x00000300
   83 #define  DP_CTL_REF_CLK_SEL_COSC        0x00000200
   84 #define  DP_CTL_REF_CLK_SEL_FPM         0x00000300
   85 #define  DP_CTL_REF_CLK_DIV     0x00000400
   86 #define  DP_CTL_DPDCK0_2_EN     0x00001000
   87 #define  DP_CTL_HIGHCLK_EN      DP_CTL_DPDCK0_2_EN
   88 #define  DP_CTL_MULCTRL         0x00002000
   89 #define DPLL_DP_CONFIG          0x0004          /* 2 */
   90 #define  DPLL_DP_CONFIG_APEN    0x00000002
   91 #define  DPLL_DP_CONFIG_LDREQ   0x00000001
   92 #define DPLL_DP_OP              0x0008          /* 0x80 */
   93 #define  DP_OP_PDF_SHIFT        0
   94 #define  DP_OP_PDF_MASK         (0xf << DP_OP_PDF_SHIFT)
   95 #define  DP_OP_MFI_SHIFT        4
   96 #define  DP_OP_MFI_MASK         (0xf << DP_OP_MFI_SHIFT)
   97 #define DPLL_DP_MFD             0x000C          /* 2 */
   98 #define DPLL_DP_MFN             0x0010          /* 1 */
   99 #define DPLL_DP_MFNMINUS        0x0014          /* 0 */
  100 #define DPLL_DP_MFNPLUS         0x0018          /* 0 */
  101 #define DPLL_DP_HFS_OP          0x001C          /* 0x80 */
  102 #define DPLL_DP_HFS_MFD         0x0020          /* 2 */
  103 #define DPLL_DP_HFS_MFN         0x0024          /* 1 */
  104 #define DPLL_DP_TOGC            0x0028          /* 0x20000 */
  105 #define DPLL_DP_DESTAT          0x002C          /* 1 */
  106 
  107 #endif /* _IMX51_DPLLREG_H */

Cache object: 163ad85a4ff744656756442b2aec1fcb


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.