1 /* SPDX-License-Identifier: BSD-2-Clause */ 2 /* 3 * Copyright (c) 2021, Bootlin 4 */ 5 6 #ifndef SAM_SFR_H 7 #define SAM_SFR_H 8 9 #include <util.h> 10 11 /* OHCI INT Configuration Register */ 12 #define AT91_SFR_OHCIICR 0x10 13 /* UTMI Clock Trimming Register */ 14 #define AT91_SFR_UTMICKTRIM 0x30 15 /* Serial number 0 Register */ 16 #define AT91_SFR_SN0 0x4c 17 /* Serial number 1 Register */ 18 #define AT91_SFR_SN1 0x50 19 /* AIC Interrupt Redirection Register */ 20 #define AT91_SFR_AICREDIR 0x54 21 /* L2 cache RAM used as an internal SRAM */ 22 #define AT91_SFR_L2CC_HRAMC 0x58 23 /* I2SC Register */ 24 #define AT91_SFR_I2SCLKSEL 0x90 25 26 /* Field definitions */ 27 #define AT91_UTMICKTRIM_FREQ GENMASK_32(1, 0) 28 29 #define AT91_SFR_AICREDIR_XOR_KEY 0xb6d81c4d 30 #define AT91_SFR_AICREDIR_KEY_MASK GENMASK_32(31, 1) 31 32 vaddr_t sam_sfr_base(void); 33 34 #endif 35