From 871480933a1c28f8a9fed4c4d34d06c439a7a422 Mon Sep 17 00:00:00 2001 From: Srikant Patnaik Date: Sun, 11 Jan 2015 12:28:04 +0530 Subject: Moved, renamed, and deleted files The original directory structure was scattered and unorganized. Changes are basically to make it look like kernel structure. --- ANDROID_3.4.5/include/linux/can/platform/cc770.h | 33 ---------------- ANDROID_3.4.5/include/linux/can/platform/flexcan.h | 20 ---------- ANDROID_3.4.5/include/linux/can/platform/mcp251x.h | 34 ----------------- ANDROID_3.4.5/include/linux/can/platform/sja1000.h | 35 ----------------- ANDROID_3.4.5/include/linux/can/platform/ti_hecc.h | 44 ---------------------- 5 files changed, 166 deletions(-) delete mode 100644 ANDROID_3.4.5/include/linux/can/platform/cc770.h delete mode 100644 ANDROID_3.4.5/include/linux/can/platform/flexcan.h delete mode 100644 ANDROID_3.4.5/include/linux/can/platform/mcp251x.h delete mode 100644 ANDROID_3.4.5/include/linux/can/platform/sja1000.h delete mode 100644 ANDROID_3.4.5/include/linux/can/platform/ti_hecc.h (limited to 'ANDROID_3.4.5/include/linux/can/platform') diff --git a/ANDROID_3.4.5/include/linux/can/platform/cc770.h b/ANDROID_3.4.5/include/linux/can/platform/cc770.h deleted file mode 100644 index 7702641f..00000000 --- a/ANDROID_3.4.5/include/linux/can/platform/cc770.h +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef _CAN_PLATFORM_CC770_H_ -#define _CAN_PLATFORM_CC770_H_ - -/* CPU Interface Register (0x02) */ -#define CPUIF_CEN 0x01 /* Clock Out Enable */ -#define CPUIF_MUX 0x04 /* Multiplex */ -#define CPUIF_SLP 0x08 /* Sleep */ -#define CPUIF_PWD 0x10 /* Power Down Mode */ -#define CPUIF_DMC 0x20 /* Divide Memory Clock */ -#define CPUIF_DSC 0x40 /* Divide System Clock */ -#define CPUIF_RST 0x80 /* Hardware Reset Status */ - -/* Clock Out Register (0x1f) */ -#define CLKOUT_CD_MASK 0x0f /* Clock Divider mask */ -#define CLKOUT_SL_MASK 0x30 /* Slew Rate mask */ -#define CLKOUT_SL_SHIFT 4 - -/* Bus Configuration Register (0x2f) */ -#define BUSCFG_DR0 0x01 /* Disconnect RX0 Input / Select RX input */ -#define BUSCFG_DR1 0x02 /* Disconnect RX1 Input / Silent mode */ -#define BUSCFG_DT1 0x08 /* Disconnect TX1 Output */ -#define BUSCFG_POL 0x20 /* Polarity dominant or recessive */ -#define BUSCFG_CBY 0x40 /* Input Comparator Bypass */ - -struct cc770_platform_data { - u32 osc_freq; /* CAN bus oscillator frequency in Hz */ - - u8 cir; /* CPU Interface Register */ - u8 cor; /* Clock Out Register */ - u8 bcr; /* Bus Configuration Register */ -}; - -#endif /* !_CAN_PLATFORM_CC770_H_ */ diff --git a/ANDROID_3.4.5/include/linux/can/platform/flexcan.h b/ANDROID_3.4.5/include/linux/can/platform/flexcan.h deleted file mode 100644 index 72b713ab..00000000 --- a/ANDROID_3.4.5/include/linux/can/platform/flexcan.h +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright (C) 2010 Marc Kleine-Budde - * - * This file is released under the GPLv2 - * - */ - -#ifndef __CAN_PLATFORM_FLEXCAN_H -#define __CAN_PLATFORM_FLEXCAN_H - -/** - * struct flexcan_platform_data - flex CAN controller platform data - * @transceiver_enable: - called to power on/off the transceiver - * - */ -struct flexcan_platform_data { - void (*transceiver_switch)(int enable); -}; - -#endif /* __CAN_PLATFORM_FLEXCAN_H */ diff --git a/ANDROID_3.4.5/include/linux/can/platform/mcp251x.h b/ANDROID_3.4.5/include/linux/can/platform/mcp251x.h deleted file mode 100644 index 089fe432..00000000 --- a/ANDROID_3.4.5/include/linux/can/platform/mcp251x.h +++ /dev/null @@ -1,34 +0,0 @@ -#ifndef __CAN_PLATFORM_MCP251X_H__ -#define __CAN_PLATFORM_MCP251X_H__ - -/* - * - * CAN bus driver for Microchip 251x CAN Controller with SPI Interface - * - */ - -#include - -/** - * struct mcp251x_platform_data - MCP251X SPI CAN controller platform data - * @oscillator_frequency: - oscillator frequency in Hz - * @irq_flags: - IRQF configuration flags - * @board_specific_setup: - called before probing the chip (power,reset) - * @transceiver_enable: - called to power on/off the transceiver - * @power_enable: - called to power on/off the mcp *and* the - * transceiver - * - * Please note that you should define power_enable or transceiver_enable or - * none of them. Defining both of them is no use. - * - */ - -struct mcp251x_platform_data { - unsigned long oscillator_frequency; - unsigned long irq_flags; - int (*board_specific_setup)(struct spi_device *spi); - int (*transceiver_enable)(int enable); - int (*power_enable) (int enable); -}; - -#endif /* __CAN_PLATFORM_MCP251X_H__ */ diff --git a/ANDROID_3.4.5/include/linux/can/platform/sja1000.h b/ANDROID_3.4.5/include/linux/can/platform/sja1000.h deleted file mode 100644 index 96f8fcc7..00000000 --- a/ANDROID_3.4.5/include/linux/can/platform/sja1000.h +++ /dev/null @@ -1,35 +0,0 @@ -#ifndef _CAN_PLATFORM_SJA1000_H_ -#define _CAN_PLATFORM_SJA1000_H_ - -/* clock divider register */ -#define CDR_CLKOUT_MASK 0x07 -#define CDR_CLK_OFF 0x08 /* Clock off (CLKOUT pin) */ -#define CDR_RXINPEN 0x20 /* TX1 output is RX irq output */ -#define CDR_CBP 0x40 /* CAN input comparator bypass */ -#define CDR_PELICAN 0x80 /* PeliCAN mode */ - -/* output control register */ -#define OCR_MODE_BIPHASE 0x00 -#define OCR_MODE_TEST 0x01 -#define OCR_MODE_NORMAL 0x02 -#define OCR_MODE_CLOCK 0x03 -#define OCR_MODE_MASK 0x07 -#define OCR_TX0_INVERT 0x04 -#define OCR_TX0_PULLDOWN 0x08 -#define OCR_TX0_PULLUP 0x10 -#define OCR_TX0_PUSHPULL 0x18 -#define OCR_TX1_INVERT 0x20 -#define OCR_TX1_PULLDOWN 0x40 -#define OCR_TX1_PULLUP 0x80 -#define OCR_TX1_PUSHPULL 0xc0 -#define OCR_TX_MASK 0xfc -#define OCR_TX_SHIFT 2 - -struct sja1000_platform_data { - u32 osc_freq; /* CAN bus oscillator frequency in Hz */ - - u8 ocr; /* output control register */ - u8 cdr; /* clock divider register */ -}; - -#endif /* !_CAN_PLATFORM_SJA1000_H_ */ diff --git a/ANDROID_3.4.5/include/linux/can/platform/ti_hecc.h b/ANDROID_3.4.5/include/linux/can/platform/ti_hecc.h deleted file mode 100644 index af17cb3f..00000000 --- a/ANDROID_3.4.5/include/linux/can/platform/ti_hecc.h +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef __CAN_PLATFORM_TI_HECC_H__ -#define __CAN_PLATFORM_TI_HECC_H__ - -/* - * TI HECC (High End CAN Controller) driver platform header - * - * Copyright (C) 2009 Texas Instruments Incorporated - http://www.ti.com/ - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation version 2. - * - * This program is distributed as is WITHOUT ANY WARRANTY of any - * kind, whether express or implied; without even the implied warranty - * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - */ - -/** - * struct hecc_platform_data - HECC Platform Data - * - * @scc_hecc_offset: mostly 0 - should really never change - * @scc_ram_offset: SCC RAM offset - * @hecc_ram_offset: HECC RAM offset - * @mbx_offset: Mailbox RAM offset - * @int_line: Interrupt line to use - 0 or 1 - * @version: version for future use - * @transceiver_switch: platform specific callback fn for transceiver control - * - * Platform data structure to get all platform specific settings. - * this structure also accounts the fact that the IP may have different - * RAM and mailbox offsets for different SOC's - */ -struct ti_hecc_platform_data { - u32 scc_hecc_offset; - u32 scc_ram_offset; - u32 hecc_ram_offset; - u32 mbx_offset; - u32 int_line; - u32 version; - void (*transceiver_switch) (int); -}; -#endif -- cgit