Port-powerpc archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: OpenBlocks266 console broken



the 405gp 405gpr and 406ep have different master clock generators for
the UARTs. The EP allows, and even insists, you change the master
UART clock drivers for specific BAUD rates (via dcr instructions). The current code
does not take this into account. The selection of clock driver
divisor would seems to be based on whatever openBIOS
left for the UART's master input clock rate, or the defaults, hence the differences.
Also note whatever divisor you chose you have to set as
a device property for the real "com" driver, assuming you don't
change the master clock rate again. It would be nice to encapsulate
all this in a cpu independent way, but hard coding the consinit.c
for each platform is ok too.

kiyohara%kk.iij4u.or.jp@localhost wrote:
I investigated.
OpenBlocks266 com freq is COM_FREQ * 4. (consinit.c line 117)
but, Is it COM_FREQ * 6 ? (ibm4xxgpx_autoconf.c line 104)

I am a trial. COM_FREQ * 4 It carried out.
Don't break at console. :)
      


OpenBlocks266's com frequency is COM_FREQ * 4.
see below. (fukishima-san made patch.)

http://people.freebsd.org/~shige/netbsd/obs266/patch-obs266.arch.evbppc.diff

ex.
----
-   if (comcnattach(tag, CONADDR, CONSPEED, COM_FREQ*6,
+   if (comcnattach(tag, CONADDR, CONSPEED,
+#ifdef OPENBLOCKS266
+       COM_FREQ*4,
+#else
+       COM_FREQ*6,
+#endif


thanks
--
kiyohara
  


Home | Main Index | Thread Index | Old Index