summaryrefslogtreecommitdiff
path: root/screen.h
blob: 7a647be09e65a9612822617fa11a27dc3395303e (plain)
1
2
3
4
5
6
7
8
9
#ifndef SCREEN_H
#define SCREEN_H

#include <curses.h>

extern WINDOW *screen_init(bool israw);
extern void screen_end(void);

#endif /* SCREEN_H */
option value='30'>30space:mode:
Diffstat (limited to 'Documentation')
er
Mark Brown <broonie@kernel.org>2016-02-09 19:34:43 +0000
commit4dea6c9b0b64fc4cbd543b5a3b6320218be8ca9c (patch)
tree0f0a7b1b097a62a59583f225c4fcf3af407c2aea /Documentation
parent556351f14e74db4cd3ddde386457edce7bf0b27f (diff)
spi: spi-ti-qspi: add mmap mode read support
ti-qspi controller provides mmap port to read data from SPI flashes. mmap port is enabled in QSPI_SPI_SWITCH_REG. ctrl module register may also need to be accessed for some SoCs. The QSPI_SPI_SETUP_REGx needs to be populated with flash specific information like read opcode, read mode(quad, dual, normal), address width and dummy bytes. Once, controller is in mmap mode, the whole flash memory is available as a memory region at SoC specific address. This region can be accessed using normal memcpy() (or mem-to-mem dma copy). The ti-qspi controller hardware will internally communicate with SPI flash over SPI bus and get the requested data. Implement spi_flash_read() callback to support mmap read over SPI flash devices. With this, the read throughput increases from ~100kB/s to ~2.5 MB/s. Signed-off-by: Vignesh R <vigneshr@ti.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation')