diff options
author | Philippe Reynes <philippe.reynes@softathome.com> | 2019-03-15 15:14:36 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-04-22 11:55:58 -0400 |
commit | 22daafba25592b79112d21d1662d7b8381827c56 (patch) | |
tree | 6e31e8388261f537195d50cc6b0aaa61adc61465 /drivers/mtd/nand/raw/brcmnand/brcmnand_compat.h | |
parent | 29c7169b7b24a8520ca9faf84edc33c89de6b7cc (diff) |
drivers: nand: brcmnand: add initial support
The driver brcmnand come from linux kernel 4.18.
Only SoC bcm6838 and bcm6858 are supported.
Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
Diffstat (limited to 'drivers/mtd/nand/raw/brcmnand/brcmnand_compat.h')
-rw-r--r-- | drivers/mtd/nand/raw/brcmnand/brcmnand_compat.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.h b/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.h new file mode 100644 index 0000000000..02cab0f828 --- /dev/null +++ b/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ + +#ifndef __BRCMNAND_COMPAT_H +#define __BRCMNAND_COMPAT_H + +#include <clk.h> +#include <dm.h> + +struct clk *devm_clk_get(struct udevice *dev, const char *id); +int clk_prepare_enable(struct clk *clk); +void clk_disable_unprepare(struct clk *clk); + +char *devm_kasprintf(struct udevice *dev, gfp_t gfp, const char *fmt, ...); + +#endif /* __BRCMNAND_COMPAT_H */ |