rk30: vpu_service: extend encoder buffer size for rk30
author陈恒明 <chm@rock-chips.com>
Thu, 17 May 2012 07:17:34 +0000 (15:17 +0800)
committer陈恒明 <chm@rock-chips.com>
Thu, 17 May 2012 07:17:34 +0000 (15:17 +0800)
arch/arm/plat-rk/include/plat/vpu_service.h
arch/arm/plat-rk/vpu_service.c

index 9162196880b7ae7072e014e70407c52b6906c869..523c5dd7213479b57bd8efe5dcaaeca135bd8b6e 100644 (file)
 #define VPU_REG_NUM_PP                      (41)
 // client type: decoder plus post-process£º101 registers, size 404B
 #define VPU_REG_NUM_DEC_PP                  (VPU_REG_NUM_DEC+VPU_REG_NUM_PP)
-// client type: encoder only£º96 registers, size 384B
+#if defined(CONFIG_ARCH_RK29)
+// client type: encoder only:  96 registers, size 384B for rk29
 #define VPU_REG_NUM_ENC                     (96)
+#elif defined(CONFIG_ARCH_RK30)
+// client type: encoder only: 164 registers, size 384B for rk30
+#define VPU_REG_NUM_ENC                     (164)
+#endif
 
 typedef enum VPU_CLIENT_TYPE {
     VPU_ENC                 = 0x0,
index b65230062001d03ccb5c5fff4c367fc7731b9dbc..f4c333f3fe6e948a68de436dc7f60fb146edfeea 100644 (file)
 
 #define REG_NUM_DEC                            (60)
 #define REG_NUM_PP                             (41)
+#if defined(CONFIG_ARCH_RK29)
 #define REG_NUM_ENC                            (96)
+#elif defined(CONFIG_ARCH_RK30)
+#define REG_NUM_ENC                            (164)
+#endif
 #define REG_NUM_DEC_PP                         (REG_NUM_DEC+REG_NUM_PP)
 #define SIZE_REG(reg)                          ((reg)*4)
 
 #define DEC_IO_SIZE                            ((100 + 1) * 4) /* bytes */
+#if defined(CONFIG_ARCH_RK29)
 #define ENC_IO_SIZE                            (96 * 4)        /* bytes */
+#elif defined(CONFIG_ARCH_RK30)
+#define ENC_IO_SIZE                            (164 * 4)       /* bytes */
+#endif
+#define REG_NUM_DEC_PP                         (REG_NUM_DEC+REG_NUM_PP)
 static const u16 dec_hw_ids[] = { 0x8190, 0x8170, 0x9170, 0x9190, 0x6731 };
 #if defined(CONFIG_ARCH_RK29)
 static const u16 enc_hw_ids[] = { 0x6280, 0x7280, 0x8270 };