From patchwork Fri Feb 7 21:52:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Murali Karicheri X-Patchwork-Id: 24324 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f69.google.com (mail-pb0-f69.google.com [209.85.160.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7C94B202B2 for ; Fri, 7 Feb 2014 21:53:03 +0000 (UTC) Received: by mail-pb0-f69.google.com with SMTP id md12sf6939873pbc.0 for ; Fri, 07 Feb 2014 13:53:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=RjzQhLsdF9Ulctduq1feFOQqcEo4wP/uWjpPVNXyURg=; b=k6WzSKeXiZpPFW62s3igDfnQ2c3P/cS/OQzFrPzi9JUgVlzJk505N2RP+4iNCV1KiW TDI8yC+FS5tW1gvphVOVic6YTT5gC5U2v+fiB7hwBaNZTM8nuNGx6c3yVG3en0eJzTg+ qsTjPqS9tk2QfZ8/DUXgYTfBjCDc8f26hAmL+yL/n3TlEWBXga7kXehbSoGYF0vHF7X9 skxWRVflACbSUzrbzhncW9Ji19oD6xdEC2u21j++sODnfMps8/cAhLaoezml9BHXEQsW RKeBairqRQN2RH9B31GE0CwYjEVWJoZBWk8IXTIWw0KSjMpDYsSSr6UxQcU7ejb5gPJI AH4Q== X-Gm-Message-State: ALoCoQk3Ln8u3MXkTis5dzz05S1KaOMdWP8dcbr2NIbbEunq+YCUeybDZPaLB/m4aKPEEKzsoTJ6 X-Received: by 10.66.65.109 with SMTP id w13mr3583247pas.21.1391809982609; Fri, 07 Feb 2014 13:53:02 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.85.133 with SMTP id n5ls1173642qgd.64.gmail; Fri, 07 Feb 2014 13:53:02 -0800 (PST) X-Received: by 10.53.0.230 with SMTP id bb6mr2012121vdd.39.1391809982454; Fri, 07 Feb 2014 13:53:02 -0800 (PST) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id dd4si1788193vcb.145.2014.02.07.13.53.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Feb 2014 13:53:02 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.178; Received: by mail-vc0-f178.google.com with SMTP id ik5so3090761vcb.23 for ; Fri, 07 Feb 2014 13:53:02 -0800 (PST) X-Received: by 10.220.131.210 with SMTP id y18mr12445245vcs.12.1391809982333; Fri, 07 Feb 2014 13:53:02 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp137979vcz; Fri, 7 Feb 2014 13:53:01 -0800 (PST) X-Received: by 10.15.61.7 with SMTP id h7mr19316050eex.49.1391809981175; Fri, 07 Feb 2014 13:53:01 -0800 (PST) Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id f45si10667519eep.131.2014.02.07.13.53.00 for ; Fri, 07 Feb 2014 13:53:01 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 59D2F4BB51; Fri, 7 Feb 2014 22:53:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kl9vdiuOPzQK; Fri, 7 Feb 2014 22:53:00 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 16B4C4BB27; Fri, 7 Feb 2014 22:52:48 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0FACC4BB35 for ; Fri, 7 Feb 2014 22:52:43 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w9fEOfpQhpqN for ; Fri, 7 Feb 2014 22:52:39 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from arroyo.ext.ti.com (arroyo.ext.ti.com [192.94.94.40]) by theia.denx.de (Postfix) with ESMTPS id 42BD14BB22 for ; Fri, 7 Feb 2014 22:52:35 +0100 (CET) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id s17LqXpb022269 for ; Fri, 7 Feb 2014 15:52:33 -0600 Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s17LqXQM003509 for ; Fri, 7 Feb 2014 15:52:33 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.2.342.3; Fri, 7 Feb 2014 15:52:32 -0600 Received: from ares-ubuntu.am.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s17LqWZw023608; Fri, 7 Feb 2014 15:52:32 -0600 Received: from a0868495 by ares-ubuntu.am.dhcp.ti.com with local (Exim 4.76) (envelope-from ) id 1WBtLb-0002ff-Us; Fri, 07 Feb 2014 16:52:32 -0500 From: Murali Karicheri To: Date: Fri, 7 Feb 2014 16:52:19 -0500 Message-ID: <1391809945-10223-2-git-send-email-m-karicheri2@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1391809945-10223-1-git-send-email-m-karicheri2@ti.com> References: <1391809945-10223-1-git-send-email-m-karicheri2@ti.com> MIME-Version: 1.0 Cc: Vitaly Andrianov Subject: [U-Boot] [[PATCH 1/7] fdt: call ft_board_setup_ex() at the end of image_setup_libfdt() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: m-karicheri2@ti.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.178 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Vitaly Andrianov The keystone2 SOC requires to fix all 32 bit aliased addresses to their 36 physical format. This has to happen after all fdt nodes are added or modified. Signed-off-by: Vitaly Andrianov --- common/image-fdt.c | 5 +++++ include/fdt_support.h | 1 + 2 files changed, 6 insertions(+) diff --git a/common/image-fdt.c b/common/image-fdt.c index 6f9ce7d..ee4dd6f 100644 --- a/common/image-fdt.c +++ b/common/image-fdt.c @@ -487,5 +487,10 @@ int image_setup_libfdt(bootm_headers_t *images, void *blob, if (!ft_verify_fdt(blob)) return -1; +#ifdef CONFIG_SOC_K2HK + if (IMAAGE_OF_BOARD_SETUP) + ft_board_setup_ex(blob, gd->bd); +#endif + return 0; } diff --git a/include/fdt_support.h b/include/fdt_support.h index 9871e2f..4c1416d 100644 --- a/include/fdt_support.h +++ b/include/fdt_support.h @@ -63,6 +63,7 @@ int fdt_pci_dma_ranges(void *blob, int phb_off, struct pci_controller *hose); #endif void ft_board_setup(void *blob, bd_t *bd); +void ft_board_setup_ex(void *blob, bd_t *bd); void ft_cpu_setup(void *blob, bd_t *bd); void ft_pci_setup(void *blob, bd_t *bd);