162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved. 462306a36Sopenharmony_ci * Copyright 2008 Juergen Beisert, kernel@pengutronix.de 562306a36Sopenharmony_ci */ 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci#ifndef __ASM_ARCH_MXC_IIM_H__ 862306a36Sopenharmony_ci#define __ASM_ARCH_MXC_IIM_H__ 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci/* Register offsets */ 1162306a36Sopenharmony_ci#define MXC_IIMSTAT 0x0000 1262306a36Sopenharmony_ci#define MXC_IIMSTATM 0x0004 1362306a36Sopenharmony_ci#define MXC_IIMERR 0x0008 1462306a36Sopenharmony_ci#define MXC_IIMEMASK 0x000C 1562306a36Sopenharmony_ci#define MXC_IIMFCTL 0x0010 1662306a36Sopenharmony_ci#define MXC_IIMUA 0x0014 1762306a36Sopenharmony_ci#define MXC_IIMLA 0x0018 1862306a36Sopenharmony_ci#define MXC_IIMSDAT 0x001C 1962306a36Sopenharmony_ci#define MXC_IIMPREV 0x0020 2062306a36Sopenharmony_ci#define MXC_IIMSREV 0x0024 2162306a36Sopenharmony_ci#define MXC_IIMPRG_P 0x0028 2262306a36Sopenharmony_ci#define MXC_IIMSCS0 0x002C 2362306a36Sopenharmony_ci#define MXC_IIMSCS1 0x0030 2462306a36Sopenharmony_ci#define MXC_IIMSCS2 0x0034 2562306a36Sopenharmony_ci#define MXC_IIMSCS3 0x0038 2662306a36Sopenharmony_ci#define MXC_IIMFBAC0 0x0800 2762306a36Sopenharmony_ci#define MXC_IIMJAC 0x0804 2862306a36Sopenharmony_ci#define MXC_IIMHWV1 0x0808 2962306a36Sopenharmony_ci#define MXC_IIMHWV2 0x080C 3062306a36Sopenharmony_ci#define MXC_IIMHAB0 0x0810 3162306a36Sopenharmony_ci#define MXC_IIMHAB1 0x0814 3262306a36Sopenharmony_ci/* Definitions for i.MX27 TO2 */ 3362306a36Sopenharmony_ci#define MXC_IIMMAC 0x0814 3462306a36Sopenharmony_ci#define MXC_IIMPREV_FUSE 0x0818 3562306a36Sopenharmony_ci#define MXC_IIMSREV_FUSE 0x081C 3662306a36Sopenharmony_ci#define MXC_IIMSJC_CHALL_0 0x0820 3762306a36Sopenharmony_ci#define MXC_IIMSJC_CHALL_7 0x083C 3862306a36Sopenharmony_ci#define MXC_IIMFB0UC17 0x0840 3962306a36Sopenharmony_ci#define MXC_IIMFB0UC255 0x0BFC 4062306a36Sopenharmony_ci#define MXC_IIMFBAC1 0x0C00 4162306a36Sopenharmony_ci/* Definitions for i.MX27 TO2 */ 4262306a36Sopenharmony_ci#define MXC_IIMSUID 0x0C04 4362306a36Sopenharmony_ci#define MXC_IIMKEY0 0x0C04 4462306a36Sopenharmony_ci#define MXC_IIMKEY20 0x0C54 4562306a36Sopenharmony_ci#define MXC_IIMSJC_RESP_0 0x0C58 4662306a36Sopenharmony_ci#define MXC_IIMSJC_RESP_7 0x0C74 4762306a36Sopenharmony_ci#define MXC_IIMFB1UC30 0x0C78 4862306a36Sopenharmony_ci#define MXC_IIMFB1UC255 0x0FFC 4962306a36Sopenharmony_ci 5062306a36Sopenharmony_ci/* Bit definitions */ 5162306a36Sopenharmony_ci 5262306a36Sopenharmony_ci#define MXC_IIMHWV1_WLOCK (0x1 << 7) 5362306a36Sopenharmony_ci#define MXC_IIMHWV1_MCU_ENDIAN (0x1 << 6) 5462306a36Sopenharmony_ci#define MXC_IIMHWV1_DSP_ENDIAN (0x1 << 5) 5562306a36Sopenharmony_ci#define MXC_IIMHWV1_BOOT_INT (0x1 << 4) 5662306a36Sopenharmony_ci#define MXC_IIMHWV1_SCC_DISABLE (0x1 << 3) 5762306a36Sopenharmony_ci#define MXC_IIMHWV1_HANTRO_DISABLE (0x1 << 2) 5862306a36Sopenharmony_ci#define MXC_IIMHWV1_MEMSTICK_DIS (0x1 << 1) 5962306a36Sopenharmony_ci 6062306a36Sopenharmony_ci#define MXC_IIMHWV2_WLOCK (0x1 << 7) 6162306a36Sopenharmony_ci#define MXC_IIMHWV2_BP_SDMA (0x1 << 6) 6262306a36Sopenharmony_ci#define MXC_IIMHWV2_SCM_DCM (0x1 << 5) 6362306a36Sopenharmony_ci 6462306a36Sopenharmony_ci#endif /* __ASM_ARCH_MXC_IIM_H__ */ 65