diff options
author | Ley Foon Tan <ley.foon.tan@intel.com> | 2017-04-26 02:44:36 +0800 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2017-05-18 11:33:17 +0200 |
commit | d1c559af5fb1a513eef1adf37713659d4e4e1968 (patch) | |
tree | 03800cbace202cc91be5802fadbb4f16b9bb71d9 /arch/arm/mach-socfpga/include/mach/misc.h | |
parent | 4ddd541d6ceabcf4aeb553373f9ab501a44ed90d (diff) |
arm: socfpga: Restructure misc driver
Restructure misc driver in the preparation to support A10.
Move the Gen5 specific code to gen5 file.
Change all uint32_t_to u32.
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
Diffstat (limited to 'arch/arm/mach-socfpga/include/mach/misc.h')
-rw-r--r-- | arch/arm/mach-socfpga/include/mach/misc.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/arm/mach-socfpga/include/mach/misc.h b/arch/arm/mach-socfpga/include/mach/misc.h new file mode 100644 index 0000000000..f3447495ab --- /dev/null +++ b/arch/arm/mach-socfpga/include/mach/misc.h @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2016-2017 Intel Corporation + * + * SPDX-License-Identifier: GPL-2.0 + */ + +#ifndef _MISC_H_ +#define _MISC_H_ + +void dwmac_deassert_reset(const unsigned int of_reset_id, const u32 phymode); + +struct bsel { + const char *mode; + const char *name; +}; + +extern struct bsel bsel_str[]; + +#ifdef CONFIG_FPGA +void socfpga_fpga_add(void); +#else +static inline void socfpga_fpga_add(void) {} +#endif + +#endif /* _MISC_H_ */ |