motu: the 4pre channel layout within packets is now believed to be correct. Thanks...
[ffado.git] / libffado / src / fireworks / IntelFlashMap.h
blob0a3ee920d0003493be1b9545f61977c83be7ee7b
1 // Copyright ECHO AUDIO
2 //
3 // defines for Fireworks flash
4 // Using bottom boot Intel TE28F160C3 flash part
5 //
6 #ifndef _INTEL_BOTTOM_BOOT_MAP_H_
7 #define _INTEL_BOTTOM_BOOT_MAP_H_
9 //-----------------------------------------------------------------------------
11 // Defines for Intel flash part
13 //-----------------------------------------------------------------------------
15 #define PROGRAMBLOCK_SIZE_WORD16 0x1000 // 16-bit words
16 #define MAINBLOCK_SIZE_WORD16 0x8000 // 16-bit words
18 #define PROGRAMBLOCK_SIZE_BYTES (PROGRAMBLOCK_SIZE_WORD16 * 2)
19 #define MAINBLOCK_SIZE_BYTES (MAINBLOCK_SIZE_WORD16 * 2)
21 #define PROGRAMBLOCK_SIZE_QUADS (PROGRAMBLOCK_SIZE_WORD16 / 2)
22 #define MAINBLOCK_SIZE_QUADS (MAINBLOCK_SIZE_WORD16 / 2)
24 #define MAINBLOCKS_BASE_OFFSET_BYTES 0x10000
26 #define FLASH_SIZE_BYTES 0x200000 // 2 MB
27 #define FLASH_SIZE_QUADS (FLASH_SIZE_BYTES / 4)
30 //-----------------------------------------------------------------------------
32 // memory map
34 // Small blocks (8 kbytes each) from 0 - 0xffff
35 // Large blocks (32 kbytes each) from 0x010000 - 0x1fffff
37 //-----------------------------------------------------------------------------
40 // Fireworks 2.1
42 #define DSP_EMERGENCY_IMAGE_OFFSET_BYTES_FW21 0x00140000
43 #define ARM_IMAGE_OFFSET_BYTES_FW21 0x00100000
44 #define DSP_IMAGE_OFFSET_BYTES_FW21 0x000C0000
45 #define FPGA_IMAGE_OFFSET_BYTES_FW21 0x00080000
46 #define BOOT_IMAGE_OFFSET_BYTES_FW21 0x00000000
48 #define SESSION_OFFSET_BYTES_FW21 0x00008000
50 #define ARM_IMAGE_OFFSET_QUADS_FW21 (ARM_IMAGE_OFFSET_BYTES_FW21/4)
51 #define DSP_IMAGE_OFFSET_QUADS_FW21 (DSP_IMAGE_OFFSET_BYTES_FW21/4)
52 #define BOOT_IMAGE_OFFSET_QUADS_FW21 (BOOT_IMAGE_OFFSET_BYTES_FW21/4)
56 // Fireworks 3
58 #define FPGA_IMAGE_OFFSET_BYTES_FW3 0x00000000
59 #define ARM_IMAGE_OFFSET_BYTES_FW3 0x00100000
60 #define NAME_BLOCK_OFFSET_BYTES_FW3 0x001E0000
61 #define SESSION_OFFSET_BYTES_FW3 0x001F0000
64 // Fireworks HDMI
66 #define FWHDMI_CLOCK_RATIOS_OFFSET_BYTES 0x00006000
69 #endif // _INTEL_BOTTOM_BOOT_MAP_H_