linux/drivers/pinctrl/renesas/pfc-emev2.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Pin Function Controller Support
 *
 * Copyright (C) 2015 Niklas Söderlund
 */
#include <linux/kernel.h>

#include "sh_pfc.h"

#define CPU_ALL_PORT(fn, pfx, sfx)

#define CPU_ALL_NOGP(fn)

enum {};

/*
 * Pins not associated with a GPIO port.
 */
enum {};

/* Expand to a list of sh_pfc_pin entries (named PORT#).
 * NOTE: No config are recorded since the driver do not handle pinconf. */
#define __PIN_CFG(pn, pfx, sfx)
#define PINMUX_EMEV_GPIO_ALL()

static const struct sh_pfc_pin pinmux_pins[] =;

/* Expand to a list of name_DATA, name_FN marks */
#define __PORT_DATA(pn, pfx, sfx)
#define PINMUX_EMEV_DATA_ALL()

static const u16 pinmux_data[] =;


#define EMEV_MUX_PIN(name, pin, mark)

/* = [ System ] =========== */
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();

/* = [ External Memory] === */
static const unsigned int ab_main_pins[] =;
static const unsigned int ab_main_mux[] =;

EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();

/* = [ CAM ] ============== */
EMEV_MUX_PIN();
static const unsigned int cam_pins[] =;
static const unsigned int cam_mux[] =;

/* = [ CF ] -============== */
static const unsigned int cf_ctrl_pins[] =;
static const unsigned int cf_ctrl_mux[] =;

static const unsigned int cf_data_pins[] =;
static const unsigned int cf_data_mux[] =;

/* = [ DTV ] ============== */
static const unsigned int dtv_a_pins[] =;
static const unsigned int dtv_a_mux[] =;

static const unsigned int dtv_b_pins[] =;
static const unsigned int dtv_b_mux[] =;

/* = [ IIC0 ] ============= */
static const unsigned int iic0_pins[] =;
static const unsigned int iic0_mux[] =;

/* = [ IIC1 ] ============= */
static const unsigned int iic1_pins[] =;
static const unsigned int iic1_mux[] =;

/* = [ JTAG ] ============= */
static const unsigned int jtag_pins[] =;
static const unsigned int jtag_mux[] =;

/* = [ LCD/YUV ] ========== */
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();

static const unsigned int lcd3_sync_pins[] =;
static const unsigned int lcd3_sync_mux[] =;

static const unsigned int lcd3_rgb888_pins[] =;
static const unsigned int lcd3_rgb888_mux[] =;

EMEV_MUX_PIN();
static const unsigned int yuv3_pins[] =;
static const unsigned int yuv3_mux[] =;

/* = [ NTSC ] ============= */
EMEV_MUX_PIN();
static const unsigned int ntsc_data_pins[] =;
static const unsigned int ntsc_data_mux[] =;

/* = [ PWM0 ] ============= */
EMEV_MUX_PIN();

/* = [ PWM1 ] ============= */
EMEV_MUX_PIN();

/* = [ SD ] =============== */
EMEV_MUX_PIN();

/* = [ SDIO0 ] ============ */
static const unsigned int sdi0_ctrl_pins[] =;
static const unsigned int sdi0_ctrl_mux[] =;

static const unsigned int sdi0_data_pins[] =;
static const unsigned int sdi0_data_mux[] =;

/* = [ SDIO1 ] ============ */
static const unsigned int sdi1_ctrl_pins[] =;
static const unsigned int sdi1_ctrl_mux[] =;

static const unsigned int sdi1_data_pins[] =;
static const unsigned int sdi1_data_mux[] =;

/* = [ SDIO2 ] ============ */
static const unsigned int sdi2_ctrl_pins[] =;
static const unsigned int sdi2_ctrl_mux[] =;

static const unsigned int sdi2_data_pins[] =;
static const unsigned int sdi2_data_mux[] =;

/* = [ TP33 ] ============= */
static const unsigned int tp33_pins[] =;
static const unsigned int tp33_mux[] =;

/* = [ UART1 ] ============ */
static const unsigned int uart1_data_pins[] =;
static const unsigned int uart1_data_mux[] =;

static const unsigned int uart1_ctrl_pins[] =;
static const unsigned int uart1_ctrl_mux[] =;

/* = [ UART2 ] ============ */
static const unsigned int uart2_data_pins[] =;
static const unsigned int uart2_data_mux[] =;

/* = [ UART3 ] ============ */
static const unsigned int uart3_data_pins[] =;
static const unsigned int uart3_data_mux[] =;

/* = [ USB ] ============== */
EMEV_MUX_PIN();

/* = [ USI0 ] ============== */
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();

/* = [ USI1 ] ============== */
static const unsigned int usi1_pins[] =;
static const unsigned int usi1_mux[] =;

/* = [ USI2 ] ============== */
static const unsigned int usi2_pins[] =;
static const unsigned int usi2_mux[] =;
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();

/* = [ USI3 ] ============== */
static const unsigned int usi3_pins[] =;
static const unsigned int usi3_mux[] =;
EMEV_MUX_PIN();

/* = [ USI4 ] ============== */
static const unsigned int usi4_pins[] =;
static const unsigned int usi4_mux[] =;
EMEV_MUX_PIN();
EMEV_MUX_PIN();

/* = [ USI5 ] ============== */
static const unsigned int usi5_a_pins[] =;
static const unsigned int usi5_a_mux[] =;
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();

static const unsigned int usi5_b_pins[] =;
static const unsigned int usi5_b_mux[] =;
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();
EMEV_MUX_PIN();

static const struct sh_pfc_pin_group pinmux_groups[] =;

static const char * const ab_groups[] =;

static const char * const cam_groups[] =;

static const char * const cf_groups[] =;

static const char * const dtv_groups[] =;

static const char * const err_rst_reqb_groups[] =;

static const char * const ext_clki_groups[] =;

static const char * const iic0_groups[] =;

static const char * const iic1_groups[] =;

static const char * const jtag_groups[] =;

static const char * const lcd_groups[] =;

static const char * const lowpwr_groups[] =;

static const char * const ntsc_groups[] =;

static const char * const pwm0_groups[] =;

static const char * const pwm1_groups[] =;

static const char * const ref_clko_groups[] =;

static const char * const sd_groups[] =;

static const char * const sdi0_groups[] =;

static const char * const sdi1_groups[] =;

static const char * const sdi2_groups[] =;

static const char * const tp33_groups[] =;

static const char * const uart1_groups[] =;

static const char * const uart2_groups[] =;

static const char * const uart3_groups[] =;

static const char * const usb_groups[] =;

static const char * const usi0_groups[] =;

static const char * const usi1_groups[] =;

static const char * const usi2_groups[] =;

static const char * const usi3_groups[] =;

static const char * const usi4_groups[] =;

static const char * const usi5_groups[] =;

static const struct sh_pfc_function pinmux_functions[] =;

static const struct pinmux_cfg_reg pinmux_config_regs[] =;

const struct sh_pfc_soc_info emev2_pinmux_info =;