Received: by 10.213.65.68 with SMTP id h4csp1366254imn; Wed, 14 Mar 2018 19:06:01 -0700 (PDT) X-Google-Smtp-Source: AG47ELvs3C4VrB+bNZCgDC/XhHP67Lt2ed1d1bKMuoKyIu9xV5BRyOLS5bv7W1AAQZS/ZzZYORM7 X-Received: by 2002:a17:902:59c9:: with SMTP id d9-v6mr6207503plj.251.1521079561418; Wed, 14 Mar 2018 19:06:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521079561; cv=none; d=google.com; s=arc-20160816; b=V0GznU7Y82t5Ye6m8zZtawylL4mkg93pZUXw3pVazVKg+3kmr4r/bKFSVE9nk7VyOI H5UXrUtCOB7ZqJ9QpNwJ79s0d46gKBiOFeo4OIpfoUidFu2HsjxEPcRcVZ4TGhRRLzr9 cop9bdZryVGAPOvsIlHqQAPIFF+CunRWu0/L95K9uxnguaLEQD1n5Mda+c1tqMSHBzRj Pipn20MRn9hBMl8hhgmLgX4t+v3OslYV1Z3xMaPnc9zn1Dx7ABEcOm9hqYfRM1iwwp5L 98PxcIoPNz8v6yOdhivfeyVrwGkz0It5vr6sBYRfnpMI3/3+K3gFBAifcjUSgu/xvLSJ l2zA== 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=nrvySmGlEuEePiWNYfaGy0dGhn1+zLZNjC4iKX59MTk=; b=iXgvLm8o/xR4qp5uSntpMjtXxtcvYoYpVkJ/Hl5fwhqFLNE8LSc3ruIpEL5A3oK1Vj D/Uq6u3HmfdQO2IXNbN7mCnERyshQceJsOyf3Nr7We2JjqU2Xq0PGx3zI9g9LN7Vpw0U +Xoav4umE24qtWYgO628XB4PCUS9hRDqs0Wg8VLGVrMIeF40NZbaIIRN8utncPuaZUwR XTVENCRtLkCgbG7jiyIQ60ETL9FBDf8ww59Sf4Ji56uGH6ckd32YA4Lh+BVOxbpY2ZY+ 6dPTaD+606Xh+1vXb2OGH5Vk2h/5jy2j2YQpE3l1xG+4CWyoorp4926sH3OJaq8KADs+ Xubg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=XSPheUHh; 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 m25si2766873pge.338.2018.03.14.19.05.44; Wed, 14 Mar 2018 19:06:01 -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=XSPheUHh; 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 S1751523AbeCOCEm (ORCPT + 99 others); Wed, 14 Mar 2018 22:04:42 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:32931 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751408AbeCOCEl (ORCPT ); Wed, 14 Mar 2018 22:04:41 -0400 Received: by mail-oi0-f67.google.com with SMTP id e9so4452034oii.0 for ; Wed, 14 Mar 2018 19:04:41 -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=nrvySmGlEuEePiWNYfaGy0dGhn1+zLZNjC4iKX59MTk=; b=XSPheUHhP4QhZdPcwjLxdvvUkdQOq+raOfOr1r/mzBoKa+6D1GpTe0BqCfCeIQbsRU SsNpA2v1srX1A360d8VVe9Th//JE6oDDOH1GtBYPNC0jl9beakj/7AwzprnpTNTJ24XJ 09aHnQPf6KOLCSBdrIOqQr/dEK3/1KK7bAtSI= 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=nrvySmGlEuEePiWNYfaGy0dGhn1+zLZNjC4iKX59MTk=; b=bP6vVhmUHfoQVlPjaJWD6tl/P5ZIS4hXmc05PyqdBCvk7ivSvkdFh40TCYU4YMKGl7 xfqdtsvaFk9PYBF8GCRkJagIQAGcAe22bTaVDgcTAKlZt5mo5+9J3i9GUuQ4ubAhkU11 LoqQGWtgl7c4sjPsSA0DHDsjpd+308EH966RAxb36wF+Q1TGe3kIutYuJqZ5qEDjVbjw zbJ112ezn8jfWEHP4m+3UmfdExlZdWlIuDrUX/ZbndrXKuSQehuOhQW4qFdcWlUXQKZn e2jnr5KtmZirtiiAHRZtSFasiD8CuO7QVNvaqU7KiYvVZFkZg/AGMlrbH8BBtIG81KDI O4fA== X-Gm-Message-State: AElRT7Fy2CkGnoXFZgI5dwpNyBYXtAMwZGrJevQq++i/q7GHEIP6PRtH 8yUgElYhbmT4xcdNPEhkE4RTyw== X-Received: by 10.202.173.19 with SMTP id w19mr3839149oie.299.1521079481192; Wed, 14 Mar 2018 19:04:41 -0700 (PDT) Received: from djkurtz2.bld.corp.google.com ([2620:15c:183:0:1cfd:61a5:7215:5f9c]) by smtp.gmail.com with ESMTPSA id y9sm2177385oia.54.2018.03.14.19.04.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Mar 2018 19:04:40 -0700 (PDT) From: Daniel Kurtz To: Greg Kroah-Hartman Cc: adurbin@chromium.org, linux-kernel@vger.kernel.org, Daniel Kurtz Subject: [PATCH v3 0/3] Add earlycon support for AMD Carrizo / Stoneyridge Date: Wed, 14 Mar 2018 20:04:33 -0600 Message-Id: <20180315020436.150509-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 | 26 ++++++++++++++++++++++++++ drivers/tty/serial/8250/8250_core.c | 6 ++++++ drivers/tty/serial/8250/8250_early.c | 16 ++++++++++++++++ include/linux/serial_8250.h | 2 ++ 4 files changed, 50 insertions(+) -- 2.16.2.804.g6dcf76e118-goog