setup.c 686 B

123456789101112131415161718192021222324252627282930313233343536
  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/kernel.h>
  12. #include <linux/init.h>
  13. #include <asm/io.h>
  14. #include <asm/overdrive/overdrive.h>
  15. #include <asm/overdrive/fpga.h>
  16. const char *get_system_type(void)
  17. {
  18. return "SH7750 Overdrive";
  19. }
  20. /*
  21. * Initialize the board
  22. */
  23. int __init platform_setup(void)
  24. {
  25. #ifdef CONFIG_PCI
  26. init_overdrive_fpga();
  27. galileo_init();
  28. #endif
  29. /* Enable RS232 receive buffers */
  30. writel(0x1e, OVERDRIVE_CTRL);
  31. }