Received: by 10.213.65.68 with SMTP id h4csp1098345imn; Wed, 14 Mar 2018 09:32:45 -0700 (PDT) X-Google-Smtp-Source: AG47ELsLnLfChjIdBkK0NI4H8JshWieGr7mmiES2E15RmruL+qu1LaJPSiIvi4WFAir52nv4Mqfs X-Received: by 10.101.82.198 with SMTP id z6mr4181321pgp.41.1521045165319; Wed, 14 Mar 2018 09:32:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521045165; cv=none; d=google.com; s=arc-20160816; b=F4OMiMX2qHc91X1nyoh8aRZ5GLPBleZ0g9gFs8MYvc+/PU2gH4UqJFZUaZD7RdMFpB Va9OfwOur96LN2kOCtVKZoonseQBpoceeW092lOkfUb2IqM/dG7k3730ITSUUH9k0lZx XAzuxsCy7ienZ4kRjnIPlFMR0C+NxCsfaQav8kXdH15aBq95kyHi65tqJ1R9oaX79Dxb P/6M+ocQ8jRBPYWvkQ97B9Eh1hazhtkTI1OXGLmkNW90TTjxgf1u6A94aJHWahCf6Mml 1h13qgL9o69wTMzkaQikp+G2BfI/WFWdwVjrHPClRGnQqqiPtQ//FpkbATxYMuRdUPDB 4kcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=eQ1DvJR8FbArMkBMDvJgl6lP2L3OxorcUYVmfuLW8w8=; b=Ke1kMrNh0vusHBOK/FPj+kmOaI0Gy1qicwtx2iFx+G040qoT57iPz1rgOewpgzMr4r wP5+vVhWabZXU8etPh2YgMdsbcltKZor2QDwfgJ2N5X88KX7WlItPGF3xVbJvpBovUFT 2txSXtWYDwIo696GEEC/gGSorPwDvT1Igp9Cln9jome85kr7Q/h8VZ5wRI+9dqQeQUQi Dn1n81nxhcOu05GUybtOn/0t1l2yT8avF2mkGxMxyXXILAPjoG4K5HYo/O/Fz+zepNEB CItjbLTj9Qu01cVzcF9opcr1l3DEOWFLD4bGP9gqFQ4oyRxllWrJLH1/76e9AdgSK6BG wdRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=cVA1vm+q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g10si2022034pgs.457.2018.03.14.09.32.30; Wed, 14 Mar 2018 09:32:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=cVA1vm+q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751532AbeCNQaK (ORCPT + 99 others); Wed, 14 Mar 2018 12:30:10 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:40289 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751459AbeCNQaJ (ORCPT ); Wed, 14 Mar 2018 12:30:09 -0400 Received: by mail-wr0-f196.google.com with SMTP id s12so2865805wre.7 for ; Wed, 14 Mar 2018 09:30:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eQ1DvJR8FbArMkBMDvJgl6lP2L3OxorcUYVmfuLW8w8=; b=cVA1vm+qbny108LvWYUR9uOwkYNhQYYAlL6sk6ZzVjQGLUc+gFqS9aOmZYRHObbqnj vy1eEvt4jxRTFPFZRsOS/bPuDDFi1LYGJHqjWHfQi18qDMLvh908o3bcWRO8gVo0hIIS 76ztlcUYKFo1A259aKI0znCcvLbCIOGmr3lEw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eQ1DvJR8FbArMkBMDvJgl6lP2L3OxorcUYVmfuLW8w8=; b=s2JSbQ6R3DN17zPNjMY9oWJhSTYYSqd782Pb/4MLJWIK04lyMEHHJb6J+g1v9o+rwn LcL9orxScLQH0eZskq2u8dnKcdB5ljLmdYhM7OYfzl8Fx+SiyfyvVaHqEVR2v1uPcbh4 +IJS9zB0Ugm3nct6DtRs18+SUrFCA+AWXkHvyvK3QKwIAMCzxwHgkXk6o1Tbf2J7KTxQ T2tqfUTPLvS/AqwN2ChaqZfOaAlOS/2+MVzVfAraBWChXr9SxC3GkJ/O2UaLof02+L/C mdby5EDvPJdjHdNKOYzDsUGRv+qK3TFfzhr6o8gBFclvskQbHzfWzsn+PB9StX4wi6+h iZdg== X-Gm-Message-State: AElRT7ELgoWkTNa58Dplen9I/kO5jL1CjWYPFvGFLWIcsez12w1warIS xNQPJ9tSyTrGAYYkH1my2JmYs02JAtI/5xTfBTvgLA== X-Received: by 10.223.152.142 with SMTP id w14mr3427175wrb.210.1521045007348; Wed, 14 Mar 2018 09:30:07 -0700 (PDT) MIME-Version: 1.0 References: <20180314003655.12141-1-djkurtz@chromium.org> <20180314003655.12141-2-djkurtz@chromium.org> In-Reply-To: From: Daniel Kurtz Date: Wed, 14 Mar 2018 16:29:56 +0000 Message-ID: Subject: Re: [PATCH 1/3] serial: 8250_early: Add earlycon support for AMD Carrizo / Stoneyridge To: ricardo.ribalda@gmail.com Cc: adurbin@chromium.org, Greg Kroah-Hartman , jslaby@suse.com, marc_gonzalez@sigmadesigns.com, Doug Anderson , matt.redfearn@mips.com, Jeffy , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ricardo, On Wed, Mar 14, 2018 at 4:54 AM Ricardo Ribalda Delgado < ricardo.ribalda@gmail.com> wrote: > Hi Daniel > On Wed, Mar 14, 2018 at 1:36 AM, Daniel Kurtz wrote: > > > > AMD Carrizo / Stoneyridge use a DesignWare 8250 UART that uses a 48 MHz > > input clock. > > > > Allow these platforms to set up this clock by specifying a kernel command > > line like: > > earlycon=amdcz,mmio32,0xfedc6000,115200 > If the port and the mode (mmio32) is always fixed, couldn't we just > add those two into > early_amdcz_setup? There are multiple memory mapped UARTs on at least the one chip I am aware of, specifying the address here chooses which port to use as the early console. In fact, the recommended way is to have firmware specify an ACPI SPCR table with OEMID="AMDCZ " (see https://patchwork.kernel.org/patch/10281307/) to configure proper access and address. With an SPCR table in place, the kernel command line just becomes "earlycon", with no parameters. -Dan