head-shmobile.S 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * The head-file for SH-Mobile ARM platforms
  3. *
  4. * Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
  5. * Simon Horman <horms@verge.net.au>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; version 2 of the License.
  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, write to the Free Software
  18. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  19. */
  20. #ifdef CONFIG_ZBOOT_ROM
  21. .section ".start", "ax"
  22. /* load board-specific initialization code */
  23. #include <mach/zboot.h>
  24. b 1f
  25. __atags:@ tag #1
  26. .long 12 @ tag->hdr.size = tag_size(tag_core);
  27. .long 0x54410001 @ tag->hdr.tag = ATAG_CORE;
  28. .long 0 @ tag->u.core.flags = 0;
  29. .long 0 @ tag->u.core.pagesize = 0;
  30. .long 0 @ tag->u.core.rootdev = 0;
  31. @ tag #2
  32. .long 8 @ tag->hdr.size = tag_size(tag_mem32);
  33. .long 0x54410002 @ tag->hdr.tag = ATAG_MEM;
  34. .long CONFIG_MEMORY_SIZE @ tag->u.mem.size = CONFIG_MEMORY_SIZE;
  35. .long CONFIG_MEMORY_START @ @ tag->u.mem.start = CONFIG_MEMORY_START;
  36. @ tag #3
  37. .long 0 @ tag->hdr.size = 0
  38. .long 0 @ tag->hdr.tag = ATAG_NONE;
  39. 1:
  40. /* Set board ID necessary for boot */
  41. ldr r7, 1f @ Set machine type register
  42. adr r8, __atags @ Set atag register
  43. b 2f
  44. 1 : .long MACH_TYPE
  45. 2 :
  46. #endif /* CONFIG_ZBOOT_ROM */