Derive baud rate from cpu_timebase on powerpc.
This commit is contained in:
parent
b1469da17f
commit
051e31601c
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: gtmpscvar.h,v 1.2 2003/03/17 16:42:47 matt Exp $ */
|
||||
/* $NetBSD: gtmpscvar.h,v 1.3 2003/03/18 05:50:02 matt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002 Allegro Networks, Inc., Wasabi Systems, Inc.
|
||||
|
@ -53,7 +53,11 @@
|
|||
#define GTMPSC_CLOCK_DIVIDER 8
|
||||
#define GTMPSC_MMCR_HI_TCDV_DEFAULT GTMPSC_MMCR_HI_TCDV_8X
|
||||
#define GTMPSC_MMCR_HI_RCDV_DEFAULT GTMPSC_MMCR_HI_RCDV_8X
|
||||
#ifdef __powerpc__
|
||||
#define BRG_DEFAULT_INPUT_RATE (cpu_timebase*4)
|
||||
#else
|
||||
#define BRG_DEFAULT_INPUT_RATE 100000000
|
||||
#endif
|
||||
#define BRG_BCR_CDV_MAX 0xffff
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue