mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 09:40:57 +07:00
2874c5fd28
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 3029 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190527070032.746973796@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
40 lines
976 B
C
40 lines
976 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* JZ4780 NAND/external memory controller (NEMC)
|
|
*
|
|
* Copyright (c) 2015 Imagination Technologies
|
|
* Author: Alex Smith <alex@alex-smith.me.uk>
|
|
*/
|
|
|
|
#ifndef __LINUX_JZ4780_NEMC_H__
|
|
#define __LINUX_JZ4780_NEMC_H__
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct device;
|
|
|
|
/*
|
|
* Number of NEMC banks. Note that there are actually 6, but they are numbered
|
|
* from 1.
|
|
*/
|
|
#define JZ4780_NEMC_NUM_BANKS 7
|
|
|
|
/**
|
|
* enum jz4780_nemc_bank_type - device types which can be connected to a bank
|
|
* @JZ4780_NEMC_BANK_SRAM: SRAM
|
|
* @JZ4780_NEMC_BANK_NAND: NAND
|
|
*/
|
|
enum jz4780_nemc_bank_type {
|
|
JZ4780_NEMC_BANK_SRAM,
|
|
JZ4780_NEMC_BANK_NAND,
|
|
};
|
|
|
|
extern unsigned int jz4780_nemc_num_banks(struct device *dev);
|
|
|
|
extern void jz4780_nemc_set_type(struct device *dev, unsigned int bank,
|
|
enum jz4780_nemc_bank_type type);
|
|
extern void jz4780_nemc_assert(struct device *dev, unsigned int bank,
|
|
bool assert);
|
|
|
|
#endif /* __LINUX_JZ4780_NEMC_H__ */
|