From patchwork Wed Feb 18 14:59:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pantelis Antoniou X-Patchwork-Id: 5844481 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 B851DBF440 for ; Wed, 18 Feb 2015 15:02:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0742220221 for ; Wed, 18 Feb 2015 15:02:58 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 127562015E for ; Wed, 18 Feb 2015 15:02:57 +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 1YO67D-0002Ws-0o; Wed, 18 Feb 2015 15:00:39 +0000 Received: from mail-we0-f180.google.com ([74.125.82.180]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YO66i-0001E3-EU for linux-arm-kernel@lists.infradead.org; Wed, 18 Feb 2015 15:00:09 +0000 Received: by wevk48 with SMTP id k48so1684515wev.3 for ; Wed, 18 Feb 2015 06:59:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=NbV2LIgVOUIB3FKJ+K1RgULf539+IBw2qBSf+Vf0IN8=; b=W2gOebIHg6/dB/GwDYE5f4w0HZ5NFjYCXnlQ7tWXcgLcOv2dgLM3SXwAqKQSLeByji xA+IOyDIewYVKSYryOJfN8ttGw0kUAeCwBgpPJPrWSTr6jGHFQ6UiiPegy+rR3e+hthl kU3iYqYspazAkh0TBryP9zAKKZYoCivIvnX1KyTsUKqEC3oLSMbCtfDwsmjLBdtPZKmM HVa+rUT0Wv0YKYwQKNHvIjmosRJ8f6ocUQy1lUOgmNXGchjmQWsAA3spH675OoCHyRxT XJo0XnVkCeeqAR66aLtxJFhAT18RbzglA6+w1e5/mFoDuseeF1oNb2t7BLHVZAC2RJSb EnQw== X-Gm-Message-State: ALoCoQmGwiopb/k3GTWNN4sutaV1n+EIYQDXud2UYYh/WInh0BUkCjP1gC1yGG7rIw3r1rU+tlGj X-Received: by 10.181.13.42 with SMTP id ev10mr756868wid.69.1424271585647; Wed, 18 Feb 2015 06:59:45 -0800 (PST) Received: from sles11esa.localdomain ([195.97.110.117]) by mx.google.com with ESMTPSA id gm2sm19752711wib.5.2015.02.18.06.59.43 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 18 Feb 2015 06:59:45 -0800 (PST) From: Pantelis Antoniou To: Grant Likely Subject: [PATCH 1/4] arm: of: Add a DT quirk method after unflattening Date: Wed, 18 Feb 2015 16:59:33 +0200 Message-Id: <1424271576-1952-2-git-send-email-pantelis.antoniou@konsulko.com> X-Mailer: git-send-email 1.7.12 In-Reply-To: <1424271576-1952-1-git-send-email-pantelis.antoniou@konsulko.com> References: <1424271576-1952-1-git-send-email-pantelis.antoniou@konsulko.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150218_070008_699176_48A9877F X-CRM114-Status: UNSURE ( 9.52 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.3 (/) Cc: devicetree@vger.kernel.org, Tony Lindgren , Pantelis Antoniou , Koen Kooi , Nicolas Ferre , linux-kernel@vger.kernel.org, Ludovic Desroches , linux-arm-kernel@lists.infradead.org, Pantelis Antoniou , Matt Porter , Guenter Roeck X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_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 We need a per-machine dt_quirk() method to allow us to perform device tree quirk processing after unflattening. Signed-off-by: Pantelis Antoniou --- arch/arm/include/asm/mach/arch.h | 1 + arch/arm/kernel/setup.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/arch/arm/include/asm/mach/arch.h b/arch/arm/include/asm/mach/arch.h index 0406cb3..e873434 100644 --- a/arch/arm/include/asm/mach/arch.h +++ b/arch/arm/include/asm/mach/arch.h @@ -51,6 +51,7 @@ struct machine_desc { bool (*smp_init)(void); void (*fixup)(struct tag *, char **); void (*dt_fixup)(void); + void (*dt_quirk)(void); void (*init_meminfo)(void); void (*reserve)(void);/* reserve mem blocks */ void (*map_io)(void);/* IO mapping function */ diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c index e55408e..e4c6eb5 100644 --- a/arch/arm/kernel/setup.c +++ b/arch/arm/kernel/setup.c @@ -934,6 +934,9 @@ void __init setup_arch(char **cmdline_p) unflatten_device_tree(); + if (mdesc->dt_quirk) + mdesc->dt_quirk(); + arm_dt_init_cpu_maps(); psci_init(); #ifdef CONFIG_SMP