2 * Support for Intel Camera Imaging ISP subsystem.
3 * Copyright (c) 2015, Intel Corporation.
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
9 * This program is distributed in the hope it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 #ifndef _ST2MEM_DEFS_H
16 #define _ST2MEM_DEFS_H
18 #define _STR2MEM_CRUN_BIT 0x100000
19 #define _STR2MEM_CMD_BITS 0x0F0000
20 #define _STR2MEM_COUNT_BITS 0x00FFFF
22 #define _STR2MEM_BLOCKS_CMD 0xA0000
23 #define _STR2MEM_PACKETS_CMD 0xB0000
24 #define _STR2MEM_BYTES_CMD 0xC0000
25 #define _STR2MEM_BYTES_FROM_PACKET_CMD 0xD0000
27 #define _STR2MEM_SOFT_RESET_REG_ID 0
28 #define _STR2MEM_INPUT_ENDIANNESS_REG_ID 1
29 #define _STR2MEM_OUTPUT_ENDIANNESS_REG_ID 2
30 #define _STR2MEM_BIT_SWAPPING_REG_ID 3
31 #define _STR2MEM_BLOCK_SYNC_LEVEL_REG_ID 4
32 #define _STR2MEM_PACKET_SYNC_LEVEL_REG_ID 5
33 #define _STR2MEM_READ_POST_WRITE_SYNC_ENABLE_REG_ID 6
34 #define _STR2MEM_DUAL_BYTE_INPUTS_ENABLED_REG_ID 7
35 #define _STR2MEM_EN_STAT_UPDATE_ID 8
37 #define _STR2MEM_REG_ALIGN 4
39 #endif /* _ST2MEM_DEFS_H */