linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c

/*
 * Copyright 2013 Red Hat Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 *
 * Authors: Ben Skeggs
 * 	    Roy Spliet <[email protected]>
 */
#define gt215_ram(p)
#include "ram.h"
#include "ramfuc.h"

#include <core/memory.h>
#include <core/option.h>
#include <subdev/bios.h>
#include <subdev/bios/M0205.h>
#include <subdev/bios/rammap.h>
#include <subdev/bios/timing.h>
#include <subdev/clk/gt215.h>
#include <subdev/gpio.h>

struct gt215_ramfuc {};

struct gt215_ltrain {};

struct gt215_ram {};

static void
gt215_link_train_calc(u32 *vals, struct gt215_ltrain *train)
{}

/*
 * Link training for (at least) DDR3
 */
static int
gt215_link_train(struct gt215_ram *ram)
{}

static int
gt215_link_train_init(struct gt215_ram *ram)
{}

static void
gt215_link_train_fini(struct gt215_ram *ram)
{}

/*
 * RAM reclocking
 */
#define T
static int
gt215_ram_timing_calc(struct gt215_ram *ram, u32 *timing)
{}
#undef T

static void
nvkm_sddr2_dll_reset(struct gt215_ramfuc *fuc)
{}

static void
nvkm_sddr3_dll_disable(struct gt215_ramfuc *fuc, u32 *mr)
{}

static void
nvkm_gddr3_dll_disable(struct gt215_ramfuc *fuc, u32 *mr)
{}

static void
gt215_ram_lock_pll(struct gt215_ramfuc *fuc, struct gt215_clk_info *mclk)
{}

static void
gt215_ram_gpio(struct gt215_ramfuc *fuc, u8 tag, u32 val)
{}

static int
gt215_ram_calc(struct nvkm_ram *base, u32 freq)
{}

static int
gt215_ram_prog(struct nvkm_ram *base)
{}

static void
gt215_ram_tidy(struct nvkm_ram *base)
{}

static int
gt215_ram_init(struct nvkm_ram *base)
{}

static void *
gt215_ram_dtor(struct nvkm_ram *base)
{}

static const struct nvkm_ram_func
gt215_ram_func =;

int
gt215_ram_new(struct nvkm_fb *fb, struct nvkm_ram **pram)
{}