* arch/arm/src/str71x/str71x_pcu.h
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership. The
* ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
****************************************************************************/
#ifndef __ARCH_ARM_SRC_STR71X_STR71X_PCU_H
#define __ARCH_ARM_SRC_STR71X_STR71X_PCU_H
* Included Files
****************************************************************************/
#include <nuttx/config.h>
#include "str71x_map.h"
* Pre-processor Definitions
****************************************************************************/
#define STR71X_PCU_MDIVR_OFFSET (0x0000)
#define STR71X_PCU_PDIVR_OFFSET (0x0004)
#define STR71X_PCU_RSTR_OFFSET (0x0008)
#define STR71X_PCU_PLL2CR_OFFSET (0x000c)
#define STR71X_PCU_BOOTCR_OFFSET (0x0010)
#define STR71X_PCU_PWRCR_OFFSET (0x0014)
#define STR71X_PCU_MDIVR (STR71X_PCU_BASE + STR71X_PCU_MDIVR_OFFSET)
#define STR71X_PCU_PDIVR (STR71X_PCU_BASE + STR71X_PCU_PDIVR_OFFSET)
#define STR71X_PCU_RSTR (STR71X_PCU_BASE + STR71X_PCU_RSTR_OFFSET)
#define STR71X_PCU_PLL2CR (STR71X_PCU_BASE + STR71X_PCU_PLL2CR_OFFSET)
#define STR71X_PCU_BOOTCR (STR71X_PCU_BASE + STR71X_PCU_BOOTCR_OFFSET)
#define STR71X_PCU_PWRCR (STR71X_PCU_BASE + STR71X_PCU_PWRCR_OFFSET)
#define STR71X_PCUMDIVR_FACTMASK (0x0003)
#define STR71X_PCUMDIVR_DIV1 (0x0000)
#define STR71X_PCUMDIVR_DIV2 (0x0001)
#define STR71X_PCUMDIVR_DIV4 (0x0002)
#define STR71X_PCUMDIVR_DIV8 (0x0003)
#define STR71X_PCUPDIVR_FACT1MASK (0x0003)
#define STR71X_PCUPDIVR_APB1DIV1 (0x0000)
#define STR71X_PCUPDIVR_APB1DIV2 (0x0001)
#define STR71X_PCUPDIVR_APB1DIV4 (0x0002)
#define STR71X_PCUPDIVR_APB1DIV8 (0x0003)
#define STR71X_PCUPDIVR_FACT2MASK (0x0300)
#define STR71X_PCUPDIVR_APB2DIV1 (0x0000)
#define STR71X_PCUPDIVR_APB2DIV2 (0x0100)
#define STR71X_PCUPDIVR_APB2DIV4 (0x0200)
#define STR71X_PCUPDIVR_APB2DIV8 (0x0300)
#define STR71X_PCURSTR_EMIRESET (0x0004)
#define STR71X_PCUPPL2CR_DXMASK (0x0007)
#define STR71X_PCUPPL2CR_DIV1 (0x0000)
#define STR71X_PCUPPL2CR_DIV2 (0x0001)
#define STR71X_PCUPPL2CR_DIV3 (0x0002)
#define STR71X_PCUPPL2CR_DIV4 (0x0003)
#define STR71X_PCUPPL2CR_DIV5 (0x0004)
#define STR71X_PCUPPL2CR_DIV6 (0x0005)
#define STR71X_PCUPPL2CR_DIV7 (0x0006)
#define STR71X_PCUPPL2CR_OFF (0x0007)
#define STR71X_PCUPPL2CR_MXMASK (0x0030)
#define STR71X_PCUPPL2CR_MUL20 (0x0000)
#define STR71X_PCUPPL2CR_MUL12 (0x0010)
#define STR71X_PCUPPL2CR_MUL28 (0x0020)
#define STR71X_PCUPPL2CR_MUL16 (0x0030)
#define STR71X_PCUPPL2CR_FRQRNG (0x0040)
#define STR71X_PCUPPL2CR_PLLEN (0x0080)
#define STR71X_PCUPPL2CR_USBEN (0x0100)
#define STR71X_PCUPPL2CR_IRQMASK (0x0200)
#define STR71X_PCUPPL2CR_IRQPEND (0x0400)
#define STR71X_PCUPPL2CR_LOCK (0x8000)
#define STR71X_PCUBOOTCR_BOOTMASK (0x0003)
#define STR71X_PCUBOOTCR_BMFLASH (0x0000)
#define STR71X_PCUBOOTCR_BMRAM (0x0002)
#define STR71X_PCUBOOTCR_BMEXTMEM (0x0003)
#define STR71X_PCUBOOTCR_BSPIOEN (0x0004)
#define STR71X_PCUBOOTCR_USBFILTEN (0x0008)
#define STR71X_PCUBOOTCR_LPOWDBGEN (0x0010)
#define STR71X_PCUBOOTCR_ACDEN (0x0020)
#define STR71X_PCUBOOTCR_CANACTIVE (0x0040)
#define STR71X_PCUBOOTCR_HDLCACTIVE (0x0080)
#define STR71X_PCUBOOTCR_PKG64 (0x0200)
#define STR71X_PCUPWRCR_VRBYP (0x0008)
#define STR71X_PCUPWRCR_LPRWFI (0x0010)
#define STR71X_PCUPWRCR_LPRBYP (0x0020)
#define STR71X_PCUPWRCR_PWRDWN (0x0040)
#define STR71X_PCUPWRCR_OSCBYP (0x0080)
#define STR71X_PCUPWRCR_LVDDIS (0x0100)
#define STR71X_PCUPWRCR_FLASHLP (0x0200)
#define STR71X_PCUPWRCR_VROK (0x1000)
#define STR71X_PCUPWRCR_WKUPALRM (0x2000)
#define STR71X_PCUPWRCR_BUSY (0x4000)
#define STR71X_PCUPWRCR_WREN (0x8000)
* Public Types
****************************************************************************/
* Public Data
****************************************************************************/
* Public Functions Prototypes
****************************************************************************/
#endif