xref: /linux/include/soc/at91/sama7-sfrbu.h (revision 42cbaeec987b9fb91045060f2e7ce3152458ead9)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Microchip SAMA7 SFRBU registers offsets and bit definitions.
4  *
5  * Copyright (C) [2020] Microchip Technology Inc. and its subsidiaries
6  *
7  * Author: Claudu Beznea <claudiu.beznea@microchip.com>
8  */
9 
10 #ifndef __SAMA7_SFRBU_H__
11 #define __SAMA7_SFRBU_H__
12 
13 #ifdef CONFIG_SOC_SAMA7
14 
15 #define AT91_SFRBU_PSWBU			(0x00)		/* SFRBU Power Switch BU Control Register */
16 #define		AT91_SFRBU_PSWBU_PSWKEY		(0x4BD20C << 8)	/* Specific value mandatory to allow writing of other register bits */
17 #define		AT91_SFRBU_PSWBU_STATE		(1 << 2)	/* Power switch BU state */
18 #define		AT91_SFRBU_PSWBU_SOFTSWITCH	(1 << 1)	/* Power switch BU source selection */
19 #define		AT91_SFRBU_PSWBU_CTRL		(1 << 0)	/* Power switch BU control */
20 
21 #define AT91_FRBU_DDRPWR			(0x10)		/* SFRBU DDR Power Control Register */
22 #define		AT91_FRBU_DDRPWR_STATE		(1 << 0)	/* DDR Power Mode State */
23 
24 #endif /* CONFIG_SOC_SAMA7 */
25 
26 #endif /* __SAMA7_SFRBU_H__ */
27 
28