18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * atmel platform data 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#ifndef __ATMEL_H__ 78c2ecf20Sopenharmony_ci#define __ATMEL_H__ 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci /* Compact Flash */ 108c2ecf20Sopenharmony_cistruct at91_cf_data { 118c2ecf20Sopenharmony_ci int irq_pin; /* I/O IRQ */ 128c2ecf20Sopenharmony_ci int det_pin; /* Card detect */ 138c2ecf20Sopenharmony_ci int vcc_pin; /* power switching */ 148c2ecf20Sopenharmony_ci int rst_pin; /* card reset */ 158c2ecf20Sopenharmony_ci u8 chipselect; /* EBI Chip Select number */ 168c2ecf20Sopenharmony_ci u8 flags; 178c2ecf20Sopenharmony_ci#define AT91_CF_TRUE_IDE 0x01 188c2ecf20Sopenharmony_ci#define AT91_IDE_SWAP_A0_A2 0x02 198c2ecf20Sopenharmony_ci}; 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci/* FIXME: this needs a better location, but gets stuff building again */ 228c2ecf20Sopenharmony_ci#ifdef CONFIG_ATMEL_PM 238c2ecf20Sopenharmony_ciextern int at91_suspend_entering_slow_clock(void); 248c2ecf20Sopenharmony_ci#else 258c2ecf20Sopenharmony_cistatic inline int at91_suspend_entering_slow_clock(void) 268c2ecf20Sopenharmony_ci{ 278c2ecf20Sopenharmony_ci return 0; 288c2ecf20Sopenharmony_ci} 298c2ecf20Sopenharmony_ci#endif 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci#endif /* __ATMEL_H__ */ 32