From patchwork Fri Feb 7 23:23:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Murali Karicheri X-Patchwork-Id: 24331 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f69.google.com (mail-oa0-f69.google.com [209.85.219.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8C8E0202B2 for ; Fri, 7 Feb 2014 23:24:25 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id h16sf17840095oag.0 for ; Fri, 07 Feb 2014 15:24:24 -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=FQuea5sCPC76Ep0rEaFp7/QZHejxZ0wwhIqKHaVtvgs=; b=XwAy9nafu6zgVhYLFeNw7ema4GlaEWK2O5AX4c1HEJVZxVckuYXjda0AOGPv7tfppi DlJe3vph63Nmn/0ZYmK2cfo5tPL7h1mruDHuyHLKGndvjRgij/f/uHrWUcm/xJ8vTMKy NhzAgqjDFBo7vvrIyFVXyFhza+vCXxEbqEJdWLiaBiQoJW/ZaOjfSc6mao2gTXvHL0Jt M0bqLR9pKik9rqDEAxHG1VExMAjm71hOdNbKyqHrEYX5ukA3usRxtkiwKn3975mD8n/w e04JENlqpKP879RS+Dqr2qA7bQ3ihlh6ckGhaEsha7kiDOXCQrVMEDDJA+0jbTwpl8PM +kUA== X-Gm-Message-State: ALoCoQlbJNmzAO1lAonebfUvwBJ8QzhO0ZaQkaz7rPcLS7jCQiHcrC+n1qJ5iT86MSRIRJWu4Kda X-Received: by 10.42.194.5 with SMTP id dw5mr5368951icb.5.1391815464497; Fri, 07 Feb 2014 15:24:24 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.86.212 with SMTP id p78ls1274509qgd.10.gmail; Fri, 07 Feb 2014 15:24:24 -0800 (PST) X-Received: by 10.52.185.196 with SMTP id fe4mr10517324vdc.27.1391815464425; Fri, 07 Feb 2014 15:24:24 -0800 (PST) Received: from mail-vb0-f44.google.com (mail-vb0-f44.google.com [209.85.212.44]) by mx.google.com with ESMTPS id sx1si769969vdc.153.2014.02.07.15.24.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Feb 2014 15:24:24 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.44 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.44; Received: by mail-vb0-f44.google.com with SMTP id f12so3183630vbg.31 for ; Fri, 07 Feb 2014 15:24:24 -0800 (PST) X-Received: by 10.220.99.72 with SMTP id t8mr12602392vcn.10.1391815464296; Fri, 07 Feb 2014 15:24:24 -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 u4csp4vcz; Fri, 7 Feb 2014 15:24:23 -0800 (PST) X-Received: by 10.15.56.130 with SMTP id y2mr17569055eew.17.1391815463055; Fri, 07 Feb 2014 15:24:23 -0800 (PST) Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id k3si10972980eep.162.2014.02.07.15.24.22 for ; Fri, 07 Feb 2014 15:24:23 -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 B28154BB55; Sat, 8 Feb 2014 00:24:03 +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 iNyY--Hug-RW; Sat, 8 Feb 2014 00:24:03 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E56694BB62; Sat, 8 Feb 2014 00:23:42 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9F34F4BAF3 for ; Sat, 8 Feb 2014 00:23:34 +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 4iwfIcL6T09x for ; Sat, 8 Feb 2014 00:23:31 +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 bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by theia.denx.de (Postfix) with ESMTPS id 5D24F4BB27 for ; Sat, 8 Feb 2014 00:23:23 +0100 (CET) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s17NNIcS006213; Fri, 7 Feb 2014 17:23:19 -0600 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id s17NNId8001122; Fri, 7 Feb 2014 17:23:18 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.2.342.3; Fri, 7 Feb 2014 17:23:18 -0600 Received: from ares-ubuntu.am.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id s17NNIvD024472; Fri, 7 Feb 2014 17:23:18 -0600 Received: from a0868495 by ares-ubuntu.am.dhcp.ti.com with local (Exim 4.76) (envelope-from ) id 1WBulS-00055m-0g; Fri, 07 Feb 2014 18:23:18 -0500 From: Murali Karicheri To: Date: Fri, 7 Feb 2014 18:23:08 -0500 Message-ID: <1391815393-19536-2-git-send-email-m-karicheri2@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1391815393-19536-1-git-send-email-m-karicheri2@ti.com> References: <1391815393-19536-1-git-send-email-m-karicheri2@ti.com> MIME-Version: 1.0 Cc: trini@ti.com, Vitaly Andrianov Subject: [U-Boot] [U-Boot:RESEND][[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.212.44 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 --- - Resending with some more in cc 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);