init.S 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * (C) Copyright 2008
  3. * Ricado Ribalda-Universidad Autonoma de Madrid-ricardo.ribalda@uam.es
  4. * This work has been supported by: QTechnology http://qtec.com/
  5. *
  6. * This program is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #include <ppc_asm.tmpl>
  20. #include <config.h>
  21. #include <asm-ppc/mmu.h>
  22. .section .bootpg,"ax"
  23. .globl tlbtab
  24. tlbtab:
  25. tlbtab_start
  26. /* SDRAM */
  27. tlbentry(XPAR_DDR2_SDRAM_MEM_BASEADDR, SZ_256M, CFG_SDRAM_BASE, 0,
  28. AC_R | AC_W | AC_X | SA_G | SA_I)
  29. /* UART */
  30. tlbentry(XPAR_UARTLITE_0_BASEADDR, SZ_64K, XPAR_UARTLITE_0_BASEADDR, 0,
  31. AC_R | AC_W | SA_G | SA_I)
  32. /* PIC */
  33. tlbentry(XPAR_INTC_0_BASEADDR, SZ_64K, XPAR_INTC_0_BASEADDR, 0,
  34. AC_R | AC_W | SA_G | SA_I)
  35. /* I2C */
  36. tlbentry(XPAR_IIC_EEPROM_BASEADDR, SZ_64K, XPAR_IIC_EEPROM_BASEADDR, 0,
  37. AC_R | AC_W | SA_G | SA_I)
  38. /* Net */
  39. tlbentry(XPAR_LLTEMAC_0_BASEADDR, SZ_64K, XPAR_LLTEMAC_0_BASEADDR, 0,
  40. AC_R | AC_W | SA_G | SA_I)
  41. /*Flash*/
  42. tlbentry(XPAR_FLASH_MEM0_BASEADDR, SZ_256M, XPAR_FLASH_MEM0_BASEADDR, 0,
  43. AC_R | AC_W | SA_G | SA_I)
  44. tlbtab_end