]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
ARM: tegra: pluto: enable MAXFLASH
authorCharlie Huang <chahuang@nvidia.com>
Tue, 26 Feb 2013 21:36:59 +0000 (13:36 -0800)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:02:10 +0000 (13:02 -0700)
Program MAXFLASH_TH: The voltage of VDD_SYS that will trigger a MAXFLASH
system lock up prevention control sequence. Set this to 3.4V, the most
conservative setting. This value may perhaps be lowered once the behavior
of the MAXFLASH system is characterized.

Program LB_TMR_F: This is a timer that will trigger a re-evaluation of the
MAX-FLASH conditions after the FLASH current has been reduced. Set this to
256usecs.
Program LB_TMR_R: This is a timer that will trigger a re-evaluation of the
MAX-FLASH conditions after the FLASH current has been reduced. Set this to
256usecs.

Program MAXFLASH_HYS: set this to 200mV

Program the MAXFLASH_EN: Enable the system once it is programmed correctly.

bug 1239750

Change-Id: I66223cbeeed392b3959b6936e83763182622e893
Signed-off-by: Charlie Huang <chahuang@nvidia.com>
Reviewed-on: http://git-master/r/204274
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
arch/arm/mach-tegra/board-pluto-sensors.c

index d5562fe99ca95f2595a633fe9f412b52691b7d6f..049aee84a6ba7d90e6dd5b811d664e2a2ad506e5 100644 (file)
@@ -168,6 +168,10 @@ static struct max77665_f_platform_data pluto_max77665_flash_pdata = {
                /* .flash_on_torch         = true, */
                .max_total_current_mA   = 1000,
                .max_peak_current_mA    = 600,
+               .max_flash_threshold_mV = 3400,
+               .max_flash_hysteresis_mV = 200,
+               .max_flash_lbdly_f_uS   = 256,
+               .max_flash_lbdly_r_uS   = 256,
                .led_config[0] = {
                        .flash_torch_ratio = 18100,
                        .granularity = 1000,