Hi Russell: On 2014å¹´12æ04æ¥ 00:33, Russell King - ARM Linux wrote: > On Thu, Dec 04, 2014 at 12:30:23AM +0800, Andy Yan wrote: >> On 2014å¹´12æ04æ¥ 00:11, Russell King - ARM Linux wrote: >>> I meant that imx_hdmi_bind should be passed these, so that it needs to >>> know nothing about the struct device beyond the generic device structure. >>> In other words, the dw-hdmi core should not assume that the struct device >>> is part of a platform device. >>> >> if so, how about the device tree properties ddc-i2c-bus, reg-io-width, >> iahb, isfr, >> they are all found by device? > If the device has a device tree node associated with it, it will have a > non-NULL dev->of_node - which is part of the generic device structure. > so , I just need get the resource and irq number in the dw_hdmi-imx/rockchip ,than pass them to imx_hdmi_bind, as the properties ddc-i2c-bus, reg-io-width, iahb,isfr, they are still can be handled in imx_hdmi_bind ?
- [PATCH v16 0/12] dw-hdmi: convert imx hdmi to bri... Andy Yan
- [PATCH v16 01/12] drm: imx: imx-hdmi: make c... Andy Yan
- [PATCH v16 02/12] drm: imx: imx-hdmi: return... Andy Yan
- [PATCH v16 03/12] drm: imx: imx-hdmi: conver... Andy Yan
- [PATCH v16 03/12] drm: imx: imx-hdmi: co... Russell King - ARM Linux
- [PATCH v16 03/12] drm: imx: imx-hdmi... Andy Yan
- [PATCH v16 03/12] drm: imx: imx-... Russell King - ARM Linux
- [PATCH v16 03/12] drm: imx:... Andy Yan
- [PATCH v16 03/12] drm: ... Russell King - ARM Linux
- [PATCH v16 03/12] d... Andy Yan
- [PATCH v16 03/12] d... Russell King - ARM Linux
- [PATCH v16 03/12] d... Andy Yan
- [PATCH v16 03/12] drm: imx: imx-... Philipp Zabel
- [PATCH v16 03/12] drm: imx:... Russell King - ARM Linux
- [PATCH v16 03/12] drm: ... Philipp Zabel
- [PATCH v16 03/12] d... Russell King - ARM Linux
- [PATCH v16 04/12] drm: imx: imx-hdmi: split ... Andy Yan
- [PATCH v16 05/12] drm: imx: imx-hdmi: move i... Andy Yan
- [PATCH v16 05/12] drm: imx: imx-hdmi: mo... Russell King - ARM Linux
