11 #include <linux/kernel.h>
13 #include <linux/serial_core.h>
16 #include <linux/i2c.h>
30 #include <mach/hardware.h>
42 #include <plat/clock.h>
48 #define UCON S3C2410_UCON_DEFAULT
49 #define ULCON (S3C2410_LCON_CS8 | S3C2410_LCON_PNONE)
50 #define UFCON (S3C2410_UFCON_RXTRIG8 | S3C2410_UFCON_FIFOMODE)
76 static int hmt_bl_init(
struct device *
dev)
93 if (brightness < 0x800) {
95 brightness = (100*256 * brightness + 231245/2) / 231245;
98 int t = (brightness*4 + 16*1024 + 58)/116;
99 brightness = 25 * ((t * t * t + 0x100000/2) / 0x100000);
107 static void hmt_bl_exit(
struct device *dev)
114 .max_brightness = 100 * 256,
115 .dft_brightness = 40 * 256,
116 .pwm_period_ns = 1000000000 / (100 * 256 * 20),
124 .name =
"pwm-backlight",
127 .platform_data = &hmt_backlight_data,
152 .vtiming = &hmt_lcd_timing,
153 .win[0] = &hmt_fb_win0,
165 .name =
"uboot-env1",
170 .name =
"uboot-env2",
191 .partitions = hmt_nand_part,
200 .sets = hmt_nand_sets,
203 static struct gpio_led hmt_leds[] = {
207 .default_trigger =
"default-on",
214 .name =
"right:green",
218 .name =
"right:blue",
220 .default_trigger =
"default-on",
232 .dev.platform_data = &hmt_led_data,
235 static struct map_desc hmt_iodesc[] = {};
243 &hmt_backlight_device,
247 static void __init hmt_map_io(
void)
254 static void __init hmt_machine_init(
void)
274 .atag_offset = 0x100,
277 .map_io = hmt_map_io,
278 .init_machine = hmt_machine_init,