arm: tegra: fuse: refactor driver for pgm2 value
authorKen Chang <kenc@nvidia.com>
Mon, 12 Aug 2013 10:13:23 +0000 (18:13 +0800)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 20:43:13 +0000 (13:43 -0700)
commit7eff0c512227a797cb80445ead15b578955ce45c
treef8be5f7fc9c42b8f95fb412694a45221470a7f29
parent105184222a290631520bb5864f73357b73ccc371
arm: tegra: fuse: refactor driver for pgm2 value

Add an explicit function instead of the pre-defined table
to calculate the value of FUSETIME_PGM2 register.

PGM_TIME_US is defined for the fuse programming pulse:
 - for T114, T124 and T148, this is set to 12us.
 - for T30 and T20, this is set to 10us.

Change-Id: I6e276124bb5fb5081e085b23ed8c4bb7c0f87c5f
Signed-off-by: Ken Chang <kenc@nvidia.com>
Reviewed-on: http://git-master/r/263001
Reviewed-by: Marc Delvaux <mdelvaux@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
arch/arm/mach-tegra/tegra11x_fuse_offsets.h
arch/arm/mach-tegra/tegra12x_fuse_offsets.h
arch/arm/mach-tegra/tegra14x_fuse_offsets.h
arch/arm/mach-tegra/tegra2_fuse_offsets.h
arch/arm/mach-tegra/tegra3_fuse_offsets.h
arch/arm/mach-tegra/tegra_fuse.c