drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c
Source file repositories/reference/linux-study-clean/drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c- Extension
.c- Size
- 19887 bytes
- Lines
- 858
- Domain
- Driver Families
- Bucket
- drivers/video
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/module.hlinux/platform_device.hlinux/delay.hlinux/spi/spi.hlinux/jiffies.hlinux/sched.hlinux/backlight.hlinux/fb.hlinux/gpio/consumer.hlinux/of.hvideo/omapfb_dss.h
Detected Declarations
struct panel_drv_datafunction acx565akm_transferfunction acx565akm_cmdfunction acx565akm_writefunction acx565akm_readfunction hw_guard_startfunction hw_guard_waitfunction set_sleep_modefunction set_display_statefunction panel_enabledfunction panel_detectfunction enable_backlight_ctrlfunction set_cabc_modefunction get_cabc_modefunction get_hw_cabc_modefunction acx565akm_set_brightnessfunction acx565akm_get_actual_brightnessfunction acx565akm_bl_update_statusfunction acx565akm_bl_get_intensityfunction acx565akm_bl_update_status_lockedfunction acx565akm_bl_get_intensity_lockedfunction show_cabc_modefunction store_cabc_modefunction show_cabc_available_modesfunction acx565akm_connectfunction acx565akm_disconnectfunction acx565akm_panel_power_onfunction acx565akm_panel_power_offfunction acx565akm_enablefunction acx565akm_disablefunction acx565akm_set_timingsfunction acx565akm_get_timingsfunction acx565akm_check_timingsfunction acx565akm_probefunction acx565akm_remove
Annotated Snippet
struct panel_drv_data {
struct omap_dss_device dssdev;
struct omap_dss_device *in;
struct gpio_desc *reset_gpio;
int datapairs;
struct omap_video_timings videomode;
char *name;
int enabled;
int model;
int revision;
u8 display_id[3];
unsigned has_bc:1;
unsigned has_cabc:1;
unsigned cabc_mode;
unsigned long hw_guard_end; /* next value of jiffies
when we can issue the
next sleep in/out command */
unsigned long hw_guard_wait; /* max guard time in jiffies */
struct spi_device *spi;
struct mutex mutex;
struct backlight_device *bl_dev;
};
static const struct omap_video_timings acx565akm_panel_timings = {
.x_res = 800,
.y_res = 480,
.pixelclock = 24000000,
.hfp = 28,
.hsw = 4,
.hbp = 24,
.vfp = 3,
.vsw = 3,
.vbp = 4,
.vsync_level = OMAPDSS_SIG_ACTIVE_LOW,
.hsync_level = OMAPDSS_SIG_ACTIVE_LOW,
.data_pclk_edge = OMAPDSS_DRIVE_SIG_RISING_EDGE,
.de_level = OMAPDSS_SIG_ACTIVE_HIGH,
.sync_pclk_edge = OMAPDSS_DRIVE_SIG_FALLING_EDGE,
};
#define to_panel_data(p) container_of(p, struct panel_drv_data, dssdev)
static void acx565akm_transfer(struct panel_drv_data *ddata, int cmd,
const u8 *wbuf, int wlen, u8 *rbuf, int rlen)
{
struct spi_message m;
struct spi_transfer *x, xfer[5];
int r;
BUG_ON(ddata->spi == NULL);
spi_message_init(&m);
memset(xfer, 0, sizeof(xfer));
x = &xfer[0];
cmd &= 0xff;
x->tx_buf = &cmd;
x->bits_per_word = 9;
x->len = 2;
if (rlen > 1 && wlen == 0) {
/*
* Between the command and the response data there is a
* dummy clock cycle. Add an extra bit after the command
* word to account for this.
*/
x->bits_per_word = 10;
cmd <<= 1;
}
spi_message_add_tail(x, &m);
if (wlen) {
x++;
x->tx_buf = wbuf;
x->len = wlen;
x->bits_per_word = 9;
spi_message_add_tail(x, &m);
}
if (rlen) {
x++;
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/platform_device.h`, `linux/delay.h`, `linux/spi/spi.h`, `linux/jiffies.h`, `linux/sched.h`, `linux/backlight.h`.
- Detected declarations: `struct panel_drv_data`, `function acx565akm_transfer`, `function acx565akm_cmd`, `function acx565akm_write`, `function acx565akm_read`, `function hw_guard_start`, `function hw_guard_wait`, `function set_sleep_mode`, `function set_display_state`, `function panel_enabled`.
- Atlas domain: Driver Families / drivers/video.
- Implementation status: source implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.