linux/drivers/memory/da8xx-ddrctl.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * TI da8xx DDR2/mDDR controller driver
 *
 * Copyright (C) 2016 BayLibre SAS
 *
 * Author:
 *   Bartosz Golaszewski <[email protected]>
 */

#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/io.h>

/*
 * REVISIT: Linux doesn't have a good framework for the kind of performance
 * knobs this driver controls. We can't use device tree properties as it deals
 * with hardware configuration rather than description. We also don't want to
 * commit to maintaining some random sysfs attributes.
 *
 * For now we just hardcode the register values for the boards that need
 * some changes (as is the case for the LCD controller on da850-lcdk - the
 * first board we support here). When linux gets an appropriate framework,
 * we'll easily convert the driver to it.
 */

struct da8xx_ddrctl_config_knob {};

static const struct da8xx_ddrctl_config_knob da8xx_ddrctl_knobs[] =;

struct da8xx_ddrctl_setting {};

struct da8xx_ddrctl_board_settings {};

static const struct da8xx_ddrctl_setting da850_lcdk_ddrctl_settings[] =;

static const struct da8xx_ddrctl_board_settings da8xx_ddrctl_board_confs[] =;

static const struct da8xx_ddrctl_config_knob *
da8xx_ddrctl_match_knob(const struct da8xx_ddrctl_setting *setting)
{}

static const struct da8xx_ddrctl_setting *da8xx_ddrctl_get_board_settings(void)
{}

static int da8xx_ddrctl_probe(struct platform_device *pdev)
{}

static const struct of_device_id da8xx_ddrctl_of_match[] =;

static struct platform_driver da8xx_ddrctl_driver =;
module_platform_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();