[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] aspeed: Support AST2600A1 silicon revision
From: |
Andrew Jeffery |
Subject: |
Re: [PATCH] aspeed: Support AST2600A1 silicon revision |
Date: |
Mon, 04 May 2020 20:21:01 +0930 |
User-agent: |
Cyrus-JMAP/3.3.0-dev0-351-g9981f4f-fmstable-20200421v1 |
On Mon, 4 May 2020, at 19:07, Joel Stanley wrote:
> There are minimal differences from Qemu's point of view between the A0
> and A1 silicon revisions.
>
> As the A1 exercises different code paths in u-boot it is desirable to
> emulate that instead.
>
> Signed-off-by: Joel Stanley <address@hidden>
> ---
> hw/arm/aspeed.c | 8 ++++----
> hw/arm/aspeed_ast2600.c | 6 +++---
> hw/misc/aspeed_scu.c | 11 +++++------
> include/hw/misc/aspeed_scu.h | 1 +
> 4 files changed, 13 insertions(+), 13 deletions(-)
>
> diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c
> index 99a0f3fcf36e..91301efab32d 100644
> --- a/hw/arm/aspeed.c
> +++ b/hw/arm/aspeed.c
> @@ -93,7 +93,7 @@ struct AspeedBoardState {
>
> /* Tacoma hardware value */
> #define TACOMA_BMC_HW_STRAP1 0x00000000
> -#define TACOMA_BMC_HW_STRAP2 0x00000000
> +#define TACOMA_BMC_HW_STRAP2 0x00000040
>
> /*
> * The max ram region is for firmwares that scan the address space
> @@ -585,7 +585,7 @@ static void
> aspeed_machine_ast2600_evb_class_init(ObjectClass *oc, void *data)
> AspeedMachineClass *amc = ASPEED_MACHINE_CLASS(oc);
>
> mc->desc = "Aspeed AST2600 EVB (Cortex A7)";
> - amc->soc_name = "ast2600-a0";
> + amc->soc_name = "ast2600-a1";
> amc->hw_strap1 = AST2600_EVB_HW_STRAP1;
> amc->hw_strap2 = AST2600_EVB_HW_STRAP2;
> amc->fmc_model = "w25q512jv";
> @@ -600,8 +600,8 @@ static void
> aspeed_machine_tacoma_class_init(ObjectClass *oc, void *data)
> MachineClass *mc = MACHINE_CLASS(oc);
> AspeedMachineClass *amc = ASPEED_MACHINE_CLASS(oc);
>
> - mc->desc = "Aspeed AST2600 EVB (Cortex A7)";
> - amc->soc_name = "ast2600-a0";
> + mc->desc = "OpenPOWER Tacoma BMC (Cortex A7)";
Lol, whoops.
Reviewed-by: Andrew Jeffery <address@hidden>