From patchwork Sun Jan 17 23:11:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 569351 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id D4792140662 for ; Mon, 18 Jan 2016 10:16:25 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b=IzhSyqCK; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2CEFEA7527; Mon, 18 Jan 2016 00:14:03 +0100 (CET) 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 Zj6CEiP9FdNe; Mon, 18 Jan 2016 00:14:03 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 82541A7839; Mon, 18 Jan 2016 00:13:08 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AF67FA778F for ; Mon, 18 Jan 2016 00:12:41 +0100 (CET) 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 S2gOs6eCHxlm for ; Mon, 18 Jan 2016 00:12:41 +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 mail-oi0-f42.google.com (mail-oi0-f42.google.com [209.85.218.42]) by theia.denx.de (Postfix) with ESMTPS id 658CCA77E0 for ; Mon, 18 Jan 2016 00:12:34 +0100 (CET) Received: by mail-oi0-f42.google.com with SMTP id w75so133843981oie.0 for ; Sun, 17 Jan 2016 15:12:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=9Y7hoG0L9nsqsCLPfHsX4/FnkwvPAan9PVZaZo58KfI=; b=IzhSyqCKjR+FdI4tbYTJYvB7Qd34Jnxap2xrebedeAdN+nVyPuGxzfhUj8Pys2uCFP 4NvW42vPJOGoXApBKaKaO/ZSwBAtgnMqo6/4VkPCNmqoHxFpqW2gh507hsD0biWcKhqb iKMdeFluioB3h/AaExiqPI3pY8VTnUEEu30NhcOmZuH6yVOaoDhwmLRoD2BSE7v60Ra8 +6Gw7SQPpStCAsva5uhCq7YWfQ7R3hyF/XS6eE6aBIxfoqNZx5qSNoWy9Nnjrqkqhd9L 6tQ7QhXAkH8Myh3j680CvVl6TYy3ingihVRk4ZWBko3qnNa5LwaaPpqi+jgnbByC3RXy +fQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=9Y7hoG0L9nsqsCLPfHsX4/FnkwvPAan9PVZaZo58KfI=; b=YgI5P3Plmb2TFQhZ0fLDx4U++uDMLvCtPHVfftEA1ZRInXzWSP+jddjN6b6YJUgD9N +5tSK+w0ZNKYEi+wadRrgVHV5PnkLL996CE8WAJHYyx1e/ytf0NSvLxO+DbXsKCZlFNK JKiQZgUM4/ND9VMZtp8lHfYr9N8q7qQZdb3Td5PLPigV/Sl5Jj7Yw44p/TQ4muQFqZM1 9mxI9y9vOdysUKPQ1EjKZMwQnH382qVIaZ01IKYPxedSlafwftlbTS949qbOucKCPax7 Bu9TGN8Q8Xjr/oUzGKZQCM7WkBDo/Lomky+mmMkgwQ5q/euby2Fpw0Mdq3mpXeajon0k X61A== X-Gm-Message-State: ALoCoQlJDsG2BwWwmB/9Zo7o+gmT1ypia59/feOZTwXh1in4oKoVa4lF0Gv8jYqrXgMJRTALesRfitRicrk6ib+femNlA+LBUw== X-Received: by 10.202.81.147 with SMTP id f141mr16551024oib.68.1453072353680; Sun, 17 Jan 2016 15:12:33 -0800 (PST) Received: from kaki.bld.corp.google.com ([172.29.216.32]) by smtp.gmail.com with ESMTPSA id kz2sm11657462oeb.9.2016.01.17.15.12.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Jan 2016 15:12:32 -0800 (PST) Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id B030122165E; Sun, 17 Jan 2016 16:12:27 -0700 (MST) From: Simon Glass To: U-Boot Mailing List Date: Sun, 17 Jan 2016 16:11:19 -0700 Message-Id: <1453072320-24298-15-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.6.0.rc2.230.g3dd15c0 In-Reply-To: <1453072320-24298-1-git-send-email-sjg@chromium.org> References: <1453072320-24298-1-git-send-email-sjg@chromium.org> Subject: [U-Boot] [PATCH v2 14/55] x86: ivybridge: Probe the LPC in CPU init X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 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" We can drop the explicit probe of the PCH since the LPC is a child device and this will happen automatically. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: - Drop explicit PCH probe - Drop LPC init method - Rename patch from 'Add an init() method for the bd82x6x LPC' arch/x86/cpu/ivybridge/cpu.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/x86/cpu/ivybridge/cpu.c b/arch/x86/cpu/ivybridge/cpu.c index f32b4a1..65eea1f 100644 --- a/arch/x86/cpu/ivybridge/cpu.c +++ b/arch/x86/cpu/ivybridge/cpu.c @@ -212,7 +212,7 @@ int print_cpuinfo(void) { enum pei_boot_mode_t boot_mode = PEI_BOOT_NONE; char processor_name[CPU_MAX_NAME_LEN]; - struct udevice *dev; + struct udevice *dev, *lpc; const char *name; uint32_t pm1_cnt; uint16_t pm1_sts; @@ -245,12 +245,11 @@ int print_cpuinfo(void) /* Early chipset init required before RAM init can work */ uclass_first_device(UCLASS_NORTHBRIDGE, &dev); - ret = uclass_first_device(UCLASS_PCH, &dev); + ret = uclass_first_device(UCLASS_LPC, &lpc); if (ret) return ret; if (!dev) return -ENODEV; - sandybridge_early_init(SANDYBRIDGE_MOBILE); /* Check PM1_STS[15] to see if we are waking from Sx */