smartq kernel new

來源:互聯網
上載者:User

地址:

Smartqv2

 

2.6.33-rc4版,不過只是個初步的支援,touchscreen,mmc,沒有支援,usb gadget有了進展,不過還沒有完成,不過,可以看到有多個分支進行中,開發也很活躍,希望早日完工吧。。。。

 

由於加入了smartq5,smartq7等裝置,裝置號有變化,需要改回SMDK6410,還有一個要注意的是,tools/mach-types優先匹配版號,如果選擇了

CONFIG_MACH_SMARTQ5,在mach-smartq5.c中修改MACHINE_START(SMARTQ5, "SmartQ 5") ----》 SMDK6410也沒有用,還是無法啟動,最好直接修改tools/mach-types。

 

 

當然,如果使用了

mcuelenaere

提供的u-boot的話,應該直接匹配了,不需要修改。

 

FB的配置也要修改

static struct s3c_fb_pd_win smartq5_fb_win0 = {
    .win_mode    = {
        .pixclock    = (40+1+216+800)*(10+1+35+480),
//        .left_margin    = 40,
//竟然是對等的,不知到底是什麼原因。。。。
        .left_margin    = 216,
        .right_margin    = 216,
//        .upper_margin    = 10,
        .upper_margin    = 35,
        .lower_margin    = 35,
        .hsync_len    = 1,
        .vsync_len    = 1,
        .xres        = 800,
        .yres        = 480,
//        .refresh    = 100,
        .refresh    = 60,
    },
    .max_bpp    = 32,
    .default_bpp    = 16,
};

 

/* FIXME: LCD init */
static void __init smartq5_lcd_setup_gpio(void)
{
#if 0
    gpio_request(S3C64XX_GPM(0), "LCD SCEN pin");
    gpio_request(S3C64XX_GPM(1), "LCD SCL pin");
    gpio_request(S3C64XX_GPM(2), "LCD SDA pin");
    gpio_request(S3C64XX_GPM(3), "LCD power");

    /* turn power off */
    gpio_direction_output(S3C64XX_GPM(0), 1);
    gpio_direction_input(S3C64XX_GPM(1));
    gpio_direction_input(S3C64XX_GPM(2));
    gpio_direction_output(S3C64XX_GPM(3), 0);
#endif
    gpio_request(S3C64XX_GPN(5), "LCD power");
    gpio_request(S3C64XX_GPF(13), "LCD power");
    gpio_request(S3C64XX_GPF(15), "LCD power");
}

static void smartq5_lcd_power_set(struct plat_lcd_data *pd, unsigned int power)
{
//    gpio_direction_output(S3C64XX_GPM(3), power ? 1 : 0);
    if (power) {
        gpio_direction_output(S3C64XX_GPF(13), 1);
        gpio_direction_output(S3C64XX_GPF(15), 1);

        /* fire nRESET on power up */
        gpio_direction_output(S3C64XX_GPN(5), 0);
        msleep(10);
        gpio_direction_output(S3C64XX_GPN(5), 1);
        msleep(1);
    } else {
        gpio_direction_output(S3C64XX_GPF(15), 0);
        gpio_direction_output(S3C64XX_GPF(13), 0);
    }
}

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.