[PATCH u-boot v2016.07-aspeed-openbmc] aspeed/flash: Add MT25QL01GB chip

Joel Stanley joel at jms.id.au
Fri Apr 5 14:55:58 AEDT 2019


On Thu, 4 Apr 2019 at 14:30, Adriana Kobylak <anoo at linux.ibm.com> wrote:
>
> From: Adriana Kobylak <anoo at us.ibm.com>
>
> The MT25QL01GB is a 128MB NOR flash chip planned to be used on
> a Witherspoon system (AST2500).
>
> Signed-off-by: Adriana Kobylak <anoo at us.ibm.com>
> Tested-by: Adriana Kobylak <anoo at us.ibm.com>

That looks better. I've applied this one.

Thanks,

Joel


> ---
>  arch/arm/mach-aspeed/flash.c | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
>
> diff --git a/arch/arm/mach-aspeed/flash.c b/arch/arm/mach-aspeed/flash.c
> index 907e785..54a6059 100644
> --- a/arch/arm/mach-aspeed/flash.c
> +++ b/arch/arm/mach-aspeed/flash.c
> @@ -83,6 +83,7 @@ flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS];          /* FLASH chips info */
>  #define SST25VF040B            0x8d25bf
>  #define AT25DF161              0x02461F
>  #define AT25DF321              0x01471F
> +#define MT25QL01GB             0x21ba20
>
>  /* SPI Define */
>  #define CS0_CTRL                       0x10
> @@ -1141,6 +1142,19 @@ static ulong flash_get_size (ulong base, flash_info_t *info)
>                         ReadClk  = 50;
>                         break;
>
> +               case MT25QL01GB:
> +                       info->sector_count = 2048;
> +                       info->size = 0x8000000;
> +                       erase_region_size  = 0x10000;
> +                       info->readcmd = 0x0b;
> +                       info->dualport = 0;
> +                       info->dummybyte = 1;
> +                       info->buffersize = 1;
> +                       WriteClk = 50;
> +                       EraseClk = 25;
> +                       ReadClk  = 50;
> +                       break;
> +
>                 default:        /* use JEDEC ID */
>                         printf("Unsupported SPI Flash!! 0x%08lx\n", info->flash_id);
>                         erase_region_size  = 0x10000;
> --
> 1.8.3.1
>


More information about the openbmc mailing list