* [PATCH] ARM: imx: set system_rev value
@ 2014-11-20 11:53 Vladimir Zapolskiy
2014-12-02 7:53 ` Shawn Guo
0 siblings, 1 reply; 2+ messages in thread
From: Vladimir Zapolskiy @ 2014-11-20 11:53 UTC (permalink / raw)
To: linux-arm-kernel
Set system_rev value to chip silicon version USB_ANALOG_DIGPROG.
root at mx6q:~# cat /proc/cpuinfo | grep Revision
Revision : 630002
Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
---
arch/arm/mach-imx/anatop.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-imx/anatop.c b/arch/arm/mach-imx/anatop.c
index 8259a62..505100f 100644
--- a/arch/arm/mach-imx/anatop.c
+++ b/arch/arm/mach-imx/anatop.c
@@ -15,6 +15,7 @@
#include <linux/of_address.h>
#include <linux/mfd/syscon.h>
#include <linux/regmap.h>
+#include <asm/system_info.h>
#include "common.h"
#include "hardware.h"
@@ -123,6 +124,7 @@ void __init imx_init_revision_from_anatop(void)
mxc_set_cpu_type(digprog >> 16 & 0xff);
imx_set_soc_revision(revision);
+ system_rev = digprog & 0xffffff;
}
void __init imx_anatop_init(void)
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] ARM: imx: set system_rev value
2014-11-20 11:53 [PATCH] ARM: imx: set system_rev value Vladimir Zapolskiy
@ 2014-12-02 7:53 ` Shawn Guo
0 siblings, 0 replies; 2+ messages in thread
From: Shawn Guo @ 2014-12-02 7:53 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Nov 20, 2014 at 01:53:05PM +0200, Vladimir Zapolskiy wrote:
> Set system_rev value to chip silicon version USB_ANALOG_DIGPROG.
>
> root at mx6q:~# cat /proc/cpuinfo | grep Revision
> Revision : 630002
>
> Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Such info can be found by checking soc_id and revision under
/sys/devices/soc0/.
Shawn
> ---
> arch/arm/mach-imx/anatop.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm/mach-imx/anatop.c b/arch/arm/mach-imx/anatop.c
> index 8259a62..505100f 100644
> --- a/arch/arm/mach-imx/anatop.c
> +++ b/arch/arm/mach-imx/anatop.c
> @@ -15,6 +15,7 @@
> #include <linux/of_address.h>
> #include <linux/mfd/syscon.h>
> #include <linux/regmap.h>
> +#include <asm/system_info.h>
> #include "common.h"
> #include "hardware.h"
>
> @@ -123,6 +124,7 @@ void __init imx_init_revision_from_anatop(void)
>
> mxc_set_cpu_type(digprog >> 16 & 0xff);
> imx_set_soc_revision(revision);
> + system_rev = digprog & 0xffffff;
> }
>
> void __init imx_anatop_init(void)
> --
> 1.7.10.4
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-12-02 7:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-20 11:53 [PATCH] ARM: imx: set system_rev value Vladimir Zapolskiy
2014-12-02 7:53 ` Shawn Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox