Subversion Repositories Kolibri OS

Rev

Rev 3031 | Rev 4560 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3031 Rev 4104
Line 110... Line 110...
110
       u8 plut[74];    /* panel LUT and identifier */
110
       u8 plut[74];    /* panel LUT and identifier */
111
       u32 pfmb;       /* PWM freq and min brightness */
111
       u32 pfmb;       /* PWM freq and min brightness */
112
       u8 rsvd[102];
112
       u8 rsvd[102];
113
} __attribute__((packed));
113
} __attribute__((packed));
Line -... Line 114...
-
 
114
 
-
 
115
/* Driver readiness indicator */
-
 
116
#define ASLE_ARDY_READY		(1 << 0)
-
 
117
#define ASLE_ARDY_NOT_READY	(0 << 0)
114
 
118
 
115
/* ASLE irq request bits */
119
/* ASLE irq request bits */
116
#define ASLE_SET_ALS_ILLUM     (1 << 0)
120
#define ASLE_SET_ALS_ILLUM     (1 << 0)
117
#define ASLE_SET_BACKLIGHT     (1 << 1)
121
#define ASLE_SET_BACKLIGHT     (1 << 1)
118
#define ASLE_SET_PFIT          (1 << 2)
122
#define ASLE_SET_PFIT          (1 << 2)
Line 123... Line 127...
123
#define ASLE_ALS_ILLUM_FAILED	(1<<10)
127
#define ASLE_ALS_ILLUM_FAILED	(1<<10)
124
#define ASLE_BACKLIGHT_FAILED	(1<<12)
128
#define ASLE_BACKLIGHT_FAILED	(1<<12)
125
#define ASLE_PFIT_FAILED	(1<<14)
129
#define ASLE_PFIT_FAILED	(1<<14)
126
#define ASLE_PWM_FREQ_FAILED	(1<<16)
130
#define ASLE_PWM_FREQ_FAILED	(1<<16)
Line -... Line 131...
-
 
131
 
-
 
132
/* Technology enabled indicator */
-
 
133
#define ASLE_TCHE_ALS_EN	(1 << 0)
-
 
134
#define ASLE_TCHE_BLC_EN	(1 << 1)
-
 
135
#define ASLE_TCHE_PFIT_EN	(1 << 2)
-
 
136
#define ASLE_TCHE_PFMB_EN	(1 << 3)
127
 
137
 
128
/* ASLE backlight brightness to set */
138
/* ASLE backlight brightness to set */
129
#define ASLE_BCLP_VALID                (1<<31)
139
#define ASLE_BCLP_VALID                (1<<31)
Line 130... Line 140...
130
#define ASLE_BCLP_MSK          (~(1<<31))
140
#define ASLE_BCLP_MSK          (~(1<<31))
Line 195... Line 205...
195
		opregion->swsci = base + OPREGION_SWSCI_OFFSET;
205
		opregion->swsci = base + OPREGION_SWSCI_OFFSET;
196
	}
206
	}
197
	if (mboxes & MBOX_ASLE) {
207
	if (mboxes & MBOX_ASLE) {
198
		DRM_DEBUG_DRIVER("ASLE supported\n");
208
		DRM_DEBUG_DRIVER("ASLE supported\n");
199
		opregion->asle = base + OPREGION_ASLE_OFFSET;
209
		opregion->asle = base + OPREGION_ASLE_OFFSET;
-
 
210
 
-
 
211
		iowrite32(ASLE_ARDY_NOT_READY, &opregion->asle->ardy);
200
	}
212
	}
Line 201... Line 213...
201
 
213
 
Line 202... Line 214...
202
	return 0;
214
	return 0;