On 05/19/2018 08:52 AM, Qiang Yu wrote:
From: Lima Project Developers dri-devel@lists.freedesktop.org
Signed-off-by: Qiang Yu yuq825@gmail.com Signed-off-by: Heiko Stuebner heiko@sntech.de
drivers/gpu/drm/lima/lima_regs.h | 304 +++++++++++++++++++++++++++++++ 1 file changed, 304 insertions(+) create mode 100644 drivers/gpu/drm/lima/lima_regs.h
diff --git a/drivers/gpu/drm/lima/lima_regs.h b/drivers/gpu/drm/lima/lima_regs.h new file mode 100644 index 000000000000..ea4a37d69b98 --- /dev/null +++ b/drivers/gpu/drm/lima/lima_regs.h @@ -0,0 +1,304 @@ +/*
- Copyright (C) 2010-2017 ARM Limited. All rights reserved.
- Copyright (C) 2017-2018 Lima Project
- This program is free software and is provided to you under
- the terms of the GNU General Public License version 2 as
- published by the Free Software Foundation, and any use by
- you of this program is subject to the terms of such GNU
- licence.
- A copy of the licence is included with the program, and
- can also be obtained from Free Software Foundation, Inc.,
- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
+#ifndef __LIMA_REGS_H__ +#define __LIMA_REGS_H__
+/* PMU regs */ +#define LIMA_PMU_POWER_UP 0x00 +#define LIMA_PMU_POWER_DOWN 0x04 +#define LIMA_PMU_POWER_GP0_MASK (1 << 0) +#define LIMA_PMU_POWER_L2_MASK (1 << 1)
I mentioned it before, SPDX licenses and BIT() macros.