Skip to content

Commit

Permalink
support i.MX6UL P/N
Browse files Browse the repository at this point in the history
  • Loading branch information
abarisani committed May 17, 2023
1 parent 5dec9c7 commit f03d24b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
package main

import (
"fmt"
"log"

"github.com/usbarmory/tamago/soc/nxp/imx6ul"
Expand All @@ -24,8 +23,11 @@ var cards []*usdhc.USDHC
func init() {
log.SetFlags(0)

if err := imx6ul.SetARMFreq(900); err != nil {
panic(fmt.Sprintf("WARNING: error setting ARM frequency: %v\n", err))
switch imx6ul.Model() {
case "i.MX6ULL", "i.MX6ULZ":
imx6ul.SetARMFreq(imx6ul.FreqMax)
case "i.MX6UL":
imx6ul.SetARMFreq(imx6ul.Freq528)
}
}

Expand Down

0 comments on commit f03d24b

Please sign in to comment.