head.inc 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* head.inc: head common definitions -*- asm -*-
  2. *
  3. * Copyright (C) 2004 Red Hat, Inc. All Rights Reserved.
  4. * Written by David Howells (dhowells@redhat.com)
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * as published by the Free Software Foundation; either version
  9. * 2 of the License, or (at your option) any later version.
  10. */
  11. #if defined(CONFIG_MB93090_MB00)
  12. #define LED_ADDR (0x21200000+4)
  13. .macro LEDS val
  14. sethi.p %hi(0xFFC00030),gr3
  15. setlo %lo(0xFFC00030),gr3
  16. lduh @(gr3,gr0),gr3
  17. andicc gr3,#0x100,gr0,icc0
  18. bne icc0,0,999f
  19. setlos #~\val,gr3
  20. st gr3,@(gr30,gr0)
  21. membar
  22. dcf @(gr30,gr0)
  23. 999:
  24. .endm
  25. #elif defined(CONFIG_MB93093_PDK)
  26. #define LED_ADDR (0x20000023)
  27. .macro LEDS val
  28. setlos #\val,gr3
  29. stb gr3,@(gr30,gr0)
  30. membar
  31. .endm
  32. #else
  33. #define LED_ADDR 0
  34. .macro LEDS val
  35. .endm
  36. #endif
  37. #ifdef CONFIG_MMU
  38. __sdram_base = 0x00000000 /* base address to which SDRAM relocated */
  39. #else
  40. __sdram_base = __page_offset /* base address to which SDRAM relocated */
  41. #endif