[PATCH 2/2] ast2500-edk: Configure HW strap register

Cédric Le Goater clg at kaod.org
Thu Jul 28 18:21:03 AEST 2016


On 07/28/2016 03:25 AM, Andrew Jeffery wrote:
> Strap register value was read off the hardware after boot.
> 
> Signed-off-by: Andrew Jeffery <andrew at aj.id.au>
> ---
>  hw/arm/palmetto-bmc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/hw/arm/palmetto-bmc.c b/hw/arm/palmetto-bmc.c
> index ec4aed306e7b..9e9c7e403133 100644
> --- a/hw/arm/palmetto-bmc.c
> +++ b/hw/arm/palmetto-bmc.c
> @@ -47,7 +47,7 @@ enum {
>  static const AspeedBoardConfig aspeed_boards[] = {
>      [PALMETTO_BMC] = { AST2400_HW_STRAP1, AST2400_A0_SILICON_REV,
>                           AST2400_SDRAM_BASE },
> -    [AST2500_EDK]  = { 0x00000200, AST2500_A1_SILICON_REV,
> +    [AST2500_EDK]  = { 0x7100c2e6, AST2500_A1_SILICON_REV,
>                           AST2500_SDRAM_BASE },

so maybe we could define the ast2500 hw-strap1 value in :

	include/hw/misc/aspeed_scu.h,

comments are sufficient enough. So you can replace the version I did
for the ast2400. We can always come back to the macros when the u-boot 
code is merged.


Thanks,

C.  



More information about the openbmc mailing list