setup.c 780 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * arch/sh/overdrive/setup.c
  3. *
  4. * Copyright (C) 2000 Stuart Menefy (stuart.menefy@st.com)
  5. *
  6. * May be copied or modified under the terms of the GNU General Public
  7. * License. See linux/COPYING for more information.
  8. *
  9. * STMicroelectronics Overdrive Support.
  10. */
  11. #include <linux/config.h>
  12. #include <linux/kernel.h>
  13. #include <linux/init.h>
  14. #include <asm/io.h>
  15. #include <asm/overdrive/overdrive.h>
  16. #include <asm/overdrive/fpga.h>
  17. extern void od_time_init(void);
  18. const char *get_system_type(void)
  19. {
  20. return "SH7750 Overdrive";
  21. }
  22. /*
  23. * Initialize the board
  24. */
  25. int __init platform_setup(void)
  26. {
  27. #ifdef CONFIG_PCI
  28. init_overdrive_fpga();
  29. galileo_init();
  30. #endif
  31. board_time_init = od_time_init;
  32. /* Enable RS232 receive buffers */
  33. writel(0x1e, OVERDRIVE_CTRL);
  34. }