18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved. 48c2ecf20Sopenharmony_ci * Copyright 2008 Juergen Beisert, kernel@pengutronix.de 58c2ecf20Sopenharmony_ci */ 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#ifndef __ASM_ARCH_MXC_IIM_H__ 88c2ecf20Sopenharmony_ci#define __ASM_ARCH_MXC_IIM_H__ 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci/* Register offsets */ 118c2ecf20Sopenharmony_ci#define MXC_IIMSTAT 0x0000 128c2ecf20Sopenharmony_ci#define MXC_IIMSTATM 0x0004 138c2ecf20Sopenharmony_ci#define MXC_IIMERR 0x0008 148c2ecf20Sopenharmony_ci#define MXC_IIMEMASK 0x000C 158c2ecf20Sopenharmony_ci#define MXC_IIMFCTL 0x0010 168c2ecf20Sopenharmony_ci#define MXC_IIMUA 0x0014 178c2ecf20Sopenharmony_ci#define MXC_IIMLA 0x0018 188c2ecf20Sopenharmony_ci#define MXC_IIMSDAT 0x001C 198c2ecf20Sopenharmony_ci#define MXC_IIMPREV 0x0020 208c2ecf20Sopenharmony_ci#define MXC_IIMSREV 0x0024 218c2ecf20Sopenharmony_ci#define MXC_IIMPRG_P 0x0028 228c2ecf20Sopenharmony_ci#define MXC_IIMSCS0 0x002C 238c2ecf20Sopenharmony_ci#define MXC_IIMSCS1 0x0030 248c2ecf20Sopenharmony_ci#define MXC_IIMSCS2 0x0034 258c2ecf20Sopenharmony_ci#define MXC_IIMSCS3 0x0038 268c2ecf20Sopenharmony_ci#define MXC_IIMFBAC0 0x0800 278c2ecf20Sopenharmony_ci#define MXC_IIMJAC 0x0804 288c2ecf20Sopenharmony_ci#define MXC_IIMHWV1 0x0808 298c2ecf20Sopenharmony_ci#define MXC_IIMHWV2 0x080C 308c2ecf20Sopenharmony_ci#define MXC_IIMHAB0 0x0810 318c2ecf20Sopenharmony_ci#define MXC_IIMHAB1 0x0814 328c2ecf20Sopenharmony_ci/* Definitions for i.MX27 TO2 */ 338c2ecf20Sopenharmony_ci#define MXC_IIMMAC 0x0814 348c2ecf20Sopenharmony_ci#define MXC_IIMPREV_FUSE 0x0818 358c2ecf20Sopenharmony_ci#define MXC_IIMSREV_FUSE 0x081C 368c2ecf20Sopenharmony_ci#define MXC_IIMSJC_CHALL_0 0x0820 378c2ecf20Sopenharmony_ci#define MXC_IIMSJC_CHALL_7 0x083C 388c2ecf20Sopenharmony_ci#define MXC_IIMFB0UC17 0x0840 398c2ecf20Sopenharmony_ci#define MXC_IIMFB0UC255 0x0BFC 408c2ecf20Sopenharmony_ci#define MXC_IIMFBAC1 0x0C00 418c2ecf20Sopenharmony_ci/* Definitions for i.MX27 TO2 */ 428c2ecf20Sopenharmony_ci#define MXC_IIMSUID 0x0C04 438c2ecf20Sopenharmony_ci#define MXC_IIMKEY0 0x0C04 448c2ecf20Sopenharmony_ci#define MXC_IIMKEY20 0x0C54 458c2ecf20Sopenharmony_ci#define MXC_IIMSJC_RESP_0 0x0C58 468c2ecf20Sopenharmony_ci#define MXC_IIMSJC_RESP_7 0x0C74 478c2ecf20Sopenharmony_ci#define MXC_IIMFB1UC30 0x0C78 488c2ecf20Sopenharmony_ci#define MXC_IIMFB1UC255 0x0FFC 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ci/* Bit definitions */ 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ci#define MXC_IIMHWV1_WLOCK (0x1 << 7) 538c2ecf20Sopenharmony_ci#define MXC_IIMHWV1_MCU_ENDIAN (0x1 << 6) 548c2ecf20Sopenharmony_ci#define MXC_IIMHWV1_DSP_ENDIAN (0x1 << 5) 558c2ecf20Sopenharmony_ci#define MXC_IIMHWV1_BOOT_INT (0x1 << 4) 568c2ecf20Sopenharmony_ci#define MXC_IIMHWV1_SCC_DISABLE (0x1 << 3) 578c2ecf20Sopenharmony_ci#define MXC_IIMHWV1_HANTRO_DISABLE (0x1 << 2) 588c2ecf20Sopenharmony_ci#define MXC_IIMHWV1_MEMSTICK_DIS (0x1 << 1) 598c2ecf20Sopenharmony_ci 608c2ecf20Sopenharmony_ci#define MXC_IIMHWV2_WLOCK (0x1 << 7) 618c2ecf20Sopenharmony_ci#define MXC_IIMHWV2_BP_SDMA (0x1 << 6) 628c2ecf20Sopenharmony_ci#define MXC_IIMHWV2_SCM_DCM (0x1 << 5) 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ci#endif /* __ASM_ARCH_MXC_IIM_H__ */ 65