Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

clip_mmu.patch
Wednesday, March 11th, 2009 at 6:51:02pm UTC 

  1. Index: firmware/export/as3525.h
  2. ===================================================================
  3. --- firmware/export/as3525.h    (revision 20283)
  4. +++ firmware/export/as3525.h    (working copy)
  5. @@ -28,8 +28,8 @@
  6.  
  7.  
  8.  /* AS352X device base addresses */
  9. +#define TTB_BASE_ADDR   (0x50000 - 0x4000)
  10.  
  11. -
  12.  /*
  13.  ------------------------------------------------------------------------
  14.  *  AS352X Registers
  15. Index: firmware/SOURCES
  16. ===================================================================
  17. --- firmware/SOURCES    (revision 20283)
  18. +++ firmware/SOURCES    (working copy)
  19. @@ -1094,6 +1094,7 @@
  20.  
  21.  #ifdef SANSA_CLIP
  22.  #ifndef SIMULATOR
  23. +target/arm/mmu-arm.S
  24.  target/arm/as3525/sansa-clip/lcd-ssd1303.c
  25.  target/arm/as3525/sansa-clip/lcd-as-clip.S
  26.  target/arm/as3525/sansa-clip/button-clip.c
  27. Index: firmware/target/arm/as3525/system-as3525.c
  28. ===================================================================
  29. --- firmware/target/arm/as3525/system-as3525.c  (revision 20283)
  30. +++ firmware/target/arm/as3525/system-as3525.c  (working copy)
  31. @@ -28,6 +28,8 @@
  32.  #include "clock-target.h"
  33.  #include "fmradio_i2c.h"
  34.  
  35. +#include "mmu-arm.h"
  36. +
  37.  #define default_interrupt(name) \
  38.    extern __attribute__((weak,alias("UIRQ"))) void name (void)
  39.  
  40. @@ -236,6 +238,10 @@
  41.      CGU_PERI |= ((CLK_DIV(AS3525_PLLA_FREQ, AS3525_PCLK_FREQ) - 1) << 2)
  42.                  | 1; /* clk_in = PLLA */
  43.  
  44. +    ttb_init();
  45. +    map_section(0, 0, 0x1000, CACHE_NONE);
  46. +    enable_mmu();
  47. +   
  48.      asm volatile(
  49.          "mov r0, #0               \n"
  50.          "mcr p15, 0, r0, c7, c7   \n" /* invalidate icache & dcache */
  51. Index: firmware/target/arm/as3525/app.lds
  52. ===================================================================
  53. --- firmware/target/arm/as3525/app.lds  (revision 20283)
  54. +++ firmware/target/arm/as3525/app.lds  (working copy)
  55. @@ -48,7 +48,7 @@
  56.  MEMORY
  57.  {
  58.  #ifdef LOWMEM
  59. -    IRAM : ORIGIN = IRAMORIG, LENGTH = (IRAMSIZE - CODEC_SIZE)
  60. +    IRAM : ORIGIN = IRAMORIG, LENGTH = (IRAMSIZE - CODEC_SIZE - 0x4000)
  61.      CODEC_IRAM : ORIGIN = CODECORIG, LENGTH = CODEC_SIZE
  62.  #else
  63.      IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right
worth-right
worth-right