Documentation
arch
block
certs
crypto
drivers
accessibility
acpi
amba
android
ata
atm
auxdisplay
base
bcma
block
bluetooth
bus
cdrom
char
clk
at91
axis
axs10x
bcm
berlin
h8300
hisilicon
imx
ingenic
keystone
loongson1
mediatek
meson
microchip
mmp
mvebu
mxs
nxp
pistachio
pxa
qcom
renesas
rockchip
samsung
sirf
socfpga
spear
st
sunxi
sunxi-ng
tegra
Kconfig
Makefile
clk-audio-sync.c
clk-dfll.c
clk-dfll.h
clk-divider.c
clk-emc.c
clk-id.h
clk-periph-fixed.c
clk-periph-gate.c
clk-periph.c
clk-pll-out.c
clk-pll.c
clk-super.c
clk-tegra-audio.c
clk-tegra-fixed.c
clk-tegra-periph.c
clk-tegra-pmc.c
clk-tegra-super-gen4.c
clk-tegra114.c
clk-tegra124-dfll-fcpu.c
clk-tegra124.c
clk-tegra20.c
clk-tegra210.c
clk-tegra30.c
clk.c
clk.h
cvb.c
cvb.h
ti
uniphier
ux500
versatile
x86
zte
zynq
Kconfig
Makefile
clk-asm9260.c
clk-axi-clkgen.c
clk-axm5516.c
clk-bulk.c
clk-cdce706.c
clk-cdce925.c
clk-clps711x.c
clk-composite.c
clk-conf.c
clk-cs2000-cp.c
clk-devres.c
clk-divider.c
clk-efm32gg.c
clk-fixed-factor.c
clk-fixed-rate.c
clk-fractional-divider.c
clk-gate.c
clk-gpio.c
clk-highbank.c
clk-max77686.c
clk-mb86s7x.c
clk-moxart.c
clk-multiplier.c
clk-mux.c
clk-nomadik.c
clk-nspire.c
clk-oxnas.c
clk-palmas.c
clk-pwm.c
clk-qoriq.c
clk-rk808.c
clk-s2mps11.c
clk-scpi.c
clk-si514.c
clk-si5351.c
clk-si5351.h
clk-si570.c
clk-stm32f4.c
clk-tango4.c
clk-twl6040.c
clk-u300.c
clk-vt8500.c
clk-wm831x.c
clk-xgene.c
clk.c
clk.h
clkdev.c
clocksource
connector
cpufreq
cpuidle
crypto
dax
dca
devfreq
dio
dma
dma-buf
edac
eisa
extcon
firewire
firmware
fmc
fpga
gpio
gpu
hid
hsi
hv
hwmon
hwspinlock
hwtracing
i2c
ide
idle
iio
infiniband
input
iommu
ipack
irqchip
isdn
leds
lguest
lightnvm
macintosh
mailbox
mcb
md
media
memory
memstick
message
mfd
misc
mmc
mtd
net
nfc
ntb
nubus
nvdimm
nvme
nvmem
of
oprofile
parisc
parport
pci
pcmcia
perf
phy
pinctrl
platform
pnp
power
powercap
pps
ps3
ptp
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg
rtc
s390
sbus
scsi
sfi
sh
sn
soc
spi
spmi
ssb
staging
target
tc
tee
thermal
thunderbolt
tty
uio
usb
uwb
vfio
vhost
video
virt
virtio
vlynq
vme
w1
watchdog
xen
zorro
Kconfig
Makefile
firmware
fs
include
init
ipc
kernel
lib
mm
ndm
net
samples
scripts
security
sound
tools
usr
virt
.cocciconfig
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
REPORTING-BUGS
build.config.aarch64
build.config.common
build.config.cuttlefish.aarch64
build.config.cuttlefish.x86_64
build.config.goldfish.arm
build.config.goldfish.arm64
build.config.goldfish.mips
build.config.goldfish.mips64
build.config.goldfish.x86
build.config.goldfish.x86_64
build.config.x86_64
localversion-ndm
verity_dev_keys.x509
git: https://android.googlesource.com/kernel/common branch: android-4.9 commit: 03fcc2fe71308c2d164b4e6cbfc738c63e670444
69 lines
1.5 KiB
C
69 lines
1.5 KiB
C
/*
|
|
* Utility functions for parsing Tegra CVB voltage tables
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
* more details.
|
|
*
|
|
*/
|
|
|
|
#ifndef __DRIVERS_CLK_TEGRA_CVB_H
|
|
#define __DRIVERS_CLK_TEGRA_CVB_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct device;
|
|
|
|
#define MAX_DVFS_FREQS 40
|
|
|
|
struct rail_alignment {
|
|
int offset_uv;
|
|
int step_uv;
|
|
};
|
|
|
|
struct cvb_coefficients {
|
|
int c0;
|
|
int c1;
|
|
int c2;
|
|
};
|
|
|
|
struct cvb_table_freq_entry {
|
|
unsigned long freq;
|
|
struct cvb_coefficients coefficients;
|
|
};
|
|
|
|
struct cvb_cpu_dfll_data {
|
|
u32 tune0_low;
|
|
u32 tune0_high;
|
|
u32 tune1;
|
|
};
|
|
|
|
struct cvb_table {
|
|
int speedo_id;
|
|
int process_id;
|
|
|
|
int min_millivolts;
|
|
int max_millivolts;
|
|
struct rail_alignment alignment;
|
|
|
|
int speedo_scale;
|
|
int voltage_scale;
|
|
struct cvb_table_freq_entry entries[MAX_DVFS_FREQS];
|
|
struct cvb_cpu_dfll_data cpu_dfll_data;
|
|
};
|
|
|
|
const struct cvb_table *
|
|
tegra_cvb_add_opp_table(struct device *dev, const struct cvb_table *cvb_tables,
|
|
size_t count, int process_id, int speedo_id,
|
|
int speedo_value, unsigned long max_freq);
|
|
void tegra_cvb_remove_opp_table(struct device *dev,
|
|
const struct cvb_table *table,
|
|
unsigned long max_freq);
|
|
|
|
#endif
|