mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 08:46:43 +07:00
9bbd4b9f38
- DT binding doc consolidation moving similar bindings to common locations. The majority of these are display related which were scattered in video/, fb/, drm/, gpu/, and panel/ directories. - Add new config option, CONFIG_OF_ALL_DTBS, to enable building all dtbs in the tree for most arches with dts files (except powerpc for now). - OF_IRQ=n fixes for user enabled CONFIG_OF. - of_node_put ref counting fixes from Julia Lawall. - Common DT binding for wakeup-source and deprecation of all similar bindings. - DT binding for PXA LCD controller. - Allow ignoring failed PCI resource translations in order to ignore 64-bit addresses on non-LPAE 32-bit kernels. - Support setting the NUMA node from DT instead of only from parent device. - Couple of earlycon DT parsing fixes for address and options. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJWO+HwAAoJEPr7XbWNvGHDFOoP/RcK4z5dtVQL2XRFbJBqRBZU riMc4BZkwpcKGXjzZlMrLw+mg4vaoLKSIAGAsYkgdDOKbYphQQdVwDzN099Fzpzy EE6K7Q+AW618z34AWdDjcpJYzSFnjAjYdh6JabohmKdPlxobR1RsKT+nRpDOGfeO c1DmxAQ1Fiav+xAI4m0YUuyxQDUeFYC0mVcVPzRbWZj31Ia5BgIrvT+V7fM55CTb dOAYWDHrfOw+yYI98sqZoSAb5H+E3UuY1ymBMhiP16Ot2vCyIKRYwhDokF9VYO/0 MpIMhCgv1jmE5NCbBeYSSJUePySvvnuyYe6HIaJQjV8KGEZ5C7c1iLMgtvov2KVI bcSx6nPH/u5FuWIhWdMINPc50AQBAK/akYcgoCVjioVX+4WY2pqLvsXW2arEr//Z XY3FUpgS6eI42HBsj4SxrGnzaRc2jPOs6yiANkywmHnpWcyvszCxUEvf0Mh0cbkm diu31/owdpUO5imCe+ErtGVV3vY2VUMnbcm8J61pqL52OZNPLZUUEfktv1JCGW7y cVdnlgeGSFuCbY4jUErvxtQGJQLFwf7Gg1U/VfFXX2iuQGAACB1KwxY5sR6P5Ghz W6NvOTT36kaM9WGqn/bquOd6EmKcx9aZfgRLOkgV86Q/11gHKpuRjkrsth7rIJDI 97qkGiWl4t1Ll5T4StK8 =tGCy -----END PGP SIGNATURE----- Merge tag 'devicetree-for-4.4' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux Pull DeviceTree updates from Rob Herring: "A fairly large (by DT standards) pull request this time with the majority being some overdue moving DT binding docs around to consolidate similar bindings. - DT binding doc consolidation moving similar bindings to common locations. The majority of these are display related which were scattered in video/, fb/, drm/, gpu/, and panel/ directories. - Add new config option, CONFIG_OF_ALL_DTBS, to enable building all dtbs in the tree for most arches with dts files (except powerpc for now). - OF_IRQ=n fixes for user enabled CONFIG_OF. - of_node_put ref counting fixes from Julia Lawall. - Common DT binding for wakeup-source and deprecation of all similar bindings. - DT binding for PXA LCD controller. - Allow ignoring failed PCI resource translations in order to ignore 64-bit addresses on non-LPAE 32-bit kernels. - Support setting the NUMA node from DT instead of only from parent device. - Couple of earlycon DT parsing fixes for address and options" * tag 'devicetree-for-4.4' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (45 commits) MAINTAINERS: update DT binding doc locations devicetree: add Sigma Designs vendor prefix of: simplify arch_find_n_match_cpu_physical_id() function Documentation: arm: Fixed typo in socfpga fpga mgr example Documentation: devicetree: fix reference to legacy wakeup properties Documentation: devicetree: standardize/consolidate on "wakeup-source" property drivers: of: removing assignment of 0 to static variable xtensa: enable building of all dtbs mips: enable building of all dtbs metag: enable building of all dtbs metag: use common make variables for dtb builds h8300: enable building of all dtbs arm64: enable building of all dtbs arm: enable building of all dtbs arc: enable building of all dtbs arc: use common make variables for dtb builds of: add config option to enable building of all dtbs of/fdt: fix error checking for earlycon address of/overlay: add missing of_node_put of/platform: add missing of_node_put ...
113 lines
3.4 KiB
C
113 lines
3.4 KiB
C
#ifndef __OF_IRQ_H
|
|
#define __OF_IRQ_H
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/errno.h>
|
|
#include <linux/irq.h>
|
|
#include <linux/irqdomain.h>
|
|
#include <linux/ioport.h>
|
|
#include <linux/of.h>
|
|
|
|
typedef int (*of_irq_init_cb_t)(struct device_node *, struct device_node *);
|
|
|
|
/*
|
|
* Workarounds only applied to 32bit powermac machines
|
|
*/
|
|
#define OF_IMAP_OLDWORLD_MAC 0x00000001
|
|
#define OF_IMAP_NO_PHANDLE 0x00000002
|
|
|
|
#if defined(CONFIG_PPC32) && defined(CONFIG_PPC_PMAC)
|
|
extern unsigned int of_irq_workarounds;
|
|
extern struct device_node *of_irq_dflt_pic;
|
|
extern int of_irq_parse_oldworld(struct device_node *device, int index,
|
|
struct of_phandle_args *out_irq);
|
|
#else /* CONFIG_PPC32 && CONFIG_PPC_PMAC */
|
|
#define of_irq_workarounds (0)
|
|
#define of_irq_dflt_pic (NULL)
|
|
static inline int of_irq_parse_oldworld(struct device_node *device, int index,
|
|
struct of_phandle_args *out_irq)
|
|
{
|
|
return -EINVAL;
|
|
}
|
|
#endif /* CONFIG_PPC32 && CONFIG_PPC_PMAC */
|
|
|
|
extern int of_irq_parse_raw(const __be32 *addr, struct of_phandle_args *out_irq);
|
|
extern int of_irq_parse_one(struct device_node *device, int index,
|
|
struct of_phandle_args *out_irq);
|
|
extern unsigned int irq_create_of_mapping(struct of_phandle_args *irq_data);
|
|
extern int of_irq_to_resource(struct device_node *dev, int index,
|
|
struct resource *r);
|
|
|
|
extern void of_irq_init(const struct of_device_id *matches);
|
|
|
|
#ifdef CONFIG_OF_IRQ
|
|
extern int of_irq_count(struct device_node *dev);
|
|
extern int of_irq_get(struct device_node *dev, int index);
|
|
extern int of_irq_get_byname(struct device_node *dev, const char *name);
|
|
extern int of_irq_to_resource_table(struct device_node *dev,
|
|
struct resource *res, int nr_irqs);
|
|
extern struct irq_domain *of_msi_get_domain(struct device *dev,
|
|
struct device_node *np,
|
|
enum irq_domain_bus_token token);
|
|
extern struct irq_domain *of_msi_map_get_device_domain(struct device *dev,
|
|
u32 rid);
|
|
extern void of_msi_configure(struct device *dev, struct device_node *np);
|
|
#else
|
|
static inline int of_irq_count(struct device_node *dev)
|
|
{
|
|
return 0;
|
|
}
|
|
static inline int of_irq_get(struct device_node *dev, int index)
|
|
{
|
|
return 0;
|
|
}
|
|
static inline int of_irq_get_byname(struct device_node *dev, const char *name)
|
|
{
|
|
return 0;
|
|
}
|
|
static inline int of_irq_to_resource_table(struct device_node *dev,
|
|
struct resource *res, int nr_irqs)
|
|
{
|
|
return 0;
|
|
}
|
|
static inline struct irq_domain *of_msi_get_domain(struct device *dev,
|
|
struct device_node *np,
|
|
enum irq_domain_bus_token token)
|
|
{
|
|
return NULL;
|
|
}
|
|
static inline struct irq_domain *of_msi_map_get_device_domain(struct device *dev,
|
|
u32 rid)
|
|
{
|
|
return NULL;
|
|
}
|
|
static inline void of_msi_configure(struct device *dev, struct device_node *np)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#if defined(CONFIG_OF_IRQ) || defined(CONFIG_SPARC)
|
|
/*
|
|
* irq_of_parse_and_map() is used by all OF enabled platforms; but SPARC
|
|
* implements it differently. However, the prototype is the same for all,
|
|
* so declare it here regardless of the CONFIG_OF_IRQ setting.
|
|
*/
|
|
extern unsigned int irq_of_parse_and_map(struct device_node *node, int index);
|
|
u32 of_msi_map_rid(struct device *dev, struct device_node *msi_np, u32 rid_in);
|
|
|
|
#else /* !CONFIG_OF && !CONFIG_SPARC */
|
|
static inline unsigned int irq_of_parse_and_map(struct device_node *dev,
|
|
int index)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline u32 of_msi_map_rid(struct device *dev,
|
|
struct device_node *msi_np, u32 rid_in)
|
|
{
|
|
return rid_in;
|
|
}
|
|
#endif /* !CONFIG_OF */
|
|
|
|
#endif /* __OF_IRQ_H */
|