2 #include "camsys_soc_priv.h"
5 static camsys_soc_priv_t* camsys_soc_p;
7 extern int camsys_rk3288_cfg (camsys_soc_cfg_t cfg_cmd, void* cfg_para);
8 extern int camsys_rk3368_cfg (camsys_soc_cfg_t cfg_cmd, void* cfg_para);
10 camsys_soc_priv_t* camsys_soc_get(void)
12 if (camsys_soc_p != NULL) {
19 int camsys_soc_init(void)
21 camsys_soc_p = kzalloc(sizeof(camsys_soc_priv_t),GFP_KERNEL);
22 if (camsys_soc_p == NULL) {
23 camsys_err("malloc camsys_soc_priv_t failed!");
28 strlcpy(camsys_soc_p->name,"camsys_rk3368",31);
29 camsys_soc_p->soc_cfg = camsys_rk3368_cfg;
30 camsys_err("camsys_soc_init exit!");
32 if (soc_is_rk3288()) {
33 strlcpy(camsys_soc_p->name,"camsys_rk3288",31);
34 camsys_soc_p->soc_cfg = camsys_rk3288_cfg;
36 camsys_err("camsys isn't support soc: 0x%lx!",rockchip_soc_id);
43 if (camsys_soc_p != NULL) {
50 int camsys_soc_deinit(void)
52 if (camsys_soc_p != NULL) {