mpc83xx: serdes setup routines
PATCH v2 6/9 mpc83xx: serdes setup routines
From: Anton Vorontsov <[email protected]>
This patch adds few routines to configure serdes on 837x targets.
Signed-off-by Anton Vorontsov <[email protected]>
--- cpu/mpc83xx/Makefile | 2 +- cpu/mpc83xx/serdes.c | 156 ++++++++++++++++++++++++++++++++++++++++++ include/asm-ppc/fsl_serdes.h | 25 +++++++ 3 files changed, 182 insertions(+), 1 deletions(-) create mode 100644 cpu/mpc83xx/serdes.c create mode 100644 include/asm-ppc/fsl_serdes.h
cpu/mpc83xx/Makefile +1 -1
@@ -29,7 +29,7 @@ LIB = $(obj)lib$(CPU).a START = start.o COBJS = traps.o cpu.o cpu_init.o speed.o interrupts.o \ - spd_sdram.o ecc.o qe_io.o pci.o fdt.o + spd_sdram.o ecc.o qe_io.o pci.o serdes.o fdt.o SRCS := $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c) OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
cpu/mpc83xx/serdes.c new file +156 -0
156 lines not on this page · raw message
include/asm-ppc/fsl_serdes.h new file +25 -0
@@ -0,0 +1,25 @@ +#ifndef __FSL_SERDES_H +#define __FSL_SERDES_H + +#include <config.h> + +#ifdef CONFIG_FSL_SERDES + +#define FSL_SERDES_CLK_100 0 +#define FSL_SERDES_CLK_125 1 +#define FSL_SERDES_CLK_150 3 +#define FSL_SERDES_PROTO_SATA 0 +#define FSL_SERDES_PROTO_PEX 1 +#define FSL_SERDES_PROTO_PEX_X2 2 +#define FSL_SERDES_PROTO_SGMII 3 +#define FSL_SERDES_VDD1V 1 + +extern void fsl_setup_serdes (void ); + +#else + +static inline void fsl_setup_serdes (void ) {} + +#endif + +#endif /* __FSL_SERDES_H */
Signature · 1 line
1.5.4.rc4
PATCH v2 6/9 mpc83xx: serdes setup routines
Quoted 6 lines · On Thu, 20 Mar 2008 18:26:36 +0800 Dave Liu <[email protected]> wrote:
From: Anton Vorontsov <[email protected]>
This patch adds few routines to configure serdes on 837x targets.
Signed-off-by Anton Vorontsov <[email protected]>---
sounds like Anton is re-doing this patch.
Kim