From c29b870b7c3735c2277132b1a287c27104c44142 Mon Sep 17 00:00:00 2001 From: "dalong.zhang" Date: Tue, 2 May 2017 16:44:24 +0800 Subject: [PATCH] camera: rockchip: camsys driver 0.0x21.d modify mipiphy_hsfreqrange for 3368 Change-Id: I4a9d2d6a28202e734e900f3bb761190842c2948e Signed-off-by: dalong.zhang --- .../media/video/rk_camsys/camsys_internal.h | 4 +- .../media/video/rk_camsys/camsys_soc_rk3368.c | 54 ++++++------------- 2 files changed, 18 insertions(+), 40 deletions(-) diff --git a/drivers/media/video/rk_camsys/camsys_internal.h b/drivers/media/video/rk_camsys/camsys_internal.h index 3ae14642f285..17068f639fc6 100644 --- a/drivers/media/video/rk_camsys/camsys_internal.h +++ b/drivers/media/video/rk_camsys/camsys_internal.h @@ -157,8 +157,10 @@ 1) some log is boring, so set print level more high. *v0.0x21.0xc: 1) support rk3288. +*v0.0x21.0xd: + 1) modify mipiphy_hsfreqrange for 3368. */ -#define CAMSYS_DRIVER_VERSION KERNEL_VERSION(0, 0x21, 0xc) +#define CAMSYS_DRIVER_VERSION KERNEL_VERSION(0, 0x21, 0xd) #define CAMSYS_PLATFORM_DRV_NAME "RockChip-CamSys" #define CAMSYS_PLATFORM_MARVIN_NAME "Platform_MarvinDev" diff --git a/drivers/media/video/rk_camsys/camsys_soc_rk3368.c b/drivers/media/video/rk_camsys/camsys_soc_rk3368.c index a8e47a250a58..2afac1e90386 100644 --- a/drivers/media/video/rk_camsys/camsys_soc_rk3368.c +++ b/drivers/media/video/rk_camsys/camsys_soc_rk3368.c @@ -10,45 +10,21 @@ struct mipiphy_hsfreqrange_s { }; static struct mipiphy_hsfreqrange_s mipiphy_hsfreqrange[] = { - {80, 90, 0x00}, - {90, 100, 0x10}, - {100, 110, 0x20}, - {110, 130, 0x01}, - {130, 140, 0x11}, - {140, 150, 0x21}, - {150, 170, 0x02}, - {170, 180, 0x12}, - {180, 200, 0x22}, - {200, 220, 0x03}, - {220, 240, 0x13}, - {240, 250, 0x23}, - {250, 270, 0x04}, - {270, 300, 0x14}, - {300, 330, 0x05}, - {330, 360, 0x15}, - {360, 400, 0x25}, - {400, 450, 0x06}, - {450, 500, 0x16}, - {500, 550, 0x07}, - {550, 600, 0x17}, - {600, 650, 0x08}, - {650, 700, 0x18}, - {700, 750, 0x09}, - {750, 800, 0x19}, - {800, 850, 0x29}, - {850, 900, 0x39}, - {900, 950, 0x0a}, - {950, 1000, 0x1a}, - {1000, 1050, 0x2a}, - {1100, 1150, 0x3a}, - {1150, 1200, 0x0b}, - {1200, 1250, 0x1b}, - {1250, 1300, 0x2b}, - {1300, 1350, 0x0c}, - {1350, 1400, 0x1c}, - {1400, 1450, 0x2c}, - {1450, 1500, 0x3c} - + {80, 110, 0x00}, + {110, 150, 0x01}, + {150, 200, 0x02}, + {200, 250, 0x03}, + {250, 300, 0x04}, + {300, 400, 0x05}, + {400, 500, 0x06}, + {500, 600, 0x07}, + {600, 700, 0x08}, + {700, 800, 0x09}, + {800, 1000, 0x10}, + {1000, 1200, 0x11}, + {1200, 1400, 0x12}, + {1400, 1600, 0x13}, + {1600, 1800, 0x14} }; #if 0 -- 2.34.1