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 31 #include <linux/gpio.h> 32 32 #include <linux/pda_power.h> 33 33 #include <linux/rfkill.h> 34 + #include <linux/spi/spi.h> 34 35 35 36 #include <asm/setup.h> 36 37 #include <asm/mach-types.h> ··· 43 42 #include <mach/mmc.h> 44 43 #include <mach/udc.h> 45 44 #include <mach/tosa_bt.h> 45 + #include <mach/pxa2xx_spi.h> 46 46 47 47 #include <asm/mach/arch.h> 48 48 #include <mach/tosa.h> ··· 614 612 rc = gpio_request(TOSA_GPIO_TC6393XB_SUSPEND, "tc6393xb #suspend"); 615 613 if (rc) 616 614 goto err_req_suspend; 617 - rc = gpio_request(TOSA_GPIO_TC6393XB_L3V_ON, "l3v"); 615 + rc = gpio_request(TOSA_GPIO_TC6393XB_L3V_ON, "tc6393xb l3v"); 618 616 if (rc) 619 617 goto err_req_l3v; 620 618 rc = gpio_direction_output(TOSA_GPIO_TC6393XB_L3V_ON, 0); ··· 774 772 .dev.platform_data = &tosa_bt_data, 775 773 }; 776 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 + }; 777 789 778 790 static struct platform_device *devices[] __initdata = { 779 791 &tosascoop_device, ··· 841 825 pxa_set_ficp_info(&tosa_ficp_platform_data); 842 826 pxa_set_i2c_info(NULL); 843 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)); 844 831 845 832 clk_add_alias("CLK_CK3P6MI", &tc6393xb_device.dev, "GPIO11_CLK", NULL); 846 833