Re: [PATCH] ARM: tegra: fuse: add fuctions to read speedo id and process id

2013-03-19 Thread Danny Huang
On Wed, 2013-03-20 at 09:50 +0800, Stephen Warren wrote: > On 03/19/2013 07:39 PM, Danny Huang wrote: > > On Wed, 2013-03-20 at 02:05 +0800, Stephen Warren wrote: > >> On 03/18/2013 08:33 PM, Danny Huang wrote: > >>> Add functions to read the speedo and process id of

Re: [PATCH v2] ARM: tegra114: add speedo-based process identification

2013-03-19 Thread Danny Huang
On Wed, 2013-03-20 at 01:54 +0800, Stephen Warren wrote: > On 03/18/2013 05:17 AM, Danny Huang wrote: > > Add speedo-based process identifictaion for Tegra114. > > I have applied this to Tegra's for-3.10/soc branch, with one addition below: > > > dif

Re: [PATCH] ARM: tegra: fuse: add fuctions to read speedo id and process id

2013-03-19 Thread Danny Huang
On Wed, 2013-03-20 at 02:05 +0800, Stephen Warren wrote: > On 03/18/2013 08:33 PM, Danny Huang wrote: > > Add functions to read the speedo and process id of both cpu and soc. > > There might be some drivers need the information as well. > > What code wants to use these funct

[PATCH] ARM: tegra: fuse: add fuctions to read speedo id and process id

2013-03-18 Thread Danny Huang
Add functions to read the speedo and process id of both cpu and soc. There might be some drivers need the information as well. Signed-off-by: Danny Huang --- arch/arm/mach-tegra/fuse.c | 24 include/linux/tegra-soc.h | 6 +- 2 files changed, 29 insertions(+), 1

[PATCH v2] ARM: tegra114: add speedo-based process identification

2013-03-18 Thread Danny Huang
Add speedo-based process identifictaion for Tegra114. Based on the work by: Alex Frid Signed-off-by: Danny Huang --- arch/arm/mach-tegra/Makefile | 1 + arch/arm/mach-tegra/fuse.c| 4 ++ arch/arm/mach-tegra/fuse.h| 7 +++ arch/arm/mach-tegra

Re: [PATCH] ARM: tegra114: add speedo-based process identification

2013-03-17 Thread Danny Huang
On Sat, 2013-03-16 at 01:36 +0800, Stephen Warren wrote: > On 03/14/2013 01:40 AM, Danny Huang wrote: > > Add speedo-based process identifictaion for Tegra114. > > > > Based on the work by: > > Alex Frid > > This code is surprisingly quite a bit simpler than the

[PATCH] ARM: tegra114: add speedo-based process identification

2013-03-14 Thread Danny Huang
Add speedo-based process identifictaion for Tegra114. Based on the work by: Alex Frid Signed-off-by: Danny Huang --- arch/arm/mach-tegra/Makefile | 1 + arch/arm/mach-tegra/fuse.c| 4 ++ arch/arm/mach-tegra/fuse.h| 7 +++ arch/arm/mach-tegra

[PATCH v4] ARM: tegra: expose chip ID and revision

2013-03-13 Thread Danny Huang
Expose Tegra chip ID and revision in /sys/devices/soc for user mode usage Signed-off-by: Danny Huang --- arch/arm/Kconfig| 1 + arch/arm/mach-tegra/tegra.c | 29 - 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/arch/arm/Kconfig b/arch/arm

[PATCH v3] ARM: tegra: expose chip ID and revision

2013-03-13 Thread Danny Huang
Expose Tegra chip ID and revision in /sys/devices/soc for user mode usage Signed-off-by: Danny Huang --- arch/arm/Kconfig| 1 + arch/arm/mach-tegra/tegra.c | 31 ++- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/arch/arm/Kconfig b/arch

[PATCH v2] ARM: tegra: expose chip ID and revision

2013-03-12 Thread Danny Huang
Expose Tegra chip ID and revision in /sys/devices/soc for user mode usage Signed-off-by: Danny Huang --- arch/arm/mach-tegra/Kconfig | 3 +++ arch/arm/mach-tegra/common.c | 23 +++ 2 files changed, 26 insertions(+) diff --git a/arch/arm/mach-tegra/Kconfig b/arch/arm/mach

[PATCH] arm: tegra: fuse: export chip id and revision

2013-03-11 Thread Danny Huang
Expose tegra chip id and revision in /proc/cpu/chipinfo for user mode usage. Signed-off-by: Danny Huang --- arch/arm/mach-tegra/fuse.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/mach-tegra/fuse.c b/arch/arm/mach-tegra/fuse.c index f7db078..7895542 100644

[PATCH V2 1/3] ARM: tegra: flexible spare fuse read function

2012-11-14 Thread Danny Huang
Change the spare fuse base from a definition to a variable. It provides flexibilty to read spare fuse on different chip. Signed-off-by: Danny Huang --- arch/arm/mach-tegra/fuse.c | 19 --- arch/arm/mach-tegra/fuse.h | 2 ++ 2 files changed, 14 insertions(+), 7 deletions

[PATCH V2 2/3] ARM: tegra: Add speedo-based process identification

2012-11-14 Thread Danny Huang
Detect CPU and core process ID by checking speedo corner tables. This can provide a more accurate process ID. Signed-off-by: Danny Huang --- arch/arm/mach-tegra/Makefile | 1 + arch/arm/mach-tegra/fuse.c | 31 +++--- arch/arm/mach-tegra/fuse.h | 7 +++ arch

[PATCH V2 0/3] ARM: tegra: add speedo identification for T20/T30

2012-11-14 Thread Danny Huang
* Change size check of speedo cornor table * Set speedo id to 0 with unknown chip revision/SKU * Set process id to 0 when speedo value out of range Danny Huang (3): ARM: tegra: flexible spare fuse read function ARM: tegra: Add speedo-based process identification ARM: tegra: T30 speedo-based

[PATCH V2 3/3] ARM: tegra: T30 speedo-based process identification

2012-11-14 Thread Danny Huang
This patch adds speedo-based process identification support for T30. Signed-off-by: Danny Huang --- arch/arm/mach-tegra/Makefile | 1 + arch/arm/mach-tegra/fuse.c | 11 +- arch/arm/mach-tegra/fuse.h | 7 + arch/arm/mach-tegra/tegra30_speedo.c | 292

[PATCH 2/2] ARM: tegra: T30 speedo-based identification

2012-10-29 Thread Danny Huang
This patch adds speedo-based identification support for T30. Signed-off-by: Danny Huang --- arch/arm/mach-tegra/Makefile | 1 + arch/arm/mach-tegra/fuse.c | 26 +++- arch/arm/mach-tegra/fuse.h | 8 + arch/arm/mach-tegra/tegra30_speedo.c | 290

[PATCH 1/2] ARM: tegra: Add speedo-based process identification

2012-10-29 Thread Danny Huang
Detect CPU and core process ID by checking speedo corner tables. This can provide a more accurate process ID. Signed-off-by: Danny Huang --- arch/arm/mach-tegra/Makefile | 1 + arch/arm/mach-tegra/fuse.c | 13 ++--- arch/arm/mach-tegra/fuse.h | 8 +++ arch/arm

[PATCH 0/2] ARM: tegra: add speedo identification for T20/T30

2012-10-29 Thread Danny Huang
This patch series adds speedo identification functionality for tegra T20 and T30. It reads speedo value from fuse and chooses CPU and core process ID by checking speedo corner tables. Danny Huang (2): ARM: tegra: Add speedo-based process identification ARM: tegra: T30 speedo-based