i386: Replace [read, write]_mmcr_[byte, word, long] with memory mapped structure
[oweals/u-boot.git] / cpu / mpc83xx / serdes.c
index 020c4c8f917de1bebe52904afa7cf7bc1b1fe649..283cc3f41080399c811385390949ecc4d21d301d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Freescale SerDes initialization routine
  *
- * Copyright (C) 2007 Freescale Semicondutor, Inc. All rights reserved.
+ * Copyright (C) 2007 Freescale Semicondutor, Inc.
  * Copyright (C) 2008 MontaVista Software, Inc. All rights reserved.
  *
  * Author: Li Yang <leoli@freescale.com>
@@ -42,9 +42,9 @@
 #define FSL_SRDSRSTCTL_RST             0x80000000
 #define FSL_SRDSRSTCTL_SATA_RESET      0xf
 
-void fsl_setup_serdes(u32 offset, char proto, char rfcks, char vdd)
+void fsl_setup_serdes(u32 offset, char proto, u32 rfcks, char vdd)
 {
-       void *regs = (void *)CFG_IMMR + offset;
+       void *regs = (void *)CONFIG_SYS_IMMR + offset;
        u32 tmp;
 
        /* 1.0V corevdd */