]> git.sur5r.net Git - u-boot/blobdiff - board/evb64260/mpsc.c
Switch from archive libraries to partial linking
[u-boot] / board / evb64260 / mpsc.c
index 98ac7f63df9917c8b2d47f46f64618fc684b3a63..f3dc20b2949e307f490ccf739c91297e13c23f6e 100644 (file)
@@ -88,7 +88,7 @@ static void galsdma_enable_rx(void);
 
 
 /* GT64240A errata: cant read MPSC/BRG registers... so make mirrors in ram for read/modify write */
-#define MIRROR_HACK ((struct _tag_mirror_hack *)&(gd->mirror_hack))
+#define MIRROR_HACK ((struct _tag_mirror_hack *)&(gd->mirror_hack[0]))
 
 #define GT_REG_WRITE_MIRROR_G(a,d) {MIRROR_HACK->a ## _M = d; GT_REG_WRITE(a,d);}
 #define GTREGREAD_MIRROR_G(a) (MIRROR_HACK->a ## _M)
@@ -259,7 +259,7 @@ char mpsc_getchar (void)
 int
 mpsc_test_char(void)
 {
-       volatile unsigned int *p=&rx_desc_base[rx_desc_index*8];
+       volatile unsigned int *p = &rx_desc_base[rx_desc_index*8];
 
        INVALIDATE_DCACHE(&p[1], &p[2]);
 
@@ -309,9 +309,9 @@ mpsc_init(int baud)
 
        /* COMM_MPSC CONFIG */
 #ifdef SOFTWARE_CACHE_MANAGEMENT
-       galmpsc_set_snoop(CHANNEL, 0);                                  /* disable snoop */
+       galmpsc_set_snoop(CHANNEL, 0);                          /* disable snoop */
 #else
-       galmpsc_set_snoop(CHANNEL, 1);                                  /* enable snoop */
+       galmpsc_set_snoop(CHANNEL, 1);                          /* enable snoop */
 #endif
 
        return 0;
@@ -390,7 +390,7 @@ galbrg_set_baudrate(int channel, int rate)
 
 #if defined(CONFIG_ZUMA_V2) || defined(CONFIG_P3G4)
        /* from tclk */
-       clock = (CFG_BUS_HZ/(16*rate)) - 1;
+       clock = (CONFIG_SYS_BUS_CLK/(16*rate)) - 1;
 #else
        clock = (3686400/(16*rate)) - 1;
 #endif