spi.c 624 B

123456789101112131415161718192021222324252627
  1. /*
  2. * ATSTK1000 SPI devices
  3. *
  4. * Copyright (C) 2005 Atmel Norway
  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. #include <linux/device.h>
  11. #include <linux/spi/spi.h>
  12. static struct spi_board_info spi_board_info[] __initdata = {
  13. {
  14. .modalias = "ltv350qv",
  15. .max_speed_hz = 16000000,
  16. .bus_num = 0,
  17. .chip_select = 1,
  18. },
  19. };
  20. static int board_init_spi(void)
  21. {
  22. spi_register_board_info(spi_board_info, ARRAY_SIZE(spi_board_info));
  23. return 0;
  24. }
  25. arch_initcall(board_init_spi);