From: Zhang Haijun <B42677@freescale.com>
To: Haijun Zhang <Haijun.Zhang@freescale.com>
Cc: cbouatmailru@gmail.com, galak@kernel.crashing.org,
linux-mmc@vger.kernel.org, cjb@laptop.org,
scottwood@freescale.com, X.Xie@freescale.com,
Zhao Chenhui <chenhui.zhao@freescale.com>
Subject: Re: [PATCH 1/5] powerpc/85xx: Add support for 85xx cpu type detection
Date: Tue, 3 Sep 2013 15:43:03 +0800 [thread overview]
Message-ID: <52259307.9020101@freescale.com> (raw)
In-Reply-To: <1378193597-29059-1-git-send-email-Haijun.Zhang@freescale.com>
Hi, Anton and all
I update all the patch send.
Kindly for review.
Thanks.
On 09/03/2013 03:33 PM, Haijun Zhang wrote:
> Add this file to help detect cpu type in runtime.
> These macros will be more favorable for driver
> to apply errata and workaround to specified cpu type.
>
> Signed-off-by: Haijun Zhang <Haijun.Zhang@freescale.com>
> Signed-off-by: Zhao Chenhui <chenhui.zhao@freescale.com>
> ---
> arch/powerpc/include/asm/mpc85xx.h | 92 ++++++++++++++++++++++++++++++++++++++
> 1 file changed, 92 insertions(+)
> create mode 100644 arch/powerpc/include/asm/mpc85xx.h
>
> diff --git a/arch/powerpc/include/asm/mpc85xx.h b/arch/powerpc/include/asm/mpc85xx.h
> new file mode 100644
> index 0000000..736d4ac
> --- /dev/null
> +++ b/arch/powerpc/include/asm/mpc85xx.h
> @@ -0,0 +1,92 @@
> +/*
> + * MPC85xx cpu type detection
> + *
> + * Copyright 2011-2012 Freescale Semiconductor, Inc.
> + *
> + * This is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License as published by
> + * the Free Software Foundation; either version 2 of the License, or
> + * (at your option) any later version.
> + */
> +
> +#ifndef __ASM_PPC_MPC85XX_H
> +#define __ASM_PPC_MPC85XX_H
> +
> +#define SVR_REV(svr) ((svr) & 0xFF) /* SOC design resision */
> +#define SVR_MAJ(svr) (((svr) >> 4) & 0xF) /* Major revision field*/
> +#define SVR_MIN(svr) (((svr) >> 0) & 0xF) /* Minor revision field*/
> +
> +/* Some parts define SVR[0:23] as the SOC version */
> +#define SVR_SOC_VER(svr) (((svr) >> 8) & 0xFFF7FF) /* SOC Version fields */
> +
> +#define SVR_8533 0x803400
> +#define SVR_8535 0x803701
> +#define SVR_8536 0x803700
> +#define SVR_8540 0x803000
> +#define SVR_8541 0x807200
> +#define SVR_8543 0x803200
> +#define SVR_8544 0x803401
> +#define SVR_8545 0x803102
> +#define SVR_8547 0x803101
> +#define SVR_8548 0x803100
> +#define SVR_8555 0x807100
> +#define SVR_8560 0x807000
> +#define SVR_8567 0x807501
> +#define SVR_8568 0x807500
> +#define SVR_8569 0x808000
> +#define SVR_8572 0x80E000
> +#define SVR_P1010 0x80F100
> +#define SVR_P1011 0x80E500
> +#define SVR_P1012 0x80E501
> +#define SVR_P1013 0x80E700
> +#define SVR_P1014 0x80F101
> +#define SVR_P1017 0x80F700
> +#define SVR_P1020 0x80E400
> +#define SVR_P1021 0x80E401
> +#define SVR_P1022 0x80E600
> +#define SVR_P1023 0x80F600
> +#define SVR_P1024 0x80E402
> +#define SVR_P1025 0x80E403
> +#define SVR_P2010 0x80E300
> +#define SVR_P2020 0x80E200
> +#define SVR_P2040 0x821000
> +#define SVR_P2041 0x821001
> +#define SVR_P3041 0x821103
> +#define SVR_P4040 0x820100
> +#define SVR_P4080 0x820000
> +#define SVR_P5010 0x822100
> +#define SVR_P5020 0x822000
> +#define SVR_P5021 0X820500
> +#define SVR_P5040 0x820400
> +#define SVR_T4240 0x824000
> +#define SVR_T4120 0x824001
> +#define SVR_T4160 0x824100
> +#define SVR_C291 0x850000
> +#define SVR_C292 0x850020
> +#define SVR_C293 0x850030
> +#define SVR_B4860 0X868000
> +#define SVR_G4860 0x868001
> +#define SVR_G4060 0x868003
> +#define SVR_B4440 0x868100
> +#define SVR_G4440 0x868101
> +#define SVR_B4420 0x868102
> +#define SVR_B4220 0x868103
> +#define SVR_T1040 0x852000
> +#define SVR_T1041 0x852001
> +#define SVR_T1042 0x852002
> +#define SVR_T1020 0x852100
> +#define SVR_T1021 0x852101
> +#define SVR_T1022 0x852102
> +
> +#define SVR_8610 0x80A000
> +#define SVR_8641 0x809000
> +#define SVR_8641D 0x809001
> +
> +#define SVR_9130 0x860001
> +#define SVR_9131 0x860000
> +#define SVR_9132 0x861000
> +#define SVR_9232 0x861400
> +
> +#define SVR_Unknown 0xFFFFFF
> +
> +#endif
>
--
Thanks & Regards
Haijun
prev parent reply other threads:[~2013-09-03 7:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-03 7:33 [PATCH 1/5] powerpc/85xx: Add support for 85xx cpu type detection Haijun Zhang
2013-09-03 7:33 ` [PATCH 2/5] mmc:sdhc: Share function sdhci_reset for platform use Haijun Zhang
2013-09-03 7:33 ` [PATCH 3/5] mmc: esdhc: workaround for dma err in the last system transaction Haijun Zhang
2013-09-03 7:33 ` [PATCH 4/5] mmc: esdhc: Correct host version of T4240-R1.0-R2.0 Haijun Zhang
2013-09-03 7:33 ` [PATCH 5/5] mmc:esdhc: eSDHC host don't have highspeed bit Haijun Zhang
2013-09-03 7:43 ` Zhang Haijun [this message]
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=52259307.9020101@freescale.com \
--to=b42677@freescale.com \
--cc=Haijun.Zhang@freescale.com \
--cc=X.Xie@freescale.com \
--cc=cbouatmailru@gmail.com \
--cc=chenhui.zhao@freescale.com \
--cc=cjb@laptop.org \
--cc=galak@kernel.crashing.org \
--cc=linux-mmc@vger.kernel.org \
--cc=scottwood@freescale.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).