tp5150 driver for x210ii developer Board(waveshare)

haseebzahid
Hi
    i am working on x210ii developer board and for 2 days i am trying to
get TVP5150AM1 in working condition with the developer board
but i am stuck
i added the driver for tvp5150 from make menuconfig
the modlue is connected to i2c1.
driver file tvp5150.c was in kernel/driver/media/video/ folder
i added thse lines to mach-x210.c file

#ifdef CONFIG_VIDEO_TVP5150
static struct TVP5150_platform_data tvp5150_plat =
{
  .default_width   = 720,
  .default_height  = 480,
  .pixelformat     = V4L2_PIX_FMT_YUYV,
  .freq            = 40000000,
  .is_mipi         = 0,
};

static struct i2c_board_info  tvp5150_i2c_info =
{
  I2C_BOARD_INFO("tvp5150", 0xB8>>1),
  .platform_data = &tvp5150_plat,
};


static struct s3c_platform_camera tvp5150 =
{
  .id           = CAMERA_PAR_A,
  .type         = CAM_TYPE_ITU,
  .fmt          = ITU_656_YCBCR422_8BIT,
  .order422     = CAM_ORDER422_8BIT_YCBYCR,
  .i2c_busnum   = 1,
  .info         = &tvp5150_i2c_info,
  .pixelformat  = V4L2_PIX_FMT_YUYV,
  .srclk_name   = "mout_mpll",
  .clk_name     = "sclk_cam1",
  .clk_rate     = 14318180,
  .line_length  = 720,
  .width        = 720,
  .height       = 480,
  .window       =
  {
    .left   = 0,
    .top    = 0,
    .width  = 720,
    .height = 480,
  },

  // Polarity
  .inv_pclk     = 0,
  .inv_vsync    = 1,
  .inv_href     = 0,
  .inv_hsync    = 0,
  .initialized  = 0,
  
};
#endif

and these lines


in
/* Interface setting */
static struct s3c_platform_fimc fimc_plat_lsi = {
..
.
.
#ifdef CONFIG_VIDEO_TVP5150
                        &tvp5150,
#endif
}

after kernel is compiled i dont get the driver get probed when booting but
it does get probed when i launch camera app but after then its not getting
initialized and it is stuck there can anyone guide me how can i port the
decoder properly i really got no idea how to proceed.