From patchwork Tue Jul 21 21:05:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: dinguyen@opensource.altera.com X-Patchwork-Id: 6838251 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3BF13C05AC for ; Tue, 21 Jul 2015 21:14:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 518D6206F4 for ; Tue, 21 Jul 2015 21:14:35 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E2C8C206F3 for ; Tue, 21 Jul 2015 21:14:33 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZHepn-0002TX-HX; Tue, 21 Jul 2015 21:12:19 +0000 Received: from mail-bl2on0068.outbound.protection.outlook.com ([65.55.169.68] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZHepj-0002K5-Q9 for linux-arm-kernel@lists.infradead.org; Tue, 21 Jul 2015 21:12:16 +0000 Received: from BN3PR0301CA0055.namprd03.prod.outlook.com (10.160.152.151) by BLUPR03MB119.namprd03.prod.outlook.com (10.255.212.20) with Microsoft SMTP Server (TLS) id 15.1.219.17; Tue, 21 Jul 2015 21:11:52 +0000 Received: from BL2FFO11FD040.protection.gbl (2a01:111:f400:7c09::145) by BN3PR0301CA0055.outlook.office365.com (2a01:111:e400:401e::23) with Microsoft SMTP Server (TLS) id 15.1.219.17 via Frontend Transport; Tue, 21 Jul 2015 21:11:53 +0000 Authentication-Results: spf=fail (sender IP is 66.35.236.227) smtp.mailfrom=opensource.altera.com; lists.infradead.org; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of opensource.altera.com does not designate 66.35.236.227 as permitted sender) receiver=protection.outlook.com; client-ip=66.35.236.227; helo=sj-itexedge03.altera.priv.altera.com; Received: from sj-itexedge03.altera.priv.altera.com (66.35.236.227) by BL2FFO11FD040.mail.protection.outlook.com (10.173.161.136) with Microsoft SMTP Server (TLS) id 15.1.213.8 via Frontend Transport; Tue, 21 Jul 2015 21:11:52 +0000 Received: from na01-bn1-obe.outbound.protection.outlook.com (207.46.163.143) by webmail.altera.com (66.35.236.227) with Microsoft SMTP Server (TLS) id 14.3.174.1; Tue, 21 Jul 2015 14:10:47 -0700 Authentication-Results: arm.linux.org.uk; dkim=none (message not signed) header.d=none; Received: from linux-builds1.altera.com (64.129.157.38) by BLUPR03MB1361.namprd03.prod.outlook.com (10.163.80.27) with Microsoft SMTP Server (TLS) id 15.1.219.17; Tue, 21 Jul 2015 21:11:45 +0000 From: To: Subject: [PATCHv2] ARM: socfpga: add reset for the Arria 10 platform Date: Tue, 21 Jul 2015 16:05:41 -0500 Message-ID: <1437512741-14099-1-git-send-email-dinguyen@opensource.altera.com> X-Mailer: git-send-email 2.4.5 MIME-Version: 1.0 X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: BY2PR02CA0052.namprd02.prod.outlook.com (10.141.216.42) To BLUPR03MB1361.namprd03.prod.outlook.com (25.163.80.27) X-Microsoft-Exchange-Diagnostics-untrusted: 1; BLUPR03MB1361; 2:GAsOHG2DXx2p+xy92ewstCzeyQ7IN62A46BKqM2zbaw+rQWxtiPD7iC2iMe0xzmB; 3:ENlqAILOESta10GZ6PMYCl7T8vW6eZW8K0k6NIpqqJgfinvFMJ6Fk0eJS1AetHjRgT9K5WeH8PC0BBJJRLKFtnAU+bzEZwvFHb0UWXfWy4TmdD57cxP/L4Tjn/0cYvoIAb2suRtr/ppw7Q15anQdOw==; 25:M9ITllmp5tWK6R4h4/u/ZPpMdiALScuRojBzT7fkfQ+146evYRL3y5+qXkOCUOBHi4MMmjMz6iBlfAssj4/3lwwCBOiLErWuqWfMMoyG3p6GP/L7tXV6C3TaA4rOlydW5tukfvSjNF/crlXPE6CMvGrNTnODwd2k0jX7Eaq81u5AxZMqXRceHS08bEYYRwQSlAJntsuAQ943xt6lTw+S4c55BwgiqitDkUPPMhPL5ZYdojExbLnF8invrBnWMU9cjTryiA6CcWT2K4c/XM1n6g==; 20:piGoVTQPjYZCXxvbB25hHYsz5ECQlEE8DfpG6NI9mtK95ZXJEr2dSwKf42gp89mjjosFh7MyIy9JMm2JYbYEOyilmiPG0H4Twv+pdjKMmp+YqRN11ktbDQ7pF7fPadRlWvWLzLAiBoLIKQqp9qS+wwXleaEb4Lh5UuLfQqA6fA4= X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB1361; UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB119; BLUPR03MB1361: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:;UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:BLUPR03MB1361; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB1361; BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:BLUPR03MB119; BCL:0; PCL:0; RULEID:; SRVR:BLUPR03MB119; X-Microsoft-Exchange-Diagnostics-untrusted: 1; BLUPR03MB1361; 4:0M2qTeoEfJytHm5RnSEVoKQ0l3C13hBBawPZ37B8W3kyqndJqovtQfT9gBLnfJN227frkyv7kHXBNrioUa1UgMgKH7YVbZ04wH7MNOBP3UFDZ14UNw9VoURQ6e2w5mmc+1iwz8kemb8GNiGIciD8IshY8P+eW+hqmM3sFZdTNuBzjY0FtjkN/kTShjnRDC2j1orbK+/ET2LZ9Nr9clqyJCQaH1U3S5zsw3oVpsO/Bw0KeKC4vagWp1zwNF0A0JVQSQjMt338yT9G9KRkX/NE6CXwABQIjDkLGdsFD9DtbLU= X-Forefront-PRVS: 0644578634 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM; SFS:(10009020)(6009001)(53416004)(19580405001)(189998001)(50226001)(229853001)(575784001)(86362001)(5001960100002)(86152002)(62966003)(33646002)(107886002)(46102003)(48376002)(19580395003)(77096005)(2351001)(77156002)(110136002)(47776003)(50466002)(122386002)(42186005)(87976001)(66066001)(50986999)(92566002)(40100003)(4001430100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR03MB1361; H:linux-builds1.altera.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics-untrusted: 1; BLUPR03MB1361; 23:vq0f+tzkWDFCimn9549zkN2BxPDx4ePAL3yaHotftz6jcp2//znHYFi6cFIClxICa3ktaIudyhXX94frQrEVlYZ3NzpFp28/tPps+keVfYzY50IqnvfUDzt3VFnAru/Yy1e8HipoCBCVd8uAmsjbV8DQcBC7x9P/x+bGyKhs+MHSg0g3Jreni/Vzwxkvc1TQLANiT5odwKosK6LDqyd153f8TZIdn1nMBZZvteFC1+Y91qUOqC0tQQwwlkKE5nulRqPaySz/Iz7aLX47ZU0Y/LsvY1z44+3Ps/vHCXO5BYO2ebskbZ9HRMBpxzudoNZv1CXTcxcPWxghgYW1PZ0QvFHabBzyeyo9MUfkZVEyCG8biUraVz28LC6tjQAGInG2X6CDThzFksXhM7SDDkN7obpapg60Z4k5lOVWqv/aq6mvH122NnSXHnPirrjNMnNNJ2s68W0J+t/J6QaifWOjzOmGz9H8d1ejp9488TjISBZD7Z6+3ibZNtqo2h+DwzxbxqVzS+VqqNVtkSDnnUrsGQU1EXElaY1eyGdYJHIyfB39txi/yktiFaUwlGLPKKAphwv3XgObIeLMa4HgBYZ87PeBd0ZRE8qERrqmdN8MXldWSMnO30hxO2dtB5JWJFS8VgaPbsyh6TL7Hxp7gpMO4ECfdpGsjaBI7XDxZ5zyplslWMBhnS0MHVomk3p2SSoLN3X79edM9oqQ0ZibE0C+w3jfhEp9lqtRJzQLYXxXjf2+8ujDmF5Qdnmy6bAOmRRkZfy4h9kHnq4pE0NUH6kHb/JkmdRQRVQjgVbRAeuf+pF/xZ4kMzvrUg5hqEg8mqoSDwsldiskUZywCqYkbwsSbw== X-Microsoft-Exchange-Diagnostics-untrusted: 1; BLUPR03MB1361; 5:7LZ9xAHFsfAbVFnS0ksF1leCogwf+kZFSa+DC8ZZt0GORRl2+JGFWd5VeXPlwnA0TD9s/zaMGe0B+zItRXnCatFzwG+4jlcVluas2ybeDdMVQ8CRPu5gJp9rPy5pLiNbiqeu/25ORlSXVi/G59RbwQ==; 24:t8KXpj8C9H3KHJePTWlFyTq0+FSqyEyuSuW/w2ZomTvS+IKmTFC3W6XEufyXaphHT7Lln4SbKimZJVTKz3GVwfbUUsXLiLSd3IPNkxvIlXU=; 20:56MATrRirHNTqK2IHpgjb0y48sHaftkrFOOPOWMaeJJXSuXufIDfE4kFZ99l632wutlYDYvdUoFr2EBULDIaZzRY0kx452d4Z+QgyKLb+b/VQX4dq485dIrDgs1ij9vh170iIQvYkJ7zP0vRWk2KOuooSxtH44nHdArlNXV9ciw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB1361 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BL2FFO11FD040.protection.gbl X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD040; 1:px1qQypikp5IUXM4Zv1RPx1WHtzdRra1FHvlZRYBtbny/uuJXo3Y3htFwrz+joCwcYd4yNF94IJAMeYN47Dv7g2uUKdupTDkeoJ8MvZoYmRWg/yCc8JzjcldPHVb4iNCely61ccEzKwO+RtaCC8tUCFTJqarRxh3Cg1K12CZXg9sF/p0BPnjCDMSA2ZGFH7PaLEEyicv++MTleMUx/4+cSq5lGNQlgyCGgbvE9ED7bmzlWXyUc+l0ePE1800DJOEcA3XRYFR5vVapGqaM6S+yvDOQqESEv3TtrPTQ+ERR1d6NkpqKaJ6Q7JNTZoqkb1eDAtBK5gitcR3redeKOp16fDH1ce9/MCKtLVzLXNJyU9jdlN7JtJzZRmXAvpsd8dWehJvSG58VuYcWB+mN2ZK6Nn8x4tgVyoz6KfZXn1DRKw= X-Forefront-Antispam-Report: CIP:66.35.236.227; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(339900001)(189002)(199003)(47776003)(50466002)(50986999)(92566002)(87936001)(105606002)(48376002)(53416004)(33646002)(62966003)(40100003)(189998001)(2351001)(107886002)(16796002)(77156002)(5001920100001)(106466001)(110136002)(229853001)(5001960100002)(86362001)(66066001)(86152002)(50226001)(19580395003)(19580405001)(46102003)(85426001)(575784001)(6806004)(122386002)(77096005)(7099028)(4001430100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR03MB119; H:sj-itexedge03.altera.priv.altera.com; FPR:; SPF:Fail; MLV:sfv; MX:1; A:0; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB119; 2:2RLlHNexun0N27COJzTATPS2Xkh4Etbj1gK37PBPMsiPa6EGO0btR5QpwtsiBSEJ; 3:lZWrjfYHm5d7TkQFPP5mGQ+AlcYydPqwJCKZzEOmv5veAIho7sIlWDtHiYh+KfLbGlL2eSuWR8HOxFwR805ORMhJJ88+qT7xgyK4hwMECjQNU23unWb5YFxkD3eo5yhnOHpQ/iuyXMv+91duj7S5PPctYSilLpKlZuFk/S7u4MbjZenjz0ZCY3fNt5PzHKLFeySnpMylOPrkc21pWqfmqO9dFvr9fr74uAouGesp31Y=; 25:Jd5ADxMjzUrtzGakDrr9e2jDBPxuxaTh8poiNXv/J3bplaE/w6zFU3jiOa/4GAuSxHpUwJ0g8eVAB+36rfg8H2BQ+2BmfEQs1DzqKUT/sQO6zSNY30XWRqDKuB+p1skN3igjmAEc9bIzUCp072paoYxh9PleBkejyb24SebvhsVZ+wwweBIst7gP7rbbBo6sY4GMSkoCQ3Poil0QwLjmkF5CbjDmiDZ4OZ/ThRv2BUZzGglZAz7GnFkAxkH5XE4tKMuNvLzFyzbXF5dwxXfH7g==; 20:hFNMT7Zy51XAbpbBRvwXUQUS5cx7LGJ+XVf1DBfj1/sWddaErKFZvlJ2McAoQvwIGGyq/dN0+BlXMAqHJVKuxZ2hdo6+QII0CFpFGfWKQdN/6gmhi2AftjBSC8XvBWbjnKdxQIk7dMRmpV5tyn/UOcqiAYGvlGwfdiPHoz41q9U= BLUPR03MB119: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB119; 4:xuHPIYBy/FLazbrgk6f+yp3tiGqULwaAGXgpqk6blm4wMZzSfZnEJy4g2ItxKX923OWGuGKytOda12UJCnKDnx80DngtCfJDcEDBS6wUdfjBTF+3GwCDA2XhWu31HGvx3lfSV11a/jtRl2Q5BHBZE89Y8tZC/0WTgJYk2GVWSZNheyJxonwaK3TZ9aEuTO/mzuym0HpdEYkEjWbx/qBv7mWDxGO6Z3pgTkHrhT8YZ6NJSZwtJoyOymqRRUwLfTX1Ty3pBhqMpIAhk6sgrkJUXX909aElGQ5fmy7aWgG8EPA= X-Forefront-PRVS: 0644578634 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR03MB119; 23:a4SE+502uWhTEHaSugCTvTXzWRJPI3zT3ytMl3kYCQ?= =?us-ascii?Q?ArL3L53KCz+b4NjksyCXAmtaK7HsTFrt+q1ewJJQSpvHlfVBUlxSnLiHOeSM?= =?us-ascii?Q?9srUymBGBUc/29QfC0b9V62XeucOAicaom9VZKfyogplp3jx5XiYhhtXIrN/?= =?us-ascii?Q?eW5VEkUzBlMHH18hqKpxI6ViNMNSRdFG5s+k03X4MB30t9UiP5hXXoPmddjA?= =?us-ascii?Q?3Q0BUC4iW7OWTahscQbN5ZSV6zDAcBO15NpVwcW6LGLrOCcRzzx6V2T1NzUq?= =?us-ascii?Q?EIN83QiCgOUEwpwNSbtLxdjkDYvECanKPsW1GQ3HVmSdWFrwkJlCBnkI0gPx?= =?us-ascii?Q?BbrpfrP0B4p8so85ieAivj5sG6W3+TquGDvvuKoB3Qscnuh0RygEbDVxx7Cc?= =?us-ascii?Q?/hEd9LLSWKdp90dPQC0e8dKA6vofvrJxhKu0TTLkX5+p9wO02yl+zNJ+AYRA?= =?us-ascii?Q?fBrf6BovqIedG/Jwx251o51yy7xuTI7LfqyogFbp71H1GgIljjjkhKKDYXGC?= =?us-ascii?Q?czH/Je2zMIz4FTBzP7n5KtQNGsMENiykKxUhfMWMtQHMemUbRO6XFdI3Imec?= =?us-ascii?Q?sRwWzG5XJKwHsCBgklnHr+aLIJYHgUNVCIOkOh60oFQYPy52lY9fiUJtF0Ah?= =?us-ascii?Q?Qi0N5w+LYuETuGz3GT+B7PP07eIIyb4qyNneWWtrN+v71HXllZV3Yy04f0Ls?= =?us-ascii?Q?Fr/oZFeQ4gCUXmfV7d10NbZRjMZbMRQGgZS8n/0SA/G0lh108nHjxPC4oZuQ?= =?us-ascii?Q?74S0n50p5YKqdIpvuUw23EdCMk/8FR0lXXCjracGCZbyoWRfBXKy2J/YjAWL?= =?us-ascii?Q?fj7yyFOimVZGNA61zhQNIy5OYzM+JoUEEIdFfVSD7iuvNM/RdtXSG5X3yVmU?= =?us-ascii?Q?V1UN6Rup7JJoGw2r21cAHHVK7+kim2TTZz3sPcibIt4iWLbMT4F+NFJRrYt0?= =?us-ascii?Q?k4LqURISVBfEtooCMLQVMvk9pX2G1+CAFtHv7EvGk82H+c7a0YEATomvSPLi?= =?us-ascii?Q?UaQj+KKlnMIMtHBdJIi6Ju3Hl7KjEL35F8aOyq5359R2oW99NDGkgPNT6pcm?= =?us-ascii?Q?OzQoo=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB119; 5:ZmSNUdiMQ+PhTZhXhWHTYpwWuAF8uJPGY5DwskLe9iK0hmPfBPsLrC24ElS33eBOdHCUag9VDYUdmG7wChh3DHiTd6Yi9LjVQvEPxjnsvexb7uLc3h0hwhn3gjUaEiC4kLWxJQFSu0K2aQidRRl+Yw==; 24:5m0iqQoY3/mm8VkO3lzj2TvBoSSk6yHoKA0Ve+kjM4eqMwB0JE6uGO6UAtNNT+Lh8k558sCLxrWUvZOTPKjCC0OFHm1nReXzH9QccYx+gmA=; 20:mdCCFQGox90bqaDT9JCaeyllZPTC1rTZ87FC86I3pvqoJvhAUgFiRJPtRHVDOO4LOpLCOmPISOQ5pbCphvJJVHLAjAvaofLZM2HgQ+wFw7FgKAorXugi+hrgYmLm0LnIuNEO02H/kIL0+xR1uMjJ7rTD+JAiZHVX4LSQgGwLJKI= X-OriginatorOrg: opensource.altera.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jul 2015 21:11:52.7722 (UTC) X-MS-Exchange-CrossTenant-Id: fbd72e03-d4a5-4110-adce-614d51f2077a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fbd72e03-d4a5-4110-adce-614d51f2077a; Ip=[66.35.236.227]; Helo=[sj-itexedge03.altera.priv.altera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB119 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150721_141216_063059_7B3DB283 X-CRM114-Status: GOOD ( 10.02 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Dinh Nguyen , dinh.linux@gmail.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.4 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Dinh Nguyen Since the Arria10's reset register offset is different from the Cyclone/Arria 5, it's best to add a new DT_MACHINE_START() for the Arria10. Signed-off-by: Dinh Nguyen --- v2: use altera_a10_dt_match for the A10 machine desc --- arch/arm/mach-socfpga/core.h | 1 + arch/arm/mach-socfpga/socfpga.c | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/arch/arm/mach-socfpga/core.h b/arch/arm/mach-socfpga/core.h index 7259c37..5bc6ea8 100644 --- a/arch/arm/mach-socfpga/core.h +++ b/arch/arm/mach-socfpga/core.h @@ -25,6 +25,7 @@ #define SOCFPGA_RSTMGR_MODPERRST 0x14 #define SOCFPGA_RSTMGR_BRGMODRST 0x1c +#define SOCFPGA_A10_RSTMGR_CTRL 0xC #define SOCFPGA_A10_RSTMGR_MODMPURST 0x20 /* System Manager bits */ diff --git a/arch/arm/mach-socfpga/socfpga.c b/arch/arm/mach-socfpga/socfpga.c index 19643a7..a1c0efa 100644 --- a/arch/arm/mach-socfpga/socfpga.c +++ b/arch/arm/mach-socfpga/socfpga.c @@ -74,6 +74,19 @@ static void socfpga_cyclone5_restart(enum reboot_mode mode, const char *cmd) writel(temp, rst_manager_base_addr + SOCFPGA_RSTMGR_CTRL); } +static void socfpga_arria10_restart(enum reboot_mode mode, const char *cmd) +{ + u32 temp; + + temp = readl(rst_manager_base_addr + SOCFPGA_A10_RSTMGR_CTRL); + + if (mode == REBOOT_HARD) + temp |= RSTMGR_CTRL_SWCOLDRSTREQ; + else + temp |= RSTMGR_CTRL_SWWARMRSTREQ; + writel(temp, rst_manager_base_addr + SOCFPGA_A10_RSTMGR_CTRL); +} + static const char *altera_dt_match[] = { "altr,socfpga", NULL @@ -86,3 +99,16 @@ DT_MACHINE_START(SOCFPGA, "Altera SOCFPGA") .restart = socfpga_cyclone5_restart, .dt_compat = altera_dt_match, MACHINE_END + +static const char *altera_a10_dt_match[] = { + "altr,socfpga-arria10", + NULL +}; + +DT_MACHINE_START(SOCFPGA_A10, "Altera SOCFPGA Arria10") + .l2c_aux_val = 0, + .l2c_aux_mask = ~0, + .init_irq = socfpga_init_irq, + .restart = socfpga_arria10_restart, + .dt_compat = altera_a10_dt_match, +MACHINE_END