Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arm1176 cpu_reset() changes for ast2500 #8

Open
legoater opened this issue Jun 21, 2016 · 0 comments
Open

arm1176 cpu_reset() changes for ast2500 #8

legoater opened this issue Jun 21, 2016 · 0 comments

Comments

@legoater
Copy link

legoater commented Jun 21, 2016

The original uboot from the aspeed sdk contains a modification of cpu_reset()
which would need some investigation before submitting the support of the
ast2500 upstream.

  --- a/arch/arm/cpu/arm1176/start.S
  +++ b/arch/arm/cpu/arm1176/start.S
 @@ -82,8 +81,9 @@ cpu_init_crit:
         orr     r0, r0, #0x00001000     @ set bit 12 (I) I-Cache

         /* Prepare to disable the MMU */
 -       adr     r2, mmu_disable_phys
 -       sub     r2, r2, #(CONFIG_SYS_PHY_UBOOT_BASE - CONFIG_SYS_TEXT_BASE) 
 +       /* Ryan TODO ....*/ 
 +#      adr     r2, mmu_disable_phys 
 +#      sub     r2, r2, #(CONFIG_SYS_PHY_UBOOT_BASE - CONFIG_SYS_TEXT_BASE)
         b       mmu_disable

         .align 5
 @@ -92,7 +92,7 @@ mmu_disable:
         mcr     p15, 0, r0, c1, c0, 0
         nop
         nop
 -       mov     pc, r2 
 +#      mov     pc, r2
  mmu_disable_phys:

  #endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant