Home
last modified time | relevance | path

Searched refs:guts (Results 1 – 25 of 60) sorted by relevance

123

/Linux-v5.4/drivers/soc/fsl/
Dguts.c17 struct guts { struct
28 static struct guts *guts; variable
128 if (!guts || !guts->regs) in fsl_guts_get_svr()
131 if (guts->little_endian) in fsl_guts_get_svr()
132 svr = ioread32(&guts->regs->svr); in fsl_guts_get_svr()
134 svr = ioread32be(&guts->regs->svr); in fsl_guts_get_svr()
149 guts = devm_kzalloc(dev, sizeof(*guts), GFP_KERNEL); in fsl_guts_probe()
150 if (!guts) in fsl_guts_probe()
153 guts->little_endian = of_property_read_bool(np, "little-endian"); in fsl_guts_probe()
156 guts->regs = devm_ioremap_resource(dev, res); in fsl_guts_probe()
[all …]
DMakefile9 obj-$(CONFIG_FSL_GUTS) += guts.o
/Linux-v5.4/sound/soc/fsl/
Dp1022_rdk.c53 static inline void guts_set_dmuxcr(struct ccsr_guts __iomem *guts, in guts_set_dmuxcr() argument
58 clrsetbits_be32(&guts->dmuxcr, 3 << shift, device << shift); in guts_set_dmuxcr()
93 struct ccsr_guts __iomem *guts; in p1022_rdk_machine_probe() local
95 guts = ioremap(guts_phys, sizeof(struct ccsr_guts)); in p1022_rdk_machine_probe()
96 if (!guts) { in p1022_rdk_machine_probe()
102 clrsetbits_be32(&guts->pmuxcr, CCSR_GUTS_PMUXCR_UART0_I2C1_MASK, in p1022_rdk_machine_probe()
106 clrsetbits_be32(&guts->pmuxcr, CCSR_GUTS_PMUXCR_SSI_DMA_TDM_MASK, in p1022_rdk_machine_probe()
110 guts_set_dmuxcr(guts, mdata->dma_id[0], mdata->dma_channel_id[0], in p1022_rdk_machine_probe()
113 guts_set_dmuxcr(guts, mdata->dma_id[1], mdata->dma_channel_id[1], in p1022_rdk_machine_probe()
116 iounmap(guts); in p1022_rdk_machine_probe()
[all …]
Dmpc8610_hpcd.c55 struct ccsr_guts __iomem *guts; in mpc8610_hpcd_machine_probe() local
57 guts = ioremap(guts_phys, sizeof(struct ccsr_guts)); in mpc8610_hpcd_machine_probe()
58 if (!guts) { in mpc8610_hpcd_machine_probe()
64 guts_set_dmacr(guts, machine_data->dma_id[0], in mpc8610_hpcd_machine_probe()
67 guts_set_dmacr(guts, machine_data->dma_id[1], in mpc8610_hpcd_machine_probe()
71 guts_set_pmuxcr_dma(guts, machine_data->dma_id[0], in mpc8610_hpcd_machine_probe()
73 guts_set_pmuxcr_dma(guts, machine_data->dma_id[1], in mpc8610_hpcd_machine_probe()
78 clrsetbits_be32(&guts->pmuxcr, in mpc8610_hpcd_machine_probe()
82 clrsetbits_be32(&guts->pmuxcr, in mpc8610_hpcd_machine_probe()
87 iounmap(guts); in mpc8610_hpcd_machine_probe()
[all …]
Dp1022_ds.c46 static inline void guts_set_dmuxcr(struct ccsr_guts __iomem *guts, in guts_set_dmuxcr() argument
51 clrsetbits_be32(&guts->dmuxcr, 3 << shift, device << shift); in guts_set_dmuxcr()
87 struct ccsr_guts __iomem *guts; in p1022_ds_machine_probe() local
89 guts = ioremap(guts_phys, sizeof(struct ccsr_guts)); in p1022_ds_machine_probe()
90 if (!guts) { in p1022_ds_machine_probe()
96 clrsetbits_be32(&guts->pmuxcr, CCSR_GUTS_PMUXCR_UART0_I2C1_MASK, in p1022_ds_machine_probe()
100 clrsetbits_be32(&guts->pmuxcr, CCSR_GUTS_PMUXCR_SSI_DMA_TDM_MASK, in p1022_ds_machine_probe()
104 guts_set_dmuxcr(guts, mdata->dma_id[0], mdata->dma_channel_id[0], in p1022_ds_machine_probe()
107 guts_set_dmuxcr(guts, mdata->dma_id[1], mdata->dma_channel_id[1], in p1022_ds_machine_probe()
110 iounmap(guts); in p1022_ds_machine_probe()
[all …]
/Linux-v5.4/arch/powerpc/platforms/85xx/
Dmpc85xx_pm_ops.c18 static struct ccsr_guts __iomem *guts; variable
59 setbits32(&guts->devdisr, mask); in mpc85xx_freeze_time_base()
61 clrbits32(&guts->devdisr, mask); in mpc85xx_freeze_time_base()
63 in_be32(&guts->devdisr); in mpc85xx_freeze_time_base()
91 guts = of_iomap(np, 0); in mpc85xx_setup_pmc()
93 if (!guts) { in mpc85xx_setup_pmc()
Dp1022_ds.c168 struct ccsr_guts __iomem *guts; in p1022ds_set_monitor_port() local
186 guts = of_iomap(guts_node, 0); in p1022ds_set_monitor_port()
187 if (!guts) { in p1022ds_set_monitor_port()
289 if ((in_be32(&guts->pmuxcr) & PMUXCR_ELBCDIU_MASK) != in p1022ds_set_monitor_port()
319 clrsetbits_be32(&guts->pmuxcr, PMUXCR_ELBCDIU_MASK, in p1022ds_set_monitor_port()
321 in_be32(&guts->pmuxcr); in p1022ds_set_monitor_port()
359 if (guts) in p1022ds_set_monitor_port()
360 iounmap(guts); in p1022ds_set_monitor_port()
375 struct ccsr_guts __iomem *guts; in p1022ds_set_pixel_clock() local
387 guts = of_iomap(guts_np, 0); in p1022ds_set_pixel_clock()
[all …]
Dp1022_rdk.c45 struct ccsr_guts __iomem *guts; in p1022rdk_set_pixel_clock() local
57 guts = of_iomap(guts_np, 0); in p1022rdk_set_pixel_clock()
59 if (!guts) { in p1022rdk_set_pixel_clock()
78 clrbits32(&guts->clkdvdr, in p1022rdk_set_pixel_clock()
82 setbits32(&guts->clkdvdr, CLKDVDR_PXCKEN | (pxclk << 16)); in p1022rdk_set_pixel_clock()
84 iounmap(guts); in p1022rdk_set_pixel_clock()
Dtwr_p102x.c80 struct ccsr_guts __iomem *guts; in twr_p1025_setup_arch() local
84 guts = of_iomap(np, 0); in twr_p1025_setup_arch()
85 if (!guts) in twr_p1025_setup_arch()
94 setbits32(&guts->pmuxcr, MPC85xx_PMUXCR_QE(0) | in twr_p1025_setup_arch()
98 iounmap(guts); in twr_p1025_setup_arch()
Dmpc85xx_rdb.c98 struct ccsr_guts __iomem *guts; in mpc85xx_rdb_setup_arch() local
102 guts = of_iomap(np, 0); in mpc85xx_rdb_setup_arch()
103 if (!guts) { in mpc85xx_rdb_setup_arch()
114 setbits32(&guts->pmuxcr, MPC85xx_PMUXCR_QE(0) | in mpc85xx_rdb_setup_arch()
118 iounmap(guts); in mpc85xx_rdb_setup_arch()
Dmpc85xx_mds.c247 struct ccsr_guts __iomem *guts; in mpc85xx_mds_qe_init() local
251 guts = of_iomap(np, 0); in mpc85xx_mds_qe_init()
252 if (!guts) in mpc85xx_mds_qe_init()
261 setbits32(&guts->pmuxcr, MPC85xx_PMUXCR_QE(0) | in mpc85xx_mds_qe_init()
265 iounmap(guts); in mpc85xx_mds_qe_init()
/Linux-v5.4/arch/powerpc/platforms/86xx/
Dmpc8610_hpcd.c227 struct ccsr_guts __iomem *guts; in mpc8610hpcd_set_pixel_clock() local
239 guts = of_iomap(guts_np, 0); in mpc8610hpcd_set_pixel_clock()
241 if (!guts) { in mpc8610hpcd_set_pixel_clock()
260 clrbits32(&guts->clkdvdr, in mpc8610hpcd_set_pixel_clock()
264 setbits32(&guts->clkdvdr, CLKDVDR_PXCKEN | (pxclk << 16)); in mpc8610hpcd_set_pixel_clock()
266 iounmap(guts); in mpc8610hpcd_set_pixel_clock()
/Linux-v5.4/arch/powerpc/boot/dts/fsl/
Dp5020si-post.dtsi67 fsl,liodn-reg = <&guts 0x500>; /* PEX1LIODNR */
96 fsl,liodn-reg = <&guts 0x504>; /* PEX2LIODNR */
125 fsl,liodn-reg = <&guts 0x508>; /* PEX3LIODNR */
154 fsl,liodn-reg = <&guts 0x50c>; /* PEX4LIODNR */
185 fsl,liodn-reg = <&guts 0x510>; /* RIO1LIODNR */
192 fsl,liodn-reg = <&guts 0x514>; /* RIO2LIODNR */
345 guts: global-utilities@e0000 { label
383 fsl,liodn-reg = <&guts 0x580>; /* DMA1LIODNR */
389 fsl,liodn-reg = <&guts 0x584>; /* DMA2LIODNR */
401 fsl,liodn-reg = <&guts 0x530>; /* eSDHCLIODNR */
[all …]
Dp2041si-post.dtsi67 fsl,liodn-reg = <&guts 0x500>; /* PEX1LIODNR */
96 fsl,liodn-reg = <&guts 0x504>; /* PEX2LIODNR */
125 fsl,liodn-reg = <&guts 0x508>; /* PEX3LIODNR */
156 fsl,liodn-reg = <&guts 0x510>; /* RIO1LIODNR */
163 fsl,liodn-reg = <&guts 0x514>; /* RIO2LIODNR */
313 guts: global-utilities@e0000 { label
351 fsl,liodn-reg = <&guts 0x580>; /* DMA1LIODNR */
357 fsl,liodn-reg = <&guts 0x584>; /* DMA2LIODNR */
369 fsl,liodn-reg = <&guts 0x530>; /* eSDHCLIODNR */
383 fsl,liodn-reg = <&guts 0x520>; /* USB1LIODNR */
[all …]
Dp3041si-post.dtsi67 fsl,liodn-reg = <&guts 0x500>; /* PEX1LIODNR */
96 fsl,liodn-reg = <&guts 0x504>; /* PEX2LIODNR */
125 fsl,liodn-reg = <&guts 0x508>; /* PEX3LIODNR */
183 fsl,liodn-reg = <&guts 0x510>; /* RIO1LIODNR */
190 fsl,liodn-reg = <&guts 0x514>; /* RIO2LIODNR */
340 guts: global-utilities@e0000 { label
378 fsl,liodn-reg = <&guts 0x580>; /* DMA1LIODNR */
384 fsl,liodn-reg = <&guts 0x584>; /* DMA2LIODNR */
396 fsl,liodn-reg = <&guts 0x530>; /* eSDHCLIODNR */
410 fsl,liodn-reg = <&guts 0x520>; /* USB1LIODNR */
[all …]
Dp4080si-post.dtsi67 fsl,liodn-reg = <&guts 0x500>; /* PEX1LIODNR */
96 fsl,liodn-reg = <&guts 0x504>; /* PEX2LIODNR */
125 fsl,liodn-reg = <&guts 0x508>; /* PEX3LIODNR */
157 fsl,liodn-reg = <&guts 0x510>; /* RIO1LIODNR */
164 fsl,liodn-reg = <&guts 0x514>; /* RIO2LIODNR */
355 fsl,liodn-reg = <&guts 0x540>; /* RMULIODNR */
360 guts: global-utilities@e0000 { label
398 fsl,liodn-reg = <&guts 0x580>; /* DMA1LIODNR */
404 fsl,liodn-reg = <&guts 0x584>; /* DMA2LIODNR */
416 fsl,liodn-reg = <&guts 0x530>; /* eSDHCLIODNR */
[all …]
Dp5040si-post.dtsi305 guts: global-utilities@e0000 { label
343 fsl,liodn-reg = <&guts 0x580>; /* DMA1LIODNR */
349 fsl,liodn-reg = <&guts 0x584>; /* DMA2LIODNR */
361 fsl,liodn-reg = <&guts 0x530>; /* eSDHCLIODNR */
374 fsl,liodn-reg = <&guts 0x520>; /* USB1LIODNR */
383 fsl,liodn-reg = <&guts 0x524>; /* USB2LIODNR */
391 fsl,liodn-reg = <&guts 0x550>; /* SATA1LIODNR */
397 fsl,liodn-reg = <&guts 0x554>; /* SATA2LIODNR */
Dt2080si-post.dtsi41 fsl,liodn-reg = <&guts 0x550>; /* SATA1LIODNR */
47 fsl,liodn-reg = <&guts 0x554>; /* SATA2LIODNR */
Dt2081si-post.dtsi528 guts: global-utilities@e0000 { label
558 fsl,liodn-reg = <&guts 0x580>; /* DMA1LIODNR */
563 fsl,liodn-reg = <&guts 0x584>; /* DMA2LIODNR */
568 fsl,liodn-reg = <&guts 0x588>; /* DMA3LIODNR */
580 fsl,liodn-reg = <&guts 0x530>; /* SDMMCLIODNR */
595 fsl,liodn-reg = <&guts 0x520>; /* USB1LIODNR */
603 fsl,liodn-reg = <&guts 0x524>; /* USB1LIODNR */
Dt1023si-post.dtsi338 guts: global-utilities@e0000 { label
466 fsl,liodn-reg = <&guts 0x530>; /* eSDHCLIODNR */
482 fsl,liodn-reg = <&guts 0x520>; /* USB1LIODNR */
490 fsl,liodn-reg = <&guts 0x524>; /* USB2LIODNR */
497 fsl,liodn-reg = <&guts 0x550>; /* SATA1LIODNR */
Db4si-post.dtsi393 guts: global-utilities@e0000 { label
410 fsl,liodn-reg = <&guts 0x580>; /* DMA1LIODNR */
416 fsl,liodn-reg = <&guts 0x584>; /* DMA2LIODNR */
423 fsl,liodn-reg = <&guts 0x520>; /* USB1LIODNR */
435 fsl,liodn-reg = <&guts 0x530>; /* eSDHCLIODNR */
Dt1040si-post.dtsi418 guts: global-utilities@e0000 { label
553 fsl,liodn-reg = <&guts 0x530>; /* eSDHCLIODNR */
568 fsl,liodn-reg = <&guts 0x520>; /* USB1LIODNR */
576 fsl,liodn-reg = <&guts 0x524>; /* USB2LIODNR */
590 fsl,liodn-reg = <&guts 0x550>; /* SATA1LIODNR */
595 fsl,liodn-reg = <&guts 0x554>; /* SATA2LIODNR */
/Linux-v5.4/Documentation/devicetree/bindings/soc/fsl/
Dguts.txt16 "fsl,<chip>-guts"
33 compatible = "fsl,mpc8548-guts";
38 guts: global-utilities@e0000 {
/Linux-v5.4/include/linux/fsl/
Dguts.h155 static inline void guts_set_dmacr(struct ccsr_guts __iomem *guts, in guts_set_dmacr() argument
160 clrsetbits_be32(&guts->dmacr, 3 << shift, device << shift); in guts_set_dmacr()
191 static inline void guts_set_pmuxcr_dma(struct ccsr_guts __iomem *guts, in guts_set_pmuxcr_dma() argument
197 clrsetbits_be32(&guts->pmuxcr, 1 << shift, value << shift); in guts_set_pmuxcr_dma()
/Linux-v5.4/drivers/clk/
Dclk-qoriq.c94 struct ccsr_guts __iomem *guts; member
436 reg = ioread32be(&cg->guts->rcwsr[7]); in p2041_init_periph()
448 reg = ioread32be(&cg->guts->rcwsr[7]); in p4080_init_periph()
466 reg = ioread32be(&cg->guts->rcwsr[7]); in p5020_init_periph()
481 reg = ioread32be(&cg->guts->rcwsr[7]); in p5040_init_periph()
1458 struct device_node *guts; in clockgen_init() local
1460 guts = of_find_compatible_node(NULL, NULL, in clockgen_init()
1462 if (guts) { in clockgen_init()
1463 clockgen.guts = of_iomap(guts, 0); in clockgen_init()
1464 if (!clockgen.guts) { in clockgen_init()
[all …]

123