From: Tony Chung <tony467913@gmail.com>
To: gregkh@linuxfoundation.org
Cc: johan@kernel.org, linux-kernel@vger.kernel.org,
linux-usb@vger.kernel.org, Tony Chung <tony467913@gmail.com>
Subject: [PATCH 1/3] drivers: usb: serial: mos7840: Add defines for clock select register offset
Date: Thu, 24 Oct 2024 18:09:01 +0800 [thread overview]
Message-ID: <20241024100901.69883-2-tony467913@gmail.com> (raw)
In-Reply-To: <20241024100901.69883-1-tony467913@gmail.com>
This patch adds define for CLOCK_SELECT_REG1 & CLOCK_SELECT_REG2 offsets.
These two registers can select clock source between 30M/96M/External.
Signed-off-by: Tony Chung <tony467913@gmail.com>
---
drivers/usb/serial/mos7840.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c
index ca3da79af..362875a53 100644
--- a/drivers/usb/serial/mos7840.c
+++ b/drivers/usb/serial/mos7840.c
@@ -144,6 +144,9 @@
#define SERIAL_LCR_DLAB ((__u16)(0x0080))
+#define CLOCK_SELECT_REG1 ((__u16)(0x13))
+#define CLOCK_SELECT_REG2 ((__u16)(0x14))
+
/*
* URB POOL related defines
*/
--
2.34.1
next prev parent reply other threads:[~2024-10-24 10:16 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-24 10:08 [PATCH 0/3] drivers: usb: serial: mos7840: Improved baud rate support Tony Chung
2024-10-24 10:09 ` Tony Chung [this message]
2025-02-11 9:44 ` [PATCH 1/3] drivers: usb: serial: mos7840: Add defines for clock select register offset Johan Hovold
2024-10-24 10:09 ` [PATCH 2/3] drivers: usb: serial: mos7840: added optimized register setups for common baudrates Tony Chung
2025-02-11 10:16 ` Johan Hovold
2024-10-24 10:09 ` [PATCH 3/3] driver: usb: serial: mos7840: add more baudrate options Tony Chung
2025-02-11 13:08 ` Johan Hovold
2025-02-11 9:41 ` [PATCH 0/3] drivers: usb: serial: mos7840: Improved baud rate support Johan Hovold
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241024100901.69883-2-tony467913@gmail.com \
--to=tony467913@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=johan@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox