Initial commit

This commit is contained in:
domenico
2025-06-24 15:51:28 +02:00
commit 22031d9dab
6862 changed files with 1462554 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
#ifndef __LEDS_NU801_H__
#define __LEDS_NU801_H__
/*
* Definitions for LED driver for NU801
*
* Kevin Paul Herbert
* Copyright (c) 2012, Meraki, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
*/
#include <linux/leds.h>
struct led_nu801_template {
const char *device_name; /* Name of the platform device */
const char *name; /* Name of this LED chain */
int num_leds; /* Number of LEDs in the chain */
unsigned cki; /* GPIO pin for CKI */
unsigned sdi; /* GPIO pin for SDI */
int lei; /* GPIO pin for LEI; < 0 if none */
u32 ndelay; /* Delay in nanoseconds */
enum led_brightness init_brightness[3]; /* Default rgb state */
#ifdef CONFIG_LEDS_TRIGGERS
const char *default_trigger; /* default trigger */
#endif
const char *led_colors[3]; /* rgb color order */
};
struct led_nu801_platform_data {
int num_controllers; /* Numnber of controllers */
struct led_nu801_template *template; /* Template per controller */
};
#endif /* __LEDS_NU801_H__ */

View File

@@ -0,0 +1,24 @@
/*
* NXP 74HC153 - Dual 4-input multiplexer defines
*
* Copyright (C) 2010 Gabor Juhos <juhosg@openwrt.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef _NXP_74HC153_H
#define _NXP_74HC153_H
#define NXP_74HC153_DRIVER_NAME "nxp-74hc153"
struct nxp_74hc153_platform_data {
unsigned gpio_base;
unsigned gpio_pin_s0;
unsigned gpio_pin_s1;
unsigned gpio_pin_1y;
unsigned gpio_pin_2y;
};
#endif /* _NXP_74HC153_H */

View File

@@ -0,0 +1,39 @@
/*
* Platform data definition for the built-in NAND controller of the
* Atheros AR934x SoCs
*
* Copyright (C) 2011-2012 Gabor Juhos <juhosg@openwrt.org>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*/
#ifndef _AR934X_NFC_PLATFORM_H
#define _AR934X_NFC_PLATFORM_H
#define AR934X_NFC_DRIVER_NAME "ar934x-nfc"
struct mtd_info;
struct mtd_partition;
enum ar934x_nfc_ecc_mode {
AR934X_NFC_ECC_SOFT = 0,
AR934X_NFC_ECC_HW,
AR934X_NFC_ECC_SOFT_BCH,
};
struct ar934x_nfc_platform_data {
const char *name;
struct mtd_partition *parts;
int nr_parts;
bool swap_dma;
enum ar934x_nfc_ecc_mode ecc_mode;
void (*hw_reset)(bool active);
void (*select_chip)(int chip_no);
int (*scan_fixup)(struct mtd_info *mtd);
};
#endif /* _AR934X_NFC_PLATFORM_H */

View File

@@ -0,0 +1,14 @@
#ifndef _GPIO_LATCH_H_
#define _GPIO_LATCH_H_
#define GPIO_LATCH_DRIVER_NAME "gpio-latch"
struct gpio_latch_platform_data {
int base;
int num_gpios;
int *gpios;
int le_gpio_index;
bool le_active_low;
};
#endif /* _GPIO_LATCH_H_ */

View File

@@ -0,0 +1,16 @@
#ifndef _RB91X_NAND_H_
#define _RB91X_NAND_H_
#define RB91X_NAND_DRIVER_NAME "rb91x-nand"
struct rb91x_nand_platform_data {
int gpio_nce; /* chip enable, active low */
int gpio_ale; /* address latch enable */
int gpio_cle; /* command latch enable */
int gpio_rdy;
int gpio_read;
int gpio_nrw; /* read/write enable, active low */
int gpio_nle; /* latch enable, active low */
};
#endif /* _RB91X_NAND_H_ */

View File

@@ -0,0 +1,19 @@
/*
* Platform data definition for the Vitesse VSC7385 ethernet switch driver
*
* Copyright (C) 2009 Gabor Juhos <juhosg@openwrt.org>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 as published
* by the Free Software Foundation.
*/
struct vsc7385_platform_data {
void (*reset)(void);
char *ucode_name;
struct {
u32 tx_ipg:5;
u32 bit2:1;
u32 clk_sel:3;
} mac_cfg;
};