zephyr/include/drivers/k6x_pmc.h
Dan Kalowsky da67b29569 checkpatch: warning - block_comment_style
Change-Id: I6da43e41f9c6efee577b70513ec368ae3cce0144
Signed-off-by: Dan Kalowsky <daniel.kalowsky@intel.com>
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
2016-02-05 20:24:33 -05:00

54 lines
1.7 KiB
C

/* Freescale K6x microprocessor PMC register definitions */
/*
* Copyright (c) 2014 Wind River Systems, Inc.
*
* Licensed 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.
*/
/*
* DESCRIPTION
* This module defines the Power Management Controller (PMC) registers for the
* K6x Family of microprocessors.
* NOTE: Not all the registers are currently defined here - only those that are
* currently used.
*/
#ifndef _K6xPMC_H_
#define _K6xPMC_H_
#include <stdint.h>
#define PMC_REGSC_ACKISO_MASK 0x08 /* ack I/O isolation (write to clear) */
typedef union {
uint8_t value;
struct {
uint8_t bandgapBufEn : 1 __packed; /* bandgap buffering */
uint8_t res_1 : 1 __packed; /* SBZ */
uint8_t regOnStatus : 1 __packed; /* regulator on, R/O */
uint8_t ackIsolation : 1 __packed; /* ack I/O isolation */
uint8_t bandgapEn : 1 __packed; /* bandgap enable */
uint8_t res_5 : 1 __packed;
uint8_t res_6 : 2 __packed; /* RAZ/WI */
} field;
} REGSC_t; /* 0x0002 Regulator Status/Control Register */
typedef volatile struct {
uint8_t lvdsc1; /* 0x0000 */
uint8_t lvdsc2; /* 0x0001 */
REGSC_t regsc; /* 0x0002 */
} K6x_PMC_t; /* K6x Microntroller PMC module */
#endif /* _K6xPMC_H_ */