]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
AT91RM9200: fix AT91_PMC_MCKR_MDIV_* defines for this CPU
authorclagix@gmail.com <clagix@gmail.com>
Mon, 6 Dec 2010 08:03:37 +0000 (08:03 +0000)
committerReinhard Meyer <u-boot@emk-elektronik.de>
Fri, 17 Dec 2010 08:25:43 +0000 (09:25 +0100)
Signed-off-by: Guido Classen <clagix@gmail.com>
Signed-off-by: Reinhard Meyer <u-boot@emk-elektronik.de>
arch/arm/include/asm/arch-at91/at91_pmc.h

index 2f9ad96003c0ff1e473f98fbfa12eab5cf88e7bd..fb8bb17c159e2cdf1d20d90d0c3334fe6a924ec3 100644 (file)
@@ -91,10 +91,18 @@ typedef struct at91_pmc {
 #define AT91_PMC_MCKR_PRES_64          0x00000018
 #define AT91_PMC_MCKR_PRES_MASK                0x0000001C
 
+#ifdef CONFIG_AT91RM9200
+#define AT91_PMC_MCKR_MDIV_1           0x00000000
+#define AT91_PMC_MCKR_MDIV_2           0x00000100
+#define AT91_PMC_MCKR_MDIV_3           0x00000200
+#define AT91_PMC_MCKR_MDIV_4           0x00000300
+#define AT91_PMC_MCKR_MDIV_MASK                0x00000300
+#else
 #define AT91_PMC_MCKR_MDIV_1           0x00000000
 #define AT91_PMC_MCKR_MDIV_2           0x00000100
 #define AT91_PMC_MCKR_MDIV_4           0x00000200
 #define AT91_PMC_MCKR_MDIV_MASK                0x00000300
+#endif
 
 #define AT91_PMC_MCKR_PLLADIV_1                0x00001000
 #define AT91_PMC_MCKR_PLLADIV_2                0x00002000