From patchwork Sun Oct 15 13:21:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 826007 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="jUO5bLA2"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3yFMYn6R4Sz9sPm for ; Mon, 16 Oct 2017 00:22:05 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id A6035C21F32; Sun, 15 Oct 2017 13:21:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 67CEBC21C4E; Sun, 15 Oct 2017 13:21:23 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id E7B51C21C34; Sun, 15 Oct 2017 13:21:20 +0000 (UTC) Received: from mail-qk0-f194.google.com (mail-qk0-f194.google.com [209.85.220.194]) by lists.denx.de (Postfix) with ESMTPS id 9FD53C21C34 for ; Sun, 15 Oct 2017 13:21:17 +0000 (UTC) Received: by mail-qk0-f194.google.com with SMTP id b15so9939982qkg.9 for ; Sun, 15 Oct 2017 06:21:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=1aKiSJbkUBjccxePuv8AhrbKYh3Wp3nsLSJmqQ9y4PA=; b=jUO5bLA221wgwYO2IhjwyIKI9esTa8JS1QWCZtf7gAyxXRlsB1b3ioR5arnnglhgpl 6sg2UsWQQX56mHNzrfdJsRDSu27egvfhWFTOyiVs841XC8vFDD+/ssHU5A8/iKBPJGvT ZMWaF/ISKboMlyavX8GzW6JT9GRpOVWRKaBGg7rOPQOkezEPlZaeI+br/UwfQC1drpoz qewY+KzhmHhlAO8tKmjm4ooVC/CeN2XD7n7OsHdJImkNirXcXvm0DdJ1dPMP0HSRkm9x xxeN1UTZDYq2QuSBmDZrzYLM939OxRRTQr1Klky2mr/K8rVb1q9atUxt/0Sr09PmR5kZ BmYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=1aKiSJbkUBjccxePuv8AhrbKYh3Wp3nsLSJmqQ9y4PA=; b=AdQtULKH6vhwQjedXuiRgKXV7YTc7elOXc4FeqMUhZEQLS7dxaktgqu4xLOFGjW8FY R/LCp7HlsSeA1ZXert0oU3S3mmX35C3Agm94rGcREpFFkY3blHDslhQFjUb+SCFBcPW7 HZNYwFZPeW+8zxqGUVdg8O8/yBK30XlH0Wk5C7Q6qWxmTBo8hPkQAq2sr71ARDtku0S6 fS77cwWSyr+jdCNGkGmK4dnBefIfbqxqUcXlZpu3GDYuTsRmZdCeqCL8YGFOiPShiuV3 wKf9dLwmOQYD0mdqRPnS/9ZNm71eTNLUM15zdpT5uCUUzdvlncnfvsGF/zTTOfdebi/p l9YA== X-Gm-Message-State: AMCzsaUcnwIKEv5+r6Z+OFQJWXEEb94WkENke3kpb9FbGb15NrFtv6N8 vZXp4ym/skDIfkiRCN3XIGM= X-Google-Smtp-Source: ABhQp+SdhLrQiMwmZ0mfVtNYPwz2u0kOsDTStwijhILhSBlrxL8dxwtSBpVRWaZu3XnEJ+HyjLbqew== X-Received: by 10.55.21.99 with SMTP id f96mr10083268qkh.315.1508073676492; Sun, 15 Oct 2017 06:21:16 -0700 (PDT) Received: from localhost.localdomain ([187.180.180.72]) by smtp.gmail.com with ESMTPSA id y63sm3232952qky.75.2017.10.15.06.21.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 15 Oct 2017 06:21:15 -0700 (PDT) From: Fabio Estevam To: sbabic@denx.de Date: Sun, 15 Oct 2017 11:21:06 -0200 Message-Id: <1508073667-5402-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 2.7.4 Cc: Fabio Estevam , u-boot@lists.denx.de Subject: [U-Boot] [PATCH 1/2] wandboard: Remove cpu type check prior to setup_sata() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Fabio Estevam Inside setup_sata() there is a cpu type check, so there is no need to do this check in the board file. This also brings the benefit to allowing setup_sata() to be called for the mx6qp wandboard variant. Signed-off-by: Fabio Estevam Reviewed-by: Heinrich Schuchardt --- board/wandboard/wandboard.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/board/wandboard/wandboard.c b/board/wandboard/wandboard.c index adfcf48..3f12b50 100644 --- a/board/wandboard/wandboard.c +++ b/board/wandboard/wandboard.c @@ -380,9 +380,7 @@ int board_early_init_f(void) setup_display(); #endif #ifdef CONFIG_SATA - /* Only mx6q wandboard has SATA */ - if (is_cpu_type(MXC_CPU_MX6Q)) - setup_sata(); + setup_sata(); #endif return 0; From patchwork Sun Oct 15 13:21:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 826006 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="B8qWIne4"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3yFMY66ZjMz9sPm for ; Mon, 16 Oct 2017 00:21:30 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 87655C21F09; Sun, 15 Oct 2017 13:21:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id E113CC21C35; Sun, 15 Oct 2017 13:21:22 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id DD793C21C39; Sun, 15 Oct 2017 13:21:20 +0000 (UTC) Received: from mail-qk0-f196.google.com (mail-qk0-f196.google.com [209.85.220.196]) by lists.denx.de (Postfix) with ESMTPS id 7A177C21C35 for ; Sun, 15 Oct 2017 13:21:19 +0000 (UTC) Received: by mail-qk0-f196.google.com with SMTP id m189so9916082qke.4 for ; Sun, 15 Oct 2017 06:21:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=c9jsNObHXMYZJ3i+2Ep6a2gwV4rOKX0ssWiKvsW1KXk=; b=B8qWIne4fyU9ovbucVUwg2cr13rwoZjxNC8ldsBFZVC0v0ljMnKtGhIoDpHzlM32b6 Yo0Rf8//pG94Bg4IoKpyrrrqh1itBdvZZGw/ptEbl4+JytBOll1A4cHTk9DUEhCpyQg3 ZhFH7JIE+mF25gms2fRLzBOOEhG5XMqYNbFEtvM5puAA4+ghcoqwsnkBsjLERu8g9HVu RDSlRpMQFgE2BZs4Gh8NRYLDqN6o8QOiJzEFE9cuMxHwvarMzgF63JHI9tHOItnDBsMJ sxx2V1HNXhpOJ2o2XeSROsLBxYx3Cx+RaNMhGGjal1kMqdTD60X/AyLTWbrpkAgBGfa5 0LVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=c9jsNObHXMYZJ3i+2Ep6a2gwV4rOKX0ssWiKvsW1KXk=; b=syKJK4L43Ig7tn5ww6CwuNlYL9K8Tg1foRyXUER5RjE8ahbbDmAGsloR1nR5K715DE bzPxkojBtRVfDM2yA91BUu0iFmAzQhAsw4lEPMTLaes1q4i7KWccB4jPXMiliK0UDK5O 45IHHkUNoZ1p1i4yf36sfFq4vcEFWOn9GMlyaBYRX2rqrbW6VxusqV58tlRXMcDcDeHB VzxoeM2wZ/2msehs25w5AH2/SgCz8X3XZ1R6K9qWm12In3jdef4HnTkvSZQgsQb93gKq rm98y+ox7Gxz7oHmgTrontkkC5OsjODDJzjC33kbZiyY2D14oicdGpVULltc7MLyuyWl xcWw== X-Gm-Message-State: AMCzsaU7rbgtq99gKpPIvEFEEJG1vaeA0kQBHLasarA7Rl660UMutQMP xie86SB/3SmbhITc6Xe39zE= X-Google-Smtp-Source: ABhQp+RUORK+59vtqwYOt8JrA3e/1aiiORpGRuPSnyrxyqk9Udgiio29dE2ddPLiEgsiJGBhtV110A== X-Received: by 10.55.204.157 with SMTP id n29mr8908906qkl.243.1508073678471; Sun, 15 Oct 2017 06:21:18 -0700 (PDT) Received: from localhost.localdomain ([187.180.180.72]) by smtp.gmail.com with ESMTPSA id y63sm3232952qky.75.2017.10.15.06.21.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 15 Oct 2017 06:21:17 -0700 (PDT) From: Fabio Estevam To: sbabic@denx.de Date: Sun, 15 Oct 2017 11:21:07 -0200 Message-Id: <1508073667-5402-2-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1508073667-5402-1-git-send-email-festevam@gmail.com> References: <1508073667-5402-1-git-send-email-festevam@gmail.com> Cc: Fabio Estevam , u-boot@lists.denx.de Subject: [U-Boot] [PATCH 2/2] udoo: Remove cpu type check prior to setup_sata() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Fabio Estevam Inside setup_sata() there is a cpu type check, so there is no need to do this check in the board file. Signed-off-by: Fabio Estevam Reviewed-by: Heinrich Schuchardt --- board/udoo/udoo.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/board/udoo/udoo.c b/board/udoo/udoo.c index a359626..562f0d8 100644 --- a/board/udoo/udoo.c +++ b/board/udoo/udoo.c @@ -245,8 +245,7 @@ int board_init(void) gd->bd->bi_boot_params = PHYS_SDRAM + 0x100; #ifdef CONFIG_SATA - if (is_cpu_type(MXC_CPU_MX6Q)) - setup_sata(); + setup_sata(); #endif return 0; }