board_setup.c 991 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * STB810 specific board startup routines.
  3. *
  4. * Based on the arch/mips/nxp/pnx8550/jbs/board_setup.c
  5. *
  6. * Author: MontaVista Software, Inc.
  7. * source@mvista.com
  8. *
  9. * Copyright 2005 MontaVista Software Inc.
  10. *
  11. * This program is free software; you can redistribute it and/or modify it
  12. * under the terms of the GNU General Public License as published by the
  13. * Free Software Foundation; either version 2 of the License, or (at your
  14. * option) any later version.
  15. */
  16. #include <linux/init.h>
  17. #include <linux/sched.h>
  18. #include <linux/ioport.h>
  19. #include <linux/mm.h>
  20. #include <linux/console.h>
  21. #include <linux/mc146818rtc.h>
  22. #include <linux/delay.h>
  23. #include <asm/cpu.h>
  24. #include <asm/bootinfo.h>
  25. #include <asm/irq.h>
  26. #include <asm/mipsregs.h>
  27. #include <asm/reboot.h>
  28. #include <asm/pgtable.h>
  29. #include <glb.h>
  30. void __init board_setup(void)
  31. {
  32. unsigned long configpr;
  33. configpr = read_c0_config7();
  34. configpr |= (1<<19); /* enable tlb */
  35. write_c0_config7(configpr);
  36. }