#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/pinctrl/pinconf-generic.h>
#include "sh_pfc.h"
#define CPU_ALL_PORT(fn, pfx, sfx) …
#define IRQC_PIN_MUX(irq, pin) …
#define IRQC_PINS_MUX(irq, idx, pin) …
enum { … };
static const u16 pinmux_data[] = …;
#define __I …
#define __O …
#define __IO …
#define __PD …
#define __PU …
#define __PUD …
#define R8A7740_PIN_I_PD(pin) …
#define R8A7740_PIN_I_PU(pin) …
#define R8A7740_PIN_I_PU_PD(pin) …
#define R8A7740_PIN_IO(pin) …
#define R8A7740_PIN_IO_PD(pin) …
#define R8A7740_PIN_IO_PU(pin) …
#define R8A7740_PIN_IO_PU_PD(pin) …
#define R8A7740_PIN_O(pin) …
#define R8A7740_PIN_O_PU_PD(pin) …
static const struct sh_pfc_pin pinmux_pins[] = …;
static const unsigned int bsc_data_pins[] = …;
static const unsigned int bsc_data_mux[] = …;
static const unsigned int bsc_cs0_pins[] = …;
static const unsigned int bsc_cs0_mux[] = …;
static const unsigned int bsc_cs2_pins[] = …;
static const unsigned int bsc_cs2_mux[] = …;
static const unsigned int bsc_cs4_pins[] = …;
static const unsigned int bsc_cs4_mux[] = …;
static const unsigned int bsc_cs5a_0_pins[] = …;
static const unsigned int bsc_cs5a_0_mux[] = …;
static const unsigned int bsc_cs5a_1_pins[] = …;
static const unsigned int bsc_cs5a_1_mux[] = …;
static const unsigned int bsc_cs5b_pins[] = …;
static const unsigned int bsc_cs5b_mux[] = …;
static const unsigned int bsc_cs6a_pins[] = …;
static const unsigned int bsc_cs6a_mux[] = …;
static const unsigned int bsc_rd_we_pins[] = …;
static const unsigned int bsc_rd_we_mux[] = …;
static const unsigned int bsc_bs_pins[] = …;
static const unsigned int bsc_bs_mux[] = …;
static const unsigned int bsc_rdwr_pins[] = …;
static const unsigned int bsc_rdwr_mux[] = …;
static const unsigned int ceu0_data_0_7_pins[] = …;
static const unsigned int ceu0_data_0_7_mux[] = …;
static const unsigned int ceu0_data_8_15_0_pins[] = …;
static const unsigned int ceu0_data_8_15_0_mux[] = …;
static const unsigned int ceu0_data_8_15_1_pins[] = …;
static const unsigned int ceu0_data_8_15_1_mux[] = …;
static const unsigned int ceu0_clk_0_pins[] = …;
static const unsigned int ceu0_clk_0_mux[] = …;
static const unsigned int ceu0_clk_1_pins[] = …;
static const unsigned int ceu0_clk_1_mux[] = …;
static const unsigned int ceu0_clk_2_pins[] = …;
static const unsigned int ceu0_clk_2_mux[] = …;
static const unsigned int ceu0_sync_pins[] = …;
static const unsigned int ceu0_sync_mux[] = …;
static const unsigned int ceu0_field_pins[] = …;
static const unsigned int ceu0_field_mux[] = …;
static const unsigned int ceu1_data_pins[] = …;
static const unsigned int ceu1_data_mux[] = …;
static const unsigned int ceu1_clk_pins[] = …;
static const unsigned int ceu1_clk_mux[] = …;
static const unsigned int ceu1_sync_pins[] = …;
static const unsigned int ceu1_sync_mux[] = …;
static const unsigned int ceu1_field_pins[] = …;
static const unsigned int ceu1_field_mux[] = …;
static const unsigned int fsia_mclk_in_pins[] = …;
static const unsigned int fsia_mclk_in_mux[] = …;
static const unsigned int fsia_mclk_out_pins[] = …;
static const unsigned int fsia_mclk_out_mux[] = …;
static const unsigned int fsia_sclk_in_pins[] = …;
static const unsigned int fsia_sclk_in_mux[] = …;
static const unsigned int fsia_sclk_out_pins[] = …;
static const unsigned int fsia_sclk_out_mux[] = …;
static const unsigned int fsia_data_in_0_pins[] = …;
static const unsigned int fsia_data_in_0_mux[] = …;
static const unsigned int fsia_data_in_1_pins[] = …;
static const unsigned int fsia_data_in_1_mux[] = …;
static const unsigned int fsia_data_out_0_pins[] = …;
static const unsigned int fsia_data_out_0_mux[] = …;
static const unsigned int fsia_data_out_1_pins[] = …;
static const unsigned int fsia_data_out_1_mux[] = …;
static const unsigned int fsia_data_out_2_pins[] = …;
static const unsigned int fsia_data_out_2_mux[] = …;
static const unsigned int fsia_spdif_0_pins[] = …;
static const unsigned int fsia_spdif_0_mux[] = …;
static const unsigned int fsia_spdif_1_pins[] = …;
static const unsigned int fsia_spdif_1_mux[] = …;
static const unsigned int fsib_mclk_in_pins[] = …;
static const unsigned int fsib_mclk_in_mux[] = …;
static const unsigned int gether_rmii_pins[] = …;
static const unsigned int gether_rmii_mux[] = …;
static const unsigned int gether_mii_pins[] = …;
static const unsigned int gether_mii_mux[] = …;
static const unsigned int gether_gmii_pins[] = …;
static const unsigned int gether_gmii_mux[] = …;
static const unsigned int gether_int_pins[] = …;
static const unsigned int gether_int_mux[] = …;
static const unsigned int gether_link_pins[] = …;
static const unsigned int gether_link_mux[] = …;
static const unsigned int gether_wol_pins[] = …;
static const unsigned int gether_wol_mux[] = …;
static const unsigned int hdmi_pins[] = …;
static const unsigned int hdmi_mux[] = …;
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PIN_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PIN_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PIN_MUX(…);
IRQC_PIN_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PIN_MUX(…);
IRQC_PIN_MUX(…);
IRQC_PIN_MUX(…);
IRQC_PIN_MUX(…);
IRQC_PIN_MUX(…);
IRQC_PIN_MUX(…);
IRQC_PIN_MUX(…);
IRQC_PIN_MUX(…);
IRQC_PIN_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
IRQC_PINS_MUX(…);
static const unsigned int lcd0_data24_0_pins[] = …;
static const unsigned int lcd0_data24_0_mux[] = …;
static const unsigned int lcd0_data24_1_pins[] = …;
static const unsigned int lcd0_data24_1_mux[] = …;
static const unsigned int lcd0_display_pins[] = …;
static const unsigned int lcd0_display_mux[] = …;
static const unsigned int lcd0_lclk_0_pins[] = …;
static const unsigned int lcd0_lclk_0_mux[] = …;
static const unsigned int lcd0_lclk_1_pins[] = …;
static const unsigned int lcd0_lclk_1_mux[] = …;
static const unsigned int lcd0_sync_pins[] = …;
static const unsigned int lcd0_sync_mux[] = …;
static const unsigned int lcd0_sys_pins[] = …;
static const unsigned int lcd0_sys_mux[] = …;
static const unsigned int lcd1_data_pins[] = …;
static const unsigned int lcd1_data_mux[] = …;
static const unsigned int lcd1_display_pins[] = …;
static const unsigned int lcd1_display_mux[] = …;
static const unsigned int lcd1_lclk_pins[] = …;
static const unsigned int lcd1_lclk_mux[] = …;
static const unsigned int lcd1_sync_pins[] = …;
static const unsigned int lcd1_sync_mux[] = …;
static const unsigned int lcd1_sys_pins[] = …;
static const unsigned int lcd1_sys_mux[] = …;
static const unsigned int mmc0_data_0_pins[] = …;
static const unsigned int mmc0_data_0_mux[] = …;
static const unsigned int mmc0_ctrl_0_pins[] = …;
static const unsigned int mmc0_ctrl_0_mux[] = …;
static const unsigned int mmc0_data_1_pins[] = …;
static const unsigned int mmc0_data_1_mux[] = …;
static const unsigned int mmc0_ctrl_1_pins[] = …;
static const unsigned int mmc0_ctrl_1_mux[] = …;
static const unsigned int scifa0_data_pins[] = …;
static const unsigned int scifa0_data_mux[] = …;
static const unsigned int scifa0_clk_pins[] = …;
static const unsigned int scifa0_clk_mux[] = …;
static const unsigned int scifa0_ctrl_pins[] = …;
static const unsigned int scifa0_ctrl_mux[] = …;
static const unsigned int scifa1_data_pins[] = …;
static const unsigned int scifa1_data_mux[] = …;
static const unsigned int scifa1_clk_pins[] = …;
static const unsigned int scifa1_clk_mux[] = …;
static const unsigned int scifa1_ctrl_pins[] = …;
static const unsigned int scifa1_ctrl_mux[] = …;
static const unsigned int scifa2_data_pins[] = …;
static const unsigned int scifa2_data_mux[] = …;
static const unsigned int scifa2_clk_0_pins[] = …;
static const unsigned int scifa2_clk_0_mux[] = …;
static const unsigned int scifa2_clk_1_pins[] = …;
static const unsigned int scifa2_clk_1_mux[] = …;
static const unsigned int scifa2_ctrl_pins[] = …;
static const unsigned int scifa2_ctrl_mux[] = …;
static const unsigned int scifa3_data_0_pins[] = …;
static const unsigned int scifa3_data_0_mux[] = …;
static const unsigned int scifa3_clk_0_pins[] = …;
static const unsigned int scifa3_clk_0_mux[] = …;
static const unsigned int scifa3_ctrl_0_pins[] = …;
static const unsigned int scifa3_ctrl_0_mux[] = …;
static const unsigned int scifa3_data_1_pins[] = …;
static const unsigned int scifa3_data_1_mux[] = …;
static const unsigned int scifa3_clk_1_pins[] = …;
static const unsigned int scifa3_clk_1_mux[] = …;
static const unsigned int scifa3_ctrl_1_pins[] = …;
static const unsigned int scifa3_ctrl_1_mux[] = …;
static const unsigned int scifa4_data_0_pins[] = …;
static const unsigned int scifa4_data_0_mux[] = …;
static const unsigned int scifa4_data_1_pins[] = …;
static const unsigned int scifa4_data_1_mux[] = …;
static const unsigned int scifa4_data_2_pins[] = …;
static const unsigned int scifa4_data_2_mux[] = …;
static const unsigned int scifa4_clk_0_pins[] = …;
static const unsigned int scifa4_clk_0_mux[] = …;
static const unsigned int scifa4_clk_1_pins[] = …;
static const unsigned int scifa4_clk_1_mux[] = …;
static const unsigned int scifa5_data_0_pins[] = …;
static const unsigned int scifa5_data_0_mux[] = …;
static const unsigned int scifa5_data_1_pins[] = …;
static const unsigned int scifa5_data_1_mux[] = …;
static const unsigned int scifa5_data_2_pins[] = …;
static const unsigned int scifa5_data_2_mux[] = …;
static const unsigned int scifa5_clk_0_pins[] = …;
static const unsigned int scifa5_clk_0_mux[] = …;
static const unsigned int scifa5_clk_1_pins[] = …;
static const unsigned int scifa5_clk_1_mux[] = …;
static const unsigned int scifa6_data_pins[] = …;
static const unsigned int scifa6_data_mux[] = …;
static const unsigned int scifa6_clk_pins[] = …;
static const unsigned int scifa6_clk_mux[] = …;
static const unsigned int scifa7_data_pins[] = …;
static const unsigned int scifa7_data_mux[] = …;
static const unsigned int scifb_data_0_pins[] = …;
static const unsigned int scifb_data_0_mux[] = …;
static const unsigned int scifb_clk_0_pins[] = …;
static const unsigned int scifb_clk_0_mux[] = …;
static const unsigned int scifb_ctrl_0_pins[] = …;
static const unsigned int scifb_ctrl_0_mux[] = …;
static const unsigned int scifb_data_1_pins[] = …;
static const unsigned int scifb_data_1_mux[] = …;
static const unsigned int scifb_clk_1_pins[] = …;
static const unsigned int scifb_clk_1_mux[] = …;
static const unsigned int scifb_ctrl_1_pins[] = …;
static const unsigned int scifb_ctrl_1_mux[] = …;
static const unsigned int sdhi0_data_pins[] = …;
static const unsigned int sdhi0_data_mux[] = …;
static const unsigned int sdhi0_ctrl_pins[] = …;
static const unsigned int sdhi0_ctrl_mux[] = …;
static const unsigned int sdhi0_cd_pins[] = …;
static const unsigned int sdhi0_cd_mux[] = …;
static const unsigned int sdhi0_wp_pins[] = …;
static const unsigned int sdhi0_wp_mux[] = …;
static const unsigned int sdhi1_data_pins[] = …;
static const unsigned int sdhi1_data_mux[] = …;
static const unsigned int sdhi1_ctrl_pins[] = …;
static const unsigned int sdhi1_ctrl_mux[] = …;
static const unsigned int sdhi1_cd_pins[] = …;
static const unsigned int sdhi1_cd_mux[] = …;
static const unsigned int sdhi1_wp_pins[] = …;
static const unsigned int sdhi1_wp_mux[] = …;
static const unsigned int sdhi2_data_pins[] = …;
static const unsigned int sdhi2_data_mux[] = …;
static const unsigned int sdhi2_ctrl_pins[] = …;
static const unsigned int sdhi2_ctrl_mux[] = …;
static const unsigned int sdhi2_cd_0_pins[] = …;
static const unsigned int sdhi2_cd_0_mux[] = …;
static const unsigned int sdhi2_wp_0_pins[] = …;
static const unsigned int sdhi2_wp_0_mux[] = …;
static const unsigned int sdhi2_cd_1_pins[] = …;
static const unsigned int sdhi2_cd_1_mux[] = …;
static const unsigned int sdhi2_wp_1_pins[] = …;
static const unsigned int sdhi2_wp_1_mux[] = …;
static const unsigned int tpu0_to0_pins[] = …;
static const unsigned int tpu0_to0_mux[] = …;
static const unsigned int tpu0_to1_pins[] = …;
static const unsigned int tpu0_to1_mux[] = …;
static const unsigned int tpu0_to2_0_pins[] = …;
static const unsigned int tpu0_to2_0_mux[] = …;
static const unsigned int tpu0_to2_1_pins[] = …;
static const unsigned int tpu0_to2_1_mux[] = …;
static const unsigned int tpu0_to3_pins[] = …;
static const unsigned int tpu0_to3_mux[] = …;
static const struct sh_pfc_pin_group pinmux_groups[] = …;
static const char * const bsc_groups[] = …;
static const char * const ceu0_groups[] = …;
static const char * const ceu1_groups[] = …;
static const char * const fsia_groups[] = …;
static const char * const fsib_groups[] = …;
static const char * const gether_groups[] = …;
static const char * const hdmi_groups[] = …;
static const char * const intc_groups[] = …;
static const char * const lcd0_groups[] = …;
static const char * const lcd1_groups[] = …;
static const char * const mmc0_groups[] = …;
static const char * const scifa0_groups[] = …;
static const char * const scifa1_groups[] = …;
static const char * const scifa2_groups[] = …;
static const char * const scifa3_groups[] = …;
static const char * const scifa4_groups[] = …;
static const char * const scifa5_groups[] = …;
static const char * const scifa6_groups[] = …;
static const char * const scifa7_groups[] = …;
static const char * const scifb_groups[] = …;
static const char * const sdhi0_groups[] = …;
static const char * const sdhi1_groups[] = …;
static const char * const sdhi2_groups[] = …;
static const char * const tpu0_groups[] = …;
static const struct sh_pfc_function pinmux_functions[] = …;
static const struct pinmux_cfg_reg pinmux_config_regs[] = …;
static const struct pinmux_data_reg pinmux_data_regs[] = …;
static const struct pinmux_irq pinmux_irqs[] = …;
struct r8a7740_portcr_group { … };
static const struct r8a7740_portcr_group r8a7740_portcr_offsets[] = …;
static int r8a7740_pin_to_portcr(unsigned int pin)
{ … }
static const struct sh_pfc_soc_operations r8a7740_pfc_ops = …;
const struct sh_pfc_soc_info r8a7740_pinmux_info = …;