drm/panthor: Don't add write fences to the shared BOs
[drm/drm-misc.git] / arch / mips / include / asm / mach-pic32 / pic32.h
blob53918a671a4c39dba2a22121187cdd73e1935b24
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Joshua Henderson <joshua.henderson@microchip.com>
4 * Copyright (C) 2015 Microchip Technology Inc. All rights reserved.
5 */
6 #ifndef _ASM_MACH_PIC32_H
7 #define _ASM_MACH_PIC32_H
9 #include <linux/io.h>
12 * PIC32 register offsets for SET/CLR/INV where supported.
14 #define PIC32_CLR(_reg) ((_reg) + 0x04)
15 #define PIC32_SET(_reg) ((_reg) + 0x08)
16 #define PIC32_INV(_reg) ((_reg) + 0x0C)
19 * PIC32 Base Register Offsets
21 #define PIC32_BASE_CONFIG 0x1f800000
22 #define PIC32_BASE_OSC 0x1f801200
23 #define PIC32_BASE_RESET 0x1f801240
24 #define PIC32_BASE_PPS 0x1f801400
25 #define PIC32_BASE_UART 0x1f822000
26 #define PIC32_BASE_PORT 0x1f860000
27 #define PIC32_BASE_DEVCFG2 0x1fc4ff44
30 * Register unlock sequence required for some register access.
32 void pic32_syskey_unlock_debug(const char *fn, const ulong ln);
33 #define pic32_syskey_unlock() \
34 pic32_syskey_unlock_debug(__func__, __LINE__)
36 #endif /* _ASM_MACH_PIC32_H */