Lines Matching +full:firmware +full:- +full:gpio

1 // SPDX-License-Identifier: GPL-2.0-or-later
34 { .compatible = "fsl,mpc5200-cdm", },
35 { .compatible = "mpc5200-cdm", },
40 { .compatible = "fsl,mpc5200-gpio", },
41 { .compatible = "mpc5200-gpio", },
48 * Firmware is supposed to be responsible for this. If you are creating a
49 * new board port, do *NOT* duplicate this code. Fix your boot firmware
68 out_8(&cdm->ext_48mhz_en, 0x00); in lite5200_fix_clock_config()
69 out_8(&cdm->fd_enable, 0x01); in lite5200_fix_clock_config()
70 if (in_be32(&cdm->rstcfg) & 0x40) /* Assumes 33Mhz clock */ in lite5200_fix_clock_config()
71 out_be16(&cdm->fd_counters, 0x0001); in lite5200_fix_clock_config()
73 out_be16(&cdm->fd_counters, 0x5555); in lite5200_fix_clock_config()
82 * Firmware is supposed to be responsible for this. If you are creating a
83 * new board port, do *NOT* duplicate this code. Fix your boot firmware
90 struct mpc52xx_gpio __iomem *gpio; in lite5200_fix_port_config() local
94 gpio = of_iomap(np, 0); in lite5200_fix_port_config()
96 if (!gpio) { in lite5200_fix_port_config()
103 port_config = in_be32(&gpio->port_config); in lite5200_fix_port_config()
105 port_config &= ~0x00800000; /* 48Mhz internal, pin is GPIO */ in lite5200_fix_port_config()
114 in_be32(&gpio->port_config), port_config); in lite5200_fix_port_config()
115 out_be32(&gpio->port_config, port_config); in lite5200_fix_port_config()
118 iounmap(gpio); in lite5200_fix_port_config()
130 * this needs to be called before of-ohci suspend code in lite5200_suspend_prepare()
136 /* USB Rh status: LPS = 1 - turn off power */ in lite5200_suspend_prepare()
142 /* USB Rh status: LPSC = 1 - turn on power */ in lite5200_resume_finish()
158 /* Fix things that firmware should have done. */ in lite5200_setup_arch()