upgrade

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2019 License: GPL-2.0, GPL-2.0-or-later Imports: 25 Imported by: 0

Documentation

Overview

Package ucd9090 provides access to the UCD9090 Power Sequencer/Monitor chip

Index

Constants

View Source
const (
	MEMGETINFO     = 0x80204d01 //from linux: mtd-abi.h
	MEMERASE       = 0x40084d02
	MEMLOCK        = 0x40084d05
	MEMUNLOCK      = 0x40084d06
	MEMERASE64     = 0x40104d14
	MTDdevice      = "/dev/mtd0"
	VERSION_OFFSET = 0x000
	VERSION_LEN    = 0x008
	VERSION_DEV    = 0x003
	JSON_OFFSET    = 0x100
	ENVSIZE        = 8192
	ENVCRC         = 4
)
View Source
const (
	DfltMod     = 0755
	DfltSrv     = "downloads.platinasystems.com"
	DfltVer     = "LATEST"
	Machine     = "platina-mk2-lc1-bmc"
	ArchiveName = Machine + ".zip"
	VersionName = Machine + "-ver.bin"
)
View Source
const MAXOPS = 30

Variables

View Source
var Qfmt = map[string]FlashFmt{}

Functions

func DoI2cRpc

func DoI2cRpc() error

func GetEnv

func GetEnv(q bool) (env []string, bootargs int, err error)

func GetPer

func GetPer(q bool) (b []byte, err error)

func PutEnv

func PutEnv(e []string, q bool) (err error)

func PutPer

func PutPer(b []byte, q bool) (err error)

func ReadBlk

func ReadBlk(blknam string, q bool) (b []byte, err error)

func UpdateEnv

func UpdateEnv(q bool) (err error)

func WriteBlk

func WriteBlk(blknam string, b []byte, q bool) (err error)

Types

type Command

type Command struct {
	Gpio func()
	// contains filtered or unexported fields
}

func (*Command) Apropos

func (*Command) Apropos() lang.Alt

func (*Command) Main

func (c *Command) Main(args ...string) error

func (*Command) Man

func (*Command) Man() lang.Alt

func (*Command) String

func (*Command) String() string

func (*Command) Usage

func (*Command) Usage() string

type EraseInfo

type EraseInfo struct {
	// contains filtered or unexported fields
}

type FlashFmt

type FlashFmt struct {
	// contains filtered or unexported fields
}

type I

type I struct {
	InUse     bool
	RW        i2c.RW
	RegOffset uint8
	BusSize   i2c.SMBusSize
	Data      [34]byte
	Bus       int
	Addr      int
	Delay     int
}

type I2cReq

type I2cReq int

type IMGINFO

type IMGINFO struct {
	Name   string
	Build  string
	User   string
	Size   string
	Tag    string
	Commit string
	Chksum string
}

type MTDinfo

type MTDinfo struct {
	// contains filtered or unexported fields
}

type R

type R struct {
	D [34]byte
	E error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL