From nobody Tue Feb 13 11:51:52 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TZ06c673Cz5B7RF; Tue, 13 Feb 2024 11:51:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZ06c3Njnz44fg; Tue, 13 Feb 2024 11:51:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707825112; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1gg33kFb9Gt0zNGNI6wQ1gEnY9T3uxO3nZp04nK+eJo=; b=MhigO8JiEoNftp7kGV+G9ie6dY6sR1oSXKZaa6kRY+bsK9+4tZSeoGHxbiXew8byAHfEp1 rhpPRs/Q5Y+0el5+Xp2MHblKPCIn/BPBcVMj1yi8dqKqR1Ngqhv8wdHNw/c+YM0vG/whz0 Mk8utSgzdvrU6FqtljQLJt4n97mo2t/dRB6nNHEXIjkhqjLkeV6QnMrFTaUCqA+4BSQ/Ac 3L37avtqmQRciVbtvL4MutLcGbGZcSR64XGYGASlodW3QO3eCwWY3RaYrP0ZFj7vumC33G GOGSGLBjwtnEgPhRO1mwsdkHMinw614gGTarpKW1uODBFFmLoJxosB/BxYHssQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707825112; a=rsa-sha256; cv=none; b=K5FB+g/npOc8xBcTXJhRoi1Pr4dhd6Or6Ok3W+paq8himQ4O+5fgx6HSN6C73ASG3+oBHI g6TEdYVUiJ1Ru0LvfOxhb1ZWpNyERTMBrneNPLSRLAs2J0dMA1S+7XYdFefBVgOlnHrp1a LX2umfMArRZ9siM4nGF3iCxfcgPjGQka3WwRCL6WDBEre7pV0RfMKKFXAKqzgz4RmVOiuu vN3wyyq2gHtx17SQURYtjYj686KCCnmosSaJdrTQ9/0XY5bORYDr/AynOfdRTndd8qDABN 3OehwJriE/6ldGPZBykONtW6MqleXB3LdGui69GtzSlpjFSvPDQtkSF+sdssOA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707825112; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1gg33kFb9Gt0zNGNI6wQ1gEnY9T3uxO3nZp04nK+eJo=; b=v0omh1fSMKUzVe2gd7D7ptjoT2QrrFwf5Mlzd898agM31LDtza9QpkZtN137gZEQXy/nQL nTgZ/REzo6MMTmxmqfktLkPGolJ0MoifH8fIklPOcJ19ucKMMsCieRKzHfY/oST1bpjKk7 tiXlpxSW5WBQ8JaABqYbDHy+XD7kWIjCvKkDky4MeHazriik+wuS6b+6+6Ewm3EDesQQS+ afBDXEUIGsidRdtqv97IjBhJotwXAbJ0yve+y1RbWdt7vTAZdpHFG/G3VxwLgsNJzBQv2E eKCp+dfIOXbi9j+agSPznLMFZy/cOHDBUo0+JfT7mRp7ICUcYqkDKu4+A6tPRQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TZ06c2TPWzDyk; Tue, 13 Feb 2024 11:51:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41DBpqKX045968; Tue, 13 Feb 2024 11:51:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41DBpqvl045965; Tue, 13 Feb 2024 11:51:52 GMT (envelope-from git) Date: Tue, 13 Feb 2024 11:51:52 GMT Message-Id: <202402131151.41DBpqvl045965@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andrew Turner Subject: git: 53391af1518e - main - dev/uart: Support the pl011 uart in hw.uart.console List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: andrew X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 53391af1518e6e72545d720c8069b24aa253edad Auto-Submitted: auto-generated The branch main has been updated by andrew: URL: https://cgit.FreeBSD.org/src/commit/?id=53391af1518e6e72545d720c8069b24aa253edad commit 53391af1518e6e72545d720c8069b24aa253edad Author: Andrew Turner AuthorDate: 2024-01-08 15:24:33 +0000 Commit: Andrew Turner CommitDate: 2024-02-13 11:48:52 +0000 dev/uart: Support the pl011 uart in hw.uart.console Add the pl011 uart to the list of supported uarts for use by hw.uart.console. This is commonly found in Arm based devices, and a variant is standardised in the Arm SBSA. Reviewed by: imp Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D43363 --- sys/dev/uart/uart_dev_pl011.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/uart/uart_dev_pl011.c b/sys/dev/uart/uart_dev_pl011.c index bfcf8cf1584e..d91ae256f2a3 100644 --- a/sys/dev/uart/uart_dev_pl011.c +++ b/sys/dev/uart/uart_dev_pl011.c @@ -332,7 +332,7 @@ static kobj_method_t uart_pl011_methods[] = { }; static struct uart_class uart_pl011_class = { - "uart_pl011", + "pl011", uart_pl011_methods, sizeof(struct uart_pl011_softc), .uc_ops = &uart_pl011_ops, @@ -340,6 +340,7 @@ static struct uart_class uart_pl011_class = { .uc_rclk = 0, .uc_rshift = 2 }; +DATA_SET(uart_class_set, uart_pl011_class); #ifdef FDT static struct ofw_compat_data fdt_compat_data[] = {