setup.c 712 B

12345678910111213141516171819202122232425262728293031323334353637
  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. const char *get_system_type(void)
  18. {
  19. return "SH7750 Overdrive";
  20. }
  21. /*
  22. * Initialize the board
  23. */
  24. int __init platform_setup(void)
  25. {
  26. #ifdef CONFIG_PCI
  27. init_overdrive_fpga();
  28. galileo_init();
  29. #endif
  30. /* Enable RS232 receive buffers */
  31. writel(0x1e, OVERDRIVE_CTRL);
  32. }