video: tegra: imx091: lower max VI clock to 204MHz
Frank Chen [Thu, 17 Jan 2013 00:20:42 +0000 (16:20 -0800)]
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
Signed-off-by: Frank Chen <frankc@nvidia.com>
Reviewed-on: http://git-master/r/191825
Reviewed-by: Jon Mayo <jmayo@nvidia.com>
Reviewed-by: Gary Zhang <garyz@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Bharat Nihalani <bnihalani@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 bac5beb..3ee7eef 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 65f8871..a496ede 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 59de6d9..7048690 100644 (file)
@@ -110,7 +110,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,