25#if defined(LIBOPENCM3_OPAMP_H)
27#ifndef LIBOPENCM3_OPAMP_COMMON_ALL_H
28#define LIBOPENCM3_OPAMP_COMMON_ALL_H
34#define OPAMP_CSR(opamp_base) MMIO32((opamp_base) + 0x00)
38#define OPAMP_CSR_LOCK (0x1 << 31)
40#define OPAMP_CSR_TSTREF (0x1 << 29)
42#define OPAMP_CSR_TRIMOFFSETN_MASK (0x1f)
43#define OPAMP_CSR_TRIMOFFSETN_SHIFT (24)
45#define OPAMP_CSR_TRIMOFFSETP_MASK (0x1f)
46#define OPAMP_CSR_TRIMOFFSETP_SHIFT (19)
48#define OPAMP_CSR_CALSEL_MASK (0x3)
49#define OPAMP_CSR_CALSEL_SHIFT (12)
50#define OPAMP_CSR_CALSEL_3P3_PERCENT (0x0)
51#define OPAMP_CSR_CALSEL_10_PERCENT (0x1)
52#define OPAMP_CSR_CALSEL_50_PERCENT (0x2)
53#define OPAMP_CSR_CALSEL_90_PERCENT (0x3)
55#define OPAMP_CSR_CALON (0x1 << 11)
57#define OPAMP_CSR_VM_SEL_MASK (0x3)
58#define OPAMP_CSR_VM_SEL_SHIFT (5)
60#define OPAMP_CSR_VP_SEL_MASK (0x3)
61#define OPAMP_CSR_VP_SEL_SHIFT (2)
63#define OPAMP_CSR_FORCE_VP (0x1 << 1)
64#define OPAMP_CSR_EN (0x1 << 0)
97#warning "opamp_common_all.h should not be included directly, only via opamp.h"
void opamp_cal_enable(uint32_t base)
void opamp_set_calsel(uint32_t base, uint32_t calsel)
void opamp_enable(uint32_t base)
void opamp_disable(uint32_t base)
void opamp_tstref_enable(uint32_t base)
void opamp_tstref_disable(uint32_t base)
void opamp_cal_disable(uint32_t base)
void opamp_trimoffsetn_set(uint32_t base, uint32_t trim)
void opamp_trimoffsetp_set(uint32_t base, uint32_t trim)
void opamp_force_vp_enable(uint32_t base)
void opamp_user_trim_enable(uint32_t base)
void opamp_pga_gain_select(uint32_t base, uint32_t gain)
void opamp_vp_select(uint32_t base, uint32_t vp)
void opamp_force_vp_disable(uint32_t base)
void opamp_lock(uint32_t base)
void opamp_vm_select(uint32_t base, uint32_t vm)
void opamp_user_trim_disable(uint32_t base)