From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kim Phillips Date: Wed, 19 Mar 2008 20:35:58 -0500 Subject: [U-Boot-Users] [PATCH 6/7] 83xx/fdt_support: let user specifiy FSL USB Dual-Role controller role In-Reply-To: <20080314202018.GF22581@localhost.localdomain> References: <20080314202018.GF22581@localhost.localdomain> Message-ID: <20080319203558.cdd4be6f.kim.phillips@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, 14 Mar 2008 23:20:18 +0300 Anton Vorontsov wrote: > diff --git a/include/fdt_support.h b/include/fdt_support.h > index 7836f28..c10de8a 100644 > --- a/include/fdt_support.h > +++ b/include/fdt_support.h > @@ -50,6 +50,12 @@ int fdt_find_and_setprop(void *fdt, const char *node, const char *prop, > const void *val, int len, int create); > void fdt_fixup_qe_firmware(void *fdt); > > +#ifdef CONFIG_HAS_FSL_DR_USB > +void fdt_fixup_dr_usb(void *blob, bd_t *bd); > +#else > +static inline void fdt_fixup_dr_usb(void *blob, bd_t *bd) {} > +#endif /* CONFIG_HAS_FSL_DR_USB */ > + this looks like a prime candidate for a weak function (which would also eliminate the need for the new CONFIG_HAS_FSL_DR_USB introduced here). Kim