at91sam9x5.c 921 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Chip-specific setup code for the AT91SAM9x5 family
  3. *
  4. * Copyright (C) 2010-2012 Atmel Corporation.
  5. *
  6. * Licensed under GPLv2 or later.
  7. */
  8. #include <asm/system_misc.h>
  9. #include <mach/hardware.h>
  10. #include "soc.h"
  11. #include "generic.h"
  12. /* --------------------------------------------------------------------
  13. * AT91SAM9x5 processor initialization
  14. * -------------------------------------------------------------------- */
  15. static void __init at91sam9x5_map_io(void)
  16. {
  17. at91_init_sram(0, AT91SAM9X5_SRAM_BASE, AT91SAM9X5_SRAM_SIZE);
  18. }
  19. static void __init at91sam9x5_initialize(void)
  20. {
  21. at91_sysirq_mask_rtc(AT91SAM9X5_BASE_RTC);
  22. }
  23. /* --------------------------------------------------------------------
  24. * Interrupt initialization
  25. * -------------------------------------------------------------------- */
  26. AT91_SOC_START(at91sam9x5)
  27. .map_io = at91sam9x5_map_io,
  28. .init = at91sam9x5_initialize,
  29. AT91_SOC_END