PebbleOS v4.47.0-160-g9e782207f
Loading...
Searching...
No Matches
hyperbus.h File Reference
#include <stddef.h>
#include <stdint.h>
#include <pbl/device.h>

Data Structures

struct  pbl_hyperbus_config
 What a HyperBus memory needs of the bus. More...
 
struct  pbl_hyperbus_ops
 Driver operations. More...
 
struct  pbl_hyperbus
 HyperBus controller. More...
 

Macros

#define PBL_HYPERBUS_INIT(sym, _name, _parent, _ops)
 Initializer for the struct pbl_hyperbus of controller sym.
 

Functions

static int pbl_hyperbus_enable (const struct pbl_hyperbus *bus)
 Ungate the controller.
 
static void pbl_hyperbus_disable (const struct pbl_hyperbus *bus)
 Gate the controller.
 
static int pbl_hyperbus_get_rate (const struct pbl_hyperbus *bus, uint32_t *rate_hz)
 Get the bus clock rate.
 
static int pbl_hyperbus_configure (const struct pbl_hyperbus *bus, const struct pbl_hyperbus_config *cfg, uintptr_t *base)
 Set the bus up for the memory and map the memory.
 
static int pbl_hyperbus_read_reg (const struct pbl_hyperbus *bus, uint32_t addr, uint16_t *val)
 Read a register of the memory.
 
static int pbl_hyperbus_write_reg (const struct pbl_hyperbus *bus, uint32_t addr, uint16_t val)
 Write a register of the memory.
 
static int pbl_hyperbus_wake (const struct pbl_hyperbus *bus)
 Pulse CS, which wakes a sleeping memory up.
 

Variables

const struct pbl_device_class pbl_hyperbus_class