ravb: use clock rate as basis for GTI.TIV
The GTI.TIV may be set to 2GHz^2 / rate, where rate is that of the clock of the device. Rather than assuming a rate of 130MHz use the actual rate of the clock. The motivation for this is to use the correct rate on the r8a7795/Salvator-X which is advertised as 133MHz but may differ depending on the extal present on the Salvator-X. Signed-off-by: Simon Horman <horms+renesas@verge.net.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
1777ddb84a
commit
b3d39a8805
@@ -576,6 +576,9 @@ enum GTI_BIT {
|
||||
GTI_TIV = 0x0FFFFFFF,
|
||||
};
|
||||
|
||||
#define GTI_TIV_MAX GTI_TIV
|
||||
#define GTI_TIV_MIN 0x20
|
||||
|
||||
/* GIC */
|
||||
enum GIC_BIT {
|
||||
GIC_PTCE = 0x00000001, /* Undocumented? */
|
||||
|
Reference in New Issue
Block a user