2009-03-27 10:47:58     u-boot 2009.01 and CONFIG_EBIU_AMBCTL1_VAL register problems

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

2009-03-27 10:47:58     u-boot 2009.01 and CONFIG_EBIU_AMBCTL1_VAL register problems

Patrick Hotz (GERMANY)

Message: 71698   

 

Hi,

 

i have special problems using the asyncronus memory bus of a BF-537

 

Currently we are trying to connect a epson-display-chip (epson-13513) over the asyncronus memory bus to our TCM-BF537 module. In u-boot we habe found a config in

 

"tcm-bf537.h"  ==> "#define CONFIG_EBIU_AMBCTL1_VAL (B3WAT_7 | B3RAT_11 | B3HT_2 | B3ST_3 | B2WAT_15 | B2RAT_15 | B2HT_3 | B2ST_4 | B2RDYEN | B2RDYPOL)".

 

the problem is that the blackfin ignores the "wait-signal" from the epson-chip.

 

We see folowing:

 

The blackfin writes data into the epson-chip using the "write-enable" .... after a few ns the blackfin writes the second time data into the epson chip altought the epson isnt ready (the "ready sinal" is not set)....

 

We have tried to modifi this config ebiu ambctl1 register but without any changes in timing the signals....

Is there any problem known using this asyncronus memory bus?? we use bank 2 (AMS2)

 

Drivers from epson are running ok in our uClinux but the timing isnt ok from the blackfin..... the blackfin doesnt matter the "ready-signal" from epson-chip....

 

 

 

any ideas what we can do?

u-boot is 2009.01 and uClinux 2008R1.5

 

 

 

regards

 

Patrick"

 

.

 

TranslateQuoteReplyEditDelete

 

 

2009-03-27 12:25:19     Re: u-boot 2009.01 and CONFIG_EBIU_AMBCTL1_VAL register problems

Mike Frysinger (UNITED STATES)

Message: 71704   

 

the EBIU settings in u-boot are only used by u-boot.  Linux will reprogram things all the time with its own settings.

QuoteReplyEditDelete

 

 

2009-03-27 12:59:09     Re: u-boot 2009.01 and CONFIG_EBIU_AMBCTL1_VAL register problems

Patrick Hotz (GERMANY)

Message: 71708   

 

Hi Mike,

 

do you know where i can set this registers in linux ??

Is there a setting in kernel-config or must i modifi some files?

Can you give me a short example?

 

Patrick

TranslateQuoteReplyEditDelete

 

 

2009-03-27 13:16:14     Re: u-boot 2009.01 and CONFIG_EBIU_AMBCTL1_VAL register problems

Mike Frysinger (UNITED STATES)

Message: 71710   

 

it's in the configuration menu

QuoteReplyEditDelete

 

 

2009-03-27 13:23:26     Re: u-boot 2009.01 and CONFIG_EBIU_AMBCTL1_VAL register problems

Patrick Hotz (GERMANY)

Message: 71711   

 

Hi Mike,

 

soory if i understand you wrong, i need to change the register AMBCTL1 witk values like "B2WAT_15" or "B2RAT_15".....

 

is this is kernel-config? or in header-files?

TranslateQuoteReplyEditDelete

 

 

2009-03-27 14:24:50     Re: u-boot 2009.01 and CONFIG_EBIU_AMBCTL1_VAL register problems

Mike Frysinger (UNITED STATES)

Message: 71713   

 

the kconfig takes a hex value

QuoteReplyEditDelete

 

 

2009-03-30 02:18:43     Re: u-boot 2009.01 and CONFIG_EBIU_AMBCTL1_VAL register problems

Patrick Hotz (GERMANY)

Message: 71740   

 

Hi Mike,

 

i havn´t found such an entry in kernel-config...

Can you give me an example how i can find this hex-value? In which folder is the entry?

 

by the way, i use uCLinux2008R1

 

 

 

Regards,

Patrick

TranslateQuoteReplyEditDelete

 

 

2009-03-30 02:46:30     Re: u-boot 2009.01 and CONFIG_EBIU_AMBCTL1_VAL register problems

Mike Frysinger (UNITED STATES)

Message: 71742   

 

the version doesnt matter.  it's been this way for a very long time.

 

i dont know what "folders" you're talking about.  simply launching the kernel configuration menu and looking in the Blackfin options seems pretty straight forward.

 

*** Asynchonous Memory Configuration ***

EBIU_AMBCTL Control  --->

QuoteReplyEditDelete

 

 

2009-03-30 03:00:21     Re: u-boot 2009.01 and CONFIG_EBIU_AMBCTL1_VAL register problems

Patrick Hotz (GERMANY)

Message: 71744   

 

Hi Mike,

 

in EBIU_AMBCTL Control  ---> theres only Bank 0, Bank 1, Bank 2 and Bank 3....

 

in "arch/blackfin/kconfig" i have found some options with hex-values but only for BF54x devices...

==> "config EBIU_MBSCTLVAL", config EBIU_MODEVAL" and "config EBIU_FCTLVAL"

 

is it possible to change the "depends on BF54x" to "depends on BF53x" ?? could this work?

TranslateQuoteReplyEditDelete

 

 

2009-03-30 03:05:05     Re: u-boot 2009.01 and CONFIG_EBIU_AMBCTL1_VAL register problems

Mike Frysinger (UNITED STATES)

Message: 71745   

 

that doesnt make any sense at all.  those MMRs only exist on BF54x.

QuoteReplyEditDelete

 

 

2009-03-30 03:10:06     Re: u-boot 2009.01 and CONFIG_EBIU_AMBCTL1_VAL register problems

Patrick Hotz (GERMANY)

Message: 71746   

 

it´s realy hard to know what´s to do to change the AMBCTL1_VAL register...... in u-boot this is very easy, only change the #define AMBCTL1_VAL in board header-file.....

 

i only want to set this register with my own values....

 

TranslateQuoteReplyEditDelete

 

 

2009-03-30 03:28:18     Re: u-boot 2009.01 and CONFIG_EBIU_AMBCTL1_VAL register problems

Mike Frysinger (UNITED STATES)

Message: 71748   

 

i dont understand why you cant use the BANK2 and BANK3 kconfig options

 

QuoteReplyEditDelete

 

 

2009-03-30 03:35:42     Re: u-boot 2009.01 and CONFIG_EBIU_AMBCTL1_VAL register problems

Patrick Hotz (GERMANY)

Message: 71750   

 

What do you exactly mean?

 

I think BANK 2 means address for AMS2 and BANK 3 is address for AMS3 pin of the BF537.....

 

It woulb me much easier if there are entries like "EBIU_AMGCTL" and "EBIU_AMBCTL0" and "EBIU_AMBCTL1" where you can set the value of this registers...

TranslateQuoteReplyEditDelete

 

 

2009-03-30 03:52:31     Re: u-boot 2009.01 and CONFIG_EBIU_AMBCTL1_VAL register problems

Mike Frysinger (UNITED STATES)

Message: 71751   

 

umm, what ?  i dont know what "address for AMS2" even means.  the addresses for the async banks are hardcoded into the Blackfin core and cannot be changed.

 

you *are* looking at the place to set those register values like the text says:

EBIU_AMGCTL Global Control  --->

EBIU_AMBCTL Control  --->

QuoteReplyEditDelete

 

 

2009-03-30 03:58:48     Re: u-boot 2009.01 and CONFIG_EBIU_AMBCTL1_VAL register problems

Patrick Hotz (GERMANY)

Message: 71752   

 

OK, sorry mike, i have just lokkek into the "Blackfin Processor Hardware Reference, Revision 3.1, September 2008" .....

 

EBIU_AMGCTL Global Control  ---> EBIU_AMBCTL register

EBIU_AMBCTL Control  ---> Bank 0 => EBIU_AMBCTL0, bit 0 - 15

                                                   Bank 1 => EBIU_AMBCTL0, bit 16 - 31

                                                   Bank 2 => EBIU_AMBCTL1, bit 0 - 15

                                                   Bank 3 => EBIU_AMBCTL1, bit 16 - 31

 

 

 

is that right?

or how i can understand "Bank 0" till "Bank 3" ?

 

Patrick

TranslateQuoteReplyEditDelete

 

 

2009-03-30 04:25:53     Re: u-boot 2009.01 and CONFIG_EBIU_AMBCTL1_VAL register problems

Patrick Hotz (GERMANY)

Message: 71773   

 

OK, i have understand it....

 

forget my last questions.....

TranslateQuoteReplyEditDelete

 

 

2009-03-30 04:41:01     Re: u-boot 2009.01 and CONFIG_EBIU_AMBCTL1_VAL register problems

Mike Frysinger (UNITED STATES)

Message: 71774   

 

so what do you think can be changed in the kernel configuration menu such that the meaning would be clearer ?

QuoteReplyEditDelete

 

 

2009-03-30 05:44:34     Re: u-boot 2009.01 and CONFIG_EBIU_AMBCTL1_VAL register problems

Patrick Hotz (GERMANY)

Message: 71776   

 

Maybe in Help some text....

Or more values you can choose for each Bank...

 

like:

 

EBIU_AMGCTL Control => Bank 0 => Help: Set the values of AMBCTL1 for Asynchronous Memory Bus Bank 0

 

Bank 0

   ( ) Write access time (B0WAT 0 - 15)

   ( ) Read access time (B0RAT 0 - 15)

   ( ) Hold time (numer of cycles between AWE or ARE deasserted, and AMS0 deasserted) (B0HT 0 - 3)

   ( ) .....

 

i think for value in this registers you can set the values directly without translating it into hex....

now i know what "Bank" means with this Hex-values... if i know what this means it is very easy, but without i dont know....

 

Patrick

TranslateQuoteReplyEditDelete

 

 

2009-03-30 20:20:46     Re: u-boot 2009.01 and CONFIG_EBIU_AMBCTL1_VAL register problems

Mike Frysinger (UNITED STATES)

Message: 71801   

 

i've made these changes:

http://blackfin.uclinux.org/gf/project/linux-kernel/scmsvn/?action=browse&path=/trunk/arch/blackfin/Kconfig&r1=6235&r2=6234&pathrev=6235

Attachments

    Outcomes