#include "RGA_API.h"\r
\r
#define RGA_TEST 0\r
-#define RGA_TEST_TIME 0\r
+#define RGA_TEST_TIME 1\r
#define RGA_TEST_FLUSH_TIME 0\r
#define RGA_INFO_BUS_ERROR 1\r
\r
\r
#endif\r
\r
-unsigned int src_buf[1280*720];\r
-unsigned int dst_buf[720*480];\r
+unsigned int src_buf[1920*1080];\r
+unsigned int dst_buf[1920*1080];\r
\r
void rga_test_0(void)\r
{\r
outer_flush_range(virt_to_phys(&dst_buf[0]),virt_to_phys(&dst_buf[800*480]));\r
#endif\r
\r
+ printk("\n********************************\n");\r
+ printk("************ RGA_TEST ************\n");\r
+ printk("********************************\n\n");\r
+\r
req.src.act_w = 1280;\r
req.src.act_h = 720;\r
\r
req.src.vir_w = 1280;\r
req.src.vir_h = 720;\r
- req.src.yrgb_addr = (uint32_t)src;\r
+ req.src.yrgb_addr = (uint32_t)virt_to_phys(src + 128) & 0xffffffc0;\r
req.src.uv_addr = (uint32_t)virt_to_phys(src);\r
req.src.v_addr = (uint32_t)virt_to_phys(src);\r
req.src.format = 0;\r
\r
- req.dst.act_w = 720;\r
- req.dst.act_h = 480;\r
+ req.dst.act_w = 1280;\r
+ req.dst.act_h = 720;\r
\r
req.dst.vir_w = 1280;\r
req.dst.vir_h = 720;\r
req.dst.x_offset = 0;\r
req.dst.y_offset = 0;\r
- req.dst.yrgb_addr = (uint32_t)virt_to_phys(dst);\r
+ req.dst.yrgb_addr = (uint32_t)virt_to_phys(dst) + 8;\r
\r
//req.dst.format = RK_FORMAT_RGB_565;\r
\r
//req.render_mode = color_fill_mode;\r
//req.fg_color = 0x80ffffff;\r
\r
- req.rotate_mode = 1;\r
- req.scale_mode = 2;\r
+ //req.rotate_mode = 1;\r
+ // req.scale_mode = 2;\r
\r
//req.alpha_rop_flag = 1;\r
//req.alpha_rop_mode = 0x19;\r
req.sina = 0;\r
req.cosa = 65536;\r
\r
- req.mmu_info.mmu_flag = 0x21;\r
- req.mmu_info.mmu_en = 1;\r
+ //req.mmu_info.mmu_flag = 0x21;\r
+ //req.mmu_info.mmu_en = 1;\r
+\r
+ printk("src = %.8x\n", req.src.yrgb_addr);\r
+ printk("dst = %.8x\n", req.dst.yrgb_addr);\r
\r
rga_blit_sync(&session, &req);\r
\r
- #if 1\r
+ #if 0\r
fb->var.bits_per_pixel = 32;\r
\r
fb->var.xres = 1280;\r