From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/5] arm64: fsl-layerscape: add get_svr and IS_SVR_REV helper
Date: Thu, 02 Jun 2016 14:48:23 +0200 [thread overview]
Message-ID: <57502B17.2080301@denx.de> (raw)
In-Reply-To: <1464850458-2850-2-git-send-email-sriram.dash@nxp.com>
On 06/02/2016 08:54 AM, Sriram Dash wrote:
Commit message is missing, please fix
> Signed-off-by: Sriram Dash <sriram.dash@nxp.com>
> Signed-off-by: Rajesh Bhagat <rajesh.bhagat@nxp.com>
> ---
> Changes in v2:
> - No update
>
> arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 7 +++++++
> arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h | 2 ++
> arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h | 3 +++
> arch/arm/include/asm/arch-fsl-layerscape/soc.h | 2 ++
> 4 files changed, 14 insertions(+)
>
> diff --git a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
> index 9a5a6b5..9c575c1 100644
> --- a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
> +++ b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c
> @@ -528,6 +528,13 @@ u32 fsl_qoriq_core_to_type(unsigned int core)
> return -1; /* cannot identify the cluster */
> }
>
> +uint get_svr(void)
> +{
> + struct ccsr_gur __iomem *gur = (void *)(CONFIG_SYS_FSL_GUTS_ADDR);
> +
> + return gur_in32(&gur->svr);
> +}
> +
> #ifdef CONFIG_DISPLAY_CPUINFO
> int print_cpuinfo(void)
> {
> diff --git a/arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h b/arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h
> index 57b99d4..4151994 100644
> --- a/arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h
> +++ b/arch/arm/include/asm/arch-fsl-layerscape/immap_lsch2.h
> @@ -592,4 +592,6 @@ struct ccsr_cci400 {
> #define SCR0_CLIENTPD_MASK 0x00000001
> #define SCR0_USFCFG_MASK 0x00000400
>
> +uint get_svr(void);
> +
> #endif /* __ARCH_FSL_LSCH2_IMMAP_H__*/
> diff --git a/arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h b/arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h
> index 65b3357..e48bbaf 100644
> --- a/arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h
> +++ b/arch/arm/include/asm/arch-fsl-layerscape/immap_lsch3.h
> @@ -319,4 +319,7 @@ struct ccsr_reset {
> u32 ip_rev1; /* 0xbf8 */
> u32 ip_rev2; /* 0xbfc */
> };
> +
> +uint get_svr(void);
> +
> #endif /* __ARCH_FSL_LSCH3_IMMAP_H_ */
> diff --git a/arch/arm/include/asm/arch-fsl-layerscape/soc.h b/arch/arm/include/asm/arch-fsl-layerscape/soc.h
> index 831d817..3f1a0a8 100644
> --- a/arch/arm/include/asm/arch-fsl-layerscape/soc.h
> +++ b/arch/arm/include/asm/arch-fsl-layerscape/soc.h
> @@ -52,6 +52,8 @@ struct cpu_type {
> #define SVR_MIN(svr) (((svr) >> 0) & 0xf)
> #define SVR_SOC_VER(svr) (((svr) >> 8) & SVR_WO_E)
> #define IS_E_PROCESSOR(svr) (!((svr >> 8) & 0x1))
> +#define IS_SVR_REV(svr, maj, min) \
> + ((SVR_MAJ(svr) == maj) && (SVR_MIN(svr) == min))
>
> /* ahci port register default value */
> #define AHCI_PORT_PHY_1_CFG 0xa003fffe
>
--
Best regards,
Marek Vasut
next prev parent reply other threads:[~2016-06-02 12:48 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-02 6:54 [U-Boot] [PATCH v2 0/5] Supporting ARM v8 USB errata for FSL Sriram Dash
2016-06-02 6:54 ` [U-Boot] [PATCH v2 1/5] arm64: fsl-layerscape: add get_svr and IS_SVR_REV helper Sriram Dash
2016-06-02 12:47 ` Marek Vasut
2016-06-06 4:21 ` Sriram Dash
2016-06-06 12:51 ` Marek Vasut
2016-06-08 4:12 ` Sriram Dash
2016-06-08 14:11 ` Marek Vasut
2016-06-02 12:48 ` Marek Vasut [this message]
2016-06-06 4:22 ` Sriram Dash
2016-06-02 6:54 ` [U-Boot] [PATCH v2 2/5] usb: xhci: fsl: code cleanup for device tree fixup for fsl usb controllers Sriram Dash
2016-06-02 12:55 ` Marek Vasut
2016-06-06 4:23 ` Sriram Dash
2016-06-02 6:54 ` [U-Boot] [PATCH v2 3/5] fsl: usb: make errata function common for PPC and ARM Sriram Dash
2016-06-02 6:54 ` [U-Boot] [PATCH v2 4/5] armv8/ls2080: Remove workaround for erratum A008751 Sriram Dash
2016-06-02 12:57 ` Marek Vasut
2016-06-06 4:23 ` Sriram Dash
2016-06-06 12:25 ` Marek Vasut
2016-06-02 6:54 ` [U-Boot] [PATCH v2 5/5] usb: xhci: fsl: Add workaround for USB erratum A-008751 Sriram Dash
2016-06-02 13:00 ` Marek Vasut
2016-06-06 4:24 ` Sriram Dash
2016-06-06 12:45 ` Marek Vasut
2016-06-08 4:12 ` Sriram Dash
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=57502B17.2080301@denx.de \
--to=marex@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.