tosa: add support for bl/lcd driver

Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>

authored by

Dmitry Baryshkov and committed by
Richard Purdie
14b7b401 fbd1b17b

+20 -1
+20 -1
arch/arm/mach-pxa/tosa.c
··· 31 #include <linux/gpio.h> 32 #include <linux/pda_power.h> 33 #include <linux/rfkill.h> 34 35 #include <asm/setup.h> 36 #include <asm/mach-types.h> ··· 43 #include <mach/mmc.h> 44 #include <mach/udc.h> 45 #include <mach/tosa_bt.h> 46 47 #include <asm/mach/arch.h> 48 #include <mach/tosa.h> ··· 614 rc = gpio_request(TOSA_GPIO_TC6393XB_SUSPEND, "tc6393xb #suspend"); 615 if (rc) 616 goto err_req_suspend; 617 - rc = gpio_request(TOSA_GPIO_TC6393XB_L3V_ON, "l3v"); 618 if (rc) 619 goto err_req_l3v; 620 rc = gpio_direction_output(TOSA_GPIO_TC6393XB_L3V_ON, 0); ··· 774 .dev.platform_data = &tosa_bt_data, 775 }; 776 777 778 static struct platform_device *devices[] __initdata = { 779 &tosascoop_device, ··· 841 pxa_set_ficp_info(&tosa_ficp_platform_data); 842 pxa_set_i2c_info(NULL); 843 platform_scoop_config = &tosa_pcmcia_config; 844 845 clk_add_alias("CLK_CK3P6MI", &tc6393xb_device.dev, "GPIO11_CLK", NULL); 846
··· 31 #include <linux/gpio.h> 32 #include <linux/pda_power.h> 33 #include <linux/rfkill.h> 34 + #include <linux/spi/spi.h> 35 36 #include <asm/setup.h> 37 #include <asm/mach-types.h> ··· 42 #include <mach/mmc.h> 43 #include <mach/udc.h> 44 #include <mach/tosa_bt.h> 45 + #include <mach/pxa2xx_spi.h> 46 47 #include <asm/mach/arch.h> 48 #include <mach/tosa.h> ··· 612 rc = gpio_request(TOSA_GPIO_TC6393XB_SUSPEND, "tc6393xb #suspend"); 613 if (rc) 614 goto err_req_suspend; 615 + rc = gpio_request(TOSA_GPIO_TC6393XB_L3V_ON, "tc6393xb l3v"); 616 if (rc) 617 goto err_req_l3v; 618 rc = gpio_direction_output(TOSA_GPIO_TC6393XB_L3V_ON, 0); ··· 772 .dev.platform_data = &tosa_bt_data, 773 }; 774 775 + static struct pxa2xx_spi_master pxa_ssp_master_info = { 776 + .num_chipselect = 1, 777 + }; 778 + 779 + static struct spi_board_info spi_board_info[] __initdata = { 780 + { 781 + .modalias = "tosa-lcd", 782 + // .platform_data 783 + .max_speed_hz = 28750, 784 + .bus_num = 2, 785 + .chip_select = 0, 786 + .mode = SPI_MODE_0, 787 + }, 788 + }; 789 790 static struct platform_device *devices[] __initdata = { 791 &tosascoop_device, ··· 825 pxa_set_ficp_info(&tosa_ficp_platform_data); 826 pxa_set_i2c_info(NULL); 827 platform_scoop_config = &tosa_pcmcia_config; 828 + 829 + pxa2xx_set_spi_info(2, &pxa_ssp_master_info); 830 + spi_register_board_info(spi_board_info, ARRAY_SIZE(spi_board_info)); 831 832 clk_add_alias("CLK_CK3P6MI", &tc6393xb_device.dev, "GPIO11_CLK", NULL); 833