util/spd_tools: Format lp5 file to golang standards
This commit formats the lp5.go file according to goland standards. TEST=Built spd_tools Signed-off-by: Robert Zieba <robertzieba@google.com> Change-Id: If102c90f732efc51a90de6cc0e18c879d56699b5 Reviewed-on: https://review.coreboot.org/c/coreboot/+/68375 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Karthik Ramasubramanian <kramasub@google.com>
This commit is contained in:
parent
3de39fa36f
commit
8ff8937843
|
@ -209,9 +209,9 @@ var LP5SetInfo = map[int]LP5Set{
|
||||||
* = 1 / (speed grade / 2 / WCK:CK) // "double data rate"
|
* = 1 / (speed grade / 2 / WCK:CK) // "double data rate"
|
||||||
*/
|
*/
|
||||||
speedToTCKMinPs: map[int]int{
|
speedToTCKMinPs: map[int]int{
|
||||||
7500 : 1066, /* 1 / (7500 / 2 / 4) */
|
7500: 1066, /* 1 / (7500 / 2 / 4) */
|
||||||
6400 : 1250, /* 1 / (6400 / 2 / 4) */
|
6400: 1250, /* 1 / (6400 / 2 / 4) */
|
||||||
5500 : 1455, /* 1 / (5500 / 2 / 4) */
|
5500: 1455, /* 1 / (5500 / 2 / 4) */
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
1: {
|
1: {
|
||||||
|
@ -374,15 +374,15 @@ var LP5BankArchToSPDEncoding = map[int]LP5BankArchParams{
|
||||||
*/
|
*/
|
||||||
var LP5SpeedMbpsToSPDEncoding = map[int]LP5SpeedParams{
|
var LP5SpeedMbpsToSPDEncoding = map[int]LP5SpeedParams{
|
||||||
7500: {
|
7500: {
|
||||||
defaultTCKMinPs : 266, /* 1 / (7500 / 2) */
|
defaultTCKMinPs: 266, /* 1 / (7500 / 2) */
|
||||||
MaxCASLatency: 20,
|
MaxCASLatency: 20,
|
||||||
},
|
},
|
||||||
6400: {
|
6400: {
|
||||||
defaultTCKMinPs : 312, /* 1 / (6400 / 2) */
|
defaultTCKMinPs: 312, /* 1 / (6400 / 2) */
|
||||||
MaxCASLatency: 17,
|
MaxCASLatency: 17,
|
||||||
},
|
},
|
||||||
5500: {
|
5500: {
|
||||||
defaultTCKMinPs : 363, /* 1 / (5500 / 2) */
|
defaultTCKMinPs: 363, /* 1 / (5500 / 2) */
|
||||||
MaxCASLatency: 15,
|
MaxCASLatency: 15,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -498,7 +498,7 @@ func LP5EncodeSdramAddressing(memAttribs *LP5MemAttributes) byte {
|
||||||
var b byte
|
var b byte
|
||||||
|
|
||||||
// 2:0 Column address bits.
|
// 2:0 Column address bits.
|
||||||
b = LP5ColAddressBitsEncoding[LP5ColAddressBits + LP5GetBurstAddressBits(memAttribs)]
|
b = LP5ColAddressBitsEncoding[LP5ColAddressBits+LP5GetBurstAddressBits(memAttribs)]
|
||||||
|
|
||||||
// 5:3 Row address bits.
|
// 5:3 Row address bits.
|
||||||
density := memAttribs.DensityPerDieGb
|
density := memAttribs.DensityPerDieGb
|
||||||
|
|
Loading…
Reference in New Issue