From patchwork Mon Aug 3 17:01:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 11698477 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 74EA9138A for ; Mon, 3 Aug 2020 17:02:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5DDE622B40 for ; Mon, 3 Aug 2020 17:02:25 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=crapouillou.net header.i=@crapouillou.net header.b="HOKVERbA" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726913AbgHCRC0 (ORCPT ); Mon, 3 Aug 2020 13:02:26 -0400 Received: from crapouillou.net ([89.234.176.41]:37512 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726878AbgHCRCZ (ORCPT ); Mon, 3 Aug 2020 13:02:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1596474107; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0DyTW3Alvq2rzufl7mfU1Fgl0tMj1QF82GiVpDq0woo=; b=HOKVERbAulMpCJeAzT80uH24NGyY1RDNVb3RRIRD94MdIe+cjRsd5f4m331zjGZdtBi01C LErNbbdhvlf4JjnhTiOtTWszz7dT2BxHOBzGvdIPgvJjOVzhvB2YqgbVvsStGxIzdlt+lh pqb7xwP3Spi2OTzUxo7qkoJOYsU8WJM= From: Paul Cercueil To: Thomas Bogendoerfer Cc: Paul Burton , Krzysztof Kozlowski , =?utf-8?b?5ZGo55Cw5p2w?= , od@zcrc.me, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, Paul Cercueil Subject: [PATCH 05/13] MIPS: machine: Add get_system_type callback Date: Mon, 3 Aug 2020 19:01:16 +0200 Message-Id: <20200803170124.231110-6-paul@crapouillou.net> In-Reply-To: <20200803170124.231110-1-paul@crapouillou.net> References: <20200803170124.231110-1-paul@crapouillou.net> MIME-Version: 1.0 Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org The global get_system_type() function in arch/mips/generic/ will then be modified in a subsequent patch to call this callback if provided. This change will allow mips_machine implementations to override the behaviour of the global get_system_type() function. Signed-off-by: Paul Cercueil --- arch/mips/include/asm/machine.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/include/asm/machine.h b/arch/mips/include/asm/machine.h index 29ca344a8cab..433257e08d83 100644 --- a/arch/mips/include/asm/machine.h +++ b/arch/mips/include/asm/machine.h @@ -16,6 +16,7 @@ struct mips_machine { bool (*detect)(void); const void *(*fixup_fdt)(const void *fdt, const void *match_data); unsigned int (*measure_hpt_freq)(void); + const char *(*get_system_type)(struct device_node *dtb); }; extern long __mips_machines_start;