Received: by 10.213.65.68 with SMTP id h4csp1261902imn; Wed, 14 Mar 2018 14:47:31 -0700 (PDT) X-Google-Smtp-Source: AG47ELvqfNq9m00YJ78625Mr91rbXdUiX2p5DuNnnRusrSUr97jIwyffHwuxEAcJFUwkHiJRQ8d/ X-Received: by 10.101.99.18 with SMTP id g18mr4921401pgv.436.1521064051782; Wed, 14 Mar 2018 14:47:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521064051; cv=none; d=google.com; s=arc-20160816; b=yPVQs5JrAPpJhbSmG4g1f7pPyPn36p98ffo2V2V1IqToQxd1DRQ9aYmlc/Qspq/k93 JAF81Z7EXasIixk1Ddad7ujnphsGKM7Rha2Qaqfnk87UUIerIGtB5ZTuw3T0/e7qXKz1 3zbxg/Sj6jjEmRH0jDYJx7SPoRGDfmEZ3fq6W585mUJU35ouhEF6imb21X7OAgNozXd+ ERTLjm9heDeMTpuV9VHUa74PUdTpblpTWMLNZw6F53LK42Ez//m+d6xMBJ3rVE30G1JV hXeiFXbh6gYx4yHV78cviNyjWA8MVAJLDl1EXZSV6QHUJvpyfTlsQMzO8+YpSKZT3fUO OrLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=bvb5An+FRd8WBGgHl5jRe+Jtd7dWGgpb2nQ3crP4P2w=; b=DT8Rm1tMrvoI58uEWL3YtecX/FMAZIIy6mW+TB9wPLap7KzFtIyRTJofFM4TfkEowk qaIViQPayTf4gjAeNzADXS/zJB4W5JGu/pSUsBopuSUkfgATC+cGwobbw8mjC79LvJQw x2NENGaYWB8fVv9gfhXXrCdo6RwbM6y3FcOgWzn+3m9KoMOp1sSwcqtvvaGpu/12MzZr U/wqhT/lyvCKimSjg88Dw8ZeKdEmecjqS/plREJOWDq2wPUsZzx65lwutvdx7Vb3ToQq B9GPstQ54+05PEehcPmv9jrdajUs3owiySKCI36okuBh1AcAAh0GmHVT3VWGMvg/y25d xAug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=oKi+lmWN; 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 z8-v6si2570889plk.305.2018.03.14.14.47.17; Wed, 14 Mar 2018 14:47:31 -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=oKi+lmWN; 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 S1751547AbeCNVow (ORCPT + 99 others); Wed, 14 Mar 2018 17:44:52 -0400 Received: from mail-ot0-f196.google.com ([74.125.82.196]:33937 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751168AbeCNVov (ORCPT ); Wed, 14 Mar 2018 17:44:51 -0400 Received: by mail-ot0-f196.google.com with SMTP id v4-v6so1666306otj.1 for ; Wed, 14 Mar 2018 14:44:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id; bh=bvb5An+FRd8WBGgHl5jRe+Jtd7dWGgpb2nQ3crP4P2w=; b=oKi+lmWNqVRtJyEIinPnye2rXd9qT+bdhZGX9STRgnIrK8/GTTP/yTZwaB4gtxkHrW Y9T9Pr95Be9A5a5j0Nm0TIZ7Z9pivReG0IeVwssxRCLnEMDTGzi1ISOM1E2I9QBzdPm+ uLyCeMto79FBSwJXfxwRAbuo4C/Mh9yrIOnaA= 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=bvb5An+FRd8WBGgHl5jRe+Jtd7dWGgpb2nQ3crP4P2w=; b=bmaS/c46uDW6SNfAQhLHHi4GQcgAWeHga4o9/HcWJwRn19/EDQqSMLd7osmWnpZ8uO 2gPtLNsw9/QGIgoVYuSx274l4d7Di0vp22gMA3yQbonC6QLslzBPWq3lBdYdpfBuGvGE QkWy43C7DM9ihwdRaPp5K+JAQgzGheIr2M6d87fDyJ/56wtGmCdQk5+GD/yhQo/16aox 2ZNs6h6YaczszFt1BrNY7u7efA5PzW2kN70OFwc7B7kNsCcr8vpfR5a2e2px292chMg/ sXP00PkwT2rQebOUMB3bvb85UVKg1k0R2wfAZZy/+r+5x9zy/mq8zhs6/d7Ic6W6wROF en+g== X-Gm-Message-State: AElRT7Hb037y2PLSHrBU7Ll6uKf3/TauaqBzIOz4mDqRD+BPYk2CLxBb WQyEr/y+kxYPr0GvruMPBbwWyQ== X-Received: by 10.157.88.11 with SMTP id r11mr3301368oth.155.1521063890911; Wed, 14 Mar 2018 14:44:50 -0700 (PDT) Received: from djkurtz2.bld.corp.google.com ([2620:15c:183:0:1cfd:61a5:7215:5f9c]) by smtp.gmail.com with ESMTPSA id p200sm1974922oic.0.2018.03.14.14.44.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Mar 2018 14:44:50 -0700 (PDT) From: Daniel Kurtz To: Greg Kroah-Hartman Cc: adurbin@chromium.org, linux-kernel@vger.kernel.org, Daniel Kurtz Subject: [PATCH v2 0/3] Add earlycon support for AMD Carrizo / Stoneyridge Date: Wed, 14 Mar 2018 15:44:35 -0600 Message-Id: <20180314214439.27806-1-djkurtz@chromium.org> X-Mailer: git-send-email 2.16.2.804.g6dcf76e118-goog Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org AMD Carrizo / Stoneyridge use a DesignWare 8250 UART that uses a 48 MHz input clock. Currently, there is no way to tell earlycon to use a specific uart input clock when configuring a baud rate. Patch 1 adds an earlycon ->setup() callback to set up this clock. The setup is triggered on the commandline by specifying "earlycon=amdcz,...". Patch 2 adds an ACPI SPCR quirk to automatically trigger this hook when the ACPI SPCR table OEMID field is "AMDCZ ". Patch 3 adds an additional fix which allows botht the ACPI SPCR quirk and amdcz ->setup() to tell 8250_core to skip initialization of old serial ports that do not exist on these SoCs. Daniel Kurtz (3): serial: 8250_early: Add earlycon support for AMD Carrizo / Stoneyridge ACPI: SPCR: Add support for AMD CT/SZ serial: core: Allow skipping old serial port initialization drivers/acpi/spcr.c | 25 +++++++++++++++++++++++++ drivers/tty/serial/8250/8250_core.c | 6 ++++++ drivers/tty/serial/8250/8250_early.c | 16 ++++++++++++++++ include/linux/serial_8250.h | 6 ++++++ 4 files changed, 53 insertions(+) -- 2.16.2.804.g6dcf76e118-goog