linux/drivers/gpu/drm/arm
james qian wang (Arm Technology China) 26bd43a759 drm/komeda: Build komeda to be a platform module
Implement a simple wrapper for platform module to build komeda to module,
Also add a very simple D71 layer code to show how to discover a product.
Komeda driver direct bind the product ENTRY function xxx_identity to DT
compatible name like:

d71_product = {
	.product_id = MALIDP_D71_PRODUCT_ID,
	.identify = d71_identify,
},

const struct of_device_id komeda_of_match[] = {
	{ .compatible = "arm,mali-d71", .data = &d71_product, },
	{},
};

Then when linux found a matched DT node and call driver to probe, we can
easily get the of data, and call into the product to do the identify:

komeda_bind()
{
    ...
    product = of_device_get_match_data(dev);

    product->identify();
    ...
}

Changes in v4:
- Replaced kzalloc with devm_kzalloc

Changes in v3:
- Fixed style problem found by checkpatch.pl --strict.

Signed-off-by: James Qian Wang (Arm Technology China) <james.qian.wang@arm.com>
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
2019-01-14 11:09:23 +00:00
..
display drm/komeda: Build komeda to be a platform module 2019-01-14 11:09:23 +00:00
hdlcd_crtc.c drm/arm/hdlcd: Reject atomic commits that disable only the plane 2018-07-31 16:31:50 +01:00
hdlcd_drv.c drm/arm/hdlcd: Use drm_fbdev_generic_setup() 2018-09-25 11:30:43 +02:00
hdlcd_drv.h drm/arm/hdlcd: Use drm_fb_cma_fbdev_init/fini() 2018-07-31 16:31:50 +01:00
hdlcd_regs.h
Kconfig drm/komeda: komeda_dev/pipeline/component definition and initialzation 2019-01-14 11:09:23 +00:00
Makefile drm/komeda: komeda_dev/pipeline/component definition and initialzation 2019-01-14 11:09:23 +00:00
malidp_crtc.c drm/arm/malidp: Validate rotations for compressed/uncompressed framebuffers for each layer 2018-10-02 12:11:00 +01:00
malidp_drv.c drm: malidp: Add the size of the superblocks when calculating total 2018-10-05 15:39:51 +01:00
malidp_drv.h drm/malidp: Enable MMU prefetch on Mali-DP650 2018-10-02 11:59:36 +01:00
malidp_hw.c drm: mali-dp: Enable Mali-DP tiled buffer formats 2018-11-02 09:57:27 +00:00
malidp_hw.h drm/arm/malidp: Implemented the size validation for AFBC framebuffers 2018-10-02 12:12:19 +01:00
malidp_mw.c drm/malidp: Fix writeback in NV12 2018-10-02 11:54:26 +01:00
malidp_mw.h drm: mali-dp: Add writeback connector 2018-07-05 15:19:03 +01:00
malidp_planes.c drm: mali-dp: Enable Mali-DP tiled buffer formats 2018-11-02 09:57:27 +00:00
malidp_regs.h drm/malidp: Enable MMU prefetch on Mali-DP650 2018-10-02 11:59:36 +01:00