2008-05-27 04:59:40     about EBIU_AMGCTL\EBIU_AMBCTL1 register

Document created by Aaronwu Employee on Aug 6, 2013
Version 1Show Document
  • View in full screen mode

2008-05-27 04:59:40     about EBIU_AMGCTL\EBIU_AMBCTL1 register

sj tian (CHINA)

Message: 56297   

 

hi,all

 

I want to set EBIU_AMGCTL and EBIU_AMBCTL1 register  in my driver, but  I find my driver will  down after setting EBIU_AMGCTL and EBIU_AMBCTL1 register .  If I did not confige  EBIU_AMGCTL and EBIU_AMBCTL1 register, my driver will run well. cpu is dsp537.

 

The method of  my setting EBIU_AMGCTL and EBIU_AMBCTL1 register  as following:

 

bfin_write_EBIU_AMGCTL((bfin_read_EBIU_AMGCTL() | 0x0008) & 0xfeff); //All banks enabled

 

                                                                                                                 //Core has priority over DMA for external access

 

SSYNC();

  bfin_write_EBIU_AMBCTL1((bfin_read_EBIU_AMBCTL1() | 0xfff00000) & 0x235fffff);

 

                                                                                                                                      //1 setup/hold cycle, 2 write/read cycle

  SSYNC();

 

  Is there any wrong? I should how to config EBIU_AMGCTL and EBIU_AMBCTL1 register  .

 

pls give me some advice.

 

Thanks!

QuoteReplyEditDelete

 

 

2008-05-28 03:10:07     Re: about EBIU_AMGCTL\EBIU_AMBCTL1 register

Mike Frysinger (UNITED STATES)

Message: 56318   

 

you should not be touching any EBIU registers yourself ... use the Kconfig settings to program them with appropriate values

QuoteReplyEditDelete

 

 

2008-05-28 04:37:39     Re: about EBIU_AMGCTL\EBIU_AMBCTL1 register

sj tian (CHINA)

Message: 56335   

 

Thanks!

 

I see, I can set EBIU_AMGCTL\EBIU_AMBCTL1 register in kernel witn make menuconfig command.

 

I want to set EBIU_SDRRCTL\EBIU_SDBCTL \EBIU_SDGCTL , I can not find how to set them in kernel.

 

other problem,  does dsp537  run at 600M core clock?  I hope it can run at 600M through setting PLL_CTL\PLL_DIC register.

 

 

 

 

QuoteReplyEditDelete

 

 

2008-05-28 11:08:56     Re: about EBIU_AMGCTL\EBIU_AMBCTL1 register

Mike Frysinger (UNITED STATES)

Message: 56349   

 

mucking with the memory controller settings directly is a terrible idea as there is so many ways to do it wrong.  the memory/clock settings are usually programmed by U-Boot and the kernel just uses those settings.  if you want to use different settings under Linux, then use the option in the kernel for reprogramming clocks.

Attachments

    Outcomes