diff options
author | Burt P <pburt0@gmail.com> | 2018-10-20 16:39:13 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2018-10-22 19:45:03 -0700 |
commit | f281f89033b95cce1ac833c30a37d2d5ff396583 (patch) | |
tree | 6a035aca4b8183b95bca4d52f8bb742a1413c706 /includes/dt_util.h | |
parent | 2e8261216b99ef335dc9d1e04cdcc8ac8fe5f302 (diff) |
devicetree: add oppv1 and clock-frequency to opp support
I don't have any hardware to test, this is based only on the
OPP kernel docs.
https://www.kernel.org/doc/Documentation/devicetree/bindings/opp/opp.txt
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'includes/dt_util.h')
-rw-r--r-- | includes/dt_util.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/includes/dt_util.h b/includes/dt_util.h index 5f2f3233..0c5dcfa8 100644 --- a/includes/dt_util.h +++ b/includes/dt_util.h @@ -30,6 +30,7 @@ enum { DTP_CLOCKS, /* <phref, #clock-cells> */ DTP_GPIOS, /* <phref, #gpio-cells> */ DTP_DMAS, /* dma-specifier list */ + DTP_OPP1, /* list of operating points, pairs of (kHz,uV) */ DTP_PH_REF_OPP2, /* phandle reference to opp-v2 table */ }; @@ -91,9 +92,10 @@ void dtr_msg(dtr *s, char *fmt, ...); * ex: ret = appf(ret, "%s=%s\n", name, value); */ char *appf(char *src, char *fmt, ...); -/* operating-points-v2 */ +/* operating-points v0,v1,v2 */ typedef struct { - uint32_t phandle; + uint32_t version; /* opp version, 0 = clock-frequency only */ + uint32_t phandle; /* v2 only */ uint32_t khz_min; uint32_t khz_max; uint32_t clock_latency_ns; |