flash/nor/at91samd: Use 32-bit register writes for ST-Link compat
[fw/openocd] / src / target / arm720t.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2
3 /***************************************************************************
4  *   Copyright (C) 2005 by Dominic Rath                                    *
5  *   Dominic.Rath@gmx.de                                                   *
6  ***************************************************************************/
7
8 #ifndef OPENOCD_TARGET_ARM720T_H
9 #define OPENOCD_TARGET_ARM720T_H
10
11 #include "arm7tdmi.h"
12 #include "armv4_5_mmu.h"
13
14 #define ARM720T_COMMON_MAGIC 0xa720a720U
15
16 struct arm720t_common {
17         unsigned int common_magic;
18
19         struct arm7_9_common arm7_9_common;
20         struct armv4_5_mmu_common armv4_5_mmu;
21         uint32_t cp15_control_reg;
22         uint32_t fsr_reg;
23         uint32_t far_reg;
24 };
25
26 static inline struct arm720t_common *target_to_arm720(struct target *target)
27 {
28         return container_of(target->arch_info, struct arm720t_common, arm7_9_common.arm);
29 }
30
31 #endif /* OPENOCD_TARGET_ARM720T_H */