10f952093SVince Hsu /* 20f952093SVince Hsu * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. 30f952093SVince Hsu * 40f952093SVince Hsu * Permission is hereby granted, free of charge, to any person obtaining a 50f952093SVince Hsu * copy of this software and associated documentation files (the "Software"), 60f952093SVince Hsu * to deal in the Software without restriction, including without limitation 70f952093SVince Hsu * the rights to use, copy, modify, merge, publish, distribute, sublicense, 80f952093SVince Hsu * and/or sell copies of the Software, and to permit persons to whom the 90f952093SVince Hsu * Software is furnished to do so, subject to the following conditions: 100f952093SVince Hsu * 110f952093SVince Hsu * The above copyright notice and this permission notice shall be included in 120f952093SVince Hsu * all copies or substantial portions of the Software. 130f952093SVince Hsu * 140f952093SVince Hsu * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 150f952093SVince Hsu * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 160f952093SVince Hsu * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 170f952093SVince Hsu * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 180f952093SVince Hsu * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 190f952093SVince Hsu * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 200f952093SVince Hsu * DEALINGS IN THE SOFTWARE. 210f952093SVince Hsu */ 220f952093SVince Hsu 230f952093SVince Hsu #ifndef __GK20A_VOLT_H__ 240f952093SVince Hsu #define __GK20A_VOLT_H__ 250f952093SVince Hsu 260f952093SVince Hsu struct cvb_coef { 270f952093SVince Hsu int c0; 280f952093SVince Hsu int c1; 290f952093SVince Hsu int c2; 300f952093SVince Hsu int c3; 310f952093SVince Hsu int c4; 320f952093SVince Hsu int c5; 330f952093SVince Hsu }; 340f952093SVince Hsu 350f952093SVince Hsu struct gk20a_volt { 360f952093SVince Hsu struct nvkm_volt base; 370f952093SVince Hsu struct regulator *vdd; 380f952093SVince Hsu }; 390f952093SVince Hsu 40*d07be5d7SBen Skeggs int gk20a_volt_ctor(struct nvkm_device *device, enum nvkm_subdev_type, int, 414158c9c2SAlexandre Courbot const struct cvb_coef *coefs, int nb_coefs, 42791eeea2SAlexandre Courbot int vmin, struct gk20a_volt *volt); 434158c9c2SAlexandre Courbot 440f952093SVince Hsu #endif 45