123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- #ifndef __BOARD_8626M_H
- #define __BOARD_8626M_H
- #include <asm/page.h>
- #define PHYS_MEM_START (0x80000000)
- #define PHYS_MEM_SIZE (256*SZ_1M)
- #define PHYS_MEM_END (PHYS_MEM_START + PHYS_MEM_SIZE -1 )
- /******** Reserved memory setting ************************/
- #define RESERVED_MEM_START (0x80000000+64*SZ_1M) /*start at the second 64M */
- /******** CODEC memory setting ************************/
- // Codec need 16M for 1080p decode
- // 4M for sd decode;
- #define ALIGN_MSK ((SZ_1M)-1)
- #define U_ALIGN(x) ((x+ALIGN_MSK)&(~ALIGN_MSK))
- #define D_ALIGN(x) ((x)&(~ALIGN_MSK))
- /******** AUDIODSP memory setting ************************/
- #define AUDIODSP_ADDR_START U_ALIGN(RESERVED_MEM_START) /*audiodsp memstart */
- #define AUDIODSP_ADDR_END (AUDIODSP_ADDR_START+SZ_1M-1) /*audiodsp memend */
- /******** Frame buffer memory configuration ***********/
- #define OSD_480_PIX (640*480)
- #define OSD_576_PIX (768*576)
- #define OSD_720_PIX (1280*720)
- #define OSD_1080_PIX (1920*1080)
- #define B16BpP (2)
- #define B32BpP (4)
- #define DOUBLE_BUFFER (2)
- #define OSD1_MAX_MEM U_ALIGN(OSD_1080_PIX*B32BpP*DOUBLE_BUFFER)
- #define OSD2_MAX_MEM U_ALIGN(640*480*B32BpP)
- /******** Reserved memory configuration ***************/
- #define OSD1_ADDR_START U_ALIGN(AUDIODSP_ADDR_END )
- #define OSD1_ADDR_END (OSD1_ADDR_START+OSD1_MAX_MEM - 1)
- #define OSD2_ADDR_START U_ALIGN(OSD1_ADDR_END)
- #define OSD2_ADDR_END (OSD2_ADDR_START+OSD2_MAX_MEM -1)
- #if defined(CONFIG_AM_VDEC_H264)
- #define CODEC_MEM_SIZE U_ALIGN(32*SZ_1M)
- #else
- #define CODEC_MEM_SIZE U_ALIGN(16*SZ_1M)
- #endif
- #define CODEC_ADDR_START U_ALIGN(OSD2_ADDR_END)
- #define CODEC_ADDR_END (CODEC_ADDR_START+CODEC_MEM_SIZE-1)
- /********VDIN memory configuration ***************/
- #define VDIN_ADDR_START U_ALIGN(OSD2_ADDR_END)
- #define VDIN_ADDR_END (VDIN_ADDR_START +CODEC_MEM_SIZE -1)
- #if defined(CONFIG_AM_DEINTERLACE_SD_ONLY)
- #define DI_MEM_SIZE (SZ_1M*3)
- #else
- #define DI_MEM_SIZE (SZ_1M*15)
- #endif
- #define DI_ADDR_START U_ALIGN(CODEC_ADDR_END)
- #define DI_ADDR_END (DI_ADDR_START+DI_MEM_SIZE-1)
- #define STREAMBUF_MEM_SIZE (SZ_1M*7)
- #define STREAMBUF_ADDR_START U_ALIGN(DI_ADDR_END)
- #define STREAMBUF_ADDR_END (STREAMBUF_ADDR_START+STREAMBUF_MEM_SIZE-1)
- #define RESERVED_MEM_END (STREAMBUF_ADDR_END)
- #endif
|