github.com/f-secure-foundry/tamago@v0.0.0-20220307101044-d73fcdd7f11b/board/nxp/mx6ullevk/mx6ullevk.go (about)

     1  // MCIMX6ULL-EVK support for tamago/arm
     2  // https://github.com/f-secure-foundry/tamago
     3  //
     4  // Copyright (c) F-Secure Corporation
     5  // https://foundry.f-secure.com
     6  //
     7  // Use of this source code is governed by the license
     8  // that can be found in the LICENSE file.
     9  
    10  // Package mx6ullevk provides hardware initialization, automatically on import,
    11  // for the NXP MCIMX6ULL-EVK evaluation board.
    12  //
    13  // This package is only meant to be used with `GOOS=tamago GOARCH=arm` as
    14  // supported by the TamaGo framework for bare metal Go on ARM SoCs, see
    15  // https://github.com/f-secure-foundry/tamago.
    16  package mx6ullevk
    17  
    18  import (
    19  	_ "unsafe"
    20  
    21  	"github.com/f-secure-foundry/tamago/soc/imx6"
    22  	_ "github.com/f-secure-foundry/tamago/soc/imx6/imx6ul"
    23  )
    24  
    25  // Init takes care of the lower level SoC initialization triggered early in
    26  // runtime setup.
    27  //
    28  //go:linkname Init runtime.hwinit
    29  func Init() {
    30  	imx6.Init()
    31  
    32  	// initialize console
    33  	imx6.UART1.Init()
    34  }