func (p *FlashParams) ReadClockFrequency() FlashFrequency {
	return FlashFrequency((p[2] >> 1) & 0x07)
}
ReadClockFrequency returns the chip frequency while reading from the flash.
package uefi
import (
	"fmt"
)
const (
	FlashParamsSize = 4
)
type FlashFrequency uint
const (
	Freq20MHz      FlashFrequency = 0
	Freq33MHz      FlashFrequency = 1
	Freq48MHz      FlashFrequency = 2
	Freq50MHz30MHz FlashFrequency = 4
	Freq17MHz      FlashFrequency = 6
)
var FlashFrequencyStringMap = map[FlashFrequency]string{
	Freq20MHz:      "20MHz",
	Freq33MHz:      "33MHz",
	Freq48MHz:      "48MHz",
	Freq50MHz30MHz: "50Mhz30MHz",
	Freq17MHz:      "17MHz",
}
type FlashParams [4]byte
func (p *FlashParams) FirstChipDensity() uint {
	return uint(p[0] & 0x0f)
}
func (p *FlashParams) SecondChipDensity() uint {
	return uint((p[0] >> 4) & 0x0f)
}