From patchwork Mon Jul 6 10:10:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Kerr X-Patchwork-Id: 491528 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id B8036140216 for ; Mon, 6 Jul 2015 20:10:35 +1000 (AEST) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 718671A0D96 for ; Mon, 6 Jul 2015 20:10:35 +1000 (AEST) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id B02081A0D7B for ; Mon, 6 Jul 2015 20:10:32 +1000 (AEST) Received: by ozlabs.org (Postfix, from userid 1023) id 9C37F1402A1; Mon, 6 Jul 2015 20:10:32 +1000 (AEST) MIME-Version: 1.0 Message-Id: <1436177413.614743.51870400279.1.gpush@pablo> To: skiboot@lists.ozlabs.org From: Jeremy Kerr Date: Mon, 06 Jul 2015 18:10:13 +0800 Subject: [Skiboot] [PATCH] libflash: Add support for Macronix 128Mb flash chips X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" Fun-sized version of the MXxxL25635F. Signed-off-by: Jeremy Kerr --- hw/ast-bmc/ast-sf-ctrl.c | 1 + libflash/libflash.c | 1 + 2 files changed, 2 insertions(+) diff --git a/hw/ast-bmc/ast-sf-ctrl.c b/hw/ast-bmc/ast-sf-ctrl.c index eee18e1..0ca32da 100644 --- a/hw/ast-bmc/ast-sf-ctrl.c +++ b/hw/ast-bmc/ast-sf-ctrl.c @@ -682,6 +682,7 @@ static int ast_sf_setup(struct spi_flash_ctrl *ctrl, uint32_t *tsize) * flash chips */ switch(info->id) { + case 0xc22018: /* MX25L12835F */ case 0xc22019: /* MX25L25635F */ case 0xc2201a: /* MX66L51235F */ return ast_sf_setup_macronix(ct, info); diff --git a/libflash/libflash.c b/libflash/libflash.c index 55eafbe..90ae653 100644 --- a/libflash/libflash.c +++ b/libflash/libflash.c @@ -27,6 +27,7 @@ #endif static const struct flash_info flash_info[] = { + { 0xc22018, 0x01000000, FL_ERASE_ALL | FL_CAN_4B, "Macronix MXxxL12835F"}, { 0xc22019, 0x02000000, FL_ERASE_ALL | FL_CAN_4B, "Macronix MXxxL25635F"}, { 0xc2201a, 0x04000000, FL_ERASE_ALL | FL_CAN_4B, "Macronix MXxxL51235F"}, { 0xef4018, 0x01000000, FL_ERASE_ALL, "Winbond W25Q128BV" },