Ticket #79: gta01-spi-24-fix.patch

File gta01-spi-24-fix.patch, 685 bytes (added by mwester@…, 11 years ago)

Patch to register the SPI device and thus the save/resume for the display

  • arch/arm/mach-s3c2410/mach-gta01.c

    old new  
    529529        .board_size     = ARRAY_SIZE(gta01_spi_board_info), 
    530530        .board_info     = gta01_spi_board_info, 
    531531        .chip_select    = &spi_gpio_cs, 
     532        .num_chipselect = 2,   /*** Should be 1 or 2 for gta01? ***/ 
    532533}; 
    533534 
    534535static struct resource s3c_spi_lcm_resource[] = { 
     
    551552}; 
    552553 
    553554struct platform_device s3c_device_spi_lcm = { 
    554         .name             = "s3c24xx-spi-gpio", 
     555        .name             = "spi_s3c24xx_gpio", 
    555556        .id               = 1, 
    556557        .num_resources    = ARRAY_SIZE(s3c_spi_lcm_resource), 
    557558        .resource         = s3c_spi_lcm_resource,