ARM: tegra12: set CPU rate to 2.2GHz for sku 0x87
[linux-3.10.git] / arch / arm / mach-tegra / panel-j-1440-810-5-8.c
index b602fe0..7433a81 100644 (file)
@@ -48,6 +48,54 @@ static struct regulator *vdd_lcd_bl;
 static struct regulator *vdd_lcd_bl_en;
 static struct regulator *avdd_lcd_3v0_2v8;
 
+static struct tegra_dc_sd_settings dsi_j_1440_810_5_8_sd_settings = {
+       .enable = 0, /* disabled by default. */
+       .use_auto_pwm = false,
+       .hw_update_delay = 0,
+       .bin_width = -1,
+       .aggressiveness = 1,
+       .use_vid_luma = false,
+       .phase_in_adjustments = 0,
+       .k_limit_enable = true,
+       .k_limit = 180,
+       .sd_window_enable = false,
+       .soft_clipping_enable = true,
+       /* Low soft clipping threshold to compensate for aggressive k_limit */
+       .soft_clipping_threshold = 128,
+       .smooth_k_enable = true,
+       .smooth_k_incr = 128,
+       /* Default video coefficients */
+       .coeff = {5, 9, 2},
+       .fc = {0, 0},
+       /* Immediate backlight changes */
+       .blp = {1024, 255},
+       /* Gammas: R: 2.2 G: 2.2 B: 2.2 */
+       /* Default BL TF */
+       .bltf = {
+                       {
+                               {57, 65, 73, 82},
+                               {92, 103, 114, 125},
+                               {138, 150, 164, 178},
+                               {193, 208, 224, 241},
+                       },
+               },
+       /* Default LUT */
+       .lut = {
+                       {
+                               {255, 255, 255},
+                               {199, 199, 199},
+                               {153, 153, 153},
+                               {116, 116, 116},
+                               {85, 85, 85},
+                               {59, 59, 59},
+                               {36, 36, 36},
+                               {17, 17, 17},
+                               {0, 0, 0},
+                       },
+               },
+       .sd_brightness = &sd_brightness,
+};
+
 #ifdef CONFIG_TEGRA_DC_CMU
 static struct tegra_dc_cmu dsi_j_1440_810_5_8_cmu = {
        /* lut1 maps sRGB to linear space. */
@@ -530,6 +578,7 @@ static void dsi_j_1440_810_5_8_fb_data_init(struct tegra_fb_data *fb)
 static void dsi_j_1440_810_5_8_sd_settings_init
        (struct tegra_dc_sd_settings *settings)
 {
+       *settings = dsi_j_1440_810_5_8_sd_settings;
        settings->bl_device_name = "pwm-backlight";
 }