Remove redundant no hint

This commit is contained in:
Kwabena W. Agyeman 2021-02-24 21:46:56 -08:00
parent 7fc6a0d4dd
commit b117637ddf

View File

@ -184,7 +184,7 @@ static void spi_config_init(int w, int h, int refresh_rate, bool triple_buffer,
framebuffer_tail = 0;
for (int i = 0; i < FRAMEBUFFER_COUNT; i++) {
framebuffers[i] = (uint16_t *) fb_alloc0(w * h * sizeof(uint16_t), FB_ALLOC_NO_HINT | FB_ALLOC_CACHE_ALIGN);
framebuffers[i] = (uint16_t *) fb_alloc0(w * h * sizeof(uint16_t), FB_ALLOC_CACHE_ALIGN);
}
dma_init(&spi_tx_dma, OMV_SPI_LCD_CONTROLLER->tx_dma_descr, DMA_MEMORY_TO_PERIPH, OMV_SPI_LCD_CONTROLLER->spi);
@ -941,7 +941,7 @@ static void ltdc_config_init(int frame_size, int refresh_rate)
framebuffer_tail = 0;
for (int i = 0; i < FRAMEBUFFER_COUNT; i++) {
framebuffers[i] = (uint16_t *) fb_alloc0(w * h * sizeof(uint16_t), FB_ALLOC_NO_HINT | FB_ALLOC_CACHE_ALIGN);
framebuffers[i] = (uint16_t *) fb_alloc0(w * h * sizeof(uint16_t), FB_ALLOC_CACHE_ALIGN);
ltdc_framebuffer_layers[i].WindowX0 = 0;
ltdc_framebuffer_layers[i].WindowX1 = w;
ltdc_framebuffer_layers[i].WindowY0 = 0;