diff mbox series

media: ov08x40: Add quirk infrastructure to enable conditional changes

Message ID 20231006073833.2727056-1-jason.z.chen@intel.com (mailing list archive)
State New, archived
Headers show
Series media: ov08x40: Add quirk infrastructure to enable conditional changes | expand

Commit Message

Chen, Jason Z Oct. 6, 2023, 7:38 a.m. UTC
From: Jason Chen <jason.z.chen@intel.com>

Due to certain MIPI hardware designs using overly long cables, there
is a loss of signal strength, resulting in failed signal integration.
The patch includes changes to adjust the driving strength in the register
settings for a specific project.
Add a quirk infrastructure to distinguish these hardware changes

Signed-off-by: Jason Chen <jason.z.chen@intel.com>
---
 drivers/media/i2c/ov08x40.c | 1754 ++++++++++++++++++++++++++++++++++-
 1 file changed, 1732 insertions(+), 22 deletions(-)

Comments

Kieran Bingham Oct. 7, 2023, 11:24 a.m. UTC | #1
Hi Jason,

Quoting Chen, Jason Z (2023-10-06 08:38:33)
> From: Jason Chen <jason.z.chen@intel.com>
> 
> Due to certain MIPI hardware designs using overly long cables, there
> is a loss of signal strength, resulting in failed signal integration.
> The patch includes changes to adjust the driving strength in the register
> settings for a specific project.
> Add a quirk infrastructure to distinguish these hardware changes
> 
> Signed-off-by: Jason Chen <jason.z.chen@intel.com>
> ---
>  drivers/media/i2c/ov08x40.c | 1754 ++++++++++++++++++++++++++++++++++-
>  1 file changed, 1732 insertions(+), 22 deletions(-)
> 
> diff --git a/drivers/media/i2c/ov08x40.c b/drivers/media/i2c/ov08x40.c
> index acf6799d7fa..82a426a3ab6 100644
> --- a/drivers/media/i2c/ov08x40.c
> +++ b/drivers/media/i2c/ov08x40.c
> @@ -9,6 +9,7 @@
>  #include <media/v4l2-ctrls.h>
>  #include <media/v4l2-device.h>
>  #include <media/v4l2-fwnode.h>
> +#include <linux/dmi.h>
>  
>  #define OV08X40_REG_VALUE_08BIT                1
>  #define OV08X40_REG_VALUE_16BIT                2
> @@ -99,6 +100,12 @@ enum {
>         OV08X40_LINK_FREQ_400MHZ_INDEX,
>  };
>  
> +enum {
> +       QUIRK_DEFAULT,
> +       QUIRK_SCREEBO,
> +       // Add more quirks here if needed

This comment seems to be a bit redundant. Also I don't think the //
comment style is accepted as code style in this form.

> +};
> +
>  struct ov08x40_reg {
>         u16 address;
>         u8 val;
> @@ -140,27 +147,1692 @@ struct ov08x40_mode {
>         u16 exposure_shift;
>  };
>  
> -static const struct ov08x40_reg mipi_data_rate_800mbps[] = {
> -       {0x0103, 0x01},
> -       {0x1000, 0x00},
> -       {0x1601, 0xd0},
> -       {0x1001, 0x04},
> -       {0x5004, 0x53},
> -       {0x5110, 0x00},
> -       {0x5111, 0x14},
> -       {0x5112, 0x01},
> -       {0x5113, 0x7b},
> -       {0x5114, 0x00},
> -       {0x5152, 0xa3},
> -       {0x5a52, 0x1f},
> -       {0x5a1a, 0x0e},
> -       {0x5a1b, 0x10},
> -       {0x5a1f, 0x0e},
> -       {0x5a27, 0x0e},
> -       {0x6002, 0x2e},
> -};
> +static const struct ov08x40_reg mipi_data_rate_800mbps[] = {
> +       {0x0103, 0x01},
> +       {0x1000, 0x00},
> +       {0x1601, 0xd0},
> +       {0x1001, 0x04},
> +       {0x5004, 0x53},
> +       {0x5110, 0x00},
> +       {0x5111, 0x14},
> +       {0x5112, 0x01},
> +       {0x5113, 0x7b},
> +       {0x5114, 0x00},
> +       {0x5152, 0xa3},
> +       {0x5a52, 0x1f},
> +       {0x5a1a, 0x0e},
> +       {0x5a1b, 0x10},
> +       {0x5a1f, 0x0e},
> +       {0x5a27, 0x0e},
> +       {0x6002, 0x2e},
> +};
> +
> +static const struct ov08x40_reg mode_3856x2416_regs[] = {

Do we really need to duplicate the entire mode table to set 4 additional
registers?



> +       {0x5000, 0x5d},
> +       {0x5001, 0x20},
> +       {0x5008, 0xb0},
> +       {0x50c1, 0x00},
> +       {0x53c1, 0x00},
> +       {0x5f40, 0x00},
> +       {0x5f41, 0x40},
> +       {0x0300, 0x3a},
> +       {0x0301, 0xc8},
> +       {0x0302, 0x31},
> +       {0x0303, 0x03},
> +       {0x0304, 0x01},
> +       {0x0305, 0xa1},
> +       {0x0306, 0x04},
> +       {0x0307, 0x01},
> +       {0x0308, 0x03},
> +       {0x0309, 0x03},
> +       {0x0310, 0x0a},
> +       {0x0311, 0x02},
> +       {0x0312, 0x01},
> +       {0x0313, 0x08},
> +       {0x0314, 0x66},
> +       {0x0315, 0x00},
> +       {0x0316, 0x34},
> +       {0x0320, 0x02},
> +       {0x0321, 0x03},
> +       {0x0323, 0x05},
> +       {0x0324, 0x01},
> +       {0x0325, 0xb8},
> +       {0x0326, 0x4a},
> +       {0x0327, 0x04},
> +       {0x0329, 0x00},
> +       {0x032a, 0x05},
> +       {0x032b, 0x00},
> +       {0x032c, 0x00},
> +       {0x032d, 0x00},
> +       {0x032e, 0x02},
> +       {0x032f, 0xa0},
> +       {0x0350, 0x00},
> +       {0x0360, 0x01},
> +       {0x1216, 0x60},
> +       {0x1217, 0x5b},
> +       {0x1218, 0x00},
> +       {0x1220, 0x24},
> +       {0x198a, 0x00},
> +       {0x198b, 0x01},
> +       {0x198e, 0x00},
> +       {0x198f, 0x01},
> +       {0x3009, 0x04},
> +       {0x3012, 0x41},
> +       {0x3015, 0x00},
> +       {0x3016, 0xb0},
> +       {0x3017, 0xf0},
> +       {0x3018, 0xf0},
> +       {0x3019, 0xd2},
> +       {0x301a, 0xb0},
> +       {0x301c, 0x81},
> +       {0x301d, 0x02},
> +       {0x301e, 0x80},
> +       {0x3022, 0xf0},
> +       {0x3025, 0x89},
> +       {0x3030, 0x03},
> +       {0x3044, 0xc2},
> +       {0x3050, 0x35},
> +       {0x3051, 0x60},
> +       {0x3052, 0x25},
> +       {0x3053, 0x00},
> +       {0x3054, 0x00},
> +       {0x3055, 0x02},
> +       {0x3056, 0x80},
> +       {0x3057, 0x80},
> +       {0x3058, 0x80},
> +       {0x3059, 0x00},
> +       {0x3107, 0x86},
> +       {0x3400, 0x1c},
> +       {0x3401, 0x80},
> +       {0x3402, 0x8c},
> +       {0x3419, 0x13},
> +       {0x341a, 0x89},
> +       {0x341b, 0x30},
> +       {0x3420, 0x00},
> +       {0x3421, 0x00},
> +       {0x3422, 0x00},
> +       {0x3423, 0x00},
> +       {0x3424, 0x00},
> +       {0x3425, 0x00},
> +       {0x3426, 0x00},
> +       {0x3427, 0x00},
> +       {0x3428, 0x0f},
> +       {0x3429, 0x00},
> +       {0x342a, 0x00},
> +       {0x342b, 0x00},
> +       {0x342c, 0x00},
> +       {0x342d, 0x00},
> +       {0x342e, 0x00},
> +       {0x342f, 0x11},
> +       {0x3430, 0x11},
> +       {0x3431, 0x10},
> +       {0x3432, 0x00},
> +       {0x3433, 0x00},
> +       {0x3434, 0x00},
> +       {0x3435, 0x00},
> +       {0x3436, 0x00},
> +       {0x3437, 0x00},
> +       {0x3442, 0x02},
> +       {0x3443, 0x02},
> +       {0x3444, 0x07},
> +       {0x3450, 0x00},
> +       {0x3451, 0x00},
> +       {0x3452, 0x18},
> +       {0x3453, 0x18},
> +       {0x3454, 0x00},
> +       {0x3455, 0x80},
> +       {0x3456, 0x08},
> +       {0x3500, 0x00},
> +       {0x3501, 0x02},
> +       {0x3502, 0x00},
> +       {0x3504, 0x4c},
> +       {0x3506, 0x30},
> +       {0x3507, 0x00},
> +       {0x3508, 0x01},
> +       {0x3509, 0x00},
> +       {0x350a, 0x01},
> +       {0x350b, 0x00},
> +       {0x350c, 0x00},
> +       {0x3540, 0x00},
> +       {0x3541, 0x01},
> +       {0x3542, 0x00},
> +       {0x3544, 0x4c},
> +       {0x3546, 0x30},
> +       {0x3547, 0x00},
> +       {0x3548, 0x01},
> +       {0x3549, 0x00},
> +       {0x354a, 0x01},
> +       {0x354b, 0x00},
> +       {0x354c, 0x00},
> +       {0x3688, 0x02},
> +       {0x368a, 0x2e},
> +       {0x368e, 0x71},
> +       {0x3696, 0xd1},
> +       {0x3699, 0x00},
> +       {0x369a, 0x00},
> +       {0x36a4, 0x00},
> +       {0x36a6, 0x00},
> +       {0x3711, 0x00},
> +       {0x3712, 0x51},
> +       {0x3713, 0x00},
> +       {0x3714, 0x24},
> +       {0x3716, 0x00},
> +       {0x3718, 0x07},
> +       {0x371a, 0x1c},
> +       {0x371b, 0x00},
> +       {0x3720, 0x08},
> +       {0x3725, 0x32},
> +       {0x3727, 0x05},
> +       {0x3760, 0x02},
> +       {0x3761, 0x17},
> +       {0x3762, 0x02},
> +       {0x3763, 0x02},
> +       {0x3764, 0x02},
> +       {0x3765, 0x2c},
> +       {0x3766, 0x04},
> +       {0x3767, 0x2c},
> +       {0x3768, 0x02},
> +       {0x3769, 0x00},
> +       {0x376b, 0x20},
> +       {0x376e, 0x03},
> +       {0x37b0, 0x00},
> +       {0x37b1, 0xab},
> +       {0x37b2, 0x01},
> +       {0x37b3, 0x82},
> +       {0x37b4, 0x00},
> +       {0x37b5, 0xe4},
> +       {0x37b6, 0x01},
> +       {0x37b7, 0xee},
> +       {0x3800, 0x00},
> +       {0x3801, 0x00},
> +       {0x3802, 0x00},
> +       {0x3803, 0x00},
> +       {0x3804, 0x0f},
> +       {0x3805, 0x1f},
> +       {0x3806, 0x09},
> +       {0x3807, 0x7f},
> +       {0x3808, 0x0f},
> +       {0x3809, 0x10},
> +       {0x380a, 0x09},
> +       {0x380b, 0x70},
> +       {0x380c, 0x02},
> +       {0x380d, 0x80},
> +       {0x380e, 0x13},
> +       {0x380f, 0x88},
> +       {0x3810, 0x00},
> +       {0x3811, 0x08},
> +       {0x3812, 0x00},
> +       {0x3813, 0x07},
> +       {0x3814, 0x11},
> +       {0x3815, 0x11},
> +       {0x3820, 0x00},
> +       {0x3821, 0x04},
> +       {0x3822, 0x00},
> +       {0x3823, 0x04},
> +       {0x3828, 0x0f},
> +       {0x382a, 0x80},
> +       {0x382e, 0x41},
> +       {0x3837, 0x08},
> +       {0x383a, 0x81},
> +       {0x383b, 0x81},
> +       {0x383c, 0x11},
> +       {0x383d, 0x11},
> +       {0x383e, 0x00},
> +       {0x383f, 0x38},
> +       {0x3840, 0x00},
> +       {0x3847, 0x00},
> +       {0x384a, 0x00},
> +       {0x384c, 0x02},
> +       {0x384d, 0x80},
> +       {0x3856, 0x50},
> +       {0x3857, 0x30},
> +       {0x3858, 0x80},
> +       {0x3859, 0x40},
> +       {0x3860, 0x00},
> +       {0x3888, 0x00},
> +       {0x3889, 0x00},
> +       {0x388a, 0x00},
> +       {0x388b, 0x00},
> +       {0x388c, 0x00},
> +       {0x388d, 0x00},
> +       {0x388e, 0x00},
> +       {0x388f, 0x00},
> +       {0x3894, 0x00},
> +       {0x3895, 0x00},
> +       {0x3c84, 0x00},
> +       {0x3d85, 0x8b},
> +       {0x3daa, 0x80},
> +       {0x3dab, 0x14},
> +       {0x3dac, 0x80},
> +       {0x3dad, 0xc8},
> +       {0x3dae, 0x81},
> +       {0x3daf, 0x7b},
> +       {0x3f00, 0x10},
> +       {0x3f01, 0x11},
> +       {0x3f06, 0x0d},
> +       {0x3f07, 0x0b},
> +       {0x3f08, 0x0d},
> +       {0x3f09, 0x0b},
> +       {0x3f0a, 0x01},
> +       {0x3f0b, 0x11},
> +       {0x3f0c, 0x33},
> +       {0x4001, 0x07},
> +       {0x4007, 0x20},
> +       {0x4008, 0x00},
> +       {0x4009, 0x05},
> +       {0x400a, 0x00},
> +       {0x400b, 0x08},
> +       {0x400c, 0x00},
> +       {0x400d, 0x08},
> +       {0x400e, 0x14},
> +       {0x4010, 0xf4},
> +       {0x4011, 0x03},
> +       {0x4012, 0x55},
> +       {0x4015, 0x00},
> +       {0x4016, 0x2d},
> +       {0x4017, 0x00},
> +       {0x4018, 0x0f},
> +       {0x401b, 0x08},
> +       {0x401c, 0x00},
> +       {0x401d, 0x10},
> +       {0x401e, 0x02},
> +       {0x401f, 0x00},
> +       {0x4050, 0x06},
> +       {0x4051, 0xff},
> +       {0x4052, 0xff},
> +       {0x4053, 0xff},
> +       {0x4054, 0xff},
> +       {0x4055, 0xff},
> +       {0x4056, 0xff},
> +       {0x4057, 0x7f},
> +       {0x4058, 0x00},
> +       {0x4059, 0x00},
> +       {0x405a, 0x00},
> +       {0x405b, 0x00},
> +       {0x405c, 0x07},
> +       {0x405d, 0xff},
> +       {0x405e, 0x07},
> +       {0x405f, 0xff},
> +       {0x4080, 0x78},
> +       {0x4081, 0x78},
> +       {0x4082, 0x78},
> +       {0x4083, 0x78},
> +       {0x4019, 0x00},
> +       {0x401a, 0x40},
> +       {0x4020, 0x04},
> +       {0x4021, 0x00},
> +       {0x4022, 0x04},
> +       {0x4023, 0x00},
> +       {0x4024, 0x04},
> +       {0x4025, 0x00},
> +       {0x4026, 0x04},
> +       {0x4027, 0x00},
> +       {0x4030, 0x00},
> +       {0x4031, 0x00},
> +       {0x4032, 0x00},
> +       {0x4033, 0x00},
> +       {0x4034, 0x00},
> +       {0x4035, 0x00},
> +       {0x4036, 0x00},
> +       {0x4037, 0x00},
> +       {0x4040, 0x00},
> +       {0x4041, 0x80},
> +       {0x4042, 0x00},
> +       {0x4043, 0x80},
> +       {0x4044, 0x00},
> +       {0x4045, 0x80},
> +       {0x4046, 0x00},
> +       {0x4047, 0x80},
> +       {0x4060, 0x00},
> +       {0x4061, 0x00},
> +       {0x4062, 0x00},
> +       {0x4063, 0x00},
> +       {0x4064, 0x00},
> +       {0x4065, 0x00},
> +       {0x4066, 0x00},
> +       {0x4067, 0x00},
> +       {0x4068, 0x00},
> +       {0x4069, 0x00},
> +       {0x406a, 0x00},
> +       {0x406b, 0x00},
> +       {0x406c, 0x00},
> +       {0x406d, 0x00},
> +       {0x406e, 0x00},
> +       {0x406f, 0x00},
> +       {0x4070, 0x00},
> +       {0x4071, 0x00},
> +       {0x4072, 0x00},
> +       {0x4073, 0x00},
> +       {0x4074, 0x00},
> +       {0x4075, 0x00},
> +       {0x4076, 0x00},
> +       {0x4077, 0x00},
> +       {0x4078, 0x00},
> +       {0x4079, 0x00},
> +       {0x407a, 0x00},
> +       {0x407b, 0x00},
> +       {0x407c, 0x00},
> +       {0x407d, 0x00},
> +       {0x407e, 0x00},
> +       {0x407f, 0x00},
> +       {0x40e0, 0x00},
> +       {0x40e1, 0x00},
> +       {0x40e2, 0x00},
> +       {0x40e3, 0x00},
> +       {0x40e4, 0x00},
> +       {0x40e5, 0x00},
> +       {0x40e6, 0x00},
> +       {0x40e7, 0x00},
> +       {0x40e8, 0x00},
> +       {0x40e9, 0x80},
> +       {0x40ea, 0x00},
> +       {0x40eb, 0x80},
> +       {0x40ec, 0x00},
> +       {0x40ed, 0x80},
> +       {0x40ee, 0x00},
> +       {0x40ef, 0x80},
> +       {0x40f0, 0x02},
> +       {0x40f1, 0x04},
> +       {0x4300, 0x00},
> +       {0x4301, 0x00},
> +       {0x4302, 0x00},
> +       {0x4303, 0x00},
> +       {0x4304, 0x00},
> +       {0x4305, 0x00},
> +       {0x4306, 0x00},
> +       {0x4307, 0x00},
> +       {0x4308, 0x00},
> +       {0x4309, 0x00},
> +       {0x430a, 0x00},
> +       {0x430b, 0xff},
> +       {0x430c, 0xff},
> +       {0x430d, 0x00},
> +       {0x430e, 0x00},
> +       {0x4315, 0x00},
> +       {0x4316, 0x00},
> +       {0x4317, 0x00},
> +       {0x4318, 0x00},
> +       {0x4319, 0x00},
> +       {0x431a, 0x00},
> +       {0x431b, 0x00},
> +       {0x431c, 0x00},
> +       {0x4500, 0x07},
> +       {0x4501, 0x00},
> +       {0x4502, 0x00},
> +       {0x4503, 0x0f},
> +       {0x4504, 0x80},
> +       {0x4506, 0x01},
> +       {0x4509, 0x05},
> +       {0x450c, 0x00},
> +       {0x450d, 0x20},
> +       {0x450e, 0x00},
> +       {0x450f, 0x00},
> +       {0x4510, 0x00},
> +       {0x4523, 0x00},
> +       {0x4526, 0x00},
> +       {0x4542, 0x00},
> +       {0x4543, 0x00},
> +       {0x4544, 0x00},
> +       {0x4545, 0x00},
> +       {0x4546, 0x00},
> +       {0x4547, 0x10},
> +       {0x4602, 0x00},
> +       {0x4603, 0x15},
> +       {0x460b, 0x07},
> +       {0x4680, 0x11},
> +       {0x4686, 0x00},
> +       {0x4687, 0x00},
> +       {0x4700, 0x00},
> +       {0x4800, 0x64},
> +       {0x4806, 0x40},
> +       {0x480b, 0x10},
> +       {0x480c, 0x80},
> +       {0x480f, 0x32},
> +       {0x4813, 0xe4},
> +       {0x4837, 0x14},
> +       {0x4850, 0x42},
> +       {0x4884, 0x04},
> +       {0x4c00, 0xf8},
> +       {0x4c01, 0x44},
> +       {0x4c03, 0x00},
> +       {0x4d00, 0x00},
> +       {0x4d01, 0x16},
> +       {0x4d04, 0x10},
> +       {0x4d05, 0x00},
> +       {0x4d06, 0x0c},
> +       {0x4d07, 0x00},
> +       {0x3d84, 0x04},
> +       {0x3680, 0xa4},
> +       {0x3682, 0x80},
> +       {0x3601, 0x40},
> +       {0x3602, 0x90},
> +       {0x3608, 0x0a},
> +       {0x3938, 0x09},
> +       {0x3a74, 0x84},
> +       {0x3a99, 0x84},
> +       {0x3ab9, 0xa6},
> +       {0x3aba, 0xba},
> +       {0x3b12, 0x84},
> +       {0x3b14, 0xbb},
> +       {0x3b15, 0xbf},
> +       {0x3a29, 0x26},
> +       {0x3a1f, 0x8a},
> +       {0x3a22, 0x91},
> +       {0x3a25, 0x96},
> +       {0x3a28, 0xb4},
> +       {0x3a2b, 0xba},
> +       {0x3a2e, 0xbf},
> +       {0x3a31, 0xc1},
> +       {0x3a20, 0x00},
> +       {0x3939, 0x9d},
> +       {0x3902, 0x0e},
> +       {0x3903, 0x0e},
> +       {0x3904, 0x0e},
> +       {0x3905, 0x0e},
> +       {0x3906, 0x07},
> +       {0x3907, 0x0d},
> +       {0x3908, 0x11},
> +       {0x3909, 0x12},
> +       {0x360f, 0x99},
> +       {0x390c, 0x33},
> +       {0x390d, 0x66},
> +       {0x390e, 0xaa},
> +       {0x3911, 0x90},
> +       {0x3913, 0x90},
> +       {0x3915, 0x90},
> +       {0x3917, 0x90},
> +       {0x3b3f, 0x9d},
> +       {0x3b45, 0x9d},
> +       {0x3b1b, 0xc9},
> +       {0x3b21, 0xc9},
> +       {0x3440, 0xa4},
> +       {0x3a23, 0x15},
> +       {0x3a26, 0x1d},
> +       {0x3a2c, 0x4a},
> +       {0x3a2f, 0x18},
> +       {0x3a32, 0x55},
> +       {0x3b0a, 0x01},
> +       {0x3b0b, 0x00},
> +       {0x3b0e, 0x01},
> +       {0x3b0f, 0x00},
> +       {0x392c, 0x02},
> +       {0x392d, 0x02},
> +       {0x392e, 0x04},
> +       {0x392f, 0x03},
> +       {0x3930, 0x08},
> +       {0x3931, 0x07},
> +       {0x3932, 0x10},
> +       {0x3933, 0x0c},
> +       {0x3609, 0x08},
> +       {0x3921, 0x0f},
> +       {0x3928, 0x15},
> +       {0x3929, 0x2a},
> +       {0x392a, 0x54},
> +       {0x392b, 0xa8},
> +       {0x3426, 0x10},
> +       {0x3407, 0x01},
> +       {0x3404, 0x01},
> +       {0x3500, 0x00},
> +       {0x3501, 0x10},
> +       {0x3502, 0x10},
> +       {0x3508, 0x0f},
> +       {0x3509, 0x80},
> +       {0x5a80, 0x75},
> +       {0x5a81, 0x75},
> +       {0x5a82, 0x75},
> +       {0x5a83, 0x75},
> +       {0x5a84, 0x75},
> +       {0x5a85, 0x75},
> +       {0x5a86, 0x75},
> +       {0x5a87, 0x75},
> +       {0x5a88, 0x75},
> +       {0x5a89, 0x75},
> +       {0x5a8a, 0x75},
> +       {0x5a8b, 0x75},
> +       {0x5a8c, 0x75},
> +       {0x5a8d, 0x75},
> +       {0x5a8e, 0x75},
> +       {0x5a8f, 0x75},
> +       {0x5a90, 0x75},
> +       {0x5a91, 0x75},
> +       {0x5a92, 0x75},
> +       {0x5a93, 0x75},
> +       {0x5a94, 0x75},
> +       {0x5a95, 0x75},
> +       {0x5a96, 0x75},
> +       {0x5a97, 0x75},
> +       {0x5a98, 0x75},
> +       {0x5a99, 0x75},
> +       {0x5a9a, 0x75},
> +       {0x5a9b, 0x75},
> +       {0x5a9c, 0x75},
> +       {0x5a9d, 0x75},
> +       {0x5a9e, 0x75},
> +       {0x5a9f, 0x75},
> +       {0x5aa0, 0x75},
> +       {0x5aa1, 0x75},
> +       {0x5aa2, 0x75},
> +       {0x5aa3, 0x75},
> +       {0x5aa4, 0x75},
> +       {0x5aa5, 0x75},
> +       {0x5aa6, 0x75},
> +       {0x5aa7, 0x75},
> +       {0x5aa8, 0x75},
> +       {0x5aa9, 0x75},
> +       {0x5aaa, 0x75},
> +       {0x5aab, 0x75},
> +       {0x5aac, 0x75},
> +       {0x5aad, 0x75},
> +       {0x5aae, 0x75},
> +       {0x5aaf, 0x75},
> +       {0x5ab0, 0x75},
> +       {0x5ab1, 0x75},
> +       {0x5ab2, 0x75},
> +       {0x5ab3, 0x75},
> +       {0x5ab4, 0x75},
> +       {0x5ab5, 0x75},
> +       {0x5ab6, 0x75},
> +       {0x5ab7, 0x75},
> +       {0x5ab8, 0x75},
> +       {0x5ab9, 0x75},
> +       {0x5aba, 0x75},
> +       {0x5abb, 0x75},
> +       {0x5abc, 0x75},
> +       {0x5abd, 0x75},
> +       {0x5abe, 0x75},
> +       {0x5abf, 0x75},
> +       {0x5ac0, 0x75},
> +       {0x5ac1, 0x75},
> +       {0x5ac2, 0x75},
> +       {0x5ac3, 0x75},
> +       {0x5ac4, 0x75},
> +       {0x5ac5, 0x75},
> +       {0x5ac6, 0x75},
> +       {0x5ac7, 0x75},
> +       {0x5ac8, 0x75},
> +       {0x5ac9, 0x75},
> +       {0x5aca, 0x75},
> +       {0x5acb, 0x75},
> +       {0x5acc, 0x75},
> +       {0x5acd, 0x75},
> +       {0x5ace, 0x75},
> +       {0x5acf, 0x75},
> +       {0x5ad0, 0x75},
> +       {0x5ad1, 0x75},
> +       {0x5ad2, 0x75},
> +       {0x5ad3, 0x75},
> +       {0x5ad4, 0x75},
> +       {0x5ad5, 0x75},
> +       {0x5ad6, 0x75},
> +       {0x5ad7, 0x75},
> +       {0x5ad8, 0x75},
> +       {0x5ad9, 0x75},
> +       {0x5ada, 0x75},
> +       {0x5adb, 0x75},
> +       {0x5adc, 0x75},
> +       {0x5add, 0x75},
> +       {0x5ade, 0x75},
> +       {0x5adf, 0x75},
> +       {0x5ae0, 0x75},
> +       {0x5ae1, 0x75},
> +       {0x5ae2, 0x75},
> +       {0x5ae3, 0x75},
> +       {0x5ae4, 0x75},
> +       {0x5ae5, 0x75},
> +       {0x5ae6, 0x75},
> +       {0x5ae7, 0x75},
> +       {0x5ae8, 0x75},
> +       {0x5ae9, 0x75},
> +       {0x5aea, 0x75},
> +       {0x5aeb, 0x75},
> +       {0x5aec, 0x75},
> +       {0x5aed, 0x75},
> +       {0x5aee, 0x75},
> +       {0x5aef, 0x75},
> +       {0x5af0, 0x75},
> +       {0x5af1, 0x75},
> +       {0x5af2, 0x75},
> +       {0x5af3, 0x75},
> +       {0x5af4, 0x75},
> +       {0x5af5, 0x75},
> +       {0x5af6, 0x75},
> +       {0x5af7, 0x75},
> +       {0x5af8, 0x75},
> +       {0x5af9, 0x75},
> +       {0x5afa, 0x75},
> +       {0x5afb, 0x75},
> +       {0x5afc, 0x75},
> +       {0x5afd, 0x75},
> +       {0x5afe, 0x75},
> +       {0x5aff, 0x75},
> +       {0x5b00, 0x75},
> +       {0x5b01, 0x75},
> +       {0x5b02, 0x75},
> +       {0x5b03, 0x75},
> +       {0x5b04, 0x75},
> +       {0x5b05, 0x75},
> +       {0x5b06, 0x75},
> +       {0x5b07, 0x75},
> +       {0x5b08, 0x75},
> +       {0x5b09, 0x75},
> +       {0x5b0a, 0x75},
> +       {0x5b0b, 0x75},
> +       {0x5b0c, 0x75},
> +       {0x5b0d, 0x75},
> +       {0x5b0e, 0x75},
> +       {0x5b0f, 0x75},
> +       {0x5b10, 0x75},
> +       {0x5b11, 0x75},
> +       {0x5b12, 0x75},
> +       {0x5b13, 0x75},
> +       {0x5b14, 0x75},
> +       {0x5b15, 0x75},
> +       {0x5b16, 0x75},
> +       {0x5b17, 0x75},
> +       {0x5b18, 0x75},
> +       {0x5b19, 0x75},
> +       {0x5b1a, 0x75},
> +       {0x5b1b, 0x75},
> +       {0x5b1c, 0x75},
> +       {0x5b1d, 0x75},
> +       {0x5b1e, 0x75},
> +       {0x5b1f, 0x75},
> +       {0x5b20, 0x75},
> +       {0x5b21, 0x75},
> +       {0x5b22, 0x75},
> +       {0x5b23, 0x75},
> +       {0x5b24, 0x75},
> +       {0x5b25, 0x75},
> +       {0x5b26, 0x75},
> +       {0x5b27, 0x75},
> +       {0x5b28, 0x75},
> +       {0x5b29, 0x75},
> +       {0x5b2a, 0x75},
> +       {0x5b2b, 0x75},
> +       {0x5b2c, 0x75},
> +       {0x5b2d, 0x75},
> +       {0x5b2e, 0x75},
> +       {0x5b2f, 0x75},
> +       {0x5b30, 0x75},
> +       {0x5b31, 0x75},
> +       {0x5b32, 0x75},
> +       {0x5b33, 0x75},
> +       {0x5b34, 0x75},
> +       {0x5b35, 0x75},
> +       {0x5b36, 0x75},
> +       {0x5b37, 0x75},
> +       {0x5b38, 0x75},
> +       {0x5b39, 0x75},
> +       {0x5b3a, 0x75},
> +       {0x5b3b, 0x75},
> +       {0x5b3c, 0x75},
> +       {0x5b3d, 0x75},
> +       {0x5b3e, 0x75},
> +       {0x5b3f, 0x75},
> +       {0x5b40, 0x75},
> +       {0x5b41, 0x75},
> +       {0x5b42, 0x75},
> +       {0x5b43, 0x75},
> +       {0x5b44, 0x75},
> +       {0x5b45, 0x75},
> +       {0x5b46, 0x75},
> +       {0x5b47, 0x75},
> +       {0x5b48, 0x75},
> +       {0x5b49, 0x75},
> +       {0x5b4a, 0x75},
> +       {0x5b4b, 0x75},
> +       {0x5b4c, 0x75},
> +       {0x5b4d, 0x75},
> +       {0x5b4e, 0x75},
> +       {0x5b4f, 0x75},
> +       {0x5b50, 0x75},
> +       {0x5b51, 0x75},
> +       {0x5b52, 0x75},
> +       {0x5b53, 0x75},
> +       {0x5b54, 0x75},
> +       {0x5b55, 0x75},
> +       {0x5b56, 0x75},
> +       {0x5b57, 0x75},
> +       {0x5b58, 0x75},
> +       {0x5b59, 0x75},
> +       {0x5b5a, 0x75},
> +       {0x5b5b, 0x75},
> +       {0x5b5c, 0x75},
> +       {0x5b5d, 0x75},
> +       {0x5b5e, 0x75},
> +       {0x5b5f, 0x75},
> +       {0x5b60, 0x75},
> +       {0x5b61, 0x75},
> +       {0x5b62, 0x75},
> +       {0x5b63, 0x75},
> +       {0x5b64, 0x75},
> +       {0x5b65, 0x75},
> +       {0x5b66, 0x75},
> +       {0x5b67, 0x75},
> +       {0x5b68, 0x75},
> +       {0x5b69, 0x75},
> +       {0x5b6a, 0x75},
> +       {0x5b6b, 0x75},
> +       {0x5b6c, 0x75},
> +       {0x5b6d, 0x75},
> +       {0x5b6e, 0x75},
> +       {0x5b6f, 0x75},
> +       {0x5b70, 0x75},
> +       {0x5b71, 0x75},
> +       {0x5b72, 0x75},
> +       {0x5b73, 0x75},
> +       {0x5b74, 0x75},
> +       {0x5b75, 0x75},
> +       {0x5b76, 0x75},
> +       {0x5b77, 0x75},
> +       {0x5b78, 0x75},
> +       {0x5b79, 0x75},
> +       {0x5b7a, 0x75},
> +       {0x5b7b, 0x75},
> +       {0x5b7c, 0x75},
> +       {0x5b7d, 0x75},
> +       {0x5b7e, 0x75},
> +       {0x5b7f, 0x75},
> +       {0x5b80, 0x75},
> +       {0x5b81, 0x75},
> +       {0x5b82, 0x75},
> +       {0x5b83, 0x75},
> +       {0x5b84, 0x75},
> +       {0x5b85, 0x75},
> +       {0x5b86, 0x75},
> +       {0x5b87, 0x75},
> +       {0x5b88, 0x75},
> +       {0x5b89, 0x75},
> +       {0x5b8a, 0x75},
> +       {0x5b8b, 0x75},
> +       {0x5b8c, 0x75},
> +       {0x5b8d, 0x75},
> +       {0x5b8e, 0x75},
> +       {0x5b8f, 0x75},
> +       {0x5b90, 0x75},
> +       {0x5b91, 0x75},
> +       {0x5b92, 0x75},
> +       {0x5b93, 0x75},
> +       {0x5b94, 0x75},
> +       {0x5b95, 0x75},
> +       {0x5b96, 0x75},
> +       {0x5b97, 0x75},
> +       {0x5b98, 0x75},
> +       {0x5b99, 0x75},
> +       {0x5b9a, 0x75},
> +       {0x5b9b, 0x75},
> +       {0x5b9c, 0x75},
> +       {0x5b9d, 0x75},
> +       {0x5b9e, 0x75},
> +       {0x5b9f, 0x75},
> +       {0x5bc0, 0x75},
> +       {0x5bc1, 0x75},
> +       {0x5bc2, 0x75},
> +       {0x5bc3, 0x75},
> +       {0x5bc4, 0x75},
> +       {0x5bc5, 0x75},
> +       {0x5bc6, 0x75},
> +       {0x5bc7, 0x75},
> +       {0x5bc8, 0x75},
> +       {0x5bc9, 0x75},
> +       {0x5bca, 0x75},
> +       {0x5bcb, 0x75},
> +       {0x5bcc, 0x75},
> +       {0x5bcd, 0x75},
> +       {0x5bce, 0x75},
> +       {0x5bcf, 0x75},
> +       {0x5bd0, 0x75},
> +       {0x5bd1, 0x75},
> +       {0x5bd2, 0x75},
> +       {0x5bd3, 0x75},
> +       {0x5bd4, 0x75},
> +       {0x5bd5, 0x75},
> +       {0x5bd6, 0x75},
> +       {0x5bd7, 0x75},
> +       {0x5bd8, 0x75},
> +       {0x5bd9, 0x75},
> +       {0x5bda, 0x75},
> +       {0x5bdb, 0x75},
> +       {0x5bdc, 0x75},
> +       {0x5bdd, 0x75},
> +       {0x5bde, 0x75},
> +       {0x5bdf, 0x75},
> +       {0x5be0, 0x75},
> +       {0x5be1, 0x75},
> +       {0x5be2, 0x75},
> +       {0x5be3, 0x75},
> +       {0x5be4, 0x75},
> +       {0x5be5, 0x75},
> +       {0x5be6, 0x75},
> +       {0x5be7, 0x75},
> +       {0x5be8, 0x75},
> +       {0x5be9, 0x75},
> +       {0x5bea, 0x75},
> +       {0x5beb, 0x75},
> +       {0x5bec, 0x75},
> +       {0x5bed, 0x75},
> +       {0x5bee, 0x75},
> +       {0x5bef, 0x75},
> +       {0x5bf0, 0x75},
> +       {0x5bf1, 0x75},
> +       {0x5bf2, 0x75},
> +       {0x5bf3, 0x75},
> +       {0x5bf4, 0x75},
> +       {0x5bf5, 0x75},
> +       {0x5bf6, 0x75},
> +       {0x5bf7, 0x75},
> +       {0x5bf8, 0x75},
> +       {0x5bf9, 0x75},
> +       {0x5bfa, 0x75},
> +       {0x5bfb, 0x75},
> +       {0x5bfc, 0x75},
> +       {0x5bfd, 0x75},
> +       {0x5bfe, 0x75},
> +       {0x5bff, 0x75},
> +       {0x5c00, 0x75},
> +       {0x5c01, 0x75},
> +       {0x5c02, 0x75},
> +       {0x5c03, 0x75},
> +       {0x5c04, 0x75},
> +       {0x5c05, 0x75},
> +       {0x5c06, 0x75},
> +       {0x5c07, 0x75},
> +       {0x5c08, 0x75},
> +       {0x5c09, 0x75},
> +       {0x5c0a, 0x75},
> +       {0x5c0b, 0x75},
> +       {0x5c0c, 0x75},
> +       {0x5c0d, 0x75},
> +       {0x5c0e, 0x75},
> +       {0x5c0f, 0x75},
> +       {0x5c10, 0x75},
> +       {0x5c11, 0x75},
> +       {0x5c12, 0x75},
> +       {0x5c13, 0x75},
> +       {0x5c14, 0x75},
> +       {0x5c15, 0x75},
> +       {0x5c16, 0x75},
> +       {0x5c17, 0x75},
> +       {0x5c18, 0x75},
> +       {0x5c19, 0x75},
> +       {0x5c1a, 0x75},
> +       {0x5c1b, 0x75},
> +       {0x5c1c, 0x75},
> +       {0x5c1d, 0x75},
> +       {0x5c1e, 0x75},
> +       {0x5c1f, 0x75},
> +       {0x5c20, 0x75},
> +       {0x5c21, 0x75},
> +       {0x5c22, 0x75},
> +       {0x5c23, 0x75},
> +       {0x5c24, 0x75},
> +       {0x5c25, 0x75},
> +       {0x5c26, 0x75},
> +       {0x5c27, 0x75},
> +       {0x5c28, 0x75},
> +       {0x5c29, 0x75},
> +       {0x5c2a, 0x75},
> +       {0x5c2b, 0x75},
> +       {0x5c2c, 0x75},
> +       {0x5c2d, 0x75},
> +       {0x5c2e, 0x75},
> +       {0x5c2f, 0x75},
> +       {0x5c30, 0x75},
> +       {0x5c31, 0x75},
> +       {0x5c32, 0x75},
> +       {0x5c33, 0x75},
> +       {0x5c34, 0x75},
> +       {0x5c35, 0x75},
> +       {0x5c36, 0x75},
> +       {0x5c37, 0x75},
> +       {0x5c38, 0x75},
> +       {0x5c39, 0x75},
> +       {0x5c3a, 0x75},
> +       {0x5c3b, 0x75},
> +       {0x5c3c, 0x75},
> +       {0x5c3d, 0x75},
> +       {0x5c3e, 0x75},
> +       {0x5c3f, 0x75},
> +       {0x5c40, 0x75},
> +       {0x5c41, 0x75},
> +       {0x5c42, 0x75},
> +       {0x5c43, 0x75},
> +       {0x5c44, 0x75},
> +       {0x5c45, 0x75},
> +       {0x5c46, 0x75},
> +       {0x5c47, 0x75},
> +       {0x5c48, 0x75},
> +       {0x5c49, 0x75},
> +       {0x5c4a, 0x75},
> +       {0x5c4b, 0x75},
> +       {0x5c4c, 0x75},
> +       {0x5c4d, 0x75},
> +       {0x5c4e, 0x75},
> +       {0x5c4f, 0x75},
> +       {0x5c50, 0x75},
> +       {0x5c51, 0x75},
> +       {0x5c52, 0x75},
> +       {0x5c53, 0x75},
> +       {0x5c54, 0x75},
> +       {0x5c55, 0x75},
> +       {0x5c56, 0x75},
> +       {0x5c57, 0x75},
> +       {0x5c58, 0x75},
> +       {0x5c59, 0x75},
> +       {0x5c5a, 0x75},
> +       {0x5c5b, 0x75},
> +       {0x5c5c, 0x75},
> +       {0x5c5d, 0x75},
> +       {0x5c5e, 0x75},
> +       {0x5c5f, 0x75},
> +       {0x5c60, 0x75},
> +       {0x5c61, 0x75},
> +       {0x5c62, 0x75},
> +       {0x5c63, 0x75},
> +       {0x5c64, 0x75},
> +       {0x5c65, 0x75},
> +       {0x5c66, 0x75},
> +       {0x5c67, 0x75},
> +       {0x5c68, 0x75},
> +       {0x5c69, 0x75},
> +       {0x5c6a, 0x75},
> +       {0x5c6b, 0x75},
> +       {0x5c6c, 0x75},
> +       {0x5c6d, 0x75},
> +       {0x5c6e, 0x75},
> +       {0x5c6f, 0x75},
> +       {0x5c70, 0x75},
> +       {0x5c71, 0x75},
> +       {0x5c72, 0x75},
> +       {0x5c73, 0x75},
> +       {0x5c74, 0x75},
> +       {0x5c75, 0x75},
> +       {0x5c76, 0x75},
> +       {0x5c77, 0x75},
> +       {0x5c78, 0x75},
> +       {0x5c79, 0x75},
> +       {0x5c7a, 0x75},
> +       {0x5c7b, 0x75},
> +       {0x5c7c, 0x75},
> +       {0x5c7d, 0x75},
> +       {0x5c7e, 0x75},
> +       {0x5c7f, 0x75},
> +       {0x5c80, 0x75},
> +       {0x5c81, 0x75},
> +       {0x5c82, 0x75},
> +       {0x5c83, 0x75},
> +       {0x5c84, 0x75},
> +       {0x5c85, 0x75},
> +       {0x5c86, 0x75},
> +       {0x5c87, 0x75},
> +       {0x5c88, 0x75},
> +       {0x5c89, 0x75},
> +       {0x5c8a, 0x75},
> +       {0x5c8b, 0x75},
> +       {0x5c8c, 0x75},
> +       {0x5c8d, 0x75},
> +       {0x5c8e, 0x75},
> +       {0x5c8f, 0x75},
> +       {0x5c90, 0x75},
> +       {0x5c91, 0x75},
> +       {0x5c92, 0x75},
> +       {0x5c93, 0x75},
> +       {0x5c94, 0x75},
> +       {0x5c95, 0x75},
> +       {0x5c96, 0x75},
> +       {0x5c97, 0x75},
> +       {0x5c98, 0x75},
> +       {0x5c99, 0x75},
> +       {0x5c9a, 0x75},
> +       {0x5c9b, 0x75},
> +       {0x5c9c, 0x75},
> +       {0x5c9d, 0x75},
> +       {0x5c9e, 0x75},
> +       {0x5c9f, 0x75},
> +       {0x5ca0, 0x75},
> +       {0x5ca1, 0x75},
> +       {0x5ca2, 0x75},
> +       {0x5ca3, 0x75},
> +       {0x5ca4, 0x75},
> +       {0x5ca5, 0x75},
> +       {0x5ca6, 0x75},
> +       {0x5ca7, 0x75},
> +       {0x5ca8, 0x75},
> +       {0x5ca9, 0x75},
> +       {0x5caa, 0x75},
> +       {0x5cab, 0x75},
> +       {0x5cac, 0x75},
> +       {0x5cad, 0x75},
> +       {0x5cae, 0x75},
> +       {0x5caf, 0x75},
> +       {0x5cb0, 0x75},
> +       {0x5cb1, 0x75},
> +       {0x5cb2, 0x75},
> +       {0x5cb3, 0x75},
> +       {0x5cb4, 0x75},
> +       {0x5cb5, 0x75},
> +       {0x5cb6, 0x75},
> +       {0x5cb7, 0x75},
> +       {0x5cb8, 0x75},
> +       {0x5cb9, 0x75},
> +       {0x5cba, 0x75},
> +       {0x5cbb, 0x75},
> +       {0x5cbc, 0x75},
> +       {0x5cbd, 0x75},
> +       {0x5cbe, 0x75},
> +       {0x5cbf, 0x75},
> +       {0x5cc0, 0x75},
> +       {0x5cc1, 0x75},
> +       {0x5cc2, 0x75},
> +       {0x5cc3, 0x75},
> +       {0x5cc4, 0x75},
> +       {0x5cc5, 0x75},
> +       {0x5cc6, 0x75},
> +       {0x5cc7, 0x75},
> +       {0x5cc8, 0x75},
> +       {0x5cc9, 0x75},
> +       {0x5cca, 0x75},
> +       {0x5ccb, 0x75},
> +       {0x5ccc, 0x75},
> +       {0x5ccd, 0x75},
> +       {0x5cce, 0x75},
> +       {0x5ccf, 0x75},
> +       {0x5cd0, 0x75},
> +       {0x5cd1, 0x75},
> +       {0x5cd2, 0x75},
> +       {0x5cd3, 0x75},
> +       {0x5cd4, 0x75},
> +       {0x5cd5, 0x75},
> +       {0x5cd6, 0x75},
> +       {0x5cd7, 0x75},
> +       {0x5cd8, 0x75},
> +       {0x5cd9, 0x75},
> +       {0x5cda, 0x75},
> +       {0x5cdb, 0x75},
> +       {0x5cdc, 0x75},
> +       {0x5cdd, 0x75},
> +       {0x5cde, 0x75},
> +       {0x5cdf, 0x75},
> +       {0x5ce0, 0x75},
> +       {0x5ce1, 0x75},
> +       {0x5ce2, 0x75},
> +       {0x5ce3, 0x75},
> +       {0x5ce4, 0x75},
> +       {0x5ce5, 0x75},
> +       {0x5ce6, 0x75},
> +       {0x5ce7, 0x75},
> +       {0x5ce8, 0x75},
> +       {0x5ce9, 0x75},
> +       {0x5cea, 0x75},
> +       {0x5ceb, 0x75},
> +       {0x5cec, 0x75},
> +       {0x5ced, 0x75},
> +       {0x5cee, 0x75},
> +       {0x5cef, 0x75},
> +       {0x5cf0, 0x75},
> +       {0x5cf1, 0x75},
> +       {0x5cf2, 0x75},
> +       {0x5cf3, 0x75},
> +       {0x5cf4, 0x75},
> +       {0x5cf5, 0x75},
> +       {0x5cf6, 0x75},
> +       {0x5cf7, 0x75},
> +       {0x5cf8, 0x75},
> +       {0x5cf9, 0x75},
> +       {0x5cfa, 0x75},
> +       {0x5cfb, 0x75},
> +       {0x5cfc, 0x75},
> +       {0x5cfd, 0x75},
> +       {0x5cfe, 0x75},
> +       {0x5cff, 0x75},
> +       {0x5d00, 0x75},
> +       {0x5d01, 0x75},
> +       {0x5d02, 0x75},
> +       {0x5d03, 0x75},
> +       {0x5d04, 0x75},
> +       {0x5d05, 0x75},
> +       {0x5d06, 0x75},
> +       {0x5d07, 0x75},
> +       {0x5d08, 0x75},
> +       {0x5d09, 0x75},
> +       {0x5d0a, 0x75},
> +       {0x5d0b, 0x75},
> +       {0x5d0c, 0x75},
> +       {0x5d0d, 0x75},
> +       {0x5d0e, 0x75},
> +       {0x5d0f, 0x75},
> +       {0x5d10, 0x75},
> +       {0x5d11, 0x75},
> +       {0x5d12, 0x75},
> +       {0x5d13, 0x75},
> +       {0x5d14, 0x75},
> +       {0x5d15, 0x75},
> +       {0x5d16, 0x75},
> +       {0x5d17, 0x75},
> +       {0x5d18, 0x75},
> +       {0x5d19, 0x75},
> +       {0x5d1a, 0x75},
> +       {0x5d1b, 0x75},
> +       {0x5d1c, 0x75},
> +       {0x5d1d, 0x75},
> +       {0x5d1e, 0x75},
> +       {0x5d1f, 0x75},
> +       {0x5d20, 0x75},
> +       {0x5d21, 0x75},
> +       {0x5d22, 0x75},
> +       {0x5d23, 0x75},
> +       {0x5d24, 0x75},
> +       {0x5d25, 0x75},
> +       {0x5d26, 0x75},
> +       {0x5d27, 0x75},
> +       {0x5d28, 0x75},
> +       {0x5d29, 0x75},
> +       {0x5d2a, 0x75},
> +       {0x5d2b, 0x75},
> +       {0x5d2c, 0x75},
> +       {0x5d2d, 0x75},
> +       {0x5d2e, 0x75},
> +       {0x5d2f, 0x75},
> +       {0x5d30, 0x75},
> +       {0x5d31, 0x75},
> +       {0x5d32, 0x75},
> +       {0x5d33, 0x75},
> +       {0x5d34, 0x75},
> +       {0x5d35, 0x75},
> +       {0x5d36, 0x75},
> +       {0x5d37, 0x75},
> +       {0x5d38, 0x75},
> +       {0x5d39, 0x75},
> +       {0x5d3a, 0x75},
> +       {0x5d3b, 0x75},
> +       {0x5d3c, 0x75},
> +       {0x5d3d, 0x75},
> +       {0x5d3e, 0x75},
> +       {0x5d3f, 0x75},
> +       {0x5d40, 0x75},
> +       {0x5d41, 0x75},
> +       {0x5d42, 0x75},
> +       {0x5d43, 0x75},
> +       {0x5d44, 0x75},
> +       {0x5d45, 0x75},
> +       {0x5d46, 0x75},
> +       {0x5d47, 0x75},
> +       {0x5d48, 0x75},
> +       {0x5d49, 0x75},
> +       {0x5d4a, 0x75},
> +       {0x5d4b, 0x75},
> +       {0x5d4c, 0x75},
> +       {0x5d4d, 0x75},
> +       {0x5d4e, 0x75},
> +       {0x5d4f, 0x75},
> +       {0x5d50, 0x75},
> +       {0x5d51, 0x75},
> +       {0x5d52, 0x75},
> +       {0x5d53, 0x75},
> +       {0x5d54, 0x75},
> +       {0x5d55, 0x75},
> +       {0x5d56, 0x75},
> +       {0x5d57, 0x75},
> +       {0x5d58, 0x75},
> +       {0x5d59, 0x75},
> +       {0x5d5a, 0x75},
> +       {0x5d5b, 0x75},
> +       {0x5d5c, 0x75},
> +       {0x5d5d, 0x75},
> +       {0x5d5e, 0x75},
> +       {0x5d5f, 0x75},
> +       {0x5d60, 0x75},
> +       {0x5d61, 0x75},
> +       {0x5d62, 0x75},
> +       {0x5d63, 0x75},
> +       {0x5d64, 0x75},
> +       {0x5d65, 0x75},
> +       {0x5d66, 0x75},
> +       {0x5d67, 0x75},
> +       {0x5d68, 0x75},
> +       {0x5d69, 0x75},
> +       {0x5d6a, 0x75},
> +       {0x5d6b, 0x75},
> +       {0x5d6c, 0x75},
> +       {0x5d6d, 0x75},
> +       {0x5d6e, 0x75},
> +       {0x5d6f, 0x75},
> +       {0x5d70, 0x75},
> +       {0x5d71, 0x75},
> +       {0x5d72, 0x75},
> +       {0x5d73, 0x75},
> +       {0x5d74, 0x75},
> +       {0x5d75, 0x75},
> +       {0x5d76, 0x75},
> +       {0x5d77, 0x75},
> +       {0x5d78, 0x75},
> +       {0x5d79, 0x75},
> +       {0x5d7a, 0x75},
> +       {0x5d7b, 0x75},
> +       {0x5d7c, 0x75},
> +       {0x5d7d, 0x75},
> +       {0x5d7e, 0x75},
> +       {0x5d7f, 0x75},
> +       {0x5d80, 0x75},
> +       {0x5d81, 0x75},
> +       {0x5d82, 0x75},
> +       {0x5d83, 0x75},
> +       {0x5d84, 0x75},
> +       {0x5d85, 0x75},
> +       {0x5d86, 0x75},
> +       {0x5d87, 0x75},
> +       {0x5d88, 0x75},
> +       {0x5d89, 0x75},
> +       {0x5d8a, 0x75},
> +       {0x5d8b, 0x75},
> +       {0x5d8c, 0x75},
> +       {0x5d8d, 0x75},
> +       {0x5d8e, 0x75},
> +       {0x5d8f, 0x75},
> +       {0x5d90, 0x75},
> +       {0x5d91, 0x75},
> +       {0x5d92, 0x75},
> +       {0x5d93, 0x75},
> +       {0x5d94, 0x75},
> +       {0x5d95, 0x75},
> +       {0x5d96, 0x75},
> +       {0x5d97, 0x75},
> +       {0x5d98, 0x75},
> +       {0x5d99, 0x75},
> +       {0x5d9a, 0x75},
> +       {0x5d9b, 0x75},
> +       {0x5d9c, 0x75},
> +       {0x5d9d, 0x75},
> +       {0x5d9e, 0x75},
> +       {0x5d9f, 0x75},
> +       {0x5da0, 0x75},
> +       {0x5da1, 0x75},
> +       {0x5da2, 0x75},
> +       {0x5da3, 0x75},
> +       {0x5da4, 0x75},
> +       {0x5da5, 0x75},
> +       {0x5da6, 0x75},
> +       {0x5da7, 0x75},
> +       {0x5da8, 0x75},
> +       {0x5da9, 0x75},
> +       {0x5daa, 0x75},
> +       {0x5dab, 0x75},
> +       {0x5dac, 0x75},
> +       {0x5dad, 0x75},
> +       {0x5dae, 0x75},
> +       {0x5daf, 0x75},
> +       {0x5db0, 0x75},
> +       {0x5db1, 0x75},
> +       {0x5db2, 0x75},
> +       {0x5db3, 0x75},
> +       {0x5db4, 0x75},
> +       {0x5db5, 0x75},
> +       {0x5db6, 0x75},
> +       {0x5db7, 0x75},
> +       {0x5db8, 0x75},
> +       {0x5db9, 0x75},
> +       {0x5dba, 0x75},
> +       {0x5dbb, 0x75},
> +       {0x5dbc, 0x75},
> +       {0x5dbd, 0x75},
> +       {0x5dbe, 0x75},
> +       {0x5dbf, 0x75},
> +       {0x5dc0, 0x75},
> +       {0x5dc1, 0x75},
> +       {0x5dc2, 0x75},
> +       {0x5dc3, 0x75},
> +       {0x5dc4, 0x75},
> +       {0x5dc5, 0x75},
> +       {0x5dc6, 0x75},
> +       {0x5dc7, 0x75},
> +       {0x5dc8, 0x75},
> +       {0x5dc9, 0x75},
> +       {0x5dca, 0x75},
> +       {0x5dcb, 0x75},
> +       {0x5dcc, 0x75},
> +       {0x5dcd, 0x75},
> +       {0x5dce, 0x75},
> +       {0x5dcf, 0x75},
> +       {0x5dd0, 0x75},
> +       {0x5dd1, 0x75},
> +       {0x5dd2, 0x75},
> +       {0x5dd3, 0x75},
> +       {0x5dd4, 0x75},
> +       {0x5dd5, 0x75},
> +       {0x5dd6, 0x75},
> +       {0x5dd7, 0x75},
> +       {0x5dd8, 0x75},
> +       {0x5dd9, 0x75},
> +       {0x5dda, 0x75},
> +       {0x5ddb, 0x75},
> +       {0x5ddc, 0x75},
> +       {0x5ddd, 0x75},
> +       {0x5dde, 0x75},
> +       {0x5ddf, 0x75},
> +       {0x5de0, 0x75},
> +       {0x5de1, 0x75},
> +       {0x5de2, 0x75},
> +       {0x5de3, 0x75},
> +       {0x5de4, 0x75},
> +       {0x5de5, 0x75},
> +       {0x5de6, 0x75},
> +       {0x5de7, 0x75},
> +       {0x5de8, 0x75},
> +       {0x5de9, 0x75},
> +       {0x5dea, 0x75},
> +       {0x5deb, 0x75},
> +       {0x5dec, 0x75},
> +       {0x5ded, 0x75},
> +       {0x5dee, 0x75},
> +       {0x5def, 0x75},
> +       {0x5df0, 0x75},
> +       {0x5df1, 0x75},
> +       {0x5df2, 0x75},
> +       {0x5df3, 0x75},
> +       {0x5df4, 0x75},
> +       {0x5df5, 0x75},
> +       {0x5df6, 0x75},
> +       {0x5df7, 0x75},
> +       {0x5df8, 0x75},
> +       {0x5df9, 0x75},
> +       {0x5dfa, 0x75},
> +       {0x5dfb, 0x75},
> +       {0x5dfc, 0x75},
> +       {0x5dfd, 0x75},
> +       {0x5dfe, 0x75},
> +       {0x5dff, 0x75},
> +       {0x5e00, 0x75},
> +       {0x5e01, 0x75},
> +       {0x5e02, 0x75},
> +       {0x5e03, 0x75},
> +       {0x5e04, 0x75},
> +       {0x5e05, 0x75},
> +       {0x5e06, 0x75},
> +       {0x5e07, 0x75},
> +       {0x5e08, 0x75},
> +       {0x5e09, 0x75},
> +       {0x5e0a, 0x75},
> +       {0x5e0b, 0x75},
> +       {0x5e0c, 0x75},
> +       {0x5e0d, 0x75},
> +       {0x5e0e, 0x75},
> +       {0x5e0f, 0x75},
> +       {0x5e10, 0x75},
> +       {0x5e11, 0x75},
> +       {0x5e12, 0x75},
> +       {0x5e13, 0x75},
> +       {0x5e14, 0x75},
> +       {0x5e15, 0x75},
> +       {0x5e16, 0x75},
> +       {0x5e17, 0x75},
> +       {0x5e18, 0x75},
> +       {0x5e19, 0x75},
> +       {0x5e1a, 0x75},
> +       {0x5e1b, 0x75},
> +       {0x5e1c, 0x75},
> +       {0x5e1d, 0x75},
> +       {0x5e1e, 0x75},
> +       {0x5e1f, 0x75},
> +       {0x5e20, 0x75},
> +       {0x5e21, 0x75},
> +       {0x5e22, 0x75},
> +       {0x5e23, 0x75},
> +       {0x5e24, 0x75},
> +       {0x5e25, 0x75},
> +       {0x5e26, 0x75},
> +       {0x5e27, 0x75},
> +       {0x5e28, 0x75},
> +       {0x5e29, 0x75},
> +       {0x5e2a, 0x75},
> +       {0x5e2b, 0x75},
> +       {0x5e2c, 0x75},
> +       {0x5e2d, 0x75},
> +       {0x5e2e, 0x75},
> +       {0x5e2f, 0x75},
> +       {0x5e30, 0x75},
> +       {0x5e31, 0x75},
> +       {0x5e32, 0x75},
> +       {0x5e33, 0x75},
> +       {0x5e34, 0x75},
> +       {0x5e35, 0x75},
> +       {0x5e36, 0x75},
> +       {0x5e37, 0x75},
> +       {0x5e38, 0x75},
> +       {0x5e39, 0x75},
> +       {0x5e3a, 0x75},
> +       {0x5e3b, 0x75},
> +       {0x5e3c, 0x75},
> +       {0x5e3d, 0x75},
> +       {0x5e3e, 0x75},
> +       {0x5e3f, 0x75},
> +       {0x5e40, 0x75},
> +       {0x5e41, 0x75},
> +       {0x5e42, 0x75},
> +       {0x5e43, 0x75},
> +       {0x5e44, 0x75},
> +       {0x5e45, 0x75},
> +       {0x5e46, 0x75},
> +       {0x5e47, 0x75},
> +       {0x5e48, 0x75},
> +       {0x5e49, 0x75},
> +       {0x5e4a, 0x75},
> +       {0x5e4b, 0x75},
> +       {0x5e4c, 0x75},
> +       {0x5e4d, 0x75},
> +       {0x5e4e, 0x75},
> +       {0x5e4f, 0x75},
> +       {0x5e50, 0x75},
> +       {0x5e51, 0x75},
> +       {0x5e52, 0x75},
> +       {0x5e53, 0x75},
> +       {0x5e54, 0x75},
> +       {0x5e55, 0x75},
> +       {0x5e56, 0x75},
> +       {0x5e57, 0x75},
> +       {0x5e58, 0x75},
> +       {0x5e59, 0x75},
> +       {0x5e5a, 0x75},
> +       {0x5e5b, 0x75},
> +       {0x5e5c, 0x75},
> +       {0x5e5d, 0x75},
> +       {0x5e5e, 0x75},
> +       {0x5e5f, 0x75},
> +       {0x5e60, 0x75},
> +       {0x5e61, 0x75},
> +       {0x5e62, 0x75},
> +       {0x5e63, 0x75},
> +       {0x5e64, 0x75},
> +       {0x5e65, 0x75},
> +       {0x5e66, 0x75},
> +       {0x5e67, 0x75},
> +       {0x5e68, 0x75},
> +       {0x5e69, 0x75},
> +       {0x5e6a, 0x75},
> +       {0x5e6b, 0x75},
> +       {0x5e6c, 0x75},
> +       {0x5e6d, 0x75},
> +       {0x5e6e, 0x75},
> +       {0x5e6f, 0x75},
> +       {0x5e70, 0x75},
> +       {0x5e71, 0x75},
> +       {0x5e72, 0x75},
> +       {0x5e73, 0x75},
> +       {0x5e74, 0x75},
> +       {0x5e75, 0x75},
> +       {0x5e76, 0x75},
> +       {0x5e77, 0x75},
> +       {0x5e78, 0x75},
> +       {0x5e79, 0x75},
> +       {0x5e7a, 0x75},
> +       {0x5e7b, 0x75},
> +       {0x5e7c, 0x75},
> +       {0x5e7d, 0x75},
> +       {0x5e7e, 0x75},
> +       {0x5e7f, 0x75},
> +       {0x5e80, 0x75},
> +       {0x5e81, 0x75},
> +       {0x5e82, 0x75},
> +       {0x5e83, 0x75},
> +       {0x5e84, 0x75},
> +       {0x5e85, 0x75},
> +       {0x5e86, 0x75},
> +       {0x5e87, 0x75},
> +       {0x5e88, 0x75},
> +       {0x5e89, 0x75},
> +       {0x5e8a, 0x75},
> +       {0x5e8b, 0x75},
> +       {0x5e8c, 0x75},
> +       {0x5e8d, 0x75},
> +       {0x5e8e, 0x75},
> +       {0x5e8f, 0x75},
> +       {0x5e90, 0x75},
> +       {0x5e91, 0x75},
> +       {0x5e92, 0x75},
> +       {0x5e93, 0x75},
> +       {0x5e94, 0x75},
> +       {0x5e95, 0x75},
> +       {0x5e96, 0x75},
> +       {0x5e97, 0x75},
> +       {0x5e98, 0x75},
> +       {0x5e99, 0x75},
> +       {0x5e9a, 0x75},
> +       {0x5e9b, 0x75},
> +       {0x5e9c, 0x75},
> +       {0x5e9d, 0x75},
> +       {0x5e9e, 0x75},
> +       {0x5e9f, 0x75},
> +       {0x5ea0, 0x75},
> +       {0x5ea1, 0x75},
> +       {0x5ea2, 0x75},
> +       {0x5ea3, 0x75},
> +       {0x5ea4, 0x75},
> +       {0x5ea5, 0x75},
> +       {0x5ea6, 0x75},
> +       {0x5ea7, 0x75},
> +       {0x5ea8, 0x75},
> +       {0x5ea9, 0x75},
> +       {0x5eaa, 0x75},
> +       {0x5eab, 0x75},
> +       {0x5eac, 0x75},
> +       {0x5ead, 0x75},
> +       {0x5eae, 0x75},
> +       {0x5eaf, 0x75},
> +       {0x5eb0, 0x75},
> +       {0x5eb1, 0x75},
> +       {0x5eb2, 0x75},
> +       {0x5eb3, 0x75},
> +       {0x5eb4, 0x75},
> +       {0x5eb5, 0x75},
> +       {0x5eb6, 0x75},
> +       {0x5eb7, 0x75},
> +       {0x5eb8, 0x75},
> +       {0x5eb9, 0x75},
> +       {0x5eba, 0x75},
> +       {0x5ebb, 0x75},
> +       {0x5ebc, 0x75},
> +       {0x5ebd, 0x75},
> +       {0x5ebe, 0x75},
> +       {0x5ebf, 0x75},
> +       {0x5ec0, 0x75},
> +       {0x5ec1, 0x75},
> +       {0x5ec2, 0x75},
> +       {0x5ec3, 0x75},
> +       {0x5ec4, 0x75},
> +       {0x5ec5, 0x75},
> +       {0x5ec6, 0x75},
> +       {0x5ec7, 0x75},
> +       {0x5ec8, 0x75},
> +       {0x5ec9, 0x75},
> +       {0x5eca, 0x75},
> +       {0x5ecb, 0x75},
> +       {0x5ecc, 0x75},
> +       {0x5ecd, 0x75},
> +       {0x5ece, 0x75},
> +       {0x5ecf, 0x75},
> +       {0x5ed0, 0x75},
> +       {0x5ed1, 0x75},
> +       {0x5ed2, 0x75},
> +       {0x5ed3, 0x75},
> +       {0x5ed4, 0x75},
> +       {0x5ed5, 0x75},
> +       {0x5ed6, 0x75},
> +       {0x5ed7, 0x75},
> +       {0x5ed8, 0x75},
> +       {0x5ed9, 0x75},
> +       {0x5eda, 0x75},
> +       {0x5edb, 0x75},
> +       {0x5edc, 0x75},
> +       {0x5edd, 0x75},
> +       {0x5ede, 0x75},
> +       {0x5edf, 0x75},
> +       {0x5ee0, 0x75},
> +       {0x5ee1, 0x75},
> +       {0x5ee2, 0x75},
> +       {0x5ee3, 0x75},
> +       {0x5ee4, 0x75},
> +       {0x5ee5, 0x75},
> +       {0x5ee6, 0x75},
> +       {0x5ee7, 0x75},
> +       {0x5ee8, 0x75},
> +       {0x5ee9, 0x75},
> +       {0x5eea, 0x75},
> +       {0x5eeb, 0x75},
> +       {0x5eec, 0x75},
> +       {0x5eed, 0x75},
> +       {0x5eee, 0x75},
> +       {0x5eef, 0x75},
> +       {0x5ef0, 0x75},
> +       {0x5ef1, 0x75},
> +       {0x5ef2, 0x75},
> +       {0x5ef3, 0x75},
> +       {0x5ef4, 0x75},
> +       {0x5ef5, 0x75},
> +       {0x5ef6, 0x75},
> +       {0x5ef7, 0x75},
> +       {0x5ef8, 0x75},
> +       {0x5ef9, 0x75},
> +       {0x5efa, 0x75},
> +       {0x5efb, 0x75},
> +       {0x5efc, 0x75},
> +       {0x5efd, 0x75},
> +       {0x5efe, 0x75},
> +       {0x5eff, 0x75},
> +       {0x5f00, 0x75},
> +       {0x5f01, 0x75},
> +       {0x5f02, 0x75},
> +       {0x5f03, 0x75},
> +       {0x5f04, 0x75},
> +       {0x5f05, 0x75},
> +       {0x5f06, 0x75},
> +       {0x5f07, 0x75},
> +       {0x5f08, 0x75},
> +       {0x5f09, 0x75},
> +       {0x5f0a, 0x75},
> +       {0x5f0b, 0x75},
> +       {0x5f0c, 0x75},
> +       {0x5f0d, 0x75},
> +       {0x5f0e, 0x75},
> +       {0x5f0f, 0x75},
> +       {0x5f10, 0x75},
> +       {0x5f11, 0x75},
> +       {0x5f12, 0x75},
> +       {0x5f13, 0x75},
> +       {0x5f14, 0x75},
> +       {0x5f15, 0x75},
> +       {0x5f16, 0x75},
> +       {0x5f17, 0x75},
> +       {0x5f18, 0x75},
> +       {0x5f19, 0x75},
> +       {0x5f1a, 0x75},
> +       {0x5f1b, 0x75},
> +       {0x5f1c, 0x75},
> +       {0x5f1d, 0x75},
> +       {0x5f1e, 0x75},
> +       {0x5f1f, 0x75},
> +};
> +

There is a lot of repeated data in there. Is that all part of the mode
setup? or can any of that be abstracted to common initialisation code?

Have you considered, or tried just setting the additional registers
/after/ programming mode_3856x2416_regs ? Or investigating the sequences
in the register table to see if it could be broken up accordingly?

(Do you have access to the datasheet?)


  
> -static const struct ov08x40_reg mode_3856x2416_regs[] = {
> +static const struct ov08x40_reg mode_3856x2416_regs_with_quirk[] = {
>         {0x5000, 0x5d},
>         {0x5001, 0x20},
>         {0x5008, 0xb0},
> @@ -582,9 +2254,13 @@ static const struct ov08x40_reg mode_3856x2416_regs[] = {
>         {0x480c, 0x80},
>         {0x480f, 0x32},
>         {0x4813, 0xe4},
> +       {0x481b, 0x2c}, /* HS Exit: Data Tx TEOT - reducing 8ns */
> +       {0x4826, 0x42}, /* HS Entry: Data Tx TREOT - raising 8ns */
> +       {0x4829, 0x54}, /* HS Exit: Data Tx TREOT - reducing 8ns */
>         {0x4837, 0x14},
>         {0x4850, 0x42},
>         {0x4884, 0x04},
> +       {0x4885, 0x1f}, /* driving strength change */
>         {0x4c00, 0xf8},
>         {0x4c01, 0x44},
>         {0x4c03, 0x00},
> @@ -2407,6 +4083,21 @@ static const struct ov08x40_mode supported_modes[] = {
>                 .exposure_shift = 1,
>                 .exposure_margin = OV08X40_EXPOSURE_MAX_MARGIN,
>         },
> +       {
> +               .width = 3856,
> +               .height = 2416,
> +               .vts_def = OV08X40_VTS_30FPS,
> +               .vts_min = OV08X40_VTS_30FPS,
> +               .llp = 0x10aa,
> +               .lanes = 4,
> +               .reg_list = {
> +                       .num_of_regs = ARRAY_SIZE(mode_3856x2416_regs_with_quirk),
> +                       .regs = mode_3856x2416_regs_with_quirk,
> +               },
> +               .link_freq_index = OV08X40_LINK_FREQ_400MHZ_INDEX,
> +               .exposure_shift = 1,
> +               .exposure_margin = OV08X40_EXPOSURE_MAX_MARGIN,
> +       },
>         {
>                 .width = 1928,
>                 .height = 1208,
> @@ -2537,6 +4228,23 @@ static int ov08x40_write_regs(struct ov08x40 *ov08x,
>         return 0;
>  }
>  
> +static const struct dmi_system_id dmi_quirk_table[] = {
> +       {
> +               .matches = {
> +                       DMI_MATCH(DMI_SYS_VENDOR, "Google"),
> +                       DMI_MATCH(DMI_PRODUCT_NAME, "Screebo"),
> +               },
> +       }
> +};
> +
> +static int determine_dmi_quirks(void)
> +{
> +       if (dmi_check_system(dmi_quirk_table))
> +               return QUIRK_SCREEBO;
> +
> +       return QUIRK_DEFAULT;
> +}
> +
>  static int ov08x40_write_reg_list(struct ov08x40 *ov08x,
>                                   const struct ov08x40_reg_list *r_list)
>  {
> @@ -2545,7 +4253,8 @@ static int ov08x40_write_reg_list(struct ov08x40 *ov08x,
>  
>  static int ov08x40_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh)
>  {
> -       const struct ov08x40_mode *default_mode = &supported_modes[0];
> +       int quirks = determine_dmi_quirks();
> +       const struct ov08x40_mode *default_mode = &supported_modes[quirks];
>         struct ov08x40 *ov08x = to_ov08x40(sd);
>         struct v4l2_mbus_framefmt *try_fmt =
>                 v4l2_subdev_get_try_format(sd, fh->state, 0);
> @@ -3244,6 +4953,7 @@ static int ov08x40_probe(struct i2c_client *client)
>  {
>         struct ov08x40 *ov08x;
>         int ret;
> +       int quirks = determine_dmi_quirks();
>  
>         /* Check HW config */
>         ret = ov08x40_check_hwcfg(&client->dev);
> @@ -3267,7 +4977,7 @@ static int ov08x40_probe(struct i2c_client *client)
>         }
>  
>         /* Set default mode to max resolution */
> -       ov08x->cur_mode = &supported_modes[0];
> +       ov08x->cur_mode = &supported_modes[quirks];
>  
>         ret = ov08x40_init_controls(ov08x);
>         if (ret)
> -- 
> 2.34.1
>
Chen, Jason Z Oct. 16, 2023, 11:27 a.m. UTC | #2
Thanks for the review, Kieran.

Actually we have another change is in the internal review.
I will update it soon after it has been accepted by the internal review :)


-----Original Message-----
From: Kieran Bingham <kieran.bingham@ideasonboard.com> 
Sent: Saturday, October 7, 2023 7:24 PM
To: Chen, Jason Z <jason.z.chen@intel.com>; linux-media@vger.kernel.org
Cc: sakari.ailus@linux.intel.com; Yeh, Andy <andy.yeh@intel.com>; Zhang, Qingwu <qingwu.zhang@intel.com>; Chen, Jason Z <jason.z.chen@intel.com>
Subject: Re: [PATCH] media: ov08x40: Add quirk infrastructure to enable conditional changes

Hi Jason,

Quoting Chen, Jason Z (2023-10-06 08:38:33)
> From: Jason Chen <jason.z.chen@intel.com>
> 
> Due to certain MIPI hardware designs using overly long cables, there 
> is a loss of signal strength, resulting in failed signal integration.
> The patch includes changes to adjust the driving strength in the 
> register settings for a specific project.
> Add a quirk infrastructure to distinguish these hardware changes
> 
> Signed-off-by: Jason Chen <jason.z.chen@intel.com>
> ---
>  drivers/media/i2c/ov08x40.c | 1754 
> ++++++++++++++++++++++++++++++++++-
>  1 file changed, 1732 insertions(+), 22 deletions(-)
> 
> diff --git a/drivers/media/i2c/ov08x40.c b/drivers/media/i2c/ov08x40.c 
> index acf6799d7fa..82a426a3ab6 100644
> --- a/drivers/media/i2c/ov08x40.c
> +++ b/drivers/media/i2c/ov08x40.c
> @@ -9,6 +9,7 @@
>  #include <media/v4l2-ctrls.h>
>  #include <media/v4l2-device.h>
>  #include <media/v4l2-fwnode.h>
> +#include <linux/dmi.h>
>  
>  #define OV08X40_REG_VALUE_08BIT                1
>  #define OV08X40_REG_VALUE_16BIT                2
> @@ -99,6 +100,12 @@ enum {
>         OV08X40_LINK_FREQ_400MHZ_INDEX,  };
>  
> +enum {
> +       QUIRK_DEFAULT,
> +       QUIRK_SCREEBO,
> +       // Add more quirks here if needed

This comment seems to be a bit redundant. Also I don't think the // comment style is accepted as code style in this form.

> +};
> +
>  struct ov08x40_reg {
>         u16 address;
>         u8 val;
> @@ -140,27 +147,1692 @@ struct ov08x40_mode {
>         u16 exposure_shift;
>  };
>  
> -static const struct ov08x40_reg mipi_data_rate_800mbps[] = {
> -       {0x0103, 0x01},
> -       {0x1000, 0x00},
> -       {0x1601, 0xd0},
> -       {0x1001, 0x04},
> -       {0x5004, 0x53},
> -       {0x5110, 0x00},
> -       {0x5111, 0x14},
> -       {0x5112, 0x01},
> -       {0x5113, 0x7b},
> -       {0x5114, 0x00},
> -       {0x5152, 0xa3},
> -       {0x5a52, 0x1f},
> -       {0x5a1a, 0x0e},
> -       {0x5a1b, 0x10},
> -       {0x5a1f, 0x0e},
> -       {0x5a27, 0x0e},
> -       {0x6002, 0x2e},
> -};
> +static const struct ov08x40_reg mipi_data_rate_800mbps[] = {
> +       {0x0103, 0x01},
> +       {0x1000, 0x00},
> +       {0x1601, 0xd0},
> +       {0x1001, 0x04},
> +       {0x5004, 0x53},
> +       {0x5110, 0x00},
> +       {0x5111, 0x14},
> +       {0x5112, 0x01},
> +       {0x5113, 0x7b},
> +       {0x5114, 0x00},
> +       {0x5152, 0xa3},
> +       {0x5a52, 0x1f},
> +       {0x5a1a, 0x0e},
> +       {0x5a1b, 0x10},
> +       {0x5a1f, 0x0e},
> +       {0x5a27, 0x0e},
> +       {0x6002, 0x2e},
> +};
> +
> +static const struct ov08x40_reg mode_3856x2416_regs[] = {

Do we really need to duplicate the entire mode table to set 4 additional registers?



> +       {0x5000, 0x5d},
> +       {0x5001, 0x20},
> +       {0x5008, 0xb0},
> +       {0x50c1, 0x00},
> +       {0x53c1, 0x00},
> +       {0x5f40, 0x00},
> +       {0x5f41, 0x40},
> +       {0x0300, 0x3a},
> +       {0x0301, 0xc8},
> +       {0x0302, 0x31},
> +       {0x0303, 0x03},
> +       {0x0304, 0x01},
> +       {0x0305, 0xa1},
> +       {0x0306, 0x04},
> +       {0x0307, 0x01},
> +       {0x0308, 0x03},
> +       {0x0309, 0x03},
> +       {0x0310, 0x0a},
> +       {0x0311, 0x02},
> +       {0x0312, 0x01},
> +       {0x0313, 0x08},
> +       {0x0314, 0x66},
> +       {0x0315, 0x00},
> +       {0x0316, 0x34},
> +       {0x0320, 0x02},
> +       {0x0321, 0x03},
> +       {0x0323, 0x05},
> +       {0x0324, 0x01},
> +       {0x0325, 0xb8},
> +       {0x0326, 0x4a},
> +       {0x0327, 0x04},
> +       {0x0329, 0x00},
> +       {0x032a, 0x05},
> +       {0x032b, 0x00},
> +       {0x032c, 0x00},
> +       {0x032d, 0x00},
> +       {0x032e, 0x02},
> +       {0x032f, 0xa0},
> +       {0x0350, 0x00},
> +       {0x0360, 0x01},
> +       {0x1216, 0x60},
> +       {0x1217, 0x5b},
> +       {0x1218, 0x00},
> +       {0x1220, 0x24},
> +       {0x198a, 0x00},
> +       {0x198b, 0x01},
> +       {0x198e, 0x00},
> +       {0x198f, 0x01},
> +       {0x3009, 0x04},
> +       {0x3012, 0x41},
> +       {0x3015, 0x00},
> +       {0x3016, 0xb0},
> +       {0x3017, 0xf0},
> +       {0x3018, 0xf0},
> +       {0x3019, 0xd2},
> +       {0x301a, 0xb0},
> +       {0x301c, 0x81},
> +       {0x301d, 0x02},
> +       {0x301e, 0x80},
> +       {0x3022, 0xf0},
> +       {0x3025, 0x89},
> +       {0x3030, 0x03},
> +       {0x3044, 0xc2},
> +       {0x3050, 0x35},
> +       {0x3051, 0x60},
> +       {0x3052, 0x25},
> +       {0x3053, 0x00},
> +       {0x3054, 0x00},
> +       {0x3055, 0x02},
> +       {0x3056, 0x80},
> +       {0x3057, 0x80},
> +       {0x3058, 0x80},
> +       {0x3059, 0x00},
> +       {0x3107, 0x86},
> +       {0x3400, 0x1c},
> +       {0x3401, 0x80},
> +       {0x3402, 0x8c},
> +       {0x3419, 0x13},
> +       {0x341a, 0x89},
> +       {0x341b, 0x30},
> +       {0x3420, 0x00},
> +       {0x3421, 0x00},
> +       {0x3422, 0x00},
> +       {0x3423, 0x00},
> +       {0x3424, 0x00},
> +       {0x3425, 0x00},
> +       {0x3426, 0x00},
> +       {0x3427, 0x00},
> +       {0x3428, 0x0f},
> +       {0x3429, 0x00},
> +       {0x342a, 0x00},
> +       {0x342b, 0x00},
> +       {0x342c, 0x00},
> +       {0x342d, 0x00},
> +       {0x342e, 0x00},
> +       {0x342f, 0x11},
> +       {0x3430, 0x11},
> +       {0x3431, 0x10},
> +       {0x3432, 0x00},
> +       {0x3433, 0x00},
> +       {0x3434, 0x00},
> +       {0x3435, 0x00},
> +       {0x3436, 0x00},
> +       {0x3437, 0x00},
> +       {0x3442, 0x02},
> +       {0x3443, 0x02},
> +       {0x3444, 0x07},
> +       {0x3450, 0x00},
> +       {0x3451, 0x00},
> +       {0x3452, 0x18},
> +       {0x3453, 0x18},
> +       {0x3454, 0x00},
> +       {0x3455, 0x80},
> +       {0x3456, 0x08},
> +       {0x3500, 0x00},
> +       {0x3501, 0x02},
> +       {0x3502, 0x00},
> +       {0x3504, 0x4c},
> +       {0x3506, 0x30},
> +       {0x3507, 0x00},
> +       {0x3508, 0x01},
> +       {0x3509, 0x00},
> +       {0x350a, 0x01},
> +       {0x350b, 0x00},
> +       {0x350c, 0x00},
> +       {0x3540, 0x00},
> +       {0x3541, 0x01},
> +       {0x3542, 0x00},
> +       {0x3544, 0x4c},
> +       {0x3546, 0x30},
> +       {0x3547, 0x00},
> +       {0x3548, 0x01},
> +       {0x3549, 0x00},
> +       {0x354a, 0x01},
> +       {0x354b, 0x00},
> +       {0x354c, 0x00},
> +       {0x3688, 0x02},
> +       {0x368a, 0x2e},
> +       {0x368e, 0x71},
> +       {0x3696, 0xd1},
> +       {0x3699, 0x00},
> +       {0x369a, 0x00},
> +       {0x36a4, 0x00},
> +       {0x36a6, 0x00},
> +       {0x3711, 0x00},
> +       {0x3712, 0x51},
> +       {0x3713, 0x00},
> +       {0x3714, 0x24},
> +       {0x3716, 0x00},
> +       {0x3718, 0x07},
> +       {0x371a, 0x1c},
> +       {0x371b, 0x00},
> +       {0x3720, 0x08},
> +       {0x3725, 0x32},
> +       {0x3727, 0x05},
> +       {0x3760, 0x02},
> +       {0x3761, 0x17},
> +       {0x3762, 0x02},
> +       {0x3763, 0x02},
> +       {0x3764, 0x02},
> +       {0x3765, 0x2c},
> +       {0x3766, 0x04},
> +       {0x3767, 0x2c},
> +       {0x3768, 0x02},
> +       {0x3769, 0x00},
> +       {0x376b, 0x20},
> +       {0x376e, 0x03},
> +       {0x37b0, 0x00},
> +       {0x37b1, 0xab},
> +       {0x37b2, 0x01},
> +       {0x37b3, 0x82},
> +       {0x37b4, 0x00},
> +       {0x37b5, 0xe4},
> +       {0x37b6, 0x01},
> +       {0x37b7, 0xee},
> +       {0x3800, 0x00},
> +       {0x3801, 0x00},
> +       {0x3802, 0x00},
> +       {0x3803, 0x00},
> +       {0x3804, 0x0f},
> +       {0x3805, 0x1f},
> +       {0x3806, 0x09},
> +       {0x3807, 0x7f},
> +       {0x3808, 0x0f},
> +       {0x3809, 0x10},
> +       {0x380a, 0x09},
> +       {0x380b, 0x70},
> +       {0x380c, 0x02},
> +       {0x380d, 0x80},
> +       {0x380e, 0x13},
> +       {0x380f, 0x88},
> +       {0x3810, 0x00},
> +       {0x3811, 0x08},
> +       {0x3812, 0x00},
> +       {0x3813, 0x07},
> +       {0x3814, 0x11},
> +       {0x3815, 0x11},
> +       {0x3820, 0x00},
> +       {0x3821, 0x04},
> +       {0x3822, 0x00},
> +       {0x3823, 0x04},
> +       {0x3828, 0x0f},
> +       {0x382a, 0x80},
> +       {0x382e, 0x41},
> +       {0x3837, 0x08},
> +       {0x383a, 0x81},
> +       {0x383b, 0x81},
> +       {0x383c, 0x11},
> +       {0x383d, 0x11},
> +       {0x383e, 0x00},
> +       {0x383f, 0x38},
> +       {0x3840, 0x00},
> +       {0x3847, 0x00},
> +       {0x384a, 0x00},
> +       {0x384c, 0x02},
> +       {0x384d, 0x80},
> +       {0x3856, 0x50},
> +       {0x3857, 0x30},
> +       {0x3858, 0x80},
> +       {0x3859, 0x40},
> +       {0x3860, 0x00},
> +       {0x3888, 0x00},
> +       {0x3889, 0x00},
> +       {0x388a, 0x00},
> +       {0x388b, 0x00},
> +       {0x388c, 0x00},
> +       {0x388d, 0x00},
> +       {0x388e, 0x00},
> +       {0x388f, 0x00},
> +       {0x3894, 0x00},
> +       {0x3895, 0x00},
> +       {0x3c84, 0x00},
> +       {0x3d85, 0x8b},
> +       {0x3daa, 0x80},
> +       {0x3dab, 0x14},
> +       {0x3dac, 0x80},
> +       {0x3dad, 0xc8},
> +       {0x3dae, 0x81},
> +       {0x3daf, 0x7b},
> +       {0x3f00, 0x10},
> +       {0x3f01, 0x11},
> +       {0x3f06, 0x0d},
> +       {0x3f07, 0x0b},
> +       {0x3f08, 0x0d},
> +       {0x3f09, 0x0b},
> +       {0x3f0a, 0x01},
> +       {0x3f0b, 0x11},
> +       {0x3f0c, 0x33},
> +       {0x4001, 0x07},
> +       {0x4007, 0x20},
> +       {0x4008, 0x00},
> +       {0x4009, 0x05},
> +       {0x400a, 0x00},
> +       {0x400b, 0x08},
> +       {0x400c, 0x00},
> +       {0x400d, 0x08},
> +       {0x400e, 0x14},
> +       {0x4010, 0xf4},
> +       {0x4011, 0x03},
> +       {0x4012, 0x55},
> +       {0x4015, 0x00},
> +       {0x4016, 0x2d},
> +       {0x4017, 0x00},
> +       {0x4018, 0x0f},
> +       {0x401b, 0x08},
> +       {0x401c, 0x00},
> +       {0x401d, 0x10},
> +       {0x401e, 0x02},
> +       {0x401f, 0x00},
> +       {0x4050, 0x06},
> +       {0x4051, 0xff},
> +       {0x4052, 0xff},
> +       {0x4053, 0xff},
> +       {0x4054, 0xff},
> +       {0x4055, 0xff},
> +       {0x4056, 0xff},
> +       {0x4057, 0x7f},
> +       {0x4058, 0x00},
> +       {0x4059, 0x00},
> +       {0x405a, 0x00},
> +       {0x405b, 0x00},
> +       {0x405c, 0x07},
> +       {0x405d, 0xff},
> +       {0x405e, 0x07},
> +       {0x405f, 0xff},
> +       {0x4080, 0x78},
> +       {0x4081, 0x78},
> +       {0x4082, 0x78},
> +       {0x4083, 0x78},
> +       {0x4019, 0x00},
> +       {0x401a, 0x40},
> +       {0x4020, 0x04},
> +       {0x4021, 0x00},
> +       {0x4022, 0x04},
> +       {0x4023, 0x00},
> +       {0x4024, 0x04},
> +       {0x4025, 0x00},
> +       {0x4026, 0x04},
> +       {0x4027, 0x00},
> +       {0x4030, 0x00},
> +       {0x4031, 0x00},
> +       {0x4032, 0x00},
> +       {0x4033, 0x00},
> +       {0x4034, 0x00},
> +       {0x4035, 0x00},
> +       {0x4036, 0x00},
> +       {0x4037, 0x00},
> +       {0x4040, 0x00},
> +       {0x4041, 0x80},
> +       {0x4042, 0x00},
> +       {0x4043, 0x80},
> +       {0x4044, 0x00},
> +       {0x4045, 0x80},
> +       {0x4046, 0x00},
> +       {0x4047, 0x80},
> +       {0x4060, 0x00},
> +       {0x4061, 0x00},
> +       {0x4062, 0x00},
> +       {0x4063, 0x00},
> +       {0x4064, 0x00},
> +       {0x4065, 0x00},
> +       {0x4066, 0x00},
> +       {0x4067, 0x00},
> +       {0x4068, 0x00},
> +       {0x4069, 0x00},
> +       {0x406a, 0x00},
> +       {0x406b, 0x00},
> +       {0x406c, 0x00},
> +       {0x406d, 0x00},
> +       {0x406e, 0x00},
> +       {0x406f, 0x00},
> +       {0x4070, 0x00},
> +       {0x4071, 0x00},
> +       {0x4072, 0x00},
> +       {0x4073, 0x00},
> +       {0x4074, 0x00},
> +       {0x4075, 0x00},
> +       {0x4076, 0x00},
> +       {0x4077, 0x00},
> +       {0x4078, 0x00},
> +       {0x4079, 0x00},
> +       {0x407a, 0x00},
> +       {0x407b, 0x00},
> +       {0x407c, 0x00},
> +       {0x407d, 0x00},
> +       {0x407e, 0x00},
> +       {0x407f, 0x00},
> +       {0x40e0, 0x00},
> +       {0x40e1, 0x00},
> +       {0x40e2, 0x00},
> +       {0x40e3, 0x00},
> +       {0x40e4, 0x00},
> +       {0x40e5, 0x00},
> +       {0x40e6, 0x00},
> +       {0x40e7, 0x00},
> +       {0x40e8, 0x00},
> +       {0x40e9, 0x80},
> +       {0x40ea, 0x00},
> +       {0x40eb, 0x80},
> +       {0x40ec, 0x00},
> +       {0x40ed, 0x80},
> +       {0x40ee, 0x00},
> +       {0x40ef, 0x80},
> +       {0x40f0, 0x02},
> +       {0x40f1, 0x04},
> +       {0x4300, 0x00},
> +       {0x4301, 0x00},
> +       {0x4302, 0x00},
> +       {0x4303, 0x00},
> +       {0x4304, 0x00},
> +       {0x4305, 0x00},
> +       {0x4306, 0x00},
> +       {0x4307, 0x00},
> +       {0x4308, 0x00},
> +       {0x4309, 0x00},
> +       {0x430a, 0x00},
> +       {0x430b, 0xff},
> +       {0x430c, 0xff},
> +       {0x430d, 0x00},
> +       {0x430e, 0x00},
> +       {0x4315, 0x00},
> +       {0x4316, 0x00},
> +       {0x4317, 0x00},
> +       {0x4318, 0x00},
> +       {0x4319, 0x00},
> +       {0x431a, 0x00},
> +       {0x431b, 0x00},
> +       {0x431c, 0x00},
> +       {0x4500, 0x07},
> +       {0x4501, 0x00},
> +       {0x4502, 0x00},
> +       {0x4503, 0x0f},
> +       {0x4504, 0x80},
> +       {0x4506, 0x01},
> +       {0x4509, 0x05},
> +       {0x450c, 0x00},
> +       {0x450d, 0x20},
> +       {0x450e, 0x00},
> +       {0x450f, 0x00},
> +       {0x4510, 0x00},
> +       {0x4523, 0x00},
> +       {0x4526, 0x00},
> +       {0x4542, 0x00},
> +       {0x4543, 0x00},
> +       {0x4544, 0x00},
> +       {0x4545, 0x00},
> +       {0x4546, 0x00},
> +       {0x4547, 0x10},
> +       {0x4602, 0x00},
> +       {0x4603, 0x15},
> +       {0x460b, 0x07},
> +       {0x4680, 0x11},
> +       {0x4686, 0x00},
> +       {0x4687, 0x00},
> +       {0x4700, 0x00},
> +       {0x4800, 0x64},
> +       {0x4806, 0x40},
> +       {0x480b, 0x10},
> +       {0x480c, 0x80},
> +       {0x480f, 0x32},
> +       {0x4813, 0xe4},
> +       {0x4837, 0x14},
> +       {0x4850, 0x42},
> +       {0x4884, 0x04},
> +       {0x4c00, 0xf8},
> +       {0x4c01, 0x44},
> +       {0x4c03, 0x00},
> +       {0x4d00, 0x00},
> +       {0x4d01, 0x16},
> +       {0x4d04, 0x10},
> +       {0x4d05, 0x00},
> +       {0x4d06, 0x0c},
> +       {0x4d07, 0x00},
> +       {0x3d84, 0x04},
> +       {0x3680, 0xa4},
> +       {0x3682, 0x80},
> +       {0x3601, 0x40},
> +       {0x3602, 0x90},
> +       {0x3608, 0x0a},
> +       {0x3938, 0x09},
> +       {0x3a74, 0x84},
> +       {0x3a99, 0x84},
> +       {0x3ab9, 0xa6},
> +       {0x3aba, 0xba},
> +       {0x3b12, 0x84},
> +       {0x3b14, 0xbb},
> +       {0x3b15, 0xbf},
> +       {0x3a29, 0x26},
> +       {0x3a1f, 0x8a},
> +       {0x3a22, 0x91},
> +       {0x3a25, 0x96},
> +       {0x3a28, 0xb4},
> +       {0x3a2b, 0xba},
> +       {0x3a2e, 0xbf},
> +       {0x3a31, 0xc1},
> +       {0x3a20, 0x00},
> +       {0x3939, 0x9d},
> +       {0x3902, 0x0e},
> +       {0x3903, 0x0e},
> +       {0x3904, 0x0e},
> +       {0x3905, 0x0e},
> +       {0x3906, 0x07},
> +       {0x3907, 0x0d},
> +       {0x3908, 0x11},
> +       {0x3909, 0x12},
> +       {0x360f, 0x99},
> +       {0x390c, 0x33},
> +       {0x390d, 0x66},
> +       {0x390e, 0xaa},
> +       {0x3911, 0x90},
> +       {0x3913, 0x90},
> +       {0x3915, 0x90},
> +       {0x3917, 0x90},
> +       {0x3b3f, 0x9d},
> +       {0x3b45, 0x9d},
> +       {0x3b1b, 0xc9},
> +       {0x3b21, 0xc9},
> +       {0x3440, 0xa4},
> +       {0x3a23, 0x15},
> +       {0x3a26, 0x1d},
> +       {0x3a2c, 0x4a},
> +       {0x3a2f, 0x18},
> +       {0x3a32, 0x55},
> +       {0x3b0a, 0x01},
> +       {0x3b0b, 0x00},
> +       {0x3b0e, 0x01},
> +       {0x3b0f, 0x00},
> +       {0x392c, 0x02},
> +       {0x392d, 0x02},
> +       {0x392e, 0x04},
> +       {0x392f, 0x03},
> +       {0x3930, 0x08},
> +       {0x3931, 0x07},
> +       {0x3932, 0x10},
> +       {0x3933, 0x0c},
> +       {0x3609, 0x08},
> +       {0x3921, 0x0f},
> +       {0x3928, 0x15},
> +       {0x3929, 0x2a},
> +       {0x392a, 0x54},
> +       {0x392b, 0xa8},
> +       {0x3426, 0x10},
> +       {0x3407, 0x01},
> +       {0x3404, 0x01},
> +       {0x3500, 0x00},
> +       {0x3501, 0x10},
> +       {0x3502, 0x10},
> +       {0x3508, 0x0f},
> +       {0x3509, 0x80},
> +       {0x5a80, 0x75},
> +       {0x5a81, 0x75},
> +       {0x5a82, 0x75},
> +       {0x5a83, 0x75},
> +       {0x5a84, 0x75},
> +       {0x5a85, 0x75},
> +       {0x5a86, 0x75},
> +       {0x5a87, 0x75},
> +       {0x5a88, 0x75},
> +       {0x5a89, 0x75},
> +       {0x5a8a, 0x75},
> +       {0x5a8b, 0x75},
> +       {0x5a8c, 0x75},
> +       {0x5a8d, 0x75},
> +       {0x5a8e, 0x75},
> +       {0x5a8f, 0x75},
> +       {0x5a90, 0x75},
> +       {0x5a91, 0x75},
> +       {0x5a92, 0x75},
> +       {0x5a93, 0x75},
> +       {0x5a94, 0x75},
> +       {0x5a95, 0x75},
> +       {0x5a96, 0x75},
> +       {0x5a97, 0x75},
> +       {0x5a98, 0x75},
> +       {0x5a99, 0x75},
> +       {0x5a9a, 0x75},
> +       {0x5a9b, 0x75},
> +       {0x5a9c, 0x75},
> +       {0x5a9d, 0x75},
> +       {0x5a9e, 0x75},
> +       {0x5a9f, 0x75},
> +       {0x5aa0, 0x75},
> +       {0x5aa1, 0x75},
> +       {0x5aa2, 0x75},
> +       {0x5aa3, 0x75},
> +       {0x5aa4, 0x75},
> +       {0x5aa5, 0x75},
> +       {0x5aa6, 0x75},
> +       {0x5aa7, 0x75},
> +       {0x5aa8, 0x75},
> +       {0x5aa9, 0x75},
> +       {0x5aaa, 0x75},
> +       {0x5aab, 0x75},
> +       {0x5aac, 0x75},
> +       {0x5aad, 0x75},
> +       {0x5aae, 0x75},
> +       {0x5aaf, 0x75},
> +       {0x5ab0, 0x75},
> +       {0x5ab1, 0x75},
> +       {0x5ab2, 0x75},
> +       {0x5ab3, 0x75},
> +       {0x5ab4, 0x75},
> +       {0x5ab5, 0x75},
> +       {0x5ab6, 0x75},
> +       {0x5ab7, 0x75},
> +       {0x5ab8, 0x75},
> +       {0x5ab9, 0x75},
> +       {0x5aba, 0x75},
> +       {0x5abb, 0x75},
> +       {0x5abc, 0x75},
> +       {0x5abd, 0x75},
> +       {0x5abe, 0x75},
> +       {0x5abf, 0x75},
> +       {0x5ac0, 0x75},
> +       {0x5ac1, 0x75},
> +       {0x5ac2, 0x75},
> +       {0x5ac3, 0x75},
> +       {0x5ac4, 0x75},
> +       {0x5ac5, 0x75},
> +       {0x5ac6, 0x75},
> +       {0x5ac7, 0x75},
> +       {0x5ac8, 0x75},
> +       {0x5ac9, 0x75},
> +       {0x5aca, 0x75},
> +       {0x5acb, 0x75},
> +       {0x5acc, 0x75},
> +       {0x5acd, 0x75},
> +       {0x5ace, 0x75},
> +       {0x5acf, 0x75},
> +       {0x5ad0, 0x75},
> +       {0x5ad1, 0x75},
> +       {0x5ad2, 0x75},
> +       {0x5ad3, 0x75},
> +       {0x5ad4, 0x75},
> +       {0x5ad5, 0x75},
> +       {0x5ad6, 0x75},
> +       {0x5ad7, 0x75},
> +       {0x5ad8, 0x75},
> +       {0x5ad9, 0x75},
> +       {0x5ada, 0x75},
> +       {0x5adb, 0x75},
> +       {0x5adc, 0x75},
> +       {0x5add, 0x75},
> +       {0x5ade, 0x75},
> +       {0x5adf, 0x75},
> +       {0x5ae0, 0x75},
> +       {0x5ae1, 0x75},
> +       {0x5ae2, 0x75},
> +       {0x5ae3, 0x75},
> +       {0x5ae4, 0x75},
> +       {0x5ae5, 0x75},
> +       {0x5ae6, 0x75},
> +       {0x5ae7, 0x75},
> +       {0x5ae8, 0x75},
> +       {0x5ae9, 0x75},
> +       {0x5aea, 0x75},
> +       {0x5aeb, 0x75},
> +       {0x5aec, 0x75},
> +       {0x5aed, 0x75},
> +       {0x5aee, 0x75},
> +       {0x5aef, 0x75},
> +       {0x5af0, 0x75},
> +       {0x5af1, 0x75},
> +       {0x5af2, 0x75},
> +       {0x5af3, 0x75},
> +       {0x5af4, 0x75},
> +       {0x5af5, 0x75},
> +       {0x5af6, 0x75},
> +       {0x5af7, 0x75},
> +       {0x5af8, 0x75},
> +       {0x5af9, 0x75},
> +       {0x5afa, 0x75},
> +       {0x5afb, 0x75},
> +       {0x5afc, 0x75},
> +       {0x5afd, 0x75},
> +       {0x5afe, 0x75},
> +       {0x5aff, 0x75},
> +       {0x5b00, 0x75},
> +       {0x5b01, 0x75},
> +       {0x5b02, 0x75},
> +       {0x5b03, 0x75},
> +       {0x5b04, 0x75},
> +       {0x5b05, 0x75},
> +       {0x5b06, 0x75},
> +       {0x5b07, 0x75},
> +       {0x5b08, 0x75},
> +       {0x5b09, 0x75},
> +       {0x5b0a, 0x75},
> +       {0x5b0b, 0x75},
> +       {0x5b0c, 0x75},
> +       {0x5b0d, 0x75},
> +       {0x5b0e, 0x75},
> +       {0x5b0f, 0x75},
> +       {0x5b10, 0x75},
> +       {0x5b11, 0x75},
> +       {0x5b12, 0x75},
> +       {0x5b13, 0x75},
> +       {0x5b14, 0x75},
> +       {0x5b15, 0x75},
> +       {0x5b16, 0x75},
> +       {0x5b17, 0x75},
> +       {0x5b18, 0x75},
> +       {0x5b19, 0x75},
> +       {0x5b1a, 0x75},
> +       {0x5b1b, 0x75},
> +       {0x5b1c, 0x75},
> +       {0x5b1d, 0x75},
> +       {0x5b1e, 0x75},
> +       {0x5b1f, 0x75},
> +       {0x5b20, 0x75},
> +       {0x5b21, 0x75},
> +       {0x5b22, 0x75},
> +       {0x5b23, 0x75},
> +       {0x5b24, 0x75},
> +       {0x5b25, 0x75},
> +       {0x5b26, 0x75},
> +       {0x5b27, 0x75},
> +       {0x5b28, 0x75},
> +       {0x5b29, 0x75},
> +       {0x5b2a, 0x75},
> +       {0x5b2b, 0x75},
> +       {0x5b2c, 0x75},
> +       {0x5b2d, 0x75},
> +       {0x5b2e, 0x75},
> +       {0x5b2f, 0x75},
> +       {0x5b30, 0x75},
> +       {0x5b31, 0x75},
> +       {0x5b32, 0x75},
> +       {0x5b33, 0x75},
> +       {0x5b34, 0x75},
> +       {0x5b35, 0x75},
> +       {0x5b36, 0x75},
> +       {0x5b37, 0x75},
> +       {0x5b38, 0x75},
> +       {0x5b39, 0x75},
> +       {0x5b3a, 0x75},
> +       {0x5b3b, 0x75},
> +       {0x5b3c, 0x75},
> +       {0x5b3d, 0x75},
> +       {0x5b3e, 0x75},
> +       {0x5b3f, 0x75},
> +       {0x5b40, 0x75},
> +       {0x5b41, 0x75},
> +       {0x5b42, 0x75},
> +       {0x5b43, 0x75},
> +       {0x5b44, 0x75},
> +       {0x5b45, 0x75},
> +       {0x5b46, 0x75},
> +       {0x5b47, 0x75},
> +       {0x5b48, 0x75},
> +       {0x5b49, 0x75},
> +       {0x5b4a, 0x75},
> +       {0x5b4b, 0x75},
> +       {0x5b4c, 0x75},
> +       {0x5b4d, 0x75},
> +       {0x5b4e, 0x75},
> +       {0x5b4f, 0x75},
> +       {0x5b50, 0x75},
> +       {0x5b51, 0x75},
> +       {0x5b52, 0x75},
> +       {0x5b53, 0x75},
> +       {0x5b54, 0x75},
> +       {0x5b55, 0x75},
> +       {0x5b56, 0x75},
> +       {0x5b57, 0x75},
> +       {0x5b58, 0x75},
> +       {0x5b59, 0x75},
> +       {0x5b5a, 0x75},
> +       {0x5b5b, 0x75},
> +       {0x5b5c, 0x75},
> +       {0x5b5d, 0x75},
> +       {0x5b5e, 0x75},
> +       {0x5b5f, 0x75},
> +       {0x5b60, 0x75},
> +       {0x5b61, 0x75},
> +       {0x5b62, 0x75},
> +       {0x5b63, 0x75},
> +       {0x5b64, 0x75},
> +       {0x5b65, 0x75},
> +       {0x5b66, 0x75},
> +       {0x5b67, 0x75},
> +       {0x5b68, 0x75},
> +       {0x5b69, 0x75},
> +       {0x5b6a, 0x75},
> +       {0x5b6b, 0x75},
> +       {0x5b6c, 0x75},
> +       {0x5b6d, 0x75},
> +       {0x5b6e, 0x75},
> +       {0x5b6f, 0x75},
> +       {0x5b70, 0x75},
> +       {0x5b71, 0x75},
> +       {0x5b72, 0x75},
> +       {0x5b73, 0x75},
> +       {0x5b74, 0x75},
> +       {0x5b75, 0x75},
> +       {0x5b76, 0x75},
> +       {0x5b77, 0x75},
> +       {0x5b78, 0x75},
> +       {0x5b79, 0x75},
> +       {0x5b7a, 0x75},
> +       {0x5b7b, 0x75},
> +       {0x5b7c, 0x75},
> +       {0x5b7d, 0x75},
> +       {0x5b7e, 0x75},
> +       {0x5b7f, 0x75},
> +       {0x5b80, 0x75},
> +       {0x5b81, 0x75},
> +       {0x5b82, 0x75},
> +       {0x5b83, 0x75},
> +       {0x5b84, 0x75},
> +       {0x5b85, 0x75},
> +       {0x5b86, 0x75},
> +       {0x5b87, 0x75},
> +       {0x5b88, 0x75},
> +       {0x5b89, 0x75},
> +       {0x5b8a, 0x75},
> +       {0x5b8b, 0x75},
> +       {0x5b8c, 0x75},
> +       {0x5b8d, 0x75},
> +       {0x5b8e, 0x75},
> +       {0x5b8f, 0x75},
> +       {0x5b90, 0x75},
> +       {0x5b91, 0x75},
> +       {0x5b92, 0x75},
> +       {0x5b93, 0x75},
> +       {0x5b94, 0x75},
> +       {0x5b95, 0x75},
> +       {0x5b96, 0x75},
> +       {0x5b97, 0x75},
> +       {0x5b98, 0x75},
> +       {0x5b99, 0x75},
> +       {0x5b9a, 0x75},
> +       {0x5b9b, 0x75},
> +       {0x5b9c, 0x75},
> +       {0x5b9d, 0x75},
> +       {0x5b9e, 0x75},
> +       {0x5b9f, 0x75},
> +       {0x5bc0, 0x75},
> +       {0x5bc1, 0x75},
> +       {0x5bc2, 0x75},
> +       {0x5bc3, 0x75},
> +       {0x5bc4, 0x75},
> +       {0x5bc5, 0x75},
> +       {0x5bc6, 0x75},
> +       {0x5bc7, 0x75},
> +       {0x5bc8, 0x75},
> +       {0x5bc9, 0x75},
> +       {0x5bca, 0x75},
> +       {0x5bcb, 0x75},
> +       {0x5bcc, 0x75},
> +       {0x5bcd, 0x75},
> +       {0x5bce, 0x75},
> +       {0x5bcf, 0x75},
> +       {0x5bd0, 0x75},
> +       {0x5bd1, 0x75},
> +       {0x5bd2, 0x75},
> +       {0x5bd3, 0x75},
> +       {0x5bd4, 0x75},
> +       {0x5bd5, 0x75},
> +       {0x5bd6, 0x75},
> +       {0x5bd7, 0x75},
> +       {0x5bd8, 0x75},
> +       {0x5bd9, 0x75},
> +       {0x5bda, 0x75},
> +       {0x5bdb, 0x75},
> +       {0x5bdc, 0x75},
> +       {0x5bdd, 0x75},
> +       {0x5bde, 0x75},
> +       {0x5bdf, 0x75},
> +       {0x5be0, 0x75},
> +       {0x5be1, 0x75},
> +       {0x5be2, 0x75},
> +       {0x5be3, 0x75},
> +       {0x5be4, 0x75},
> +       {0x5be5, 0x75},
> +       {0x5be6, 0x75},
> +       {0x5be7, 0x75},
> +       {0x5be8, 0x75},
> +       {0x5be9, 0x75},
> +       {0x5bea, 0x75},
> +       {0x5beb, 0x75},
> +       {0x5bec, 0x75},
> +       {0x5bed, 0x75},
> +       {0x5bee, 0x75},
> +       {0x5bef, 0x75},
> +       {0x5bf0, 0x75},
> +       {0x5bf1, 0x75},
> +       {0x5bf2, 0x75},
> +       {0x5bf3, 0x75},
> +       {0x5bf4, 0x75},
> +       {0x5bf5, 0x75},
> +       {0x5bf6, 0x75},
> +       {0x5bf7, 0x75},
> +       {0x5bf8, 0x75},
> +       {0x5bf9, 0x75},
> +       {0x5bfa, 0x75},
> +       {0x5bfb, 0x75},
> +       {0x5bfc, 0x75},
> +       {0x5bfd, 0x75},
> +       {0x5bfe, 0x75},
> +       {0x5bff, 0x75},
> +       {0x5c00, 0x75},
> +       {0x5c01, 0x75},
> +       {0x5c02, 0x75},
> +       {0x5c03, 0x75},
> +       {0x5c04, 0x75},
> +       {0x5c05, 0x75},
> +       {0x5c06, 0x75},
> +       {0x5c07, 0x75},
> +       {0x5c08, 0x75},
> +       {0x5c09, 0x75},
> +       {0x5c0a, 0x75},
> +       {0x5c0b, 0x75},
> +       {0x5c0c, 0x75},
> +       {0x5c0d, 0x75},
> +       {0x5c0e, 0x75},
> +       {0x5c0f, 0x75},
> +       {0x5c10, 0x75},
> +       {0x5c11, 0x75},
> +       {0x5c12, 0x75},
> +       {0x5c13, 0x75},
> +       {0x5c14, 0x75},
> +       {0x5c15, 0x75},
> +       {0x5c16, 0x75},
> +       {0x5c17, 0x75},
> +       {0x5c18, 0x75},
> +       {0x5c19, 0x75},
> +       {0x5c1a, 0x75},
> +       {0x5c1b, 0x75},
> +       {0x5c1c, 0x75},
> +       {0x5c1d, 0x75},
> +       {0x5c1e, 0x75},
> +       {0x5c1f, 0x75},
> +       {0x5c20, 0x75},
> +       {0x5c21, 0x75},
> +       {0x5c22, 0x75},
> +       {0x5c23, 0x75},
> +       {0x5c24, 0x75},
> +       {0x5c25, 0x75},
> +       {0x5c26, 0x75},
> +       {0x5c27, 0x75},
> +       {0x5c28, 0x75},
> +       {0x5c29, 0x75},
> +       {0x5c2a, 0x75},
> +       {0x5c2b, 0x75},
> +       {0x5c2c, 0x75},
> +       {0x5c2d, 0x75},
> +       {0x5c2e, 0x75},
> +       {0x5c2f, 0x75},
> +       {0x5c30, 0x75},
> +       {0x5c31, 0x75},
> +       {0x5c32, 0x75},
> +       {0x5c33, 0x75},
> +       {0x5c34, 0x75},
> +       {0x5c35, 0x75},
> +       {0x5c36, 0x75},
> +       {0x5c37, 0x75},
> +       {0x5c38, 0x75},
> +       {0x5c39, 0x75},
> +       {0x5c3a, 0x75},
> +       {0x5c3b, 0x75},
> +       {0x5c3c, 0x75},
> +       {0x5c3d, 0x75},
> +       {0x5c3e, 0x75},
> +       {0x5c3f, 0x75},
> +       {0x5c40, 0x75},
> +       {0x5c41, 0x75},
> +       {0x5c42, 0x75},
> +       {0x5c43, 0x75},
> +       {0x5c44, 0x75},
> +       {0x5c45, 0x75},
> +       {0x5c46, 0x75},
> +       {0x5c47, 0x75},
> +       {0x5c48, 0x75},
> +       {0x5c49, 0x75},
> +       {0x5c4a, 0x75},
> +       {0x5c4b, 0x75},
> +       {0x5c4c, 0x75},
> +       {0x5c4d, 0x75},
> +       {0x5c4e, 0x75},
> +       {0x5c4f, 0x75},
> +       {0x5c50, 0x75},
> +       {0x5c51, 0x75},
> +       {0x5c52, 0x75},
> +       {0x5c53, 0x75},
> +       {0x5c54, 0x75},
> +       {0x5c55, 0x75},
> +       {0x5c56, 0x75},
> +       {0x5c57, 0x75},
> +       {0x5c58, 0x75},
> +       {0x5c59, 0x75},
> +       {0x5c5a, 0x75},
> +       {0x5c5b, 0x75},
> +       {0x5c5c, 0x75},
> +       {0x5c5d, 0x75},
> +       {0x5c5e, 0x75},
> +       {0x5c5f, 0x75},
> +       {0x5c60, 0x75},
> +       {0x5c61, 0x75},
> +       {0x5c62, 0x75},
> +       {0x5c63, 0x75},
> +       {0x5c64, 0x75},
> +       {0x5c65, 0x75},
> +       {0x5c66, 0x75},
> +       {0x5c67, 0x75},
> +       {0x5c68, 0x75},
> +       {0x5c69, 0x75},
> +       {0x5c6a, 0x75},
> +       {0x5c6b, 0x75},
> +       {0x5c6c, 0x75},
> +       {0x5c6d, 0x75},
> +       {0x5c6e, 0x75},
> +       {0x5c6f, 0x75},
> +       {0x5c70, 0x75},
> +       {0x5c71, 0x75},
> +       {0x5c72, 0x75},
> +       {0x5c73, 0x75},
> +       {0x5c74, 0x75},
> +       {0x5c75, 0x75},
> +       {0x5c76, 0x75},
> +       {0x5c77, 0x75},
> +       {0x5c78, 0x75},
> +       {0x5c79, 0x75},
> +       {0x5c7a, 0x75},
> +       {0x5c7b, 0x75},
> +       {0x5c7c, 0x75},
> +       {0x5c7d, 0x75},
> +       {0x5c7e, 0x75},
> +       {0x5c7f, 0x75},
> +       {0x5c80, 0x75},
> +       {0x5c81, 0x75},
> +       {0x5c82, 0x75},
> +       {0x5c83, 0x75},
> +       {0x5c84, 0x75},
> +       {0x5c85, 0x75},
> +       {0x5c86, 0x75},
> +       {0x5c87, 0x75},
> +       {0x5c88, 0x75},
> +       {0x5c89, 0x75},
> +       {0x5c8a, 0x75},
> +       {0x5c8b, 0x75},
> +       {0x5c8c, 0x75},
> +       {0x5c8d, 0x75},
> +       {0x5c8e, 0x75},
> +       {0x5c8f, 0x75},
> +       {0x5c90, 0x75},
> +       {0x5c91, 0x75},
> +       {0x5c92, 0x75},
> +       {0x5c93, 0x75},
> +       {0x5c94, 0x75},
> +       {0x5c95, 0x75},
> +       {0x5c96, 0x75},
> +       {0x5c97, 0x75},
> +       {0x5c98, 0x75},
> +       {0x5c99, 0x75},
> +       {0x5c9a, 0x75},
> +       {0x5c9b, 0x75},
> +       {0x5c9c, 0x75},
> +       {0x5c9d, 0x75},
> +       {0x5c9e, 0x75},
> +       {0x5c9f, 0x75},
> +       {0x5ca0, 0x75},
> +       {0x5ca1, 0x75},
> +       {0x5ca2, 0x75},
> +       {0x5ca3, 0x75},
> +       {0x5ca4, 0x75},
> +       {0x5ca5, 0x75},
> +       {0x5ca6, 0x75},
> +       {0x5ca7, 0x75},
> +       {0x5ca8, 0x75},
> +       {0x5ca9, 0x75},
> +       {0x5caa, 0x75},
> +       {0x5cab, 0x75},
> +       {0x5cac, 0x75},
> +       {0x5cad, 0x75},
> +       {0x5cae, 0x75},
> +       {0x5caf, 0x75},
> +       {0x5cb0, 0x75},
> +       {0x5cb1, 0x75},
> +       {0x5cb2, 0x75},
> +       {0x5cb3, 0x75},
> +       {0x5cb4, 0x75},
> +       {0x5cb5, 0x75},
> +       {0x5cb6, 0x75},
> +       {0x5cb7, 0x75},
> +       {0x5cb8, 0x75},
> +       {0x5cb9, 0x75},
> +       {0x5cba, 0x75},
> +       {0x5cbb, 0x75},
> +       {0x5cbc, 0x75},
> +       {0x5cbd, 0x75},
> +       {0x5cbe, 0x75},
> +       {0x5cbf, 0x75},
> +       {0x5cc0, 0x75},
> +       {0x5cc1, 0x75},
> +       {0x5cc2, 0x75},
> +       {0x5cc3, 0x75},
> +       {0x5cc4, 0x75},
> +       {0x5cc5, 0x75},
> +       {0x5cc6, 0x75},
> +       {0x5cc7, 0x75},
> +       {0x5cc8, 0x75},
> +       {0x5cc9, 0x75},
> +       {0x5cca, 0x75},
> +       {0x5ccb, 0x75},
> +       {0x5ccc, 0x75},
> +       {0x5ccd, 0x75},
> +       {0x5cce, 0x75},
> +       {0x5ccf, 0x75},
> +       {0x5cd0, 0x75},
> +       {0x5cd1, 0x75},
> +       {0x5cd2, 0x75},
> +       {0x5cd3, 0x75},
> +       {0x5cd4, 0x75},
> +       {0x5cd5, 0x75},
> +       {0x5cd6, 0x75},
> +       {0x5cd7, 0x75},
> +       {0x5cd8, 0x75},
> +       {0x5cd9, 0x75},
> +       {0x5cda, 0x75},
> +       {0x5cdb, 0x75},
> +       {0x5cdc, 0x75},
> +       {0x5cdd, 0x75},
> +       {0x5cde, 0x75},
> +       {0x5cdf, 0x75},
> +       {0x5ce0, 0x75},
> +       {0x5ce1, 0x75},
> +       {0x5ce2, 0x75},
> +       {0x5ce3, 0x75},
> +       {0x5ce4, 0x75},
> +       {0x5ce5, 0x75},
> +       {0x5ce6, 0x75},
> +       {0x5ce7, 0x75},
> +       {0x5ce8, 0x75},
> +       {0x5ce9, 0x75},
> +       {0x5cea, 0x75},
> +       {0x5ceb, 0x75},
> +       {0x5cec, 0x75},
> +       {0x5ced, 0x75},
> +       {0x5cee, 0x75},
> +       {0x5cef, 0x75},
> +       {0x5cf0, 0x75},
> +       {0x5cf1, 0x75},
> +       {0x5cf2, 0x75},
> +       {0x5cf3, 0x75},
> +       {0x5cf4, 0x75},
> +       {0x5cf5, 0x75},
> +       {0x5cf6, 0x75},
> +       {0x5cf7, 0x75},
> +       {0x5cf8, 0x75},
> +       {0x5cf9, 0x75},
> +       {0x5cfa, 0x75},
> +       {0x5cfb, 0x75},
> +       {0x5cfc, 0x75},
> +       {0x5cfd, 0x75},
> +       {0x5cfe, 0x75},
> +       {0x5cff, 0x75},
> +       {0x5d00, 0x75},
> +       {0x5d01, 0x75},
> +       {0x5d02, 0x75},
> +       {0x5d03, 0x75},
> +       {0x5d04, 0x75},
> +       {0x5d05, 0x75},
> +       {0x5d06, 0x75},
> +       {0x5d07, 0x75},
> +       {0x5d08, 0x75},
> +       {0x5d09, 0x75},
> +       {0x5d0a, 0x75},
> +       {0x5d0b, 0x75},
> +       {0x5d0c, 0x75},
> +       {0x5d0d, 0x75},
> +       {0x5d0e, 0x75},
> +       {0x5d0f, 0x75},
> +       {0x5d10, 0x75},
> +       {0x5d11, 0x75},
> +       {0x5d12, 0x75},
> +       {0x5d13, 0x75},
> +       {0x5d14, 0x75},
> +       {0x5d15, 0x75},
> +       {0x5d16, 0x75},
> +       {0x5d17, 0x75},
> +       {0x5d18, 0x75},
> +       {0x5d19, 0x75},
> +       {0x5d1a, 0x75},
> +       {0x5d1b, 0x75},
> +       {0x5d1c, 0x75},
> +       {0x5d1d, 0x75},
> +       {0x5d1e, 0x75},
> +       {0x5d1f, 0x75},
> +       {0x5d20, 0x75},
> +       {0x5d21, 0x75},
> +       {0x5d22, 0x75},
> +       {0x5d23, 0x75},
> +       {0x5d24, 0x75},
> +       {0x5d25, 0x75},
> +       {0x5d26, 0x75},
> +       {0x5d27, 0x75},
> +       {0x5d28, 0x75},
> +       {0x5d29, 0x75},
> +       {0x5d2a, 0x75},
> +       {0x5d2b, 0x75},
> +       {0x5d2c, 0x75},
> +       {0x5d2d, 0x75},
> +       {0x5d2e, 0x75},
> +       {0x5d2f, 0x75},
> +       {0x5d30, 0x75},
> +       {0x5d31, 0x75},
> +       {0x5d32, 0x75},
> +       {0x5d33, 0x75},
> +       {0x5d34, 0x75},
> +       {0x5d35, 0x75},
> +       {0x5d36, 0x75},
> +       {0x5d37, 0x75},
> +       {0x5d38, 0x75},
> +       {0x5d39, 0x75},
> +       {0x5d3a, 0x75},
> +       {0x5d3b, 0x75},
> +       {0x5d3c, 0x75},
> +       {0x5d3d, 0x75},
> +       {0x5d3e, 0x75},
> +       {0x5d3f, 0x75},
> +       {0x5d40, 0x75},
> +       {0x5d41, 0x75},
> +       {0x5d42, 0x75},
> +       {0x5d43, 0x75},
> +       {0x5d44, 0x75},
> +       {0x5d45, 0x75},
> +       {0x5d46, 0x75},
> +       {0x5d47, 0x75},
> +       {0x5d48, 0x75},
> +       {0x5d49, 0x75},
> +       {0x5d4a, 0x75},
> +       {0x5d4b, 0x75},
> +       {0x5d4c, 0x75},
> +       {0x5d4d, 0x75},
> +       {0x5d4e, 0x75},
> +       {0x5d4f, 0x75},
> +       {0x5d50, 0x75},
> +       {0x5d51, 0x75},
> +       {0x5d52, 0x75},
> +       {0x5d53, 0x75},
> +       {0x5d54, 0x75},
> +       {0x5d55, 0x75},
> +       {0x5d56, 0x75},
> +       {0x5d57, 0x75},
> +       {0x5d58, 0x75},
> +       {0x5d59, 0x75},
> +       {0x5d5a, 0x75},
> +       {0x5d5b, 0x75},
> +       {0x5d5c, 0x75},
> +       {0x5d5d, 0x75},
> +       {0x5d5e, 0x75},
> +       {0x5d5f, 0x75},
> +       {0x5d60, 0x75},
> +       {0x5d61, 0x75},
> +       {0x5d62, 0x75},
> +       {0x5d63, 0x75},
> +       {0x5d64, 0x75},
> +       {0x5d65, 0x75},
> +       {0x5d66, 0x75},
> +       {0x5d67, 0x75},
> +       {0x5d68, 0x75},
> +       {0x5d69, 0x75},
> +       {0x5d6a, 0x75},
> +       {0x5d6b, 0x75},
> +       {0x5d6c, 0x75},
> +       {0x5d6d, 0x75},
> +       {0x5d6e, 0x75},
> +       {0x5d6f, 0x75},
> +       {0x5d70, 0x75},
> +       {0x5d71, 0x75},
> +       {0x5d72, 0x75},
> +       {0x5d73, 0x75},
> +       {0x5d74, 0x75},
> +       {0x5d75, 0x75},
> +       {0x5d76, 0x75},
> +       {0x5d77, 0x75},
> +       {0x5d78, 0x75},
> +       {0x5d79, 0x75},
> +       {0x5d7a, 0x75},
> +       {0x5d7b, 0x75},
> +       {0x5d7c, 0x75},
> +       {0x5d7d, 0x75},
> +       {0x5d7e, 0x75},
> +       {0x5d7f, 0x75},
> +       {0x5d80, 0x75},
> +       {0x5d81, 0x75},
> +       {0x5d82, 0x75},
> +       {0x5d83, 0x75},
> +       {0x5d84, 0x75},
> +       {0x5d85, 0x75},
> +       {0x5d86, 0x75},
> +       {0x5d87, 0x75},
> +       {0x5d88, 0x75},
> +       {0x5d89, 0x75},
> +       {0x5d8a, 0x75},
> +       {0x5d8b, 0x75},
> +       {0x5d8c, 0x75},
> +       {0x5d8d, 0x75},
> +       {0x5d8e, 0x75},
> +       {0x5d8f, 0x75},
> +       {0x5d90, 0x75},
> +       {0x5d91, 0x75},
> +       {0x5d92, 0x75},
> +       {0x5d93, 0x75},
> +       {0x5d94, 0x75},
> +       {0x5d95, 0x75},
> +       {0x5d96, 0x75},
> +       {0x5d97, 0x75},
> +       {0x5d98, 0x75},
> +       {0x5d99, 0x75},
> +       {0x5d9a, 0x75},
> +       {0x5d9b, 0x75},
> +       {0x5d9c, 0x75},
> +       {0x5d9d, 0x75},
> +       {0x5d9e, 0x75},
> +       {0x5d9f, 0x75},
> +       {0x5da0, 0x75},
> +       {0x5da1, 0x75},
> +       {0x5da2, 0x75},
> +       {0x5da3, 0x75},
> +       {0x5da4, 0x75},
> +       {0x5da5, 0x75},
> +       {0x5da6, 0x75},
> +       {0x5da7, 0x75},
> +       {0x5da8, 0x75},
> +       {0x5da9, 0x75},
> +       {0x5daa, 0x75},
> +       {0x5dab, 0x75},
> +       {0x5dac, 0x75},
> +       {0x5dad, 0x75},
> +       {0x5dae, 0x75},
> +       {0x5daf, 0x75},
> +       {0x5db0, 0x75},
> +       {0x5db1, 0x75},
> +       {0x5db2, 0x75},
> +       {0x5db3, 0x75},
> +       {0x5db4, 0x75},
> +       {0x5db5, 0x75},
> +       {0x5db6, 0x75},
> +       {0x5db7, 0x75},
> +       {0x5db8, 0x75},
> +       {0x5db9, 0x75},
> +       {0x5dba, 0x75},
> +       {0x5dbb, 0x75},
> +       {0x5dbc, 0x75},
> +       {0x5dbd, 0x75},
> +       {0x5dbe, 0x75},
> +       {0x5dbf, 0x75},
> +       {0x5dc0, 0x75},
> +       {0x5dc1, 0x75},
> +       {0x5dc2, 0x75},
> +       {0x5dc3, 0x75},
> +       {0x5dc4, 0x75},
> +       {0x5dc5, 0x75},
> +       {0x5dc6, 0x75},
> +       {0x5dc7, 0x75},
> +       {0x5dc8, 0x75},
> +       {0x5dc9, 0x75},
> +       {0x5dca, 0x75},
> +       {0x5dcb, 0x75},
> +       {0x5dcc, 0x75},
> +       {0x5dcd, 0x75},
> +       {0x5dce, 0x75},
> +       {0x5dcf, 0x75},
> +       {0x5dd0, 0x75},
> +       {0x5dd1, 0x75},
> +       {0x5dd2, 0x75},
> +       {0x5dd3, 0x75},
> +       {0x5dd4, 0x75},
> +       {0x5dd5, 0x75},
> +       {0x5dd6, 0x75},
> +       {0x5dd7, 0x75},
> +       {0x5dd8, 0x75},
> +       {0x5dd9, 0x75},
> +       {0x5dda, 0x75},
> +       {0x5ddb, 0x75},
> +       {0x5ddc, 0x75},
> +       {0x5ddd, 0x75},
> +       {0x5dde, 0x75},
> +       {0x5ddf, 0x75},
> +       {0x5de0, 0x75},
> +       {0x5de1, 0x75},
> +       {0x5de2, 0x75},
> +       {0x5de3, 0x75},
> +       {0x5de4, 0x75},
> +       {0x5de5, 0x75},
> +       {0x5de6, 0x75},
> +       {0x5de7, 0x75},
> +       {0x5de8, 0x75},
> +       {0x5de9, 0x75},
> +       {0x5dea, 0x75},
> +       {0x5deb, 0x75},
> +       {0x5dec, 0x75},
> +       {0x5ded, 0x75},
> +       {0x5dee, 0x75},
> +       {0x5def, 0x75},
> +       {0x5df0, 0x75},
> +       {0x5df1, 0x75},
> +       {0x5df2, 0x75},
> +       {0x5df3, 0x75},
> +       {0x5df4, 0x75},
> +       {0x5df5, 0x75},
> +       {0x5df6, 0x75},
> +       {0x5df7, 0x75},
> +       {0x5df8, 0x75},
> +       {0x5df9, 0x75},
> +       {0x5dfa, 0x75},
> +       {0x5dfb, 0x75},
> +       {0x5dfc, 0x75},
> +       {0x5dfd, 0x75},
> +       {0x5dfe, 0x75},
> +       {0x5dff, 0x75},
> +       {0x5e00, 0x75},
> +       {0x5e01, 0x75},
> +       {0x5e02, 0x75},
> +       {0x5e03, 0x75},
> +       {0x5e04, 0x75},
> +       {0x5e05, 0x75},
> +       {0x5e06, 0x75},
> +       {0x5e07, 0x75},
> +       {0x5e08, 0x75},
> +       {0x5e09, 0x75},
> +       {0x5e0a, 0x75},
> +       {0x5e0b, 0x75},
> +       {0x5e0c, 0x75},
> +       {0x5e0d, 0x75},
> +       {0x5e0e, 0x75},
> +       {0x5e0f, 0x75},
> +       {0x5e10, 0x75},
> +       {0x5e11, 0x75},
> +       {0x5e12, 0x75},
> +       {0x5e13, 0x75},
> +       {0x5e14, 0x75},
> +       {0x5e15, 0x75},
> +       {0x5e16, 0x75},
> +       {0x5e17, 0x75},
> +       {0x5e18, 0x75},
> +       {0x5e19, 0x75},
> +       {0x5e1a, 0x75},
> +       {0x5e1b, 0x75},
> +       {0x5e1c, 0x75},
> +       {0x5e1d, 0x75},
> +       {0x5e1e, 0x75},
> +       {0x5e1f, 0x75},
> +       {0x5e20, 0x75},
> +       {0x5e21, 0x75},
> +       {0x5e22, 0x75},
> +       {0x5e23, 0x75},
> +       {0x5e24, 0x75},
> +       {0x5e25, 0x75},
> +       {0x5e26, 0x75},
> +       {0x5e27, 0x75},
> +       {0x5e28, 0x75},
> +       {0x5e29, 0x75},
> +       {0x5e2a, 0x75},
> +       {0x5e2b, 0x75},
> +       {0x5e2c, 0x75},
> +       {0x5e2d, 0x75},
> +       {0x5e2e, 0x75},
> +       {0x5e2f, 0x75},
> +       {0x5e30, 0x75},
> +       {0x5e31, 0x75},
> +       {0x5e32, 0x75},
> +       {0x5e33, 0x75},
> +       {0x5e34, 0x75},
> +       {0x5e35, 0x75},
> +       {0x5e36, 0x75},
> +       {0x5e37, 0x75},
> +       {0x5e38, 0x75},
> +       {0x5e39, 0x75},
> +       {0x5e3a, 0x75},
> +       {0x5e3b, 0x75},
> +       {0x5e3c, 0x75},
> +       {0x5e3d, 0x75},
> +       {0x5e3e, 0x75},
> +       {0x5e3f, 0x75},
> +       {0x5e40, 0x75},
> +       {0x5e41, 0x75},
> +       {0x5e42, 0x75},
> +       {0x5e43, 0x75},
> +       {0x5e44, 0x75},
> +       {0x5e45, 0x75},
> +       {0x5e46, 0x75},
> +       {0x5e47, 0x75},
> +       {0x5e48, 0x75},
> +       {0x5e49, 0x75},
> +       {0x5e4a, 0x75},
> +       {0x5e4b, 0x75},
> +       {0x5e4c, 0x75},
> +       {0x5e4d, 0x75},
> +       {0x5e4e, 0x75},
> +       {0x5e4f, 0x75},
> +       {0x5e50, 0x75},
> +       {0x5e51, 0x75},
> +       {0x5e52, 0x75},
> +       {0x5e53, 0x75},
> +       {0x5e54, 0x75},
> +       {0x5e55, 0x75},
> +       {0x5e56, 0x75},
> +       {0x5e57, 0x75},
> +       {0x5e58, 0x75},
> +       {0x5e59, 0x75},
> +       {0x5e5a, 0x75},
> +       {0x5e5b, 0x75},
> +       {0x5e5c, 0x75},
> +       {0x5e5d, 0x75},
> +       {0x5e5e, 0x75},
> +       {0x5e5f, 0x75},
> +       {0x5e60, 0x75},
> +       {0x5e61, 0x75},
> +       {0x5e62, 0x75},
> +       {0x5e63, 0x75},
> +       {0x5e64, 0x75},
> +       {0x5e65, 0x75},
> +       {0x5e66, 0x75},
> +       {0x5e67, 0x75},
> +       {0x5e68, 0x75},
> +       {0x5e69, 0x75},
> +       {0x5e6a, 0x75},
> +       {0x5e6b, 0x75},
> +       {0x5e6c, 0x75},
> +       {0x5e6d, 0x75},
> +       {0x5e6e, 0x75},
> +       {0x5e6f, 0x75},
> +       {0x5e70, 0x75},
> +       {0x5e71, 0x75},
> +       {0x5e72, 0x75},
> +       {0x5e73, 0x75},
> +       {0x5e74, 0x75},
> +       {0x5e75, 0x75},
> +       {0x5e76, 0x75},
> +       {0x5e77, 0x75},
> +       {0x5e78, 0x75},
> +       {0x5e79, 0x75},
> +       {0x5e7a, 0x75},
> +       {0x5e7b, 0x75},
> +       {0x5e7c, 0x75},
> +       {0x5e7d, 0x75},
> +       {0x5e7e, 0x75},
> +       {0x5e7f, 0x75},
> +       {0x5e80, 0x75},
> +       {0x5e81, 0x75},
> +       {0x5e82, 0x75},
> +       {0x5e83, 0x75},
> +       {0x5e84, 0x75},
> +       {0x5e85, 0x75},
> +       {0x5e86, 0x75},
> +       {0x5e87, 0x75},
> +       {0x5e88, 0x75},
> +       {0x5e89, 0x75},
> +       {0x5e8a, 0x75},
> +       {0x5e8b, 0x75},
> +       {0x5e8c, 0x75},
> +       {0x5e8d, 0x75},
> +       {0x5e8e, 0x75},
> +       {0x5e8f, 0x75},
> +       {0x5e90, 0x75},
> +       {0x5e91, 0x75},
> +       {0x5e92, 0x75},
> +       {0x5e93, 0x75},
> +       {0x5e94, 0x75},
> +       {0x5e95, 0x75},
> +       {0x5e96, 0x75},
> +       {0x5e97, 0x75},
> +       {0x5e98, 0x75},
> +       {0x5e99, 0x75},
> +       {0x5e9a, 0x75},
> +       {0x5e9b, 0x75},
> +       {0x5e9c, 0x75},
> +       {0x5e9d, 0x75},
> +       {0x5e9e, 0x75},
> +       {0x5e9f, 0x75},
> +       {0x5ea0, 0x75},
> +       {0x5ea1, 0x75},
> +       {0x5ea2, 0x75},
> +       {0x5ea3, 0x75},
> +       {0x5ea4, 0x75},
> +       {0x5ea5, 0x75},
> +       {0x5ea6, 0x75},
> +       {0x5ea7, 0x75},
> +       {0x5ea8, 0x75},
> +       {0x5ea9, 0x75},
> +       {0x5eaa, 0x75},
> +       {0x5eab, 0x75},
> +       {0x5eac, 0x75},
> +       {0x5ead, 0x75},
> +       {0x5eae, 0x75},
> +       {0x5eaf, 0x75},
> +       {0x5eb0, 0x75},
> +       {0x5eb1, 0x75},
> +       {0x5eb2, 0x75},
> +       {0x5eb3, 0x75},
> +       {0x5eb4, 0x75},
> +       {0x5eb5, 0x75},
> +       {0x5eb6, 0x75},
> +       {0x5eb7, 0x75},
> +       {0x5eb8, 0x75},
> +       {0x5eb9, 0x75},
> +       {0x5eba, 0x75},
> +       {0x5ebb, 0x75},
> +       {0x5ebc, 0x75},
> +       {0x5ebd, 0x75},
> +       {0x5ebe, 0x75},
> +       {0x5ebf, 0x75},
> +       {0x5ec0, 0x75},
> +       {0x5ec1, 0x75},
> +       {0x5ec2, 0x75},
> +       {0x5ec3, 0x75},
> +       {0x5ec4, 0x75},
> +       {0x5ec5, 0x75},
> +       {0x5ec6, 0x75},
> +       {0x5ec7, 0x75},
> +       {0x5ec8, 0x75},
> +       {0x5ec9, 0x75},
> +       {0x5eca, 0x75},
> +       {0x5ecb, 0x75},
> +       {0x5ecc, 0x75},
> +       {0x5ecd, 0x75},
> +       {0x5ece, 0x75},
> +       {0x5ecf, 0x75},
> +       {0x5ed0, 0x75},
> +       {0x5ed1, 0x75},
> +       {0x5ed2, 0x75},
> +       {0x5ed3, 0x75},
> +       {0x5ed4, 0x75},
> +       {0x5ed5, 0x75},
> +       {0x5ed6, 0x75},
> +       {0x5ed7, 0x75},
> +       {0x5ed8, 0x75},
> +       {0x5ed9, 0x75},
> +       {0x5eda, 0x75},
> +       {0x5edb, 0x75},
> +       {0x5edc, 0x75},
> +       {0x5edd, 0x75},
> +       {0x5ede, 0x75},
> +       {0x5edf, 0x75},
> +       {0x5ee0, 0x75},
> +       {0x5ee1, 0x75},
> +       {0x5ee2, 0x75},
> +       {0x5ee3, 0x75},
> +       {0x5ee4, 0x75},
> +       {0x5ee5, 0x75},
> +       {0x5ee6, 0x75},
> +       {0x5ee7, 0x75},
> +       {0x5ee8, 0x75},
> +       {0x5ee9, 0x75},
> +       {0x5eea, 0x75},
> +       {0x5eeb, 0x75},
> +       {0x5eec, 0x75},
> +       {0x5eed, 0x75},
> +       {0x5eee, 0x75},
> +       {0x5eef, 0x75},
> +       {0x5ef0, 0x75},
> +       {0x5ef1, 0x75},
> +       {0x5ef2, 0x75},
> +       {0x5ef3, 0x75},
> +       {0x5ef4, 0x75},
> +       {0x5ef5, 0x75},
> +       {0x5ef6, 0x75},
> +       {0x5ef7, 0x75},
> +       {0x5ef8, 0x75},
> +       {0x5ef9, 0x75},
> +       {0x5efa, 0x75},
> +       {0x5efb, 0x75},
> +       {0x5efc, 0x75},
> +       {0x5efd, 0x75},
> +       {0x5efe, 0x75},
> +       {0x5eff, 0x75},
> +       {0x5f00, 0x75},
> +       {0x5f01, 0x75},
> +       {0x5f02, 0x75},
> +       {0x5f03, 0x75},
> +       {0x5f04, 0x75},
> +       {0x5f05, 0x75},
> +       {0x5f06, 0x75},
> +       {0x5f07, 0x75},
> +       {0x5f08, 0x75},
> +       {0x5f09, 0x75},
> +       {0x5f0a, 0x75},
> +       {0x5f0b, 0x75},
> +       {0x5f0c, 0x75},
> +       {0x5f0d, 0x75},
> +       {0x5f0e, 0x75},
> +       {0x5f0f, 0x75},
> +       {0x5f10, 0x75},
> +       {0x5f11, 0x75},
> +       {0x5f12, 0x75},
> +       {0x5f13, 0x75},
> +       {0x5f14, 0x75},
> +       {0x5f15, 0x75},
> +       {0x5f16, 0x75},
> +       {0x5f17, 0x75},
> +       {0x5f18, 0x75},
> +       {0x5f19, 0x75},
> +       {0x5f1a, 0x75},
> +       {0x5f1b, 0x75},
> +       {0x5f1c, 0x75},
> +       {0x5f1d, 0x75},
> +       {0x5f1e, 0x75},
> +       {0x5f1f, 0x75},
> +};
> +

There is a lot of repeated data in there. Is that all part of the mode setup? or can any of that be abstracted to common initialisation code?

Have you considered, or tried just setting the additional registers /after/ programming mode_3856x2416_regs ? Or investigating the sequences in the register table to see if it could be broken up accordingly?

(Do you have access to the datasheet?)


  
> -static const struct ov08x40_reg mode_3856x2416_regs[] = {
> +static const struct ov08x40_reg mode_3856x2416_regs_with_quirk[] = {
>         {0x5000, 0x5d},
>         {0x5001, 0x20},
>         {0x5008, 0xb0},
> @@ -582,9 +2254,13 @@ static const struct ov08x40_reg mode_3856x2416_regs[] = {
>         {0x480c, 0x80},
>         {0x480f, 0x32},
>         {0x4813, 0xe4},
> +       {0x481b, 0x2c}, /* HS Exit: Data Tx TEOT - reducing 8ns */
> +       {0x4826, 0x42}, /* HS Entry: Data Tx TREOT - raising 8ns */
> +       {0x4829, 0x54}, /* HS Exit: Data Tx TREOT - reducing 8ns */
>         {0x4837, 0x14},
>         {0x4850, 0x42},
>         {0x4884, 0x04},
> +       {0x4885, 0x1f}, /* driving strength change */
>         {0x4c00, 0xf8},
>         {0x4c01, 0x44},
>         {0x4c03, 0x00},
> @@ -2407,6 +4083,21 @@ static const struct ov08x40_mode supported_modes[] = {
>                 .exposure_shift = 1,
>                 .exposure_margin = OV08X40_EXPOSURE_MAX_MARGIN,
>         },
> +       {
> +               .width = 3856,
> +               .height = 2416,
> +               .vts_def = OV08X40_VTS_30FPS,
> +               .vts_min = OV08X40_VTS_30FPS,
> +               .llp = 0x10aa,
> +               .lanes = 4,
> +               .reg_list = {
> +                       .num_of_regs = ARRAY_SIZE(mode_3856x2416_regs_with_quirk),
> +                       .regs = mode_3856x2416_regs_with_quirk,
> +               },
> +               .link_freq_index = OV08X40_LINK_FREQ_400MHZ_INDEX,
> +               .exposure_shift = 1,
> +               .exposure_margin = OV08X40_EXPOSURE_MAX_MARGIN,
> +       },
>         {
>                 .width = 1928,
>                 .height = 1208,
> @@ -2537,6 +4228,23 @@ static int ov08x40_write_regs(struct ov08x40 *ov08x,
>         return 0;
>  }
>  
> +static const struct dmi_system_id dmi_quirk_table[] = {
> +       {
> +               .matches = {
> +                       DMI_MATCH(DMI_SYS_VENDOR, "Google"),
> +                       DMI_MATCH(DMI_PRODUCT_NAME, "Screebo"),
> +               },
> +       }
> +};
> +
> +static int determine_dmi_quirks(void) {
> +       if (dmi_check_system(dmi_quirk_table))
> +               return QUIRK_SCREEBO;
> +
> +       return QUIRK_DEFAULT;
> +}
> +
>  static int ov08x40_write_reg_list(struct ov08x40 *ov08x,
>                                   const struct ov08x40_reg_list 
> *r_list)  { @@ -2545,7 +4253,8 @@ static int 
> ov08x40_write_reg_list(struct ov08x40 *ov08x,
>  
>  static int ov08x40_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh 
> *fh)  {
> -       const struct ov08x40_mode *default_mode = &supported_modes[0];
> +       int quirks = determine_dmi_quirks();
> +       const struct ov08x40_mode *default_mode = 
> + &supported_modes[quirks];
>         struct ov08x40 *ov08x = to_ov08x40(sd);
>         struct v4l2_mbus_framefmt *try_fmt =
>                 v4l2_subdev_get_try_format(sd, fh->state, 0); @@ 
> -3244,6 +4953,7 @@ static int ov08x40_probe(struct i2c_client *client)  
> {
>         struct ov08x40 *ov08x;
>         int ret;
> +       int quirks = determine_dmi_quirks();
>  
>         /* Check HW config */
>         ret = ov08x40_check_hwcfg(&client->dev);
> @@ -3267,7 +4977,7 @@ static int ov08x40_probe(struct i2c_client *client)
>         }
>  
>         /* Set default mode to max resolution */
> -       ov08x->cur_mode = &supported_modes[0];
> +       ov08x->cur_mode = &supported_modes[quirks];
>  
>         ret = ov08x40_init_controls(ov08x);
>         if (ret)
> --
> 2.34.1
>
diff mbox series

Patch

diff --git a/drivers/media/i2c/ov08x40.c b/drivers/media/i2c/ov08x40.c
index acf6799d7fa..82a426a3ab6 100644
--- a/drivers/media/i2c/ov08x40.c
+++ b/drivers/media/i2c/ov08x40.c
@@ -9,6 +9,7 @@ 
 #include <media/v4l2-ctrls.h>
 #include <media/v4l2-device.h>
 #include <media/v4l2-fwnode.h>
+#include <linux/dmi.h>
 
 #define OV08X40_REG_VALUE_08BIT		1
 #define OV08X40_REG_VALUE_16BIT		2
@@ -99,6 +100,12 @@  enum {
 	OV08X40_LINK_FREQ_400MHZ_INDEX,
 };
 
+enum {
+	QUIRK_DEFAULT,
+	QUIRK_SCREEBO,
+	// Add more quirks here if needed
+};
+
 struct ov08x40_reg {
 	u16 address;
 	u8 val;
@@ -140,27 +147,1692 @@  struct ov08x40_mode {
 	u16 exposure_shift;
 };
 
-static const struct ov08x40_reg mipi_data_rate_800mbps[] = {
-	{0x0103, 0x01},
-	{0x1000, 0x00},
-	{0x1601, 0xd0},
-	{0x1001, 0x04},
-	{0x5004, 0x53},
-	{0x5110, 0x00},
-	{0x5111, 0x14},
-	{0x5112, 0x01},
-	{0x5113, 0x7b},
-	{0x5114, 0x00},
-	{0x5152, 0xa3},
-	{0x5a52, 0x1f},
-	{0x5a1a, 0x0e},
-	{0x5a1b, 0x10},
-	{0x5a1f, 0x0e},
-	{0x5a27, 0x0e},
-	{0x6002, 0x2e},
-};
+static const struct ov08x40_reg mipi_data_rate_800mbps[] = {
+	{0x0103, 0x01},
+	{0x1000, 0x00},
+	{0x1601, 0xd0},
+	{0x1001, 0x04},
+	{0x5004, 0x53},
+	{0x5110, 0x00},
+	{0x5111, 0x14},
+	{0x5112, 0x01},
+	{0x5113, 0x7b},
+	{0x5114, 0x00},
+	{0x5152, 0xa3},
+	{0x5a52, 0x1f},
+	{0x5a1a, 0x0e},
+	{0x5a1b, 0x10},
+	{0x5a1f, 0x0e},
+	{0x5a27, 0x0e},
+	{0x6002, 0x2e},
+};
+
+static const struct ov08x40_reg mode_3856x2416_regs[] = {
+	{0x5000, 0x5d},
+	{0x5001, 0x20},
+	{0x5008, 0xb0},
+	{0x50c1, 0x00},
+	{0x53c1, 0x00},
+	{0x5f40, 0x00},
+	{0x5f41, 0x40},
+	{0x0300, 0x3a},
+	{0x0301, 0xc8},
+	{0x0302, 0x31},
+	{0x0303, 0x03},
+	{0x0304, 0x01},
+	{0x0305, 0xa1},
+	{0x0306, 0x04},
+	{0x0307, 0x01},
+	{0x0308, 0x03},
+	{0x0309, 0x03},
+	{0x0310, 0x0a},
+	{0x0311, 0x02},
+	{0x0312, 0x01},
+	{0x0313, 0x08},
+	{0x0314, 0x66},
+	{0x0315, 0x00},
+	{0x0316, 0x34},
+	{0x0320, 0x02},
+	{0x0321, 0x03},
+	{0x0323, 0x05},
+	{0x0324, 0x01},
+	{0x0325, 0xb8},
+	{0x0326, 0x4a},
+	{0x0327, 0x04},
+	{0x0329, 0x00},
+	{0x032a, 0x05},
+	{0x032b, 0x00},
+	{0x032c, 0x00},
+	{0x032d, 0x00},
+	{0x032e, 0x02},
+	{0x032f, 0xa0},
+	{0x0350, 0x00},
+	{0x0360, 0x01},
+	{0x1216, 0x60},
+	{0x1217, 0x5b},
+	{0x1218, 0x00},
+	{0x1220, 0x24},
+	{0x198a, 0x00},
+	{0x198b, 0x01},
+	{0x198e, 0x00},
+	{0x198f, 0x01},
+	{0x3009, 0x04},
+	{0x3012, 0x41},
+	{0x3015, 0x00},
+	{0x3016, 0xb0},
+	{0x3017, 0xf0},
+	{0x3018, 0xf0},
+	{0x3019, 0xd2},
+	{0x301a, 0xb0},
+	{0x301c, 0x81},
+	{0x301d, 0x02},
+	{0x301e, 0x80},
+	{0x3022, 0xf0},
+	{0x3025, 0x89},
+	{0x3030, 0x03},
+	{0x3044, 0xc2},
+	{0x3050, 0x35},
+	{0x3051, 0x60},
+	{0x3052, 0x25},
+	{0x3053, 0x00},
+	{0x3054, 0x00},
+	{0x3055, 0x02},
+	{0x3056, 0x80},
+	{0x3057, 0x80},
+	{0x3058, 0x80},
+	{0x3059, 0x00},
+	{0x3107, 0x86},
+	{0x3400, 0x1c},
+	{0x3401, 0x80},
+	{0x3402, 0x8c},
+	{0x3419, 0x13},
+	{0x341a, 0x89},
+	{0x341b, 0x30},
+	{0x3420, 0x00},
+	{0x3421, 0x00},
+	{0x3422, 0x00},
+	{0x3423, 0x00},
+	{0x3424, 0x00},
+	{0x3425, 0x00},
+	{0x3426, 0x00},
+	{0x3427, 0x00},
+	{0x3428, 0x0f},
+	{0x3429, 0x00},
+	{0x342a, 0x00},
+	{0x342b, 0x00},
+	{0x342c, 0x00},
+	{0x342d, 0x00},
+	{0x342e, 0x00},
+	{0x342f, 0x11},
+	{0x3430, 0x11},
+	{0x3431, 0x10},
+	{0x3432, 0x00},
+	{0x3433, 0x00},
+	{0x3434, 0x00},
+	{0x3435, 0x00},
+	{0x3436, 0x00},
+	{0x3437, 0x00},
+	{0x3442, 0x02},
+	{0x3443, 0x02},
+	{0x3444, 0x07},
+	{0x3450, 0x00},
+	{0x3451, 0x00},
+	{0x3452, 0x18},
+	{0x3453, 0x18},
+	{0x3454, 0x00},
+	{0x3455, 0x80},
+	{0x3456, 0x08},
+	{0x3500, 0x00},
+	{0x3501, 0x02},
+	{0x3502, 0x00},
+	{0x3504, 0x4c},
+	{0x3506, 0x30},
+	{0x3507, 0x00},
+	{0x3508, 0x01},
+	{0x3509, 0x00},
+	{0x350a, 0x01},
+	{0x350b, 0x00},
+	{0x350c, 0x00},
+	{0x3540, 0x00},
+	{0x3541, 0x01},
+	{0x3542, 0x00},
+	{0x3544, 0x4c},
+	{0x3546, 0x30},
+	{0x3547, 0x00},
+	{0x3548, 0x01},
+	{0x3549, 0x00},
+	{0x354a, 0x01},
+	{0x354b, 0x00},
+	{0x354c, 0x00},
+	{0x3688, 0x02},
+	{0x368a, 0x2e},
+	{0x368e, 0x71},
+	{0x3696, 0xd1},
+	{0x3699, 0x00},
+	{0x369a, 0x00},
+	{0x36a4, 0x00},
+	{0x36a6, 0x00},
+	{0x3711, 0x00},
+	{0x3712, 0x51},
+	{0x3713, 0x00},
+	{0x3714, 0x24},
+	{0x3716, 0x00},
+	{0x3718, 0x07},
+	{0x371a, 0x1c},
+	{0x371b, 0x00},
+	{0x3720, 0x08},
+	{0x3725, 0x32},
+	{0x3727, 0x05},
+	{0x3760, 0x02},
+	{0x3761, 0x17},
+	{0x3762, 0x02},
+	{0x3763, 0x02},
+	{0x3764, 0x02},
+	{0x3765, 0x2c},
+	{0x3766, 0x04},
+	{0x3767, 0x2c},
+	{0x3768, 0x02},
+	{0x3769, 0x00},
+	{0x376b, 0x20},
+	{0x376e, 0x03},
+	{0x37b0, 0x00},
+	{0x37b1, 0xab},
+	{0x37b2, 0x01},
+	{0x37b3, 0x82},
+	{0x37b4, 0x00},
+	{0x37b5, 0xe4},
+	{0x37b6, 0x01},
+	{0x37b7, 0xee},
+	{0x3800, 0x00},
+	{0x3801, 0x00},
+	{0x3802, 0x00},
+	{0x3803, 0x00},
+	{0x3804, 0x0f},
+	{0x3805, 0x1f},
+	{0x3806, 0x09},
+	{0x3807, 0x7f},
+	{0x3808, 0x0f},
+	{0x3809, 0x10},
+	{0x380a, 0x09},
+	{0x380b, 0x70},
+	{0x380c, 0x02},
+	{0x380d, 0x80},
+	{0x380e, 0x13},
+	{0x380f, 0x88},
+	{0x3810, 0x00},
+	{0x3811, 0x08},
+	{0x3812, 0x00},
+	{0x3813, 0x07},
+	{0x3814, 0x11},
+	{0x3815, 0x11},
+	{0x3820, 0x00},
+	{0x3821, 0x04},
+	{0x3822, 0x00},
+	{0x3823, 0x04},
+	{0x3828, 0x0f},
+	{0x382a, 0x80},
+	{0x382e, 0x41},
+	{0x3837, 0x08},
+	{0x383a, 0x81},
+	{0x383b, 0x81},
+	{0x383c, 0x11},
+	{0x383d, 0x11},
+	{0x383e, 0x00},
+	{0x383f, 0x38},
+	{0x3840, 0x00},
+	{0x3847, 0x00},
+	{0x384a, 0x00},
+	{0x384c, 0x02},
+	{0x384d, 0x80},
+	{0x3856, 0x50},
+	{0x3857, 0x30},
+	{0x3858, 0x80},
+	{0x3859, 0x40},
+	{0x3860, 0x00},
+	{0x3888, 0x00},
+	{0x3889, 0x00},
+	{0x388a, 0x00},
+	{0x388b, 0x00},
+	{0x388c, 0x00},
+	{0x388d, 0x00},
+	{0x388e, 0x00},
+	{0x388f, 0x00},
+	{0x3894, 0x00},
+	{0x3895, 0x00},
+	{0x3c84, 0x00},
+	{0x3d85, 0x8b},
+	{0x3daa, 0x80},
+	{0x3dab, 0x14},
+	{0x3dac, 0x80},
+	{0x3dad, 0xc8},
+	{0x3dae, 0x81},
+	{0x3daf, 0x7b},
+	{0x3f00, 0x10},
+	{0x3f01, 0x11},
+	{0x3f06, 0x0d},
+	{0x3f07, 0x0b},
+	{0x3f08, 0x0d},
+	{0x3f09, 0x0b},
+	{0x3f0a, 0x01},
+	{0x3f0b, 0x11},
+	{0x3f0c, 0x33},
+	{0x4001, 0x07},
+	{0x4007, 0x20},
+	{0x4008, 0x00},
+	{0x4009, 0x05},
+	{0x400a, 0x00},
+	{0x400b, 0x08},
+	{0x400c, 0x00},
+	{0x400d, 0x08},
+	{0x400e, 0x14},
+	{0x4010, 0xf4},
+	{0x4011, 0x03},
+	{0x4012, 0x55},
+	{0x4015, 0x00},
+	{0x4016, 0x2d},
+	{0x4017, 0x00},
+	{0x4018, 0x0f},
+	{0x401b, 0x08},
+	{0x401c, 0x00},
+	{0x401d, 0x10},
+	{0x401e, 0x02},
+	{0x401f, 0x00},
+	{0x4050, 0x06},
+	{0x4051, 0xff},
+	{0x4052, 0xff},
+	{0x4053, 0xff},
+	{0x4054, 0xff},
+	{0x4055, 0xff},
+	{0x4056, 0xff},
+	{0x4057, 0x7f},
+	{0x4058, 0x00},
+	{0x4059, 0x00},
+	{0x405a, 0x00},
+	{0x405b, 0x00},
+	{0x405c, 0x07},
+	{0x405d, 0xff},
+	{0x405e, 0x07},
+	{0x405f, 0xff},
+	{0x4080, 0x78},
+	{0x4081, 0x78},
+	{0x4082, 0x78},
+	{0x4083, 0x78},
+	{0x4019, 0x00},
+	{0x401a, 0x40},
+	{0x4020, 0x04},
+	{0x4021, 0x00},
+	{0x4022, 0x04},
+	{0x4023, 0x00},
+	{0x4024, 0x04},
+	{0x4025, 0x00},
+	{0x4026, 0x04},
+	{0x4027, 0x00},
+	{0x4030, 0x00},
+	{0x4031, 0x00},
+	{0x4032, 0x00},
+	{0x4033, 0x00},
+	{0x4034, 0x00},
+	{0x4035, 0x00},
+	{0x4036, 0x00},
+	{0x4037, 0x00},
+	{0x4040, 0x00},
+	{0x4041, 0x80},
+	{0x4042, 0x00},
+	{0x4043, 0x80},
+	{0x4044, 0x00},
+	{0x4045, 0x80},
+	{0x4046, 0x00},
+	{0x4047, 0x80},
+	{0x4060, 0x00},
+	{0x4061, 0x00},
+	{0x4062, 0x00},
+	{0x4063, 0x00},
+	{0x4064, 0x00},
+	{0x4065, 0x00},
+	{0x4066, 0x00},
+	{0x4067, 0x00},
+	{0x4068, 0x00},
+	{0x4069, 0x00},
+	{0x406a, 0x00},
+	{0x406b, 0x00},
+	{0x406c, 0x00},
+	{0x406d, 0x00},
+	{0x406e, 0x00},
+	{0x406f, 0x00},
+	{0x4070, 0x00},
+	{0x4071, 0x00},
+	{0x4072, 0x00},
+	{0x4073, 0x00},
+	{0x4074, 0x00},
+	{0x4075, 0x00},
+	{0x4076, 0x00},
+	{0x4077, 0x00},
+	{0x4078, 0x00},
+	{0x4079, 0x00},
+	{0x407a, 0x00},
+	{0x407b, 0x00},
+	{0x407c, 0x00},
+	{0x407d, 0x00},
+	{0x407e, 0x00},
+	{0x407f, 0x00},
+	{0x40e0, 0x00},
+	{0x40e1, 0x00},
+	{0x40e2, 0x00},
+	{0x40e3, 0x00},
+	{0x40e4, 0x00},
+	{0x40e5, 0x00},
+	{0x40e6, 0x00},
+	{0x40e7, 0x00},
+	{0x40e8, 0x00},
+	{0x40e9, 0x80},
+	{0x40ea, 0x00},
+	{0x40eb, 0x80},
+	{0x40ec, 0x00},
+	{0x40ed, 0x80},
+	{0x40ee, 0x00},
+	{0x40ef, 0x80},
+	{0x40f0, 0x02},
+	{0x40f1, 0x04},
+	{0x4300, 0x00},
+	{0x4301, 0x00},
+	{0x4302, 0x00},
+	{0x4303, 0x00},
+	{0x4304, 0x00},
+	{0x4305, 0x00},
+	{0x4306, 0x00},
+	{0x4307, 0x00},
+	{0x4308, 0x00},
+	{0x4309, 0x00},
+	{0x430a, 0x00},
+	{0x430b, 0xff},
+	{0x430c, 0xff},
+	{0x430d, 0x00},
+	{0x430e, 0x00},
+	{0x4315, 0x00},
+	{0x4316, 0x00},
+	{0x4317, 0x00},
+	{0x4318, 0x00},
+	{0x4319, 0x00},
+	{0x431a, 0x00},
+	{0x431b, 0x00},
+	{0x431c, 0x00},
+	{0x4500, 0x07},
+	{0x4501, 0x00},
+	{0x4502, 0x00},
+	{0x4503, 0x0f},
+	{0x4504, 0x80},
+	{0x4506, 0x01},
+	{0x4509, 0x05},
+	{0x450c, 0x00},
+	{0x450d, 0x20},
+	{0x450e, 0x00},
+	{0x450f, 0x00},
+	{0x4510, 0x00},
+	{0x4523, 0x00},
+	{0x4526, 0x00},
+	{0x4542, 0x00},
+	{0x4543, 0x00},
+	{0x4544, 0x00},
+	{0x4545, 0x00},
+	{0x4546, 0x00},
+	{0x4547, 0x10},
+	{0x4602, 0x00},
+	{0x4603, 0x15},
+	{0x460b, 0x07},
+	{0x4680, 0x11},
+	{0x4686, 0x00},
+	{0x4687, 0x00},
+	{0x4700, 0x00},
+	{0x4800, 0x64},
+	{0x4806, 0x40},
+	{0x480b, 0x10},
+	{0x480c, 0x80},
+	{0x480f, 0x32},
+	{0x4813, 0xe4},
+	{0x4837, 0x14},
+	{0x4850, 0x42},
+	{0x4884, 0x04},
+	{0x4c00, 0xf8},
+	{0x4c01, 0x44},
+	{0x4c03, 0x00},
+	{0x4d00, 0x00},
+	{0x4d01, 0x16},
+	{0x4d04, 0x10},
+	{0x4d05, 0x00},
+	{0x4d06, 0x0c},
+	{0x4d07, 0x00},
+	{0x3d84, 0x04},
+	{0x3680, 0xa4},
+	{0x3682, 0x80},
+	{0x3601, 0x40},
+	{0x3602, 0x90},
+	{0x3608, 0x0a},
+	{0x3938, 0x09},
+	{0x3a74, 0x84},
+	{0x3a99, 0x84},
+	{0x3ab9, 0xa6},
+	{0x3aba, 0xba},
+	{0x3b12, 0x84},
+	{0x3b14, 0xbb},
+	{0x3b15, 0xbf},
+	{0x3a29, 0x26},
+	{0x3a1f, 0x8a},
+	{0x3a22, 0x91},
+	{0x3a25, 0x96},
+	{0x3a28, 0xb4},
+	{0x3a2b, 0xba},
+	{0x3a2e, 0xbf},
+	{0x3a31, 0xc1},
+	{0x3a20, 0x00},
+	{0x3939, 0x9d},
+	{0x3902, 0x0e},
+	{0x3903, 0x0e},
+	{0x3904, 0x0e},
+	{0x3905, 0x0e},
+	{0x3906, 0x07},
+	{0x3907, 0x0d},
+	{0x3908, 0x11},
+	{0x3909, 0x12},
+	{0x360f, 0x99},
+	{0x390c, 0x33},
+	{0x390d, 0x66},
+	{0x390e, 0xaa},
+	{0x3911, 0x90},
+	{0x3913, 0x90},
+	{0x3915, 0x90},
+	{0x3917, 0x90},
+	{0x3b3f, 0x9d},
+	{0x3b45, 0x9d},
+	{0x3b1b, 0xc9},
+	{0x3b21, 0xc9},
+	{0x3440, 0xa4},
+	{0x3a23, 0x15},
+	{0x3a26, 0x1d},
+	{0x3a2c, 0x4a},
+	{0x3a2f, 0x18},
+	{0x3a32, 0x55},
+	{0x3b0a, 0x01},
+	{0x3b0b, 0x00},
+	{0x3b0e, 0x01},
+	{0x3b0f, 0x00},
+	{0x392c, 0x02},
+	{0x392d, 0x02},
+	{0x392e, 0x04},
+	{0x392f, 0x03},
+	{0x3930, 0x08},
+	{0x3931, 0x07},
+	{0x3932, 0x10},
+	{0x3933, 0x0c},
+	{0x3609, 0x08},
+	{0x3921, 0x0f},
+	{0x3928, 0x15},
+	{0x3929, 0x2a},
+	{0x392a, 0x54},
+	{0x392b, 0xa8},
+	{0x3426, 0x10},
+	{0x3407, 0x01},
+	{0x3404, 0x01},
+	{0x3500, 0x00},
+	{0x3501, 0x10},
+	{0x3502, 0x10},
+	{0x3508, 0x0f},
+	{0x3509, 0x80},
+	{0x5a80, 0x75},
+	{0x5a81, 0x75},
+	{0x5a82, 0x75},
+	{0x5a83, 0x75},
+	{0x5a84, 0x75},
+	{0x5a85, 0x75},
+	{0x5a86, 0x75},
+	{0x5a87, 0x75},
+	{0x5a88, 0x75},
+	{0x5a89, 0x75},
+	{0x5a8a, 0x75},
+	{0x5a8b, 0x75},
+	{0x5a8c, 0x75},
+	{0x5a8d, 0x75},
+	{0x5a8e, 0x75},
+	{0x5a8f, 0x75},
+	{0x5a90, 0x75},
+	{0x5a91, 0x75},
+	{0x5a92, 0x75},
+	{0x5a93, 0x75},
+	{0x5a94, 0x75},
+	{0x5a95, 0x75},
+	{0x5a96, 0x75},
+	{0x5a97, 0x75},
+	{0x5a98, 0x75},
+	{0x5a99, 0x75},
+	{0x5a9a, 0x75},
+	{0x5a9b, 0x75},
+	{0x5a9c, 0x75},
+	{0x5a9d, 0x75},
+	{0x5a9e, 0x75},
+	{0x5a9f, 0x75},
+	{0x5aa0, 0x75},
+	{0x5aa1, 0x75},
+	{0x5aa2, 0x75},
+	{0x5aa3, 0x75},
+	{0x5aa4, 0x75},
+	{0x5aa5, 0x75},
+	{0x5aa6, 0x75},
+	{0x5aa7, 0x75},
+	{0x5aa8, 0x75},
+	{0x5aa9, 0x75},
+	{0x5aaa, 0x75},
+	{0x5aab, 0x75},
+	{0x5aac, 0x75},
+	{0x5aad, 0x75},
+	{0x5aae, 0x75},
+	{0x5aaf, 0x75},
+	{0x5ab0, 0x75},
+	{0x5ab1, 0x75},
+	{0x5ab2, 0x75},
+	{0x5ab3, 0x75},
+	{0x5ab4, 0x75},
+	{0x5ab5, 0x75},
+	{0x5ab6, 0x75},
+	{0x5ab7, 0x75},
+	{0x5ab8, 0x75},
+	{0x5ab9, 0x75},
+	{0x5aba, 0x75},
+	{0x5abb, 0x75},
+	{0x5abc, 0x75},
+	{0x5abd, 0x75},
+	{0x5abe, 0x75},
+	{0x5abf, 0x75},
+	{0x5ac0, 0x75},
+	{0x5ac1, 0x75},
+	{0x5ac2, 0x75},
+	{0x5ac3, 0x75},
+	{0x5ac4, 0x75},
+	{0x5ac5, 0x75},
+	{0x5ac6, 0x75},
+	{0x5ac7, 0x75},
+	{0x5ac8, 0x75},
+	{0x5ac9, 0x75},
+	{0x5aca, 0x75},
+	{0x5acb, 0x75},
+	{0x5acc, 0x75},
+	{0x5acd, 0x75},
+	{0x5ace, 0x75},
+	{0x5acf, 0x75},
+	{0x5ad0, 0x75},
+	{0x5ad1, 0x75},
+	{0x5ad2, 0x75},
+	{0x5ad3, 0x75},
+	{0x5ad4, 0x75},
+	{0x5ad5, 0x75},
+	{0x5ad6, 0x75},
+	{0x5ad7, 0x75},
+	{0x5ad8, 0x75},
+	{0x5ad9, 0x75},
+	{0x5ada, 0x75},
+	{0x5adb, 0x75},
+	{0x5adc, 0x75},
+	{0x5add, 0x75},
+	{0x5ade, 0x75},
+	{0x5adf, 0x75},
+	{0x5ae0, 0x75},
+	{0x5ae1, 0x75},
+	{0x5ae2, 0x75},
+	{0x5ae3, 0x75},
+	{0x5ae4, 0x75},
+	{0x5ae5, 0x75},
+	{0x5ae6, 0x75},
+	{0x5ae7, 0x75},
+	{0x5ae8, 0x75},
+	{0x5ae9, 0x75},
+	{0x5aea, 0x75},
+	{0x5aeb, 0x75},
+	{0x5aec, 0x75},
+	{0x5aed, 0x75},
+	{0x5aee, 0x75},
+	{0x5aef, 0x75},
+	{0x5af0, 0x75},
+	{0x5af1, 0x75},
+	{0x5af2, 0x75},
+	{0x5af3, 0x75},
+	{0x5af4, 0x75},
+	{0x5af5, 0x75},
+	{0x5af6, 0x75},
+	{0x5af7, 0x75},
+	{0x5af8, 0x75},
+	{0x5af9, 0x75},
+	{0x5afa, 0x75},
+	{0x5afb, 0x75},
+	{0x5afc, 0x75},
+	{0x5afd, 0x75},
+	{0x5afe, 0x75},
+	{0x5aff, 0x75},
+	{0x5b00, 0x75},
+	{0x5b01, 0x75},
+	{0x5b02, 0x75},
+	{0x5b03, 0x75},
+	{0x5b04, 0x75},
+	{0x5b05, 0x75},
+	{0x5b06, 0x75},
+	{0x5b07, 0x75},
+	{0x5b08, 0x75},
+	{0x5b09, 0x75},
+	{0x5b0a, 0x75},
+	{0x5b0b, 0x75},
+	{0x5b0c, 0x75},
+	{0x5b0d, 0x75},
+	{0x5b0e, 0x75},
+	{0x5b0f, 0x75},
+	{0x5b10, 0x75},
+	{0x5b11, 0x75},
+	{0x5b12, 0x75},
+	{0x5b13, 0x75},
+	{0x5b14, 0x75},
+	{0x5b15, 0x75},
+	{0x5b16, 0x75},
+	{0x5b17, 0x75},
+	{0x5b18, 0x75},
+	{0x5b19, 0x75},
+	{0x5b1a, 0x75},
+	{0x5b1b, 0x75},
+	{0x5b1c, 0x75},
+	{0x5b1d, 0x75},
+	{0x5b1e, 0x75},
+	{0x5b1f, 0x75},
+	{0x5b20, 0x75},
+	{0x5b21, 0x75},
+	{0x5b22, 0x75},
+	{0x5b23, 0x75},
+	{0x5b24, 0x75},
+	{0x5b25, 0x75},
+	{0x5b26, 0x75},
+	{0x5b27, 0x75},
+	{0x5b28, 0x75},
+	{0x5b29, 0x75},
+	{0x5b2a, 0x75},
+	{0x5b2b, 0x75},
+	{0x5b2c, 0x75},
+	{0x5b2d, 0x75},
+	{0x5b2e, 0x75},
+	{0x5b2f, 0x75},
+	{0x5b30, 0x75},
+	{0x5b31, 0x75},
+	{0x5b32, 0x75},
+	{0x5b33, 0x75},
+	{0x5b34, 0x75},
+	{0x5b35, 0x75},
+	{0x5b36, 0x75},
+	{0x5b37, 0x75},
+	{0x5b38, 0x75},
+	{0x5b39, 0x75},
+	{0x5b3a, 0x75},
+	{0x5b3b, 0x75},
+	{0x5b3c, 0x75},
+	{0x5b3d, 0x75},
+	{0x5b3e, 0x75},
+	{0x5b3f, 0x75},
+	{0x5b40, 0x75},
+	{0x5b41, 0x75},
+	{0x5b42, 0x75},
+	{0x5b43, 0x75},
+	{0x5b44, 0x75},
+	{0x5b45, 0x75},
+	{0x5b46, 0x75},
+	{0x5b47, 0x75},
+	{0x5b48, 0x75},
+	{0x5b49, 0x75},
+	{0x5b4a, 0x75},
+	{0x5b4b, 0x75},
+	{0x5b4c, 0x75},
+	{0x5b4d, 0x75},
+	{0x5b4e, 0x75},
+	{0x5b4f, 0x75},
+	{0x5b50, 0x75},
+	{0x5b51, 0x75},
+	{0x5b52, 0x75},
+	{0x5b53, 0x75},
+	{0x5b54, 0x75},
+	{0x5b55, 0x75},
+	{0x5b56, 0x75},
+	{0x5b57, 0x75},
+	{0x5b58, 0x75},
+	{0x5b59, 0x75},
+	{0x5b5a, 0x75},
+	{0x5b5b, 0x75},
+	{0x5b5c, 0x75},
+	{0x5b5d, 0x75},
+	{0x5b5e, 0x75},
+	{0x5b5f, 0x75},
+	{0x5b60, 0x75},
+	{0x5b61, 0x75},
+	{0x5b62, 0x75},
+	{0x5b63, 0x75},
+	{0x5b64, 0x75},
+	{0x5b65, 0x75},
+	{0x5b66, 0x75},
+	{0x5b67, 0x75},
+	{0x5b68, 0x75},
+	{0x5b69, 0x75},
+	{0x5b6a, 0x75},
+	{0x5b6b, 0x75},
+	{0x5b6c, 0x75},
+	{0x5b6d, 0x75},
+	{0x5b6e, 0x75},
+	{0x5b6f, 0x75},
+	{0x5b70, 0x75},
+	{0x5b71, 0x75},
+	{0x5b72, 0x75},
+	{0x5b73, 0x75},
+	{0x5b74, 0x75},
+	{0x5b75, 0x75},
+	{0x5b76, 0x75},
+	{0x5b77, 0x75},
+	{0x5b78, 0x75},
+	{0x5b79, 0x75},
+	{0x5b7a, 0x75},
+	{0x5b7b, 0x75},
+	{0x5b7c, 0x75},
+	{0x5b7d, 0x75},
+	{0x5b7e, 0x75},
+	{0x5b7f, 0x75},
+	{0x5b80, 0x75},
+	{0x5b81, 0x75},
+	{0x5b82, 0x75},
+	{0x5b83, 0x75},
+	{0x5b84, 0x75},
+	{0x5b85, 0x75},
+	{0x5b86, 0x75},
+	{0x5b87, 0x75},
+	{0x5b88, 0x75},
+	{0x5b89, 0x75},
+	{0x5b8a, 0x75},
+	{0x5b8b, 0x75},
+	{0x5b8c, 0x75},
+	{0x5b8d, 0x75},
+	{0x5b8e, 0x75},
+	{0x5b8f, 0x75},
+	{0x5b90, 0x75},
+	{0x5b91, 0x75},
+	{0x5b92, 0x75},
+	{0x5b93, 0x75},
+	{0x5b94, 0x75},
+	{0x5b95, 0x75},
+	{0x5b96, 0x75},
+	{0x5b97, 0x75},
+	{0x5b98, 0x75},
+	{0x5b99, 0x75},
+	{0x5b9a, 0x75},
+	{0x5b9b, 0x75},
+	{0x5b9c, 0x75},
+	{0x5b9d, 0x75},
+	{0x5b9e, 0x75},
+	{0x5b9f, 0x75},
+	{0x5bc0, 0x75},
+	{0x5bc1, 0x75},
+	{0x5bc2, 0x75},
+	{0x5bc3, 0x75},
+	{0x5bc4, 0x75},
+	{0x5bc5, 0x75},
+	{0x5bc6, 0x75},
+	{0x5bc7, 0x75},
+	{0x5bc8, 0x75},
+	{0x5bc9, 0x75},
+	{0x5bca, 0x75},
+	{0x5bcb, 0x75},
+	{0x5bcc, 0x75},
+	{0x5bcd, 0x75},
+	{0x5bce, 0x75},
+	{0x5bcf, 0x75},
+	{0x5bd0, 0x75},
+	{0x5bd1, 0x75},
+	{0x5bd2, 0x75},
+	{0x5bd3, 0x75},
+	{0x5bd4, 0x75},
+	{0x5bd5, 0x75},
+	{0x5bd6, 0x75},
+	{0x5bd7, 0x75},
+	{0x5bd8, 0x75},
+	{0x5bd9, 0x75},
+	{0x5bda, 0x75},
+	{0x5bdb, 0x75},
+	{0x5bdc, 0x75},
+	{0x5bdd, 0x75},
+	{0x5bde, 0x75},
+	{0x5bdf, 0x75},
+	{0x5be0, 0x75},
+	{0x5be1, 0x75},
+	{0x5be2, 0x75},
+	{0x5be3, 0x75},
+	{0x5be4, 0x75},
+	{0x5be5, 0x75},
+	{0x5be6, 0x75},
+	{0x5be7, 0x75},
+	{0x5be8, 0x75},
+	{0x5be9, 0x75},
+	{0x5bea, 0x75},
+	{0x5beb, 0x75},
+	{0x5bec, 0x75},
+	{0x5bed, 0x75},
+	{0x5bee, 0x75},
+	{0x5bef, 0x75},
+	{0x5bf0, 0x75},
+	{0x5bf1, 0x75},
+	{0x5bf2, 0x75},
+	{0x5bf3, 0x75},
+	{0x5bf4, 0x75},
+	{0x5bf5, 0x75},
+	{0x5bf6, 0x75},
+	{0x5bf7, 0x75},
+	{0x5bf8, 0x75},
+	{0x5bf9, 0x75},
+	{0x5bfa, 0x75},
+	{0x5bfb, 0x75},
+	{0x5bfc, 0x75},
+	{0x5bfd, 0x75},
+	{0x5bfe, 0x75},
+	{0x5bff, 0x75},
+	{0x5c00, 0x75},
+	{0x5c01, 0x75},
+	{0x5c02, 0x75},
+	{0x5c03, 0x75},
+	{0x5c04, 0x75},
+	{0x5c05, 0x75},
+	{0x5c06, 0x75},
+	{0x5c07, 0x75},
+	{0x5c08, 0x75},
+	{0x5c09, 0x75},
+	{0x5c0a, 0x75},
+	{0x5c0b, 0x75},
+	{0x5c0c, 0x75},
+	{0x5c0d, 0x75},
+	{0x5c0e, 0x75},
+	{0x5c0f, 0x75},
+	{0x5c10, 0x75},
+	{0x5c11, 0x75},
+	{0x5c12, 0x75},
+	{0x5c13, 0x75},
+	{0x5c14, 0x75},
+	{0x5c15, 0x75},
+	{0x5c16, 0x75},
+	{0x5c17, 0x75},
+	{0x5c18, 0x75},
+	{0x5c19, 0x75},
+	{0x5c1a, 0x75},
+	{0x5c1b, 0x75},
+	{0x5c1c, 0x75},
+	{0x5c1d, 0x75},
+	{0x5c1e, 0x75},
+	{0x5c1f, 0x75},
+	{0x5c20, 0x75},
+	{0x5c21, 0x75},
+	{0x5c22, 0x75},
+	{0x5c23, 0x75},
+	{0x5c24, 0x75},
+	{0x5c25, 0x75},
+	{0x5c26, 0x75},
+	{0x5c27, 0x75},
+	{0x5c28, 0x75},
+	{0x5c29, 0x75},
+	{0x5c2a, 0x75},
+	{0x5c2b, 0x75},
+	{0x5c2c, 0x75},
+	{0x5c2d, 0x75},
+	{0x5c2e, 0x75},
+	{0x5c2f, 0x75},
+	{0x5c30, 0x75},
+	{0x5c31, 0x75},
+	{0x5c32, 0x75},
+	{0x5c33, 0x75},
+	{0x5c34, 0x75},
+	{0x5c35, 0x75},
+	{0x5c36, 0x75},
+	{0x5c37, 0x75},
+	{0x5c38, 0x75},
+	{0x5c39, 0x75},
+	{0x5c3a, 0x75},
+	{0x5c3b, 0x75},
+	{0x5c3c, 0x75},
+	{0x5c3d, 0x75},
+	{0x5c3e, 0x75},
+	{0x5c3f, 0x75},
+	{0x5c40, 0x75},
+	{0x5c41, 0x75},
+	{0x5c42, 0x75},
+	{0x5c43, 0x75},
+	{0x5c44, 0x75},
+	{0x5c45, 0x75},
+	{0x5c46, 0x75},
+	{0x5c47, 0x75},
+	{0x5c48, 0x75},
+	{0x5c49, 0x75},
+	{0x5c4a, 0x75},
+	{0x5c4b, 0x75},
+	{0x5c4c, 0x75},
+	{0x5c4d, 0x75},
+	{0x5c4e, 0x75},
+	{0x5c4f, 0x75},
+	{0x5c50, 0x75},
+	{0x5c51, 0x75},
+	{0x5c52, 0x75},
+	{0x5c53, 0x75},
+	{0x5c54, 0x75},
+	{0x5c55, 0x75},
+	{0x5c56, 0x75},
+	{0x5c57, 0x75},
+	{0x5c58, 0x75},
+	{0x5c59, 0x75},
+	{0x5c5a, 0x75},
+	{0x5c5b, 0x75},
+	{0x5c5c, 0x75},
+	{0x5c5d, 0x75},
+	{0x5c5e, 0x75},
+	{0x5c5f, 0x75},
+	{0x5c60, 0x75},
+	{0x5c61, 0x75},
+	{0x5c62, 0x75},
+	{0x5c63, 0x75},
+	{0x5c64, 0x75},
+	{0x5c65, 0x75},
+	{0x5c66, 0x75},
+	{0x5c67, 0x75},
+	{0x5c68, 0x75},
+	{0x5c69, 0x75},
+	{0x5c6a, 0x75},
+	{0x5c6b, 0x75},
+	{0x5c6c, 0x75},
+	{0x5c6d, 0x75},
+	{0x5c6e, 0x75},
+	{0x5c6f, 0x75},
+	{0x5c70, 0x75},
+	{0x5c71, 0x75},
+	{0x5c72, 0x75},
+	{0x5c73, 0x75},
+	{0x5c74, 0x75},
+	{0x5c75, 0x75},
+	{0x5c76, 0x75},
+	{0x5c77, 0x75},
+	{0x5c78, 0x75},
+	{0x5c79, 0x75},
+	{0x5c7a, 0x75},
+	{0x5c7b, 0x75},
+	{0x5c7c, 0x75},
+	{0x5c7d, 0x75},
+	{0x5c7e, 0x75},
+	{0x5c7f, 0x75},
+	{0x5c80, 0x75},
+	{0x5c81, 0x75},
+	{0x5c82, 0x75},
+	{0x5c83, 0x75},
+	{0x5c84, 0x75},
+	{0x5c85, 0x75},
+	{0x5c86, 0x75},
+	{0x5c87, 0x75},
+	{0x5c88, 0x75},
+	{0x5c89, 0x75},
+	{0x5c8a, 0x75},
+	{0x5c8b, 0x75},
+	{0x5c8c, 0x75},
+	{0x5c8d, 0x75},
+	{0x5c8e, 0x75},
+	{0x5c8f, 0x75},
+	{0x5c90, 0x75},
+	{0x5c91, 0x75},
+	{0x5c92, 0x75},
+	{0x5c93, 0x75},
+	{0x5c94, 0x75},
+	{0x5c95, 0x75},
+	{0x5c96, 0x75},
+	{0x5c97, 0x75},
+	{0x5c98, 0x75},
+	{0x5c99, 0x75},
+	{0x5c9a, 0x75},
+	{0x5c9b, 0x75},
+	{0x5c9c, 0x75},
+	{0x5c9d, 0x75},
+	{0x5c9e, 0x75},
+	{0x5c9f, 0x75},
+	{0x5ca0, 0x75},
+	{0x5ca1, 0x75},
+	{0x5ca2, 0x75},
+	{0x5ca3, 0x75},
+	{0x5ca4, 0x75},
+	{0x5ca5, 0x75},
+	{0x5ca6, 0x75},
+	{0x5ca7, 0x75},
+	{0x5ca8, 0x75},
+	{0x5ca9, 0x75},
+	{0x5caa, 0x75},
+	{0x5cab, 0x75},
+	{0x5cac, 0x75},
+	{0x5cad, 0x75},
+	{0x5cae, 0x75},
+	{0x5caf, 0x75},
+	{0x5cb0, 0x75},
+	{0x5cb1, 0x75},
+	{0x5cb2, 0x75},
+	{0x5cb3, 0x75},
+	{0x5cb4, 0x75},
+	{0x5cb5, 0x75},
+	{0x5cb6, 0x75},
+	{0x5cb7, 0x75},
+	{0x5cb8, 0x75},
+	{0x5cb9, 0x75},
+	{0x5cba, 0x75},
+	{0x5cbb, 0x75},
+	{0x5cbc, 0x75},
+	{0x5cbd, 0x75},
+	{0x5cbe, 0x75},
+	{0x5cbf, 0x75},
+	{0x5cc0, 0x75},
+	{0x5cc1, 0x75},
+	{0x5cc2, 0x75},
+	{0x5cc3, 0x75},
+	{0x5cc4, 0x75},
+	{0x5cc5, 0x75},
+	{0x5cc6, 0x75},
+	{0x5cc7, 0x75},
+	{0x5cc8, 0x75},
+	{0x5cc9, 0x75},
+	{0x5cca, 0x75},
+	{0x5ccb, 0x75},
+	{0x5ccc, 0x75},
+	{0x5ccd, 0x75},
+	{0x5cce, 0x75},
+	{0x5ccf, 0x75},
+	{0x5cd0, 0x75},
+	{0x5cd1, 0x75},
+	{0x5cd2, 0x75},
+	{0x5cd3, 0x75},
+	{0x5cd4, 0x75},
+	{0x5cd5, 0x75},
+	{0x5cd6, 0x75},
+	{0x5cd7, 0x75},
+	{0x5cd8, 0x75},
+	{0x5cd9, 0x75},
+	{0x5cda, 0x75},
+	{0x5cdb, 0x75},
+	{0x5cdc, 0x75},
+	{0x5cdd, 0x75},
+	{0x5cde, 0x75},
+	{0x5cdf, 0x75},
+	{0x5ce0, 0x75},
+	{0x5ce1, 0x75},
+	{0x5ce2, 0x75},
+	{0x5ce3, 0x75},
+	{0x5ce4, 0x75},
+	{0x5ce5, 0x75},
+	{0x5ce6, 0x75},
+	{0x5ce7, 0x75},
+	{0x5ce8, 0x75},
+	{0x5ce9, 0x75},
+	{0x5cea, 0x75},
+	{0x5ceb, 0x75},
+	{0x5cec, 0x75},
+	{0x5ced, 0x75},
+	{0x5cee, 0x75},
+	{0x5cef, 0x75},
+	{0x5cf0, 0x75},
+	{0x5cf1, 0x75},
+	{0x5cf2, 0x75},
+	{0x5cf3, 0x75},
+	{0x5cf4, 0x75},
+	{0x5cf5, 0x75},
+	{0x5cf6, 0x75},
+	{0x5cf7, 0x75},
+	{0x5cf8, 0x75},
+	{0x5cf9, 0x75},
+	{0x5cfa, 0x75},
+	{0x5cfb, 0x75},
+	{0x5cfc, 0x75},
+	{0x5cfd, 0x75},
+	{0x5cfe, 0x75},
+	{0x5cff, 0x75},
+	{0x5d00, 0x75},
+	{0x5d01, 0x75},
+	{0x5d02, 0x75},
+	{0x5d03, 0x75},
+	{0x5d04, 0x75},
+	{0x5d05, 0x75},
+	{0x5d06, 0x75},
+	{0x5d07, 0x75},
+	{0x5d08, 0x75},
+	{0x5d09, 0x75},
+	{0x5d0a, 0x75},
+	{0x5d0b, 0x75},
+	{0x5d0c, 0x75},
+	{0x5d0d, 0x75},
+	{0x5d0e, 0x75},
+	{0x5d0f, 0x75},
+	{0x5d10, 0x75},
+	{0x5d11, 0x75},
+	{0x5d12, 0x75},
+	{0x5d13, 0x75},
+	{0x5d14, 0x75},
+	{0x5d15, 0x75},
+	{0x5d16, 0x75},
+	{0x5d17, 0x75},
+	{0x5d18, 0x75},
+	{0x5d19, 0x75},
+	{0x5d1a, 0x75},
+	{0x5d1b, 0x75},
+	{0x5d1c, 0x75},
+	{0x5d1d, 0x75},
+	{0x5d1e, 0x75},
+	{0x5d1f, 0x75},
+	{0x5d20, 0x75},
+	{0x5d21, 0x75},
+	{0x5d22, 0x75},
+	{0x5d23, 0x75},
+	{0x5d24, 0x75},
+	{0x5d25, 0x75},
+	{0x5d26, 0x75},
+	{0x5d27, 0x75},
+	{0x5d28, 0x75},
+	{0x5d29, 0x75},
+	{0x5d2a, 0x75},
+	{0x5d2b, 0x75},
+	{0x5d2c, 0x75},
+	{0x5d2d, 0x75},
+	{0x5d2e, 0x75},
+	{0x5d2f, 0x75},
+	{0x5d30, 0x75},
+	{0x5d31, 0x75},
+	{0x5d32, 0x75},
+	{0x5d33, 0x75},
+	{0x5d34, 0x75},
+	{0x5d35, 0x75},
+	{0x5d36, 0x75},
+	{0x5d37, 0x75},
+	{0x5d38, 0x75},
+	{0x5d39, 0x75},
+	{0x5d3a, 0x75},
+	{0x5d3b, 0x75},
+	{0x5d3c, 0x75},
+	{0x5d3d, 0x75},
+	{0x5d3e, 0x75},
+	{0x5d3f, 0x75},
+	{0x5d40, 0x75},
+	{0x5d41, 0x75},
+	{0x5d42, 0x75},
+	{0x5d43, 0x75},
+	{0x5d44, 0x75},
+	{0x5d45, 0x75},
+	{0x5d46, 0x75},
+	{0x5d47, 0x75},
+	{0x5d48, 0x75},
+	{0x5d49, 0x75},
+	{0x5d4a, 0x75},
+	{0x5d4b, 0x75},
+	{0x5d4c, 0x75},
+	{0x5d4d, 0x75},
+	{0x5d4e, 0x75},
+	{0x5d4f, 0x75},
+	{0x5d50, 0x75},
+	{0x5d51, 0x75},
+	{0x5d52, 0x75},
+	{0x5d53, 0x75},
+	{0x5d54, 0x75},
+	{0x5d55, 0x75},
+	{0x5d56, 0x75},
+	{0x5d57, 0x75},
+	{0x5d58, 0x75},
+	{0x5d59, 0x75},
+	{0x5d5a, 0x75},
+	{0x5d5b, 0x75},
+	{0x5d5c, 0x75},
+	{0x5d5d, 0x75},
+	{0x5d5e, 0x75},
+	{0x5d5f, 0x75},
+	{0x5d60, 0x75},
+	{0x5d61, 0x75},
+	{0x5d62, 0x75},
+	{0x5d63, 0x75},
+	{0x5d64, 0x75},
+	{0x5d65, 0x75},
+	{0x5d66, 0x75},
+	{0x5d67, 0x75},
+	{0x5d68, 0x75},
+	{0x5d69, 0x75},
+	{0x5d6a, 0x75},
+	{0x5d6b, 0x75},
+	{0x5d6c, 0x75},
+	{0x5d6d, 0x75},
+	{0x5d6e, 0x75},
+	{0x5d6f, 0x75},
+	{0x5d70, 0x75},
+	{0x5d71, 0x75},
+	{0x5d72, 0x75},
+	{0x5d73, 0x75},
+	{0x5d74, 0x75},
+	{0x5d75, 0x75},
+	{0x5d76, 0x75},
+	{0x5d77, 0x75},
+	{0x5d78, 0x75},
+	{0x5d79, 0x75},
+	{0x5d7a, 0x75},
+	{0x5d7b, 0x75},
+	{0x5d7c, 0x75},
+	{0x5d7d, 0x75},
+	{0x5d7e, 0x75},
+	{0x5d7f, 0x75},
+	{0x5d80, 0x75},
+	{0x5d81, 0x75},
+	{0x5d82, 0x75},
+	{0x5d83, 0x75},
+	{0x5d84, 0x75},
+	{0x5d85, 0x75},
+	{0x5d86, 0x75},
+	{0x5d87, 0x75},
+	{0x5d88, 0x75},
+	{0x5d89, 0x75},
+	{0x5d8a, 0x75},
+	{0x5d8b, 0x75},
+	{0x5d8c, 0x75},
+	{0x5d8d, 0x75},
+	{0x5d8e, 0x75},
+	{0x5d8f, 0x75},
+	{0x5d90, 0x75},
+	{0x5d91, 0x75},
+	{0x5d92, 0x75},
+	{0x5d93, 0x75},
+	{0x5d94, 0x75},
+	{0x5d95, 0x75},
+	{0x5d96, 0x75},
+	{0x5d97, 0x75},
+	{0x5d98, 0x75},
+	{0x5d99, 0x75},
+	{0x5d9a, 0x75},
+	{0x5d9b, 0x75},
+	{0x5d9c, 0x75},
+	{0x5d9d, 0x75},
+	{0x5d9e, 0x75},
+	{0x5d9f, 0x75},
+	{0x5da0, 0x75},
+	{0x5da1, 0x75},
+	{0x5da2, 0x75},
+	{0x5da3, 0x75},
+	{0x5da4, 0x75},
+	{0x5da5, 0x75},
+	{0x5da6, 0x75},
+	{0x5da7, 0x75},
+	{0x5da8, 0x75},
+	{0x5da9, 0x75},
+	{0x5daa, 0x75},
+	{0x5dab, 0x75},
+	{0x5dac, 0x75},
+	{0x5dad, 0x75},
+	{0x5dae, 0x75},
+	{0x5daf, 0x75},
+	{0x5db0, 0x75},
+	{0x5db1, 0x75},
+	{0x5db2, 0x75},
+	{0x5db3, 0x75},
+	{0x5db4, 0x75},
+	{0x5db5, 0x75},
+	{0x5db6, 0x75},
+	{0x5db7, 0x75},
+	{0x5db8, 0x75},
+	{0x5db9, 0x75},
+	{0x5dba, 0x75},
+	{0x5dbb, 0x75},
+	{0x5dbc, 0x75},
+	{0x5dbd, 0x75},
+	{0x5dbe, 0x75},
+	{0x5dbf, 0x75},
+	{0x5dc0, 0x75},
+	{0x5dc1, 0x75},
+	{0x5dc2, 0x75},
+	{0x5dc3, 0x75},
+	{0x5dc4, 0x75},
+	{0x5dc5, 0x75},
+	{0x5dc6, 0x75},
+	{0x5dc7, 0x75},
+	{0x5dc8, 0x75},
+	{0x5dc9, 0x75},
+	{0x5dca, 0x75},
+	{0x5dcb, 0x75},
+	{0x5dcc, 0x75},
+	{0x5dcd, 0x75},
+	{0x5dce, 0x75},
+	{0x5dcf, 0x75},
+	{0x5dd0, 0x75},
+	{0x5dd1, 0x75},
+	{0x5dd2, 0x75},
+	{0x5dd3, 0x75},
+	{0x5dd4, 0x75},
+	{0x5dd5, 0x75},
+	{0x5dd6, 0x75},
+	{0x5dd7, 0x75},
+	{0x5dd8, 0x75},
+	{0x5dd9, 0x75},
+	{0x5dda, 0x75},
+	{0x5ddb, 0x75},
+	{0x5ddc, 0x75},
+	{0x5ddd, 0x75},
+	{0x5dde, 0x75},
+	{0x5ddf, 0x75},
+	{0x5de0, 0x75},
+	{0x5de1, 0x75},
+	{0x5de2, 0x75},
+	{0x5de3, 0x75},
+	{0x5de4, 0x75},
+	{0x5de5, 0x75},
+	{0x5de6, 0x75},
+	{0x5de7, 0x75},
+	{0x5de8, 0x75},
+	{0x5de9, 0x75},
+	{0x5dea, 0x75},
+	{0x5deb, 0x75},
+	{0x5dec, 0x75},
+	{0x5ded, 0x75},
+	{0x5dee, 0x75},
+	{0x5def, 0x75},
+	{0x5df0, 0x75},
+	{0x5df1, 0x75},
+	{0x5df2, 0x75},
+	{0x5df3, 0x75},
+	{0x5df4, 0x75},
+	{0x5df5, 0x75},
+	{0x5df6, 0x75},
+	{0x5df7, 0x75},
+	{0x5df8, 0x75},
+	{0x5df9, 0x75},
+	{0x5dfa, 0x75},
+	{0x5dfb, 0x75},
+	{0x5dfc, 0x75},
+	{0x5dfd, 0x75},
+	{0x5dfe, 0x75},
+	{0x5dff, 0x75},
+	{0x5e00, 0x75},
+	{0x5e01, 0x75},
+	{0x5e02, 0x75},
+	{0x5e03, 0x75},
+	{0x5e04, 0x75},
+	{0x5e05, 0x75},
+	{0x5e06, 0x75},
+	{0x5e07, 0x75},
+	{0x5e08, 0x75},
+	{0x5e09, 0x75},
+	{0x5e0a, 0x75},
+	{0x5e0b, 0x75},
+	{0x5e0c, 0x75},
+	{0x5e0d, 0x75},
+	{0x5e0e, 0x75},
+	{0x5e0f, 0x75},
+	{0x5e10, 0x75},
+	{0x5e11, 0x75},
+	{0x5e12, 0x75},
+	{0x5e13, 0x75},
+	{0x5e14, 0x75},
+	{0x5e15, 0x75},
+	{0x5e16, 0x75},
+	{0x5e17, 0x75},
+	{0x5e18, 0x75},
+	{0x5e19, 0x75},
+	{0x5e1a, 0x75},
+	{0x5e1b, 0x75},
+	{0x5e1c, 0x75},
+	{0x5e1d, 0x75},
+	{0x5e1e, 0x75},
+	{0x5e1f, 0x75},
+	{0x5e20, 0x75},
+	{0x5e21, 0x75},
+	{0x5e22, 0x75},
+	{0x5e23, 0x75},
+	{0x5e24, 0x75},
+	{0x5e25, 0x75},
+	{0x5e26, 0x75},
+	{0x5e27, 0x75},
+	{0x5e28, 0x75},
+	{0x5e29, 0x75},
+	{0x5e2a, 0x75},
+	{0x5e2b, 0x75},
+	{0x5e2c, 0x75},
+	{0x5e2d, 0x75},
+	{0x5e2e, 0x75},
+	{0x5e2f, 0x75},
+	{0x5e30, 0x75},
+	{0x5e31, 0x75},
+	{0x5e32, 0x75},
+	{0x5e33, 0x75},
+	{0x5e34, 0x75},
+	{0x5e35, 0x75},
+	{0x5e36, 0x75},
+	{0x5e37, 0x75},
+	{0x5e38, 0x75},
+	{0x5e39, 0x75},
+	{0x5e3a, 0x75},
+	{0x5e3b, 0x75},
+	{0x5e3c, 0x75},
+	{0x5e3d, 0x75},
+	{0x5e3e, 0x75},
+	{0x5e3f, 0x75},
+	{0x5e40, 0x75},
+	{0x5e41, 0x75},
+	{0x5e42, 0x75},
+	{0x5e43, 0x75},
+	{0x5e44, 0x75},
+	{0x5e45, 0x75},
+	{0x5e46, 0x75},
+	{0x5e47, 0x75},
+	{0x5e48, 0x75},
+	{0x5e49, 0x75},
+	{0x5e4a, 0x75},
+	{0x5e4b, 0x75},
+	{0x5e4c, 0x75},
+	{0x5e4d, 0x75},
+	{0x5e4e, 0x75},
+	{0x5e4f, 0x75},
+	{0x5e50, 0x75},
+	{0x5e51, 0x75},
+	{0x5e52, 0x75},
+	{0x5e53, 0x75},
+	{0x5e54, 0x75},
+	{0x5e55, 0x75},
+	{0x5e56, 0x75},
+	{0x5e57, 0x75},
+	{0x5e58, 0x75},
+	{0x5e59, 0x75},
+	{0x5e5a, 0x75},
+	{0x5e5b, 0x75},
+	{0x5e5c, 0x75},
+	{0x5e5d, 0x75},
+	{0x5e5e, 0x75},
+	{0x5e5f, 0x75},
+	{0x5e60, 0x75},
+	{0x5e61, 0x75},
+	{0x5e62, 0x75},
+	{0x5e63, 0x75},
+	{0x5e64, 0x75},
+	{0x5e65, 0x75},
+	{0x5e66, 0x75},
+	{0x5e67, 0x75},
+	{0x5e68, 0x75},
+	{0x5e69, 0x75},
+	{0x5e6a, 0x75},
+	{0x5e6b, 0x75},
+	{0x5e6c, 0x75},
+	{0x5e6d, 0x75},
+	{0x5e6e, 0x75},
+	{0x5e6f, 0x75},
+	{0x5e70, 0x75},
+	{0x5e71, 0x75},
+	{0x5e72, 0x75},
+	{0x5e73, 0x75},
+	{0x5e74, 0x75},
+	{0x5e75, 0x75},
+	{0x5e76, 0x75},
+	{0x5e77, 0x75},
+	{0x5e78, 0x75},
+	{0x5e79, 0x75},
+	{0x5e7a, 0x75},
+	{0x5e7b, 0x75},
+	{0x5e7c, 0x75},
+	{0x5e7d, 0x75},
+	{0x5e7e, 0x75},
+	{0x5e7f, 0x75},
+	{0x5e80, 0x75},
+	{0x5e81, 0x75},
+	{0x5e82, 0x75},
+	{0x5e83, 0x75},
+	{0x5e84, 0x75},
+	{0x5e85, 0x75},
+	{0x5e86, 0x75},
+	{0x5e87, 0x75},
+	{0x5e88, 0x75},
+	{0x5e89, 0x75},
+	{0x5e8a, 0x75},
+	{0x5e8b, 0x75},
+	{0x5e8c, 0x75},
+	{0x5e8d, 0x75},
+	{0x5e8e, 0x75},
+	{0x5e8f, 0x75},
+	{0x5e90, 0x75},
+	{0x5e91, 0x75},
+	{0x5e92, 0x75},
+	{0x5e93, 0x75},
+	{0x5e94, 0x75},
+	{0x5e95, 0x75},
+	{0x5e96, 0x75},
+	{0x5e97, 0x75},
+	{0x5e98, 0x75},
+	{0x5e99, 0x75},
+	{0x5e9a, 0x75},
+	{0x5e9b, 0x75},
+	{0x5e9c, 0x75},
+	{0x5e9d, 0x75},
+	{0x5e9e, 0x75},
+	{0x5e9f, 0x75},
+	{0x5ea0, 0x75},
+	{0x5ea1, 0x75},
+	{0x5ea2, 0x75},
+	{0x5ea3, 0x75},
+	{0x5ea4, 0x75},
+	{0x5ea5, 0x75},
+	{0x5ea6, 0x75},
+	{0x5ea7, 0x75},
+	{0x5ea8, 0x75},
+	{0x5ea9, 0x75},
+	{0x5eaa, 0x75},
+	{0x5eab, 0x75},
+	{0x5eac, 0x75},
+	{0x5ead, 0x75},
+	{0x5eae, 0x75},
+	{0x5eaf, 0x75},
+	{0x5eb0, 0x75},
+	{0x5eb1, 0x75},
+	{0x5eb2, 0x75},
+	{0x5eb3, 0x75},
+	{0x5eb4, 0x75},
+	{0x5eb5, 0x75},
+	{0x5eb6, 0x75},
+	{0x5eb7, 0x75},
+	{0x5eb8, 0x75},
+	{0x5eb9, 0x75},
+	{0x5eba, 0x75},
+	{0x5ebb, 0x75},
+	{0x5ebc, 0x75},
+	{0x5ebd, 0x75},
+	{0x5ebe, 0x75},
+	{0x5ebf, 0x75},
+	{0x5ec0, 0x75},
+	{0x5ec1, 0x75},
+	{0x5ec2, 0x75},
+	{0x5ec3, 0x75},
+	{0x5ec4, 0x75},
+	{0x5ec5, 0x75},
+	{0x5ec6, 0x75},
+	{0x5ec7, 0x75},
+	{0x5ec8, 0x75},
+	{0x5ec9, 0x75},
+	{0x5eca, 0x75},
+	{0x5ecb, 0x75},
+	{0x5ecc, 0x75},
+	{0x5ecd, 0x75},
+	{0x5ece, 0x75},
+	{0x5ecf, 0x75},
+	{0x5ed0, 0x75},
+	{0x5ed1, 0x75},
+	{0x5ed2, 0x75},
+	{0x5ed3, 0x75},
+	{0x5ed4, 0x75},
+	{0x5ed5, 0x75},
+	{0x5ed6, 0x75},
+	{0x5ed7, 0x75},
+	{0x5ed8, 0x75},
+	{0x5ed9, 0x75},
+	{0x5eda, 0x75},
+	{0x5edb, 0x75},
+	{0x5edc, 0x75},
+	{0x5edd, 0x75},
+	{0x5ede, 0x75},
+	{0x5edf, 0x75},
+	{0x5ee0, 0x75},
+	{0x5ee1, 0x75},
+	{0x5ee2, 0x75},
+	{0x5ee3, 0x75},
+	{0x5ee4, 0x75},
+	{0x5ee5, 0x75},
+	{0x5ee6, 0x75},
+	{0x5ee7, 0x75},
+	{0x5ee8, 0x75},
+	{0x5ee9, 0x75},
+	{0x5eea, 0x75},
+	{0x5eeb, 0x75},
+	{0x5eec, 0x75},
+	{0x5eed, 0x75},
+	{0x5eee, 0x75},
+	{0x5eef, 0x75},
+	{0x5ef0, 0x75},
+	{0x5ef1, 0x75},
+	{0x5ef2, 0x75},
+	{0x5ef3, 0x75},
+	{0x5ef4, 0x75},
+	{0x5ef5, 0x75},
+	{0x5ef6, 0x75},
+	{0x5ef7, 0x75},
+	{0x5ef8, 0x75},
+	{0x5ef9, 0x75},
+	{0x5efa, 0x75},
+	{0x5efb, 0x75},
+	{0x5efc, 0x75},
+	{0x5efd, 0x75},
+	{0x5efe, 0x75},
+	{0x5eff, 0x75},
+	{0x5f00, 0x75},
+	{0x5f01, 0x75},
+	{0x5f02, 0x75},
+	{0x5f03, 0x75},
+	{0x5f04, 0x75},
+	{0x5f05, 0x75},
+	{0x5f06, 0x75},
+	{0x5f07, 0x75},
+	{0x5f08, 0x75},
+	{0x5f09, 0x75},
+	{0x5f0a, 0x75},
+	{0x5f0b, 0x75},
+	{0x5f0c, 0x75},
+	{0x5f0d, 0x75},
+	{0x5f0e, 0x75},
+	{0x5f0f, 0x75},
+	{0x5f10, 0x75},
+	{0x5f11, 0x75},
+	{0x5f12, 0x75},
+	{0x5f13, 0x75},
+	{0x5f14, 0x75},
+	{0x5f15, 0x75},
+	{0x5f16, 0x75},
+	{0x5f17, 0x75},
+	{0x5f18, 0x75},
+	{0x5f19, 0x75},
+	{0x5f1a, 0x75},
+	{0x5f1b, 0x75},
+	{0x5f1c, 0x75},
+	{0x5f1d, 0x75},
+	{0x5f1e, 0x75},
+	{0x5f1f, 0x75},
+};
+
 
-static const struct ov08x40_reg mode_3856x2416_regs[] = {
+static const struct ov08x40_reg mode_3856x2416_regs_with_quirk[] = {
 	{0x5000, 0x5d},
 	{0x5001, 0x20},
 	{0x5008, 0xb0},
@@ -582,9 +2254,13 @@  static const struct ov08x40_reg mode_3856x2416_regs[] = {
 	{0x480c, 0x80},
 	{0x480f, 0x32},
 	{0x4813, 0xe4},
+	{0x481b, 0x2c}, /* HS Exit: Data Tx TEOT - reducing 8ns */
+	{0x4826, 0x42}, /* HS Entry: Data Tx TREOT - raising 8ns */
+	{0x4829, 0x54}, /* HS Exit: Data Tx TREOT - reducing 8ns */
 	{0x4837, 0x14},
 	{0x4850, 0x42},
 	{0x4884, 0x04},
+	{0x4885, 0x1f}, /* driving strength change */
 	{0x4c00, 0xf8},
 	{0x4c01, 0x44},
 	{0x4c03, 0x00},
@@ -2407,6 +4083,21 @@  static const struct ov08x40_mode supported_modes[] = {
 		.exposure_shift = 1,
 		.exposure_margin = OV08X40_EXPOSURE_MAX_MARGIN,
 	},
+	{
+		.width = 3856,
+		.height = 2416,
+		.vts_def = OV08X40_VTS_30FPS,
+		.vts_min = OV08X40_VTS_30FPS,
+		.llp = 0x10aa,
+		.lanes = 4,
+		.reg_list = {
+			.num_of_regs = ARRAY_SIZE(mode_3856x2416_regs_with_quirk),
+			.regs = mode_3856x2416_regs_with_quirk,
+		},
+		.link_freq_index = OV08X40_LINK_FREQ_400MHZ_INDEX,
+		.exposure_shift = 1,
+		.exposure_margin = OV08X40_EXPOSURE_MAX_MARGIN,
+	},
 	{
 		.width = 1928,
 		.height = 1208,
@@ -2537,6 +4228,23 @@  static int ov08x40_write_regs(struct ov08x40 *ov08x,
 	return 0;
 }
 
+static const struct dmi_system_id dmi_quirk_table[] = {
+	{
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Google"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "Screebo"),
+		},
+	}
+};
+
+static int determine_dmi_quirks(void)
+{
+	if (dmi_check_system(dmi_quirk_table))
+		return QUIRK_SCREEBO;
+
+	return QUIRK_DEFAULT;
+}
+
 static int ov08x40_write_reg_list(struct ov08x40 *ov08x,
 				  const struct ov08x40_reg_list *r_list)
 {
@@ -2545,7 +4253,8 @@  static int ov08x40_write_reg_list(struct ov08x40 *ov08x,
 
 static int ov08x40_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh)
 {
-	const struct ov08x40_mode *default_mode = &supported_modes[0];
+	int quirks = determine_dmi_quirks();
+	const struct ov08x40_mode *default_mode = &supported_modes[quirks];
 	struct ov08x40 *ov08x = to_ov08x40(sd);
 	struct v4l2_mbus_framefmt *try_fmt =
 		v4l2_subdev_get_try_format(sd, fh->state, 0);
@@ -3244,6 +4953,7 @@  static int ov08x40_probe(struct i2c_client *client)
 {
 	struct ov08x40 *ov08x;
 	int ret;
+	int quirks = determine_dmi_quirks();
 
 	/* Check HW config */
 	ret = ov08x40_check_hwcfg(&client->dev);
@@ -3267,7 +4977,7 @@  static int ov08x40_probe(struct i2c_client *client)
 	}
 
 	/* Set default mode to max resolution */
-	ov08x->cur_mode = &supported_modes[0];
+	ov08x->cur_mode = &supported_modes[quirks];
 
 	ret = ov08x40_init_controls(ov08x);
 	if (ret)