mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
serial: sccnxp: Using CLK API for getting UART clock
This patch removes "frequency" parameter from SCCNXP platform_data and uses CLK API for getting clock. If CLK ommited, default IC frequency will be used instead. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e087ab74f3
commit
90efa75f7a
3 changed files with 22 additions and 18 deletions
|
@ -60,7 +60,6 @@
|
|||
* };
|
||||
*
|
||||
* static struct sccnxp_pdata sc2892_info = {
|
||||
* .frequency = 3686400,
|
||||
* .mctrl_cfg[0] = MCTRL_SIG(DIR_OP, LINE_OP0),
|
||||
* .mctrl_cfg[1] = MCTRL_SIG(DIR_OP, LINE_OP1),
|
||||
* };
|
||||
|
@ -78,8 +77,6 @@
|
|||
|
||||
/* SCCNXP platform data structure */
|
||||
struct sccnxp_pdata {
|
||||
/* Frequency (extrenal clock or crystal) */
|
||||
int frequency;
|
||||
/* Shift for A0 line */
|
||||
const u8 reg_shift;
|
||||
/* Modem control lines configuration */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue