]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
video: tegra: imx091: lower max VI clock to 204MHz
authorFrank Chen <frankc@nvidia.com>
Thu, 17 Jan 2013 00:20:42 +0000 (16:20 -0800)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 19:51:09 +0000 (12:51 -0700)
Lower the max VI clock for imx091 from 250MHz
to 204MHz. This is to match what is currently
specified in the sensor mode table. This is done
by lowering the clock multiplier from 10.41667
to 8.5(24MHz * 8.5 = 204MHz).

On some older T114 platforms, we are not able to
set VI clock to 250MHz due to the slower memory
clock. This will end up slowing our VI_SENSOR
clock and make frame rate lower.

Bug 1207018

Change-Id: Ia8b582c740d57409b28e6aa696c29b85e23dceba
Reviewed-on: http://git-master/r/191825
(cherry picked from commit 7a547b1044ec57bbb5590651a4373ca8cfee7886)

Signed-off-by: Frank Chen <frankc@nvidia.com>
Change-Id: Id566450b6371d06c1ecd22a8824f4ef73bd10b1d
Reviewed-on: http://git-master/r/193496
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>
arch/arm/mach-tegra/board-dalmore-sensors.c
arch/arm/mach-tegra/board-pluto-sensors.c
drivers/media/video/tegra/imx091.c

index 2d1fbbaadc88bab6fc2084527385cfd45a53e7a6..e1c975e2d028b13bff2d5f2134c1fa6b12d9593f 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * arch/arm/mach-tegra/board-dalmore-sensors.c
  *
- * Copyright (c) 2012 NVIDIA CORPORATION, All rights reserved.
+ * Copyright (c) 2012-2013 NVIDIA CORPORATION, All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are
@@ -285,7 +285,7 @@ static struct nvc_imager_cap imx091_cap = {
        .initial_clock_rate_khz = 6000,
        .clock_profiles[0] = {
                .external_clock_khz     = 24000,
-               .clock_multiplier       = 10416667, /* value / 1,000,000 */
+               .clock_multiplier       = 850000, /* value / 1,000,000 */
        },
        .clock_profiles[1] = {
                .external_clock_khz     = 0,
index 89de14a051840f58545ef447eefe28c183001661..3a0ec79246e7697d7610519a98db1f6968079eb8 100644 (file)
@@ -532,7 +532,7 @@ static struct nvc_imager_cap imx091_cap = {
        .initial_clock_rate_khz = 6000,
        .clock_profiles[0] = {
                .external_clock_khz     = 24000,
-               .clock_multiplier       = 10416667, /* value / 1,000,000 */
+               .clock_multiplier       = 850000, /* value / 1,000,000 */
        },
        .clock_profiles[1] = {
                .external_clock_khz     = 0,
index 0e5073f5c382e25cffb1662b6043fa9d8258a7a8..bc113659743e3aec769fb465dca575e15304eeab 100644 (file)
@@ -119,7 +119,7 @@ static struct nvc_imager_cap imx091_dflt_cap = {
        .initial_clock_rate_khz = 6000,
        .clock_profiles[0] = {
                .external_clock_khz     = 24000,
-               .clock_multiplier       = 10416667, /* value / 1,000,000 */
+               .clock_multiplier       = 8500000, /* value / 1,000,000 */
        },
        .clock_profiles[1] = {
                .external_clock_khz     = 0,