pxa2xx_base.c (4f2c0a4acffbec01079c28f839422e64ddeff004) pxa2xx_base.c (d6df7df7ae5a0f781341134e7cb24e3396f8434a)
1// SPDX-License-Identifier: GPL-2.0-only
2/*======================================================================
3
4 Device driver for the PCMCIA control functionality of PXA2xx
5 microprocessors.
6
7
8 (c) Ian Molton (spyro@f2s.com) 2003

--- 192 unchanged lines hidden (view full) ---

201 break;
202 }
203 return 0;
204}
205#endif
206
207void pxa2xx_configure_sockets(struct device *dev, struct pcmcia_low_level *ops)
208{
1// SPDX-License-Identifier: GPL-2.0-only
2/*======================================================================
3
4 Device driver for the PCMCIA control functionality of PXA2xx
5 microprocessors.
6
7
8 (c) Ian Molton (spyro@f2s.com) 2003

--- 192 unchanged lines hidden (view full) ---

201 break;
202 }
203 return 0;
204}
205#endif
206
207void pxa2xx_configure_sockets(struct device *dev, struct pcmcia_low_level *ops)
208{
209 int nr = 1;
210
211 if ((ops->first + ops->nr) > 1 ||
212 machine_is_viper() || machine_is_arcom_zeus())
213 nr = 2;
214
215 pxa_smemc_set_pcmcia_socket(nr);
209 pxa_smemc_set_pcmcia_socket(1);
216}
217EXPORT_SYMBOL(pxa2xx_configure_sockets);
218
219static const char *skt_names[] = {
220 "PCMCIA socket 0",
221 "PCMCIA socket 1",
222};
223

--- 147 unchanged lines hidden ---
210}
211EXPORT_SYMBOL(pxa2xx_configure_sockets);
212
213static const char *skt_names[] = {
214 "PCMCIA socket 0",
215 "PCMCIA socket 1",
216};
217

--- 147 unchanged lines hidden ---