Commit | Line | Data |
---|---|---|
635d2b00 GKH |
1 | /***************************************************************************** |
2 | ||
3 | (c) Cambridge Silicon Radio Limited 2011 | |
4 | All rights reserved and confidential information of CSR | |
5 | ||
6 | Refer to LICENSE.txt included with this source for details | |
7 | on the license terms. | |
8 | ||
9 | *****************************************************************************/ | |
10 | ||
11 | /* | |
12 | * --------------------------------------------------------------------------- | |
13 | * | |
14 | * File: csr_wifi_hip_unifihw.h | |
15 | * | |
16 | * Definitions of various chip registers, addresses, values etc. | |
17 | * | |
18 | * --------------------------------------------------------------------------- | |
19 | */ | |
20 | #ifndef __UNIFIHW_H__ | |
21 | #define __UNIFIHW_H__ 1 | |
22 | ||
635d2b00 GKH |
23 | /* Symbol Look Up Table fingerprint. IDs are in sigs.h */ |
24 | #define SLUT_FINGERPRINT 0xD397 | |
25 | ||
26 | ||
27 | /* Values of LoaderOperation */ | |
28 | #define UNIFI_LOADER_IDLE 0x00 | |
29 | #define UNIFI_LOADER_COPY 0x01 | |
30 | #define UNIFI_LOADER_ERROR_MASK 0xF0 | |
31 | ||
32 | /* Values of BootLoaderOperation */ | |
33 | #define UNIFI_BOOT_LOADER_IDLE 0x00 | |
34 | #define UNIFI_BOOT_LOADER_RESTART 0x01 | |
35 | #define UNIFI_BOOT_LOADER_PATCH 0x02 | |
36 | #define UNIFI_BOOT_LOADER_LOAD_STA 0x10 | |
37 | #define UNIFI_BOOT_LOADER_LOAD_PTEST 0x11 | |
38 | ||
39 | ||
40 | /* Memory spaces encoded in top byte of Generic Pointer type */ | |
41 | #define UNIFI_SH_DMEM 0x01 /* Shared Data Memory */ | |
42 | #define UNIFI_EXT_FLASH 0x02 /* External FLASH */ | |
43 | #define UNIFI_EXT_SRAM 0x03 /* External SRAM */ | |
44 | #define UNIFI_REGISTERS 0x04 /* Registers */ | |
45 | #define UNIFI_PHY_DMEM 0x10 /* PHY Data Memory */ | |
46 | #define UNIFI_PHY_PMEM 0x11 /* PHY Program Memory */ | |
47 | #define UNIFI_PHY_ROM 0x12 /* PHY ROM */ | |
48 | #define UNIFI_MAC_DMEM 0x20 /* MAC Data Memory */ | |
49 | #define UNIFI_MAC_PMEM 0x21 /* MAC Program Memory */ | |
50 | #define UNIFI_MAC_ROM 0x22 /* MAC ROM */ | |
51 | #define UNIFI_BT_DMEM 0x30 /* BT Data Memory */ | |
52 | #define UNIFI_BT_PMEM 0x31 /* BT Program Memory */ | |
53 | #define UNIFI_BT_ROM 0x32 /* BT ROM */ | |
54 | ||
55 | #define UNIFI_MAKE_GP(R, O) (((UNIFI_ ## R) << 24) | (O)) | |
56 | #define UNIFI_GP_OFFSET(GP) ((GP) & 0xFFFFFF) | |
57 | #define UNIFI_GP_SPACE(GP) (((GP) >> 24) & 0xFF) | |
58 | ||
635d2b00 | 59 | #endif /* __UNIFIHW_H__ */ |