#define OUT_OVLY       ADE_OVLY2 /* output overlay compositor */
 #define ADE_DEBUG      1
 
-#define to_kirin_crtc(crtc) \
-       container_of(crtc, struct kirin_crtc, base)
-
-#define to_kirin_plane(plane) \
-       container_of(plane, struct kirin_plane, base)
-
 
 struct ade_hw_ctx {
        void __iomem  *base;
        struct drm_crtc *crtc;
 };
 
-struct kirin_crtc {
-       struct drm_crtc base;
-       void *hw_ctx;
-       bool enable;
-};
-
-struct kirin_plane {
-       struct drm_plane base;
-       void *hw_ctx;
-       u32 ch;
-};
-
 struct ade_data {
        struct kirin_crtc crtc;
        struct kirin_plane planes[ADE_CH_NUM];
 };
 
 /* ade-format info: */
-struct ade_format {
-       u32 pixel_format;
-       enum ade_fb_format ade_format;
-};
-
-static const struct ade_format ade_formats[] = {
+static const struct kirin_format ade_formats[] = {
        /* 16bpp RGB: */
        { DRM_FORMAT_RGB565, ADE_RGB_565 },
        { DRM_FORMAT_BGR565, ADE_BGR_565 },
 
        for (i = 0; i < ARRAY_SIZE(ade_formats); i++)
                if (ade_formats[i].pixel_format == pixel_format)
-                       return ade_formats[i].ade_format;
+                       return ade_formats[i].hw_format;
 
        /* not found */
        DRM_ERROR("Not found pixel format!!fourcc_format= %d\n",
 
 
 #define MAX_CRTC       2
 
+#define to_kirin_crtc(crtc) \
+       container_of(crtc, struct kirin_crtc, base)
+
+#define to_kirin_plane(plane) \
+       container_of(plane, struct kirin_plane, base)
+
+/* kirin-format translate table */
+struct kirin_format {
+       u32 pixel_format;
+       u32 hw_format;
+};
+
+struct kirin_crtc {
+       struct drm_crtc base;
+       void *hw_ctx;
+       bool enable;
+};
+
+struct kirin_plane {
+       struct drm_plane base;
+       void *hw_ctx;
+       u32 ch;
+};
+
 /* display controller init/cleanup ops */
 struct kirin_dc_ops {
        int (*init)(struct platform_device *pdev);