Home
last modified time | relevance | path

Searched refs:brg (Results 1 – 25 of 65) sorted by relevance

123

/linux-6.1.9/Documentation/devicetree/bindings/soc/fsl/cpm_qe/cpm/
Dbrg.txt4 fsl,cpm-brg
5 fsl,cpm1-brg
6 fsl,cpm2-brg
15 brg@119f0 {
16 compatible = "fsl,mpc8272-brg",
17 "fsl,cpm2-brg",
18 "fsl,cpm-brg";
/linux-6.1.9/arch/powerpc/boot/dts/
Dmpc866ads.dts101 brg-frequency = <0>;
116 brg@9f0 {
117 compatible = "fsl,mpc866-brg",
118 "fsl,cpm1-brg",
119 "fsl,cpm-brg";
143 fsl,cpm-brg = <1>;
154 fsl,cpm-brg = <2>;
Dep8248e.dts121 brg@119f0 {
122 compatible = "fsl,mpc8248-brg",
123 "fsl,cpm2-brg",
124 "fsl,cpm-brg";
136 fsl,cpm-brg = <7>;
149 fsl,cpm-brg = <1>;
Dtqm8xx.dts133 brg-frequency = <0>;
148 brg@9f0 {
149 compatible = "fsl,mpc860-brg",
150 "fsl,cpm1-brg",
151 "fsl,cpm-brg";
175 fsl,cpm-brg = <1>;
Dep88xc.dts154 brg@9f0 {
155 compatible = "fsl,mpc885-brg",
156 "fsl,cpm1-brg",
157 "fsl,cpm-brg";
179 fsl,cpm-brg = <1>;
192 fsl,cpm-brg = <2>;
Dadder875-uboot.dts143 brg@9f0 {
144 compatible = "fsl,mpc875-brg",
145 "fsl,cpm1-brg",
146 "fsl,cpm-brg";
168 fsl,cpm-brg = <1>;
Dadder875-redboot.dts144 brg@9f0 {
145 compatible = "fsl,mpc875-brg",
146 "fsl,cpm1-brg",
147 "fsl,cpm-brg";
169 fsl,cpm-brg = <1>;
Dmpc885ads.dts159 brg@9f0 {
160 compatible = "fsl,mpc885-brg",
161 "fsl,cpm1-brg",
162 "fsl,cpm-brg";
184 fsl,cpm-brg = <1>;
195 fsl,cpm-brg = <2>;
Dpq2fads.dts142 brg@119f0 {
143 compatible = "fsl,mpc8280-brg",
144 "fsl,cpm2-brg",
145 "fsl,cpm-brg";
156 fsl,cpm-brg = <1>;
167 fsl,cpm-brg = <2>;
Dmpc8272ads.dts143 brg@119f0 {
144 compatible = "fsl,mpc8272-brg",
145 "fsl,cpm2-brg",
146 "fsl,cpm-brg";
157 fsl,cpm-brg = <1>;
168 fsl,cpm-brg = <4>;
Dmgcoge.dts126 brg@119f0 {
127 compatible = "fsl,mpc8247-brg",
128 "fsl,cpm2-brg",
129 "fsl,cpm-brg";
141 fsl,cpm-brg = <2>;
Dstx_gp3_8560.dts230 brg@919f0 {
231 compatible = "fsl,mpc8560-brg",
232 "fsl,cpm2-brg",
233 "fsl,cpm-brg";
253 fsl,cpm-brg = <2>;
Dksi8560.dts234 brg@919f0 {
235 compatible = "fsl,mpc8560-brg",
236 "fsl,cpm2-brg",
237 "fsl,cpm-brg";
257 fsl,cpm-brg = <1>;
269 fsl,cpm-brg = <2>;
Dtqm8560.dts248 brg@919f0 {
249 compatible = "fsl,mpc8560-brg",
250 "fsl,cpm2-brg",
251 "fsl,cpm-brg";
271 fsl,cpm-brg = <1>;
283 fsl,cpm-brg = <2>;
/linux-6.1.9/drivers/soc/fsl/qe/
Dqe.c162 u32 brg; in qe_get_brg_clk() local
172 if (!of_property_read_u32(qe, "brg-frequency", &brg)) in qe_get_brg_clk()
173 brg_clk = brg; in qe_get_brg_clk()
209 int qe_setbrg(enum qe_clock brg, unsigned int rate, unsigned int multiplier) in qe_setbrg() argument
214 if ((brg < QE_BRG1) || (brg > QE_BRG16)) in qe_setbrg()
234 iowrite32be(tempval, &qe_immr->brg.brgc[brg - QE_BRG1]); in qe_setbrg()
/linux-6.1.9/drivers/tty/serial/cpm_uart/
Dcpm_uart_cpm1.h14 static inline void cpm_set_brg(int brg, int baud) in cpm_set_brg() argument
16 cpm_setbrg(brg, baud); in cpm_set_brg()
Dcpm_uart_cpm2.h14 static inline void cpm_set_brg(int brg, int baud) in cpm_set_brg() argument
16 cpm_setbrg(brg, baud); in cpm_set_brg()
/linux-6.1.9/drivers/tty/serial/
Dsunzilog.c283 int brg, new_baud; in sunzilog_change_mouse_baud() local
288 brg = BPS_TO_BRG(new_baud, ZS_CLOCK / ZS_CLOCK_DIVISOR); in sunzilog_change_mouse_baud()
289 up->curregs[R12] = (brg & 0xff); in sunzilog_change_mouse_baud()
290 up->curregs[R13] = (brg >> 8) & 0xff; in sunzilog_change_mouse_baud()
866 unsigned int iflag, int brg) in sunzilog_convert_to_zs() argument
875 up->curregs[R12] = brg & 0xff; in sunzilog_convert_to_zs()
876 up->curregs[R13] = (brg >> 8) & 0xff; in sunzilog_convert_to_zs()
946 int baud, brg; in sunzilog_set_termios() local
952 brg = BPS_TO_BRG(baud, ZS_CLOCK / ZS_CLOCK_DIVISOR); in sunzilog_set_termios()
954 sunzilog_convert_to_zs(up, termios->c_cflag, termios->c_iflag, brg); in sunzilog_set_termios()
[all …]
Dzs.h52 #define ZS_BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2)) argument
Dip22zilog.c801 unsigned int iflag, int brg) in ip22zilog_convert_to_zs() argument
810 up->curregs[R12] = brg & 0xff; in ip22zilog_convert_to_zs()
811 up->curregs[R13] = (brg >> 8) & 0xff; in ip22zilog_convert_to_zs()
881 int baud, brg; in ip22zilog_set_termios() local
887 brg = BPS_TO_BRG(baud, ZS_CLOCK / ZS_CLOCK_DIVISOR); in ip22zilog_set_termios()
889 ip22zilog_convert_to_zs(up, termios->c_cflag, termios->c_iflag, brg); in ip22zilog_set_termios()
1136 int brg; in ip22zilog_prepare() local
1147 brg = BPS_TO_BRG(9600, ZS_CLOCK / ZS_CLOCK_DIVISOR); in ip22zilog_prepare()
1148 up->curregs[R12] = (brg & 0xff); in ip22zilog_prepare()
1149 up->curregs[R13] = (brg >> 8) & 0xff; in ip22zilog_prepare()
Dip22zilog.h31 #define BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2)) argument
Dsunzilog.h23 #define BRG_TO_BPS(brg, freq) ((freq) / 2 / ((brg) + 2)) argument
/linux-6.1.9/arch/powerpc/sysdev/
Dcpm2.c114 void __cpm2_setbrg(uint brg, uint rate, uint clk, int div16, int src) in __cpm2_setbrg() argument
121 if (brg < 4) { in __cpm2_setbrg()
125 brg -= 4; in __cpm2_setbrg()
127 bp += brg; in __cpm2_setbrg()
/linux-6.1.9/drivers/spi/
Dspi-au1550.c104 u32 div, brg; in au1550_spi_baudcfg() local
107 brg = mainclk_hz / speed_hz / (4 << div); in au1550_spi_baudcfg()
109 if (brg < (4 + 1)) { in au1550_spi_baudcfg()
110 brg = (4 + 1); /* speed_hz too big */ in au1550_spi_baudcfg()
113 if (brg <= (63 + 1)) in au1550_spi_baudcfg()
118 brg = (63 + 1); /* set highest brg and div */ in au1550_spi_baudcfg()
120 brg--; in au1550_spi_baudcfg()
121 return PSC_SPICFG_SET_BAUD(brg) | PSC_SPICFG_SET_DIV(div); in au1550_spi_baudcfg()
/linux-6.1.9/arch/powerpc/boot/dts/fsl/
Dmpc8560ads.dts231 brg@919f0 {
232 compatible = "fsl,mpc8560-brg",
233 "fsl,cpm2-brg",
234 "fsl,cpm-brg";
254 fsl,cpm-brg = <1>;
266 fsl,cpm-brg = <2>;

123