Link: https://lore.kernel.org/r/20260217200002.683975158@linuxfoundation.org Tested-by: Florian Fainelli <florian.fainelli@broadcom.com> Tested-by: Takeshi Ogasawara <takeshi.ogasawara@futuring-girl.com> Tested-by: Peter Schneider <pschneider1968@googlemail.com> Tested-by: Jon Hunter <jonathanh@nvidia.com> Tested-by: Salvatore Bonaccorso <carnil@debian.org> Tested-by: Brett A C Sheffield <bacs@librecast.net> Tested-by: Mark Brown <broonie@kernel.org> Tested-by: Luna Jernberg <droidbittin@gmail.com> Tested-by: Ronald Warsow <rwarsow@gmx.de> Tested-by: Justin M. Forbes <jforbes@fedoraproject.org> Tested-by: Ron Economos <re@w6rz.net> Tested-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
28 lines
962 B
C
28 lines
962 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Microchip SAMA7 SFRBU registers offsets and bit definitions.
|
|
*
|
|
* Copyright (C) [2020] Microchip Technology Inc. and its subsidiaries
|
|
*
|
|
* Author: Claudu Beznea <claudiu.beznea@microchip.com>
|
|
*/
|
|
|
|
#ifndef __SAMA7_SFRBU_H__
|
|
#define __SAMA7_SFRBU_H__
|
|
|
|
#ifdef CONFIG_SOC_SAMA7
|
|
|
|
#define AT91_SFRBU_PSWBU (0x00) /* SFRBU Power Switch BU Control Register */
|
|
#define AT91_SFRBU_PSWBU_PSWKEY (0x4BD20C << 8) /* Specific value mandatory to allow writing of other register bits */
|
|
#define AT91_SFRBU_PSWBU_STATE (1 << 2) /* Power switch BU state */
|
|
#define AT91_SFRBU_PSWBU_SOFTSWITCH (1 << 1) /* Power switch BU source selection */
|
|
#define AT91_SFRBU_PSWBU_CTRL (1 << 0) /* Power switch BU control */
|
|
|
|
#define AT91_FRBU_DDRPWR (0x10) /* SFRBU DDR Power Control Register */
|
|
#define AT91_FRBU_DDRPWR_STATE (1 << 0) /* DDR Power Mode State */
|
|
|
|
#endif /* CONFIG_SOC_SAMA7 */
|
|
|
|
#endif /* __SAMA7_SFRBU_H__ */
|
|
|