Received: by 2002:a5d:4890:0:0:0:0:0 with SMTP id g16csp862856wrq; Wed, 23 Oct 2019 06:06:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRwIW+qswhDI7ybGK/MPu/hEtfalnz8PuyckarLe3k8MgeL3fDwMzknTG1qJQJSMs4sJkx X-Received: by 2002:a17:906:b318:: with SMTP id n24mr31971906ejz.248.1571835992230; Wed, 23 Oct 2019 06:06:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571835992; cv=none; d=google.com; s=arc-20160816; b=Le4RZ0wCmJ8gGPFFrBWfLDegQg8ArqPe2/sUCVeYfpqNBQSxbu4q4D6uhHquaSzmSR LvHaCNyOVtcNvNrHdnDyNLQfPieDFKX/DlstEpAwfYBBVwHihnHP5Whm0wUsbZZFVuik Q/OEqwOoHakWdd7VH1ls+Gzw2vnVmDBDS7nvWLez+04JqafkRJZ1JB9KHI+32UIyvAwZ G92k02pJNyxG/1egT9+qK8IMPEuA78Qk3BS7GpB/TSKmokWLsH+gufeE9LfpU/bMeI1G 2AOsoI1etFqsdX+fcDr6f+L+3cylJCdO9eLtOZJRitdKPI03vNDtBn97F48nfnmzNEMA m3EA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :message-id:mime-version:references:in-reply-to:date:subject:to:from; bh=DlzbIdA/THlrxtBOWu6gUr37X9E0q8re7E0VKo1C4JQ=; b=lNC19kcMkSAWRfNtiaXkY0vy9aNy/Ct+FSVqQyGjo7dgU/qJH4JJIJgLx2b2RgHu+q Z92sCRJCGP7sBe9lj/roTBhgBq8eyCFct3/UArqlEic65xMoTD9/TzCt+HhMYTOzrydQ /yagv69psfBzMXixPU8BdWJ451OQeDA9X+X6nuiWWF0dP7mXhSfh/tgYpOTxtZQLmCGU UW4tcnaiLXA68rkR3sXEl1T41hPZxp1xsdWCBBXrwOaixB2Z/o1zkqq44yQmfqewR+Pl cVqnJRkYvDG8ata1DA0GoTy69/drx81WrVLydGqVGeh7aaI3Zsmm/ATtIYCpG2npdtB9 OalQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id f54si7345412edb.255.2019.10.23.06.06.32 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Oct 2019 06:06:32 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org" Received: from localhost ([::1]:35504 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNGLO-0001SX-N4 for alex.bennee@linaro.org; Wed, 23 Oct 2019 09:06:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42169) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iNGKK-0001O9-8E for qemu-devel@nongnu.org; Wed, 23 Oct 2019 09:05:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iNGKE-0000Jj-UN for qemu-devel@nongnu.org; Wed, 23 Oct 2019 09:05:24 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:29678) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iNGKE-0000EP-Ki for qemu-devel@nongnu.org; Wed, 23 Oct 2019 09:05:18 -0400 Received: from pps.filterd (m0098393.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x9ND42LH009874 for ; Wed, 23 Oct 2019 09:05:09 -0400 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 2vtpvx1gn6-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 23 Oct 2019 09:05:09 -0400 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 23 Oct 2019 14:05:06 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp03.uk.ibm.com (192.168.101.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 23 Oct 2019 14:05:03 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x9ND52Uv60162192 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 23 Oct 2019 13:05:02 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 80D504C04A; Wed, 23 Oct 2019 13:05:02 +0000 (GMT) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6B0074C046; Wed, 23 Oct 2019 13:05:02 +0000 (GMT) Received: from smtp.tlslab.ibm.com (unknown [9.101.4.1]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 23 Oct 2019 13:05:02 +0000 (GMT) Received: from yukon.kaod.org.com (sig-9-145-76-221.uk.ibm.com [9.145.76.221]) by smtp.tlslab.ibm.com (Postfix) with ESMTP id BBF42220170; Wed, 23 Oct 2019 15:05:01 +0200 (CEST) From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: Peter Maydell Subject: [PATCH 2/2] aspeed: Add an AST2600 eval board Date: Wed, 23 Oct 2019 15:04:55 +0200 X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191023130455.1347-1-clg@kaod.org> References: <20191023130455.1347-1-clg@kaod.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-TM-AS-GCONF: 00 x-cbid: 19102313-0012-0000-0000-0000035C2063 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19102313-0013-0000-0000-000021974F19 Message-Id: <20191023130455.1347-3-clg@kaod.org> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-10-23_03:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=2 phishscore=0 bulkscore=0 spamscore=0 clxscore=1034 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910230134 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mx0a-001b2d01.pphosted.com id x9ND42LH009874 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 148.163.156.1 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Jeffery , qemu-devel@nongnu.org, qemu-arm@nongnu.org, Joel Stanley , rashmica.g@gmail.com, =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Errors-To: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-devel" X-TUID: KeJKgnxYyaFU Signed-off-by: C=C3=A9dric Le Goater Reviewed-by: Joel Stanley --- include/hw/arm/aspeed.h | 1 + hw/arm/aspeed.c | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/include/hw/arm/aspeed.h b/include/hw/arm/aspeed.h index 02073a6b4d61..f49bc7081e4d 100644 --- a/include/hw/arm/aspeed.h +++ b/include/hw/arm/aspeed.h @@ -18,6 +18,7 @@ typedef struct AspeedBoardConfig { const char *desc; const char *soc_name; uint32_t hw_strap1; + uint32_t hw_strap2; const char *fmc_model; const char *spi_model; uint32_t num_cs; diff --git a/hw/arm/aspeed.c b/hw/arm/aspeed.c index 52993f84b461..028191ff36fc 100644 --- a/hw/arm/aspeed.c +++ b/hw/arm/aspeed.c @@ -88,6 +88,10 @@ struct AspeedBoardState { /* Witherspoon hardware value: 0xF10AD216 (but use romulus definition) *= / #define WITHERSPOON_BMC_HW_STRAP1 ROMULUS_BMC_HW_STRAP1 =20 +/* AST2600 evb hardware value */ +#define AST2600_EVB_HW_STRAP1 0x000000C0 +#define AST2600_EVB_HW_STRAP2 0x00000003 + /* * The max ram region is for firmwares that scan the address space * with load/store to guess how much RAM the SoC has. @@ -187,6 +191,8 @@ static void aspeed_board_init(MachineState *machine, &error_abort); object_property_set_int(OBJECT(&bmc->soc), cfg->hw_strap1, "hw-strap= 1", &error_abort); + object_property_set_int(OBJECT(&bmc->soc), cfg->hw_strap2, "hw-strap= 2", + &error_abort); object_property_set_int(OBJECT(&bmc->soc), cfg->num_cs, "num-cs", &error_abort); object_property_set_int(OBJECT(&bmc->soc), machine->smp.cpus, "num-c= pus", @@ -308,6 +314,12 @@ static void ast2500_evb_i2c_init(AspeedBoardState *b= mc) i2c_create_slave(aspeed_i2c_get_bus(DEVICE(&soc->i2c), 11), "ds1338"= , 0x32); } =20 +static void ast2600_evb_i2c_init(AspeedBoardState *bmc) +{ + /* Start with some devices on our I2C busses */ + ast2500_evb_i2c_init(bmc); +} + static void romulus_bmc_i2c_init(AspeedBoardState *bmc) { AspeedSoCState *soc =3D &bmc->soc; @@ -455,6 +467,17 @@ static const AspeedBoardConfig aspeed_boards[] =3D { .num_cs =3D 2, .i2c_init =3D witherspoon_bmc_i2c_init, .ram =3D 512 * MiB, + }, { + .name =3D MACHINE_TYPE_NAME("ast2600-evb"), + .desc =3D "Aspeed AST2600 EVB (Cortex A7)", + .soc_name =3D "ast2600-a0", + .hw_strap1 =3D AST2600_EVB_HW_STRAP1, + .hw_strap2 =3D AST2600_EVB_HW_STRAP2, + .fmc_model =3D "w25q512jv", + .spi_model =3D "mx66u51235f", + .num_cs =3D 1, + .i2c_init =3D ast2600_evb_i2c_init, + .ram =3D 1 * GiB, }, }; =20 --=20 2.21.0