sam9_smc.h 679 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * linux/arch/arm/mach-at91/sam9_smc.
  3. *
  4. * Copyright (C) 2008 Andrew Victor
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. struct sam9_smc_config {
  11. /* Setup register */
  12. u8 ncs_read_setup;
  13. u8 nrd_setup;
  14. u8 ncs_write_setup;
  15. u8 nwe_setup;
  16. /* Pulse register */
  17. u8 ncs_read_pulse;
  18. u8 nrd_pulse;
  19. u8 ncs_write_pulse;
  20. u8 nwe_pulse;
  21. /* Cycle register */
  22. u16 read_cycle;
  23. u16 write_cycle;
  24. /* Mode register */
  25. u32 mode;
  26. u8 tdf_cycles:4;
  27. };
  28. extern void __init sam9_smc_configure(int cs, struct sam9_smc_config* config);