Commit 2129e17e authored by Tapasweni Pathak's avatar Tapasweni Pathak Committed by Greg Kroah-Hartman

staging: media: davinci_vpfe: Replace *__iomem with __iomem *

This patch fixes defective positional use of __iomem, wherever
present in media: davinci_vpfe.
Signed-off-by: default avatarTapasweni Pathak <tapaswenipathak@gmail.com>
Reviewed-by: default avatarJosh Triplett <josh@joshtriplett.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c3cefd3c
...@@ -120,8 +120,8 @@ struct vpfe_ipipe_device { ...@@ -120,8 +120,8 @@ struct vpfe_ipipe_device {
enum ipipe_input_entity input; enum ipipe_input_entity input;
unsigned int output; unsigned int output;
struct v4l2_ctrl_handler ctrls; struct v4l2_ctrl_handler ctrls;
void *__iomem base_addr; void __iomem *base_addr;
void *__iomem isp5_base_addr; void __iomem *isp5_base_addr;
struct ipipe_module_params config; struct ipipe_module_params config;
}; };
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#define IPIPE_MODE_CONTINUOUS 0 #define IPIPE_MODE_CONTINUOUS 0
#define IPIPE_MODE_SINGLE_SHOT 1 #define IPIPE_MODE_SINGLE_SHOT 1
static void ipipe_clock_enable(void *__iomem base_addr) static void ipipe_clock_enable(void __iomem *base_addr)
{ {
/* enable IPIPE MMR for register write access */ /* enable IPIPE MMR for register write access */
regw_ip(base_addr, IPIPE_GCK_MMR_DEFAULT, IPIPE_GCK_MMR); regw_ip(base_addr, IPIPE_GCK_MMR_DEFAULT, IPIPE_GCK_MMR);
...@@ -34,7 +34,7 @@ static void ipipe_clock_enable(void *__iomem base_addr) ...@@ -34,7 +34,7 @@ static void ipipe_clock_enable(void *__iomem base_addr)
} }
static void static void
rsz_set_common_params(void *__iomem rsz_base, struct resizer_params *params) rsz_set_common_params(void __iomem *rsz_base, struct resizer_params *params)
{ {
struct rsz_common_params *rsz_common = &params->rsz_common; struct rsz_common_params *rsz_common = &params->rsz_common;
u32 val; u32 val;
...@@ -66,7 +66,7 @@ rsz_set_common_params(void *__iomem rsz_base, struct resizer_params *params) ...@@ -66,7 +66,7 @@ rsz_set_common_params(void *__iomem rsz_base, struct resizer_params *params)
} }
static void static void
rsz_set_rsz_regs(void *__iomem rsz_base, unsigned int rsz_id, rsz_set_rsz_regs(void __iomem *rsz_base, unsigned int rsz_id,
struct resizer_params *params) struct resizer_params *params)
{ {
struct resizer_scale_param *rsc_params; struct resizer_scale_param *rsc_params;
...@@ -171,7 +171,7 @@ rsz_set_rsz_regs(void *__iomem rsz_base, unsigned int rsz_id, ...@@ -171,7 +171,7 @@ rsz_set_rsz_regs(void *__iomem rsz_base, unsigned int rsz_id,
/*set the registers of either RSZ0 or RSZ1 */ /*set the registers of either RSZ0 or RSZ1 */
static void static void
ipipe_setup_resizer(void *__iomem rsz_base, struct resizer_params *params) ipipe_setup_resizer(void __iomem *rsz_base, struct resizer_params *params)
{ {
/* enable MMR gate to write to Resizer */ /* enable MMR gate to write to Resizer */
regw_rsz(rsz_base, 1, RSZ_GCK_MMR); regw_rsz(rsz_base, 1, RSZ_GCK_MMR);
...@@ -302,8 +302,8 @@ int config_rsz_hw(struct vpfe_resizer_device *resizer, ...@@ -302,8 +302,8 @@ int config_rsz_hw(struct vpfe_resizer_device *resizer,
struct resizer_params *config) struct resizer_params *config)
{ {
struct vpfe_device *vpfe_dev = to_vpfe_device(resizer); struct vpfe_device *vpfe_dev = to_vpfe_device(resizer);
void *__iomem ipipe_base = vpfe_dev->vpfe_ipipe.base_addr; void __iomem *ipipe_base = vpfe_dev->vpfe_ipipe.base_addr;
void *__iomem rsz_base = vpfe_dev->vpfe_resizer.base_addr; void __iomem *rsz_base = vpfe_dev->vpfe_resizer.base_addr;
/* enable VPSS clock */ /* enable VPSS clock */
vpss_enable_clock(VPSS_IPIPE_CLOCK, 1); vpss_enable_clock(VPSS_IPIPE_CLOCK, 1);
...@@ -315,7 +315,7 @@ int config_rsz_hw(struct vpfe_resizer_device *resizer, ...@@ -315,7 +315,7 @@ int config_rsz_hw(struct vpfe_resizer_device *resizer,
} }
static void static void
rsz_set_y_address(void *__iomem rsz_base, unsigned int address, rsz_set_y_address(void __iomem *rsz_base, unsigned int address,
unsigned int offset) unsigned int offset)
{ {
u32 val; u32 val;
...@@ -330,7 +330,7 @@ rsz_set_y_address(void *__iomem rsz_base, unsigned int address, ...@@ -330,7 +330,7 @@ rsz_set_y_address(void *__iomem rsz_base, unsigned int address,
} }
static void static void
rsz_set_c_address(void *__iomem rsz_base, unsigned int address, rsz_set_c_address(void __iomem *rsz_base, unsigned int address,
unsigned int offset) unsigned int offset)
{ {
u32 val; u32 val;
...@@ -352,7 +352,7 @@ rsz_set_c_address(void *__iomem rsz_base, unsigned int address, ...@@ -352,7 +352,7 @@ rsz_set_c_address(void *__iomem rsz_base, unsigned int address,
* @address: the address to set * @address: the address to set
*/ */
int int
resizer_set_outaddr(void *__iomem rsz_base, struct resizer_params *params, resizer_set_outaddr(void __iomem *rsz_base, struct resizer_params *params,
int resize_no, unsigned int address) int resize_no, unsigned int address)
{ {
struct resizer_scale_param *rsc_param; struct resizer_scale_param *rsc_param;
...@@ -411,7 +411,7 @@ resizer_set_outaddr(void *__iomem rsz_base, struct resizer_params *params, ...@@ -411,7 +411,7 @@ resizer_set_outaddr(void *__iomem rsz_base, struct resizer_params *params,
} }
void void
ipipe_set_lutdpc_regs(void *__iomem base_addr, void *__iomem isp5_base_addr, ipipe_set_lutdpc_regs(void __iomem *base_addr, void __iomem *isp5_base_addr,
struct vpfe_ipipe_lutdpc *dpc) struct vpfe_ipipe_lutdpc *dpc)
{ {
u32 max_tbl_size = LUT_DPC_MAX_SIZE >> 1; u32 max_tbl_size = LUT_DPC_MAX_SIZE >> 1;
...@@ -446,7 +446,7 @@ ipipe_set_lutdpc_regs(void *__iomem base_addr, void *__iomem isp5_base_addr, ...@@ -446,7 +446,7 @@ ipipe_set_lutdpc_regs(void *__iomem base_addr, void *__iomem isp5_base_addr,
} }
static void static void
set_dpc_thresholds(void *__iomem base_addr, set_dpc_thresholds(void __iomem *base_addr,
struct vpfe_ipipe_otfdpc_2_0_cfg *dpc_thr) struct vpfe_ipipe_otfdpc_2_0_cfg *dpc_thr)
{ {
regw_ip(base_addr, dpc_thr->corr_thr.r & OTFDPC_DPC2_THR_MASK, regw_ip(base_addr, dpc_thr->corr_thr.r & OTFDPC_DPC2_THR_MASK,
...@@ -467,7 +467,7 @@ set_dpc_thresholds(void *__iomem base_addr, ...@@ -467,7 +467,7 @@ set_dpc_thresholds(void *__iomem base_addr,
DPC_OTF_2D_THR_B); DPC_OTF_2D_THR_B);
} }
void ipipe_set_otfdpc_regs(void *__iomem base_addr, void ipipe_set_otfdpc_regs(void __iomem *base_addr,
struct vpfe_ipipe_otfdpc *otfdpc) struct vpfe_ipipe_otfdpc *otfdpc)
{ {
struct vpfe_ipipe_otfdpc_2_0_cfg *dpc_2_0 = &otfdpc->alg_cfg.dpc_2_0; struct vpfe_ipipe_otfdpc_2_0_cfg *dpc_2_0 = &otfdpc->alg_cfg.dpc_2_0;
...@@ -523,7 +523,7 @@ void ipipe_set_otfdpc_regs(void *__iomem base_addr, ...@@ -523,7 +523,7 @@ void ipipe_set_otfdpc_regs(void *__iomem base_addr,
/* 2D Noise filter */ /* 2D Noise filter */
void void
ipipe_set_d2f_regs(void *__iomem base_addr, unsigned int id, ipipe_set_d2f_regs(void __iomem *base_addr, unsigned int id,
struct vpfe_ipipe_nf *noise_filter) struct vpfe_ipipe_nf *noise_filter)
{ {
...@@ -571,7 +571,7 @@ ipipe_set_d2f_regs(void *__iomem base_addr, unsigned int id, ...@@ -571,7 +571,7 @@ ipipe_set_d2f_regs(void *__iomem base_addr, unsigned int id,
(((decimal & 0x1f) | ((integer & 0x7) << 5))) (((decimal & 0x1f) | ((integer & 0x7) << 5)))
/* Green Imbalance Correction */ /* Green Imbalance Correction */
void ipipe_set_gic_regs(void *__iomem base_addr, struct vpfe_ipipe_gic *gic) void ipipe_set_gic_regs(void __iomem *base_addr, struct vpfe_ipipe_gic *gic)
{ {
u32 val; u32 val;
...@@ -609,7 +609,7 @@ void ipipe_set_gic_regs(void *__iomem base_addr, struct vpfe_ipipe_gic *gic) ...@@ -609,7 +609,7 @@ void ipipe_set_gic_regs(void *__iomem base_addr, struct vpfe_ipipe_gic *gic)
#define IPIPE_U13Q9(decimal, integer) \ #define IPIPE_U13Q9(decimal, integer) \
(((decimal & 0x1ff) | ((integer & 0xf) << 9))) (((decimal & 0x1ff) | ((integer & 0xf) << 9)))
/* White balance */ /* White balance */
void ipipe_set_wb_regs(void *__iomem base_addr, struct vpfe_ipipe_wb *wb) void ipipe_set_wb_regs(void __iomem *base_addr, struct vpfe_ipipe_wb *wb)
{ {
u32 val; u32 val;
...@@ -635,7 +635,7 @@ void ipipe_set_wb_regs(void *__iomem base_addr, struct vpfe_ipipe_wb *wb) ...@@ -635,7 +635,7 @@ void ipipe_set_wb_regs(void *__iomem base_addr, struct vpfe_ipipe_wb *wb)
} }
/* CFA */ /* CFA */
void ipipe_set_cfa_regs(void *__iomem base_addr, struct vpfe_ipipe_cfa *cfa) void ipipe_set_cfa_regs(void __iomem *base_addr, struct vpfe_ipipe_cfa *cfa)
{ {
ipipe_clock_enable(base_addr); ipipe_clock_enable(base_addr);
...@@ -671,7 +671,7 @@ void ipipe_set_cfa_regs(void *__iomem base_addr, struct vpfe_ipipe_cfa *cfa) ...@@ -671,7 +671,7 @@ void ipipe_set_cfa_regs(void *__iomem base_addr, struct vpfe_ipipe_cfa *cfa)
} }
void void
ipipe_set_rgb2rgb_regs(void *__iomem base_addr, unsigned int id, ipipe_set_rgb2rgb_regs(void __iomem *base_addr, unsigned int id,
struct vpfe_ipipe_rgb2rgb *rgb) struct vpfe_ipipe_rgb2rgb *rgb)
{ {
u32 offset_mask = RGB2RGB_1_OFST_MASK; u32 offset_mask = RGB2RGB_1_OFST_MASK;
...@@ -724,7 +724,7 @@ ipipe_set_rgb2rgb_regs(void *__iomem base_addr, unsigned int id, ...@@ -724,7 +724,7 @@ ipipe_set_rgb2rgb_regs(void *__iomem base_addr, unsigned int id,
} }
static void static void
ipipe_update_gamma_tbl(void *__iomem isp5_base_addr, ipipe_update_gamma_tbl(void __iomem *isp5_base_addr,
struct vpfe_ipipe_gamma_entry *table, int size, u32 addr) struct vpfe_ipipe_gamma_entry *table, int size, u32 addr)
{ {
int count; int count;
...@@ -738,7 +738,7 @@ ipipe_update_gamma_tbl(void *__iomem isp5_base_addr, ...@@ -738,7 +738,7 @@ ipipe_update_gamma_tbl(void *__iomem isp5_base_addr,
} }
void void
ipipe_set_gamma_regs(void *__iomem base_addr, void *__iomem isp5_base_addr, ipipe_set_gamma_regs(void __iomem *base_addr, void __iomem *isp5_base_addr,
struct vpfe_ipipe_gamma *gamma) struct vpfe_ipipe_gamma *gamma)
{ {
int table_size; int table_size;
...@@ -770,7 +770,7 @@ ipipe_set_gamma_regs(void *__iomem base_addr, void *__iomem isp5_base_addr, ...@@ -770,7 +770,7 @@ ipipe_set_gamma_regs(void *__iomem base_addr, void *__iomem isp5_base_addr,
} }
void void
ipipe_set_3d_lut_regs(void *__iomem base_addr, void *__iomem isp5_base_addr, ipipe_set_3d_lut_regs(void __iomem *base_addr, void __iomem *isp5_base_addr,
struct vpfe_ipipe_3d_lut *lut_3d) struct vpfe_ipipe_3d_lut *lut_3d)
{ {
struct vpfe_ipipe_3d_lut_entry *tbl; struct vpfe_ipipe_3d_lut_entry *tbl;
...@@ -819,7 +819,7 @@ ipipe_set_3d_lut_regs(void *__iomem base_addr, void *__iomem isp5_base_addr, ...@@ -819,7 +819,7 @@ ipipe_set_3d_lut_regs(void *__iomem base_addr, void *__iomem isp5_base_addr,
/* Lumina adjustments */ /* Lumina adjustments */
void void
ipipe_set_lum_adj_regs(void *__iomem base_addr, struct ipipe_lum_adj *lum_adj) ipipe_set_lum_adj_regs(void __iomem *base_addr, struct ipipe_lum_adj *lum_adj)
{ {
u32 val; u32 val;
...@@ -834,7 +834,7 @@ ipipe_set_lum_adj_regs(void *__iomem base_addr, struct ipipe_lum_adj *lum_adj) ...@@ -834,7 +834,7 @@ ipipe_set_lum_adj_regs(void *__iomem base_addr, struct ipipe_lum_adj *lum_adj)
#define IPIPE_S12Q8(decimal, integer) \ #define IPIPE_S12Q8(decimal, integer) \
(((decimal & 0xff) | ((integer & 0xf) << 8))) (((decimal & 0xff) | ((integer & 0xf) << 8)))
void ipipe_set_rgb2ycbcr_regs(void *__iomem base_addr, void ipipe_set_rgb2ycbcr_regs(void __iomem *base_addr,
struct vpfe_ipipe_rgb2yuv *yuv) struct vpfe_ipipe_rgb2yuv *yuv)
{ {
u32 val; u32 val;
...@@ -866,7 +866,7 @@ void ipipe_set_rgb2ycbcr_regs(void *__iomem base_addr, ...@@ -866,7 +866,7 @@ void ipipe_set_rgb2ycbcr_regs(void *__iomem base_addr,
/* YUV 422 conversion */ /* YUV 422 conversion */
void void
ipipe_set_yuv422_conv_regs(void *__iomem base_addr, ipipe_set_yuv422_conv_regs(void __iomem *base_addr,
struct vpfe_ipipe_yuv422_conv *conv) struct vpfe_ipipe_yuv422_conv *conv)
{ {
u32 val; u32 val;
...@@ -879,7 +879,7 @@ ipipe_set_yuv422_conv_regs(void *__iomem base_addr, ...@@ -879,7 +879,7 @@ ipipe_set_yuv422_conv_regs(void *__iomem base_addr,
} }
void void
ipipe_set_gbce_regs(void *__iomem base_addr, void *__iomem isp5_base_addr, ipipe_set_gbce_regs(void __iomem *base_addr, void __iomem *isp5_base_addr,
struct vpfe_ipipe_gbce *gbce) struct vpfe_ipipe_gbce *gbce)
{ {
unsigned int count; unsigned int count;
...@@ -906,7 +906,7 @@ ipipe_set_gbce_regs(void *__iomem base_addr, void *__iomem isp5_base_addr, ...@@ -906,7 +906,7 @@ ipipe_set_gbce_regs(void *__iomem base_addr, void *__iomem isp5_base_addr,
} }
void void
ipipe_set_ee_regs(void *__iomem base_addr, void *__iomem isp5_base_addr, ipipe_set_ee_regs(void __iomem *base_addr, void __iomem *isp5_base_addr,
struct vpfe_ipipe_yee *ee) struct vpfe_ipipe_yee *ee)
{ {
unsigned int count; unsigned int count;
...@@ -950,7 +950,7 @@ ipipe_set_ee_regs(void *__iomem base_addr, void *__iomem isp5_base_addr, ...@@ -950,7 +950,7 @@ ipipe_set_ee_regs(void *__iomem base_addr, void *__iomem isp5_base_addr,
} }
/* Chromatic Artifact Correction. CAR */ /* Chromatic Artifact Correction. CAR */
static void ipipe_set_mf(void *__iomem base_addr) static void ipipe_set_mf(void __iomem *base_addr)
{ {
/* typ to dynamic switch */ /* typ to dynamic switch */
regw_ip(base_addr, VPFE_IPIPE_CAR_DYN_SWITCH, CAR_TYP); regw_ip(base_addr, VPFE_IPIPE_CAR_DYN_SWITCH, CAR_TYP);
...@@ -959,7 +959,7 @@ static void ipipe_set_mf(void *__iomem base_addr) ...@@ -959,7 +959,7 @@ static void ipipe_set_mf(void *__iomem base_addr)
} }
static void static void
ipipe_set_gain_ctrl(void *__iomem base_addr, struct vpfe_ipipe_car *car) ipipe_set_gain_ctrl(void __iomem *base_addr, struct vpfe_ipipe_car *car)
{ {
regw_ip(base_addr, VPFE_IPIPE_CAR_CHR_GAIN_CTRL, CAR_TYP); regw_ip(base_addr, VPFE_IPIPE_CAR_CHR_GAIN_CTRL, CAR_TYP);
regw_ip(base_addr, car->hpf, CAR_HPF_TYP); regw_ip(base_addr, car->hpf, CAR_HPF_TYP);
...@@ -975,7 +975,7 @@ ipipe_set_gain_ctrl(void *__iomem base_addr, struct vpfe_ipipe_car *car) ...@@ -975,7 +975,7 @@ ipipe_set_gain_ctrl(void *__iomem base_addr, struct vpfe_ipipe_car *car)
CAR_GN2_MIN); CAR_GN2_MIN);
} }
void ipipe_set_car_regs(void *__iomem base_addr, struct vpfe_ipipe_car *car) void ipipe_set_car_regs(void __iomem *base_addr, struct vpfe_ipipe_car *car)
{ {
u32 val; u32 val;
...@@ -1010,7 +1010,7 @@ void ipipe_set_car_regs(void *__iomem base_addr, struct vpfe_ipipe_car *car) ...@@ -1010,7 +1010,7 @@ void ipipe_set_car_regs(void *__iomem base_addr, struct vpfe_ipipe_car *car)
} }
/* Chromatic Gain Suppression */ /* Chromatic Gain Suppression */
void ipipe_set_cgs_regs(void *__iomem base_addr, struct vpfe_ipipe_cgs *cgs) void ipipe_set_cgs_regs(void __iomem *base_addr, struct vpfe_ipipe_cgs *cgs)
{ {
ipipe_clock_enable(base_addr); ipipe_clock_enable(base_addr);
regw_ip(base_addr, cgs->en, CGS_EN); regw_ip(base_addr, cgs->en, CGS_EN);
...@@ -1025,12 +1025,12 @@ void ipipe_set_cgs_regs(void *__iomem base_addr, struct vpfe_ipipe_cgs *cgs) ...@@ -1025,12 +1025,12 @@ void ipipe_set_cgs_regs(void *__iomem base_addr, struct vpfe_ipipe_cgs *cgs)
regw_ip(base_addr, cgs->h_min, CGS_GN1_H_MIN); regw_ip(base_addr, cgs->h_min, CGS_GN1_H_MIN);
} }
void rsz_src_enable(void *__iomem rsz_base, int enable) void rsz_src_enable(void __iomem *rsz_base, int enable)
{ {
regw_rsz(rsz_base, enable, RSZ_SRC_EN); regw_rsz(rsz_base, enable, RSZ_SRC_EN);
} }
int rsz_enable(void *__iomem rsz_base, int rsz_id, int enable) int rsz_enable(void __iomem *rsz_base, int rsz_id, int enable)
{ {
if (rsz_id == RSZ_A) { if (rsz_id == RSZ_A) {
regw_rsz(rsz_base, enable, RSZ_EN_A); regw_rsz(rsz_base, enable, RSZ_EN_A);
......
...@@ -490,29 +490,29 @@ ...@@ -490,29 +490,29 @@
#define RSZ_RGB_TYP_SHIFT 0 #define RSZ_RGB_TYP_SHIFT 0
#define RSZ_RGB_ALPHA_MASK 0xff #define RSZ_RGB_ALPHA_MASK 0xff
static inline u32 regr_ip(void *__iomem addr, u32 offset) static inline u32 regr_ip(void __iomem *addr, u32 offset)
{ {
return readl(addr + offset); return readl(addr + offset);
} }
static inline void regw_ip(void *__iomem addr, u32 val, u32 offset) static inline void regw_ip(void __iomem *addr, u32 val, u32 offset)
{ {
writel(val, addr + offset); writel(val, addr + offset);
} }
static inline u32 w_ip_table(void *__iomem addr, u32 val, u32 offset) static inline u32 w_ip_table(void __iomem *addr, u32 val, u32 offset)
{ {
writel(val, addr + offset); writel(val, addr + offset);
return val; return val;
} }
static inline u32 regr_rsz(void *__iomem addr, u32 offset) static inline u32 regr_rsz(void __iomem *addr, u32 offset)
{ {
return readl(addr + offset); return readl(addr + offset);
} }
static inline u32 regw_rsz(void *__iomem addr, u32 val, u32 offset) static inline u32 regw_rsz(void __iomem *addr, u32 val, u32 offset)
{ {
writel(val, addr + offset); writel(val, addr + offset);
...@@ -520,39 +520,39 @@ static inline u32 regw_rsz(void *__iomem addr, u32 val, u32 offset) ...@@ -520,39 +520,39 @@ static inline u32 regw_rsz(void *__iomem addr, u32 val, u32 offset)
} }
int config_ipipe_hw(struct vpfe_ipipe_device *ipipe); int config_ipipe_hw(struct vpfe_ipipe_device *ipipe);
int resizer_set_outaddr(void *__iomem rsz_base, struct resizer_params *params, int resizer_set_outaddr(void __iomem *rsz_base, struct resizer_params *params,
int resize_no, unsigned int address); int resize_no, unsigned int address);
int rsz_enable(void *__iomem rsz_base, int rsz_id, int enable); int rsz_enable(void __iomem *rsz_base, int rsz_id, int enable);
void rsz_src_enable(void *__iomem rsz_base, int enable); void rsz_src_enable(void __iomem *rsz_base, int enable);
void rsz_set_in_pix_format(unsigned char y_c); void rsz_set_in_pix_format(unsigned char y_c);
int config_rsz_hw(struct vpfe_resizer_device *resizer, int config_rsz_hw(struct vpfe_resizer_device *resizer,
struct resizer_params *config); struct resizer_params *config);
void ipipe_set_d2f_regs(void *__iomem base_addr, unsigned int id, void ipipe_set_d2f_regs(void __iomem *base_addr, unsigned int id,
struct vpfe_ipipe_nf *noise_filter); struct vpfe_ipipe_nf *noise_filter);
void ipipe_set_rgb2rgb_regs(void *__iomem base_addr, unsigned int id, void ipipe_set_rgb2rgb_regs(void __iomem *base_addr, unsigned int id,
struct vpfe_ipipe_rgb2rgb *rgb); struct vpfe_ipipe_rgb2rgb *rgb);
void ipipe_set_yuv422_conv_regs(void *__iomem base_addr, void ipipe_set_yuv422_conv_regs(void __iomem *base_addr,
struct vpfe_ipipe_yuv422_conv *conv); struct vpfe_ipipe_yuv422_conv *conv);
void ipipe_set_lum_adj_regs(void *__iomem base_addr, void ipipe_set_lum_adj_regs(void __iomem *base_addr,
struct ipipe_lum_adj *lum_adj); struct ipipe_lum_adj *lum_adj);
void ipipe_set_rgb2ycbcr_regs(void *__iomem base_addr, void ipipe_set_rgb2ycbcr_regs(void __iomem *base_addr,
struct vpfe_ipipe_rgb2yuv *yuv); struct vpfe_ipipe_rgb2yuv *yuv);
void ipipe_set_lutdpc_regs(void *__iomem base_addr, void ipipe_set_lutdpc_regs(void __iomem *base_addr,
void *__iomem isp5_base_addr, struct vpfe_ipipe_lutdpc *lutdpc); void __iomem *isp5_base_addr, struct vpfe_ipipe_lutdpc *lutdpc);
void ipipe_set_otfdpc_regs(void *__iomem base_addr, void ipipe_set_otfdpc_regs(void __iomem *base_addr,
struct vpfe_ipipe_otfdpc *otfdpc); struct vpfe_ipipe_otfdpc *otfdpc);
void ipipe_set_3d_lut_regs(void *__iomem base_addr, void ipipe_set_3d_lut_regs(void __iomem *base_addr,
void *__iomem isp5_base_addr, struct vpfe_ipipe_3d_lut *lut_3d); void __iomem *isp5_base_addr, struct vpfe_ipipe_3d_lut *lut_3d);
void ipipe_set_gamma_regs(void *__iomem base_addr, void ipipe_set_gamma_regs(void __iomem *base_addr,
void *__iomem isp5_base_addr, struct vpfe_ipipe_gamma *gamma); void __iomem *isp5_base_addr, struct vpfe_ipipe_gamma *gamma);
void ipipe_set_ee_regs(void *__iomem base_addr, void ipipe_set_ee_regs(void __iomem *base_addr,
void *__iomem isp5_base_addr, struct vpfe_ipipe_yee *ee); void __iomem *isp5_base_addr, struct vpfe_ipipe_yee *ee);
void ipipe_set_gbce_regs(void *__iomem base_addr, void ipipe_set_gbce_regs(void __iomem *base_addr,
void *__iomem isp5_base_addr, struct vpfe_ipipe_gbce *gbce); void __iomem *isp5_base_addr, struct vpfe_ipipe_gbce *gbce);
void ipipe_set_gic_regs(void *__iomem base_addr, struct vpfe_ipipe_gic *gic); void ipipe_set_gic_regs(void __iomem *base_addr, struct vpfe_ipipe_gic *gic);
void ipipe_set_cfa_regs(void *__iomem base_addr, struct vpfe_ipipe_cfa *cfa); void ipipe_set_cfa_regs(void __iomem *base_addr, struct vpfe_ipipe_cfa *cfa);
void ipipe_set_car_regs(void *__iomem base_addr, struct vpfe_ipipe_car *car); void ipipe_set_car_regs(void __iomem *base_addr, struct vpfe_ipipe_car *car);
void ipipe_set_cgs_regs(void *__iomem base_addr, struct vpfe_ipipe_cgs *cgs); void ipipe_set_cgs_regs(void __iomem *base_addr, struct vpfe_ipipe_cgs *cgs);
void ipipe_set_wb_regs(void *__iomem base_addr, struct vpfe_ipipe_wb *wb); void ipipe_set_wb_regs(void __iomem *base_addr, struct vpfe_ipipe_wb *wb);
#endif /* _DAVINCI_VPFE_DM365_IPIPE_HW_H */ #endif /* _DAVINCI_VPFE_DM365_IPIPE_HW_H */
...@@ -134,7 +134,7 @@ struct vpfe_ipipeif_device { ...@@ -134,7 +134,7 @@ struct vpfe_ipipeif_device {
unsigned int output; unsigned int output;
struct vpfe_video_device video_in; struct vpfe_video_device video_in;
struct v4l2_ctrl_handler ctrls; struct v4l2_ctrl_handler ctrls;
void *__iomem ipipeif_base_addr; void __iomem *ipipeif_base_addr;
struct ipipeif_params config; struct ipipeif_params config;
int dpcm_predictor; int dpcm_predictor;
int gain; int gain;
......
...@@ -70,17 +70,17 @@ static const u32 isif_srggb_pattern = ...@@ -70,17 +70,17 @@ static const u32 isif_srggb_pattern =
ISIF_COLPTN_Gb_G << ISIF_CCOLP_CP15_4 | ISIF_COLPTN_Gb_G << ISIF_CCOLP_CP15_4 |
ISIF_COLPTN_B_Mg << ISIF_CCOLP_CP17_6; ISIF_COLPTN_B_Mg << ISIF_CCOLP_CP17_6;
static inline u32 isif_read(void *__iomem base_addr, u32 offset) static inline u32 isif_read(void __iomem *base_addr, u32 offset)
{ {
return readl(base_addr + offset); return readl(base_addr + offset);
} }
static inline void isif_write(void *__iomem base_addr, u32 val, u32 offset) static inline void isif_write(void __iomem *base_addr, u32 val, u32 offset)
{ {
writel(val, base_addr + offset); writel(val, base_addr + offset);
} }
static inline u32 isif_merge(void *__iomem base_addr, u32 mask, u32 val, static inline u32 isif_merge(void __iomem *base_addr, u32 mask, u32 val,
u32 offset) u32 offset)
{ {
u32 new_val = (isif_read(base_addr, offset) & ~mask) | (val & mask); u32 new_val = (isif_read(base_addr, offset) & ~mask) | (val & mask);
...@@ -646,7 +646,7 @@ static void isif_config_gain_offset(struct vpfe_isif_device *isif) ...@@ -646,7 +646,7 @@ static void isif_config_gain_offset(struct vpfe_isif_device *isif)
{ {
struct vpfe_isif_gain_offsets_adj *gain_off_ptr = struct vpfe_isif_gain_offsets_adj *gain_off_ptr =
&isif->isif_cfg.bayer.config_params.gain_offset; &isif->isif_cfg.bayer.config_params.gain_offset;
void *__iomem base = isif->isif_cfg.base_addr; void __iomem *base = isif->isif_cfg.base_addr;
u32 val; u32 val;
val = ((gain_off_ptr->gain_sdram_en & 1) << GAIN_SDRAM_EN_SHIFT) | val = ((gain_off_ptr->gain_sdram_en & 1) << GAIN_SDRAM_EN_SHIFT) |
...@@ -1991,7 +1991,7 @@ int vpfe_isif_init(struct vpfe_isif_device *isif, struct platform_device *pdev) ...@@ -1991,7 +1991,7 @@ int vpfe_isif_init(struct vpfe_isif_device *isif, struct platform_device *pdev)
struct media_entity *me = &sd->entity; struct media_entity *me = &sd->entity;
static resource_size_t res_len; static resource_size_t res_len;
struct resource *res; struct resource *res;
void *__iomem addr; void __iomem *addr;
int status; int status;
int i = 0; int i = 0;
......
...@@ -159,9 +159,9 @@ struct isif_oper_config { ...@@ -159,9 +159,9 @@ struct isif_oper_config {
struct isif_params_raw bayer; struct isif_params_raw bayer;
enum isif_data_pack data_pack; enum isif_data_pack data_pack;
struct isif_gain_values isif_gain_params; struct isif_gain_values isif_gain_params;
void *__iomem base_addr; void __iomem *base_addr;
void *__iomem linear_tbl0_addr; void __iomem *linear_tbl0_addr;
void *__iomem linear_tbl1_addr; void __iomem *linear_tbl1_addr;
}; };
#define ISIF_PAD_SINK 0 #define ISIF_PAD_SINK 0
......
...@@ -228,7 +228,7 @@ struct vpfe_resizer_device { ...@@ -228,7 +228,7 @@ struct vpfe_resizer_device {
struct dm365_resizer_device resizer_a; struct dm365_resizer_device resizer_a;
struct dm365_resizer_device resizer_b; struct dm365_resizer_device resizer_b;
struct resizer_params config; struct resizer_params config;
void *__iomem base_addr; void __iomem *base_addr;
}; };
int vpfe_resizer_init(struct vpfe_resizer_device *vpfe_rsz, int vpfe_resizer_init(struct vpfe_resizer_device *vpfe_rsz,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment