blob: d0d00c2cce38b46971e8be93bba058e7c3b69136 [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Eric Miao49cbe782009-01-20 14:15:18 +08002/*
Eric Miao49cbe782009-01-20 14:15:18 +08003 * Application Peripheral Bus Clock Unit
Eric Miao49cbe782009-01-20 14:15:18 +08004 */
5
6#ifndef __ASM_MACH_REGS_APBC_H
7#define __ASM_MACH_REGS_APBC_H
8
Arnd Bergmannb501fd72014-04-15 20:38:32 +02009#include "addr-map.h"
Eric Miao49cbe782009-01-20 14:15:18 +080010
Eric Miao49cbe782009-01-20 14:15:18 +080011/* Common APB clock register bit definitions */
12#define APBC_APBCLK (1 << 0) /* APB Bus Clock Enable */
13#define APBC_FNCLK (1 << 1) /* Functional Clock Enable */
14#define APBC_RST (1 << 2) /* Reset Generation */
15
16/* Functional Clock Selection Mask */
17#define APBC_FNCLKSEL(x) (((x) & 0xf) << 4)
18
19#endif /* __ASM_MACH_REGS_APBC_H */