Browse Source

Linux_SDK_V1.1.2

thead_admin 1 year ago
parent
commit
8ed3c09e02
2 changed files with 6 additions and 1 deletions
  1. 2 0
      src/driver/isp/isp_hw.c
  2. 4 1
      src/driver/isp/post_isp_hw.c

+ 2 - 0
src/driver/isp/isp_hw.c

@@ -29,6 +29,7 @@
 static uint32_t isp_int_tick[1536];
 static uint32_t isp_int_cnt =0;
 extern Sisp_handler g_isp_handler;
+extern void set_post_isp_ae_remap();
 
 void isp_interrupt_handler(void *data) {
 	uint32_t mi3= READ_ISP_MI3_INT(g_isp_handler.id);
@@ -68,6 +69,7 @@ void isp_interrupt_handler(void *data) {
 	{
 		CLEAR_ISP_MI_INT(g_isp_handler.id,ISP_AE_INT_MASK);
 		SET_ISP_ISP_INT(g_isp_handler.id,0x1<<8);
+		set_post_isp_ae_remap();
 	}
     else
     {

+ 4 - 1
src/driver/isp/post_isp_hw.c

@@ -134,4 +134,7 @@ int32_t post_isp_disable_inerrupt(uint16_t id) {
     return ret;
 }
 
-
+void set_post_isp_ae_remap()
+{
+	ps_s32(0x1<<19,(volatile void *)POST_ISP_ISP_ISR);
+}