-
Notifications
You must be signed in to change notification settings - Fork 53
/
mx6ullevk.go
52 lines (42 loc) · 1.14 KB
/
mx6ullevk.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// MCIMX6ULL-EVK support for tamago/arm
// https://github.com/usbarmory/tamago
//
// Copyright (c) WithSecure Corporation
// https://foundry.withsecure.com
//
// Use of this source code is governed by the license
// that can be found in the LICENSE file.
// Package mx6ullevk provides hardware initialization, automatically on import,
// for the NXP MCIMX6ULL-EVK evaluation board.
//
// This package is only meant to be used with `GOOS=tamago GOARCH=arm` as
// supported by the TamaGo framework for bare metal Go on ARM SoCs, see
// https://github.com/usbarmory/tamago.
package mx6ullevk
import (
_ "unsafe"
"github.com/usbarmory/tamago/soc/nxp/imx6ul"
)
// Peripheral instances
var (
ENET1 = imx6ul.ENET1
ENET2 = imx6ul.ENET2
I2C1 = imx6ul.I2C1
I2C2 = imx6ul.I2C2
UART1 = imx6ul.UART1
UART2 = imx6ul.UART2
USB1 = imx6ul.USB1
USB2 = imx6ul.USB2
// SD1 is the base board full size SD instance
USDHC1 = imx6ul.USDHC1
USDHC2 = imx6ul.USDHC2
)
// Init takes care of the lower level SoC initialization triggered early in
// runtime setup.
//
//go:linkname Init runtime.hwinit
func Init() {
imx6ul.Init()
// initialize console
imx6ul.UART1.Init()
}