Commit f599cc29 authored by Jani Nikula's avatar Jani Nikula Committed by Daniel Vetter

drm/i915: cleanup opregion technology enabled indicator defines

Move near other defines, add TCHE in the name. No functional changes.
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Reviewed-by: default avatarDamien Lespiau <damien.lespiau@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 1bd1bd80
...@@ -123,6 +123,12 @@ struct opregion_asle { ...@@ -123,6 +123,12 @@ struct opregion_asle {
#define ASLE_PFIT_FAILED (1<<14) #define ASLE_PFIT_FAILED (1<<14)
#define ASLE_PWM_FREQ_FAILED (1<<16) #define ASLE_PWM_FREQ_FAILED (1<<16)
/* Technology enabled indicator */
#define ASLE_TCHE_ALS_EN (1 << 0)
#define ASLE_TCHE_BLC_EN (1 << 1)
#define ASLE_TCHE_PFIT_EN (1 << 2)
#define ASLE_TCHE_PFMB_EN (1 << 3)
/* ASLE backlight brightness to set */ /* ASLE backlight brightness to set */
#define ASLE_BCLP_VALID (1<<31) #define ASLE_BCLP_VALID (1<<31)
#define ASLE_BCLP_MSK (~(1<<31)) #define ASLE_BCLP_MSK (~(1<<31))
...@@ -222,11 +228,6 @@ void intel_opregion_asle_intr(struct drm_device *dev) ...@@ -222,11 +228,6 @@ void intel_opregion_asle_intr(struct drm_device *dev)
iowrite32(asle_stat, &asle->aslc); iowrite32(asle_stat, &asle->aslc);
} }
#define ASLE_ALS_EN (1<<0)
#define ASLE_BLC_EN (1<<1)
#define ASLE_PFIT_EN (1<<2)
#define ASLE_PFMB_EN (1<<3)
void intel_opregion_enable_asle(struct drm_device *dev) void intel_opregion_enable_asle(struct drm_device *dev)
{ {
struct drm_i915_private *dev_priv = dev->dev_private; struct drm_i915_private *dev_priv = dev->dev_private;
...@@ -236,7 +237,7 @@ void intel_opregion_enable_asle(struct drm_device *dev) ...@@ -236,7 +237,7 @@ void intel_opregion_enable_asle(struct drm_device *dev)
if (IS_MOBILE(dev)) if (IS_MOBILE(dev))
intel_enable_asle(dev); intel_enable_asle(dev);
iowrite32(ASLE_BLC_EN, &asle->tche); iowrite32(ASLE_TCHE_BLC_EN, &asle->tche);
iowrite32(1, &asle->ardy); iowrite32(1, &asle->ardy);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment