[uClinux-dev] Atmel serial driver, 2.4

Fabrice Gautier Fabrice_Gautier at sdesigns.com
Mon Nov 19 14:51:16 EST 2001



> -----Original Message-----
> From: Fabrice Gautier [mailto:Fabrice_Gautier at sdesigns.com]
> 
> > From: Erwin Authried [mailto:eauth at softsys.co.at]
> > 
> > > 
> > I have used it with the AT91M40xxx all the time. Are you 
> sure that you
> > have  adapted asm/arch/hardware.h for the EB63?
> 
> The EB63 stuff in hardware.h looked OK. But I guess there is 
> still something missing here or in another place.

Doh! I forgot to change the Clock speed..., and it sused to setup the UART
so...

The following patch set a 25Mhz clock speed for EB63, that what it is on
mine, but i think this could be made a config option since there is a switch
to select the clock frequency.

Now the serial console is working... and now i got an oops to debug...



Index: include/asm-armnommu/arch-atmel/hardware.h
===================================================================
RCS file:
/var/cvs/uClinux-2.4.x/include/asm-armnommu/arch-atmel/hardware.h,v
retrieving revision 1.1
diff -u -r1.1 hardware.h
--- include/asm-armnommu/arch-atmel/hardware.h	2001/08/06 00:19:22	1.1
+++ include/asm-armnommu/arch-atmel/hardware.h	2001/11/19 19:24:29
@@ -7,7 +7,7 @@
 #ifndef __ASM_ARCH_HARDWARE_H
 #define __ASM_ARCH_HARDWARE_H
 
-#define ARM_CLK		(32768000)
+
 
 /* 0=TC0, 1=TC1, 2=TC2 */
 #define KERNEL_TIMER 1	
@@ -16,6 +16,9 @@
 /*
  ******************* AT91x40xxx ********************
  */
+
+#define ARM_CLK		(32768000)
+
 #define AT91_USART_CNT 2
 #define AT91_USART0_BASE	(0xfffd0000)
 #define AT91_USART1_BASE	(0xfffcc000)
@@ -66,6 +69,8 @@
 /*
  ******************* AT91x63xxx ********************
  */
+
+#define ARM_CLK		(25000000)
 
 #define AT91_USART_CNT 2
 #define AT91_USART0_BASE	(0xfffc0000)


-- 
Fabrice Gautier, 
Fabrice_Gautier at sdesigns.com
This message resent by the uclinux-dev at uclinux.org list server http://www.uClinux.org/



More information about the uClinux-dev mailing list