linux/drivers/video/fbdev/carminefb.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef CARMINE_CARMINE_H
#define CARMINE_CARMINE_H

#define CARMINE_MEMORY_BAR
#define CARMINE_CONFIG_BAR

#define MAX_DISPLAY
#define CARMINE_DISPLAY_MEM
#define CARMINE_TOTAL_DIPLAY_MEM

#define CARMINE_USE_DISPLAY0
#define CARMINE_USE_DISPLAY1

/*
 * This values work on the eval card. Custom boards may use different timings,
 * here an example :)
 */

/* DRAM initialization values */
#ifdef CONFIG_FB_CARMINE_DRAM_EVAL

#define CARMINE_DFLT_IP_CLOCK_ENABLE
#define CARMINE_DFLT_IP_DCTL_ADD
#define CARMINE_DFLT_IP_DCTL_MODE
#define CARMINE_DFLT_IP_DCTL_EMODE
#define CARMINE_DFLT_IP_DCTL_SET_TIME1
#define CARMINE_DFLT_IP_DCTL_SET_TIME2
#define CARMINE_DFLT_IP_DCTL_REFRESH
#define CARMINE_DFLT_IP_DCTL_STATES
#define CARMINE_DFLT_IP_DCTL_RESERVE0
#define CARMINE_DFLT_IP_DCTL_FIFO_DEPTH
#define CARMINE_DFLT_IP_DCTL_RESERVE2
#define CARMINE_DFLT_IP_DCTL_DDRIF1
#define CARMINE_DFLT_IP_DCTL_DDRIF2
#define CARMINE_DFLT_IP_DCTL_MODE_AFT_RST
#define CARMINE_DFLT_IP_DCTL_STATES_AFT_RST
#define CARMINE_DFLT_IP_DCTL_IO_CONT0
#define CARMINE_DFLT_IP_DCTL_IO_CONT1
#define CARMINE_DCTL_DLL_RESET
#endif

#ifdef CONFIG_CARMINE_DRAM_CUSTOM

#define CARMINE_DFLT_IP_CLOCK_ENABLE
#define CARMINE_DFLT_IP_DCTL_ADD
#define CARMINE_DFLT_IP_DCTL_MODE
#define CARMINE_DFLT_IP_DCTL_EMODE
#define CARMINE_DFLT_IP_DCTL_SET_TIME1
#define CARMINE_DFLT_IP_DCTL_SET_TIME2
#define CARMINE_DFLT_IP_DCTL_REFRESH
#define CARMINE_DFLT_IP_DCTL_STATES
#define CARMINE_DFLT_IP_DCTL_RESERVE0
#define CARMINE_DFLT_IP_DCTL_FIFO_DEPTH
#define CARMINE_DFLT_IP_DCTL_RESERVE2
#define CARMINE_DFLT_IP_DCTL_DDRIF1
#define CARMINE_DFLT_IP_DCTL_DDRIF2
#define CARMINE_DFLT_IP_DCTL_MODE_AFT_RST
#define CARMINE_DFLT_IP_DCTL_STATES_AFT_RST
#define CARMINE_DFLT_IP_DCTL_IO_CONT0
#define CARMINE_DFLT_IP_DCTL_IO_CONT1
#define CARMINE_DCTL_DLL_RESET
#endif

#endif