summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/configs/devkit3250.h94
-rw-r--r--include/configs/km/pg-wcom-ls102xa.h13
-rw-r--r--include/configs/omap3_beagle.h200
-rw-r--r--include/configs/omap4_panda.h16
-rw-r--r--include/configs/omap4_sdp4430.h23
-rw-r--r--include/twl6030.h224
6 files changed, 0 insertions, 570 deletions
diff --git a/include/configs/devkit3250.h b/include/configs/devkit3250.h
deleted file mode 100644
index d85aeaafe51..00000000000
--- a/include/configs/devkit3250.h
+++ /dev/null
@@ -1,94 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Embest/Timll DevKit3250 board configuration file
- *
- * Copyright (C) 2011-2015 Vladimir Zapolskiy <vz@mleia.com>
- */
-
-#ifndef __CONFIG_DEVKIT3250_H__
-#define __CONFIG_DEVKIT3250_H__
-
-/* SoC and board defines */
-#include <linux/sizes.h>
-#include <asm/arch/cpu.h>
-
-/*
- * Memory configurations
- */
-#define CFG_SYS_SDRAM_BASE EMC_DYCS0_BASE
-#define CFG_SYS_SDRAM_SIZE SZ_64M
-
-/*
- * DMA
- */
-
-/*
- * GPIO
- */
-
-/*
- * NOR Flash
- */
-#define CFG_SYS_FLASH_BASE EMC_CS0_BASE
-#define CFG_SYS_FLASH_SIZE SZ_4M
-
-/*
- * NAND controller
- */
-#define CFG_SYS_NAND_BASE SLC_NAND_BASE
-#define CFG_SYS_NAND_BASE_LIST { CFG_SYS_NAND_BASE }
-
-/*
- * NAND chip timings
- */
-#define CFG_LPC32XX_NAND_SLC_WDR_CLKS 14
-#define CFG_LPC32XX_NAND_SLC_WWIDTH 66666666
-#define CFG_LPC32XX_NAND_SLC_WHOLD 200000000
-#define CFG_LPC32XX_NAND_SLC_WSETUP 50000000
-#define CFG_LPC32XX_NAND_SLC_RDR_CLKS 14
-#define CFG_LPC32XX_NAND_SLC_RWIDTH 66666666
-#define CFG_LPC32XX_NAND_SLC_RHOLD 200000000
-#define CFG_LPC32XX_NAND_SLC_RSETUP 50000000
-
-/*
- * USB
- */
-#define CFG_USB_ISP1301_I2C_ADDR 0x2d
-
-/*
- * U-Boot General Configurations
- */
-
-/*
- * Pass open firmware flat tree
- */
-
-/*
- * Environment
- */
-
-#define CFG_EXTRA_ENV_SETTINGS \
- "ethaddr=00:01:90:00:C0:81\0" \
- "dtbaddr=0x81000000\0" \
- "nfsroot=/opt/projects/images/vladimir/oe/devkit3250/rootfs\0" \
- "tftpdir=vladimir/oe/devkit3250\0" \
- "userargs=oops=panic\0"
-
-/*
- * U-Boot Commands
- */
-
-/* U-Boot will be 0x60000 bytes, loaded and run at CONFIG_TEXT_BASE */
-#define CFG_SYS_NAND_U_BOOT_SIZE 0x60000
-
-#define CFG_SYS_NAND_U_BOOT_START CONFIG_TEXT_BASE
-#define CFG_SYS_NAND_U_BOOT_DST CONFIG_TEXT_BASE
-
-/* See common/spl/spl.c spl_set_header_raw_uboot() */
-
-/*
- * Include SoC specific configuration
- */
-#include <asm/arch/config.h>
-
-#endif /* __CONFIG_DEVKIT3250_H__*/
diff --git a/include/configs/km/pg-wcom-ls102xa.h b/include/configs/km/pg-wcom-ls102xa.h
index 15ef68a0507..3a243d789c0 100644
--- a/include/configs/km/pg-wcom-ls102xa.h
+++ b/include/configs/km/pg-wcom-ls102xa.h
@@ -145,19 +145,6 @@
*/
#define CFG_SYS_NS16550_CLK get_serial_clock()
-/*
- * I2C
- */
-
-#define CFG_SYS_I2C_MAX_HOPS 1
-#define CFG_SYS_NUM_I2C_BUSES 3
-#define I2C_MUX_PCA_ADDR 0x70
-#define I2C_MUX_CH_DEFAULT 0x0
-#define CFG_SYS_I2C_BUSES { {0, {I2C_NULL_HOP} }, \
- {0, {{I2C_MUX_PCA9547, 0x70, 1 } } }, \
- {1, {I2C_NULL_HOP} }, \
- }
-
#define CFG_SMP_PEN_ADDR 0x01ee0200
#define HWCONFIG_BUFFER_SIZE 256
diff --git a/include/configs/omap3_beagle.h b/include/configs/omap3_beagle.h
deleted file mode 100644
index af7cb3513f8..00000000000
--- a/include/configs/omap3_beagle.h
+++ /dev/null
@@ -1,200 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2006-2008
- * Texas Instruments.
- * Richard Woodruff <r-woodruff2@ti.com>
- * Syed Mohammed Khasim <x0khasim@ti.com>
- *
- * Configuration settings for the TI OMAP3530 Beagle board.
- */
-
-#ifndef __CONFIG_H
-#define __CONFIG_H
-
-#include <configs/ti_omap3_common.h>
-
-/*
- * We are only ever GP parts and will utilize all of the "downloaded image"
- * area in SRAM which starts at 0x40200000 and ends at 0x4020FFFF (64KB).
- */
-
-/* NAND */
-#if defined(CONFIG_MTD_RAW_NAND)
-#define CFG_SYS_FLASH_BASE NAND_BASE
-#define CFG_SYS_NAND_ECCPOS {2, 3, 4, 5, 6, 7, 8, 9,\
- 10, 11, 12, 13}
-#define CFG_SYS_NAND_ECCSIZE 512
-#define CFG_SYS_NAND_ECCBYTES 3
-/* NAND: SPL falcon mode configs */
-#endif /* CONFIG_MTD_RAW_NAND */
-
-/* Enable Multi Bus support for I2C */
-#define CFG_I2C_MULTI_BUS
-
-/* DSS Support */
-
-/* TWL4030 LED Support */
-
-#define MEM_LAYOUT_ENV_SETTINGS \
- DEFAULT_LINUX_BOOT_ENV
-
-#define BOOTENV_DEV_LEGACY_MMC(devtypeu, devtypel, instance) \
- "bootcmd_" #devtypel #instance "=" \
- "setenv mmcdev " #instance "; " \
- "run mmcboot\0"
-#define BOOTENV_DEV_NAME_LEGACY_MMC(devtypeu, devtypel, instance) \
- #devtypel #instance " "
-
-#if defined(CONFIG_MTD_RAW_NAND)
-
-#define BOOTENV_DEV_NAND(devtypeu, devtypel, instance) \
- "bootcmd_" #devtypel #instance "=" \
- "if test ${mtdids} = '' || test ${mtdparts} = '' ; then " \
- "echo NAND boot disabled: No mtdids and/or mtdparts; " \
- "else " \
- "run nandboot; " \
- "fi\0"
-#define BOOTENV_DEV_NAME_NAND(devtypeu, devtypel, instance) \
- #devtypel #instance " "
-
-#define BOOT_TARGET_DEVICES(func) \
- func(MMC, mmc, 0) \
- func(LEGACY_MMC, legacy_mmc, 0) \
- func(UBIFS, ubifs, 0, rootfs, rootfs) \
- func(NAND, nand, 0)
-
-#else /* !CONFIG_MTD_RAW_NAND */
-
-#define BOOT_TARGET_DEVICES(func) \
- func(MMC, mmc, 0) \
- func(LEGACY_MMC, legacy_mmc, 0)
-
-#endif /* CONFIG_MTD_RAW_NAND */
-
-#include <config_distro_bootcmd.h>
-
-#define CFG_EXTRA_ENV_SETTINGS \
- MEM_LAYOUT_ENV_SETTINGS \
- "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
- "fdt_high=0xffffffff\0" \
- "console=ttyO2,115200n8\0" \
- "bootdir=/boot\0" \
- "bootenv=uEnv.txt\0" \
- "bootfile=zImage\0" \
- "bootpart=0:2\0" \
- "usbtty=cdc_acm\0" \
- "mpurate=auto\0" \
- "buddy=none\0" \
- "camera=none\0" \
- "vram=12M\0" \
- "dvimode=640x480MR-16@60\0" \
- "defaultdisplay=dvi\0" \
- "defaultargs=setenv defargs " \
- "mpurate=${mpurate} " \
- "buddy=${buddy} "\
- "camera=${camera} "\
- "vram=${vram} " \
- "omapfb.mode=dvi:${dvimode} " \
- "omapdss.def_disp=${defaultdisplay}\0" \
- "optargs=\0" \
- "findfdt=" \
- "if test $beaglerev = AxBx; then " \
- "setenv fdtfile omap3-beagle.dtb; fi; " \
- "if test $beaglerev = Cx; then " \
- "setenv fdtfile omap3-beagle.dtb; fi; " \
- "if test $beaglerev = C4; then " \
- "setenv fdtfile omap3-beagle.dtb; fi; " \
- "if test $beaglerev = xMAB; then " \
- "setenv fdtfile omap3-beagle-xm-ab.dtb; fi; " \
- "if test $beaglerev = xMC; then " \
- "setenv fdtfile omap3-beagle-xm.dtb; fi; " \
- "if test $fdtfile = undefined; then " \
- "echo WARNING: Could not determine device tree to use; fi\0" \
- "mmcdev=0\0" \
- "mmcpart=2\0" \
- "mmcroot=/dev/mmcblk0p2 rw\0" \
- "mmcrootfstype=ext4 rootwait\0" \
- "mmcargs=run defaultargs; setenv bootargs console=${console} " \
- "${mtdparts} " \
- "${defargs} " \
- "${optargs} " \
- "root=${mmcroot} " \
- "rootfstype=${mmcrootfstype}\0" \
- "userbutton_xm=gpio input 4;\0" \
- "userbutton_nonxm=gpio input 7;\0" \
- "userbutton=if gpio input 173; then " \
- "run userbutton_xm; " \
- "else " \
- "run userbutton_nonxm; " \
- "fi;\0" \
- "loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}\0" \
- "ext4bootenv=ext4load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootenv}\0" \
- "importbootenv=echo Importing environment from mmc${mmcdev} ...; " \
- "env import -t ${loadaddr} ${filesize}\0" \
- "mmcbootenv=setenv bootpart ${mmcdev}:${mmcpart}; " \
- "mmc dev ${mmcdev}; " \
- "if mmc rescan; then " \
- "if run userbutton; then " \
- "setenv bootenv uEnv.txt;" \
- "else " \
- "setenv bootenv user.txt;" \
- "fi;" \
- "run loadbootenv && run importbootenv; " \
- "run ext4bootenv && run importbootenv; " \
- "if test -n $uenvcmd; then " \
- "echo Running uenvcmd ...; " \
- "run uenvcmd; " \
- "fi; " \
- "fi\0" \
- "validatefdt=" \
- "if test $beaglerev = xMAB; then " \
- "if test ! -e mmc ${bootpart} ${bootdir}/${fdtfile}; then " \
- "setenv fdtfile omap3-beagle-xm.dtb; " \
- "fi; " \
- "fi; \0" \
- "loadimage=ext4load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}\0" \
- "loaddtb=run validatefdt; ext4load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}\0" \
- "mmcboot=run mmcbootenv; " \
- "if run loadimage && run loaddtb; then " \
- "echo Booting ${bootdir}/${bootfile} from mmc ${bootpart} ...; " \
- "run mmcargs; " \
- "if test ${bootfile} = uImage; then " \
- "bootm ${loadaddr} - ${fdtaddr}; " \
- "fi; " \
- "if test ${bootfile} = zImage; then " \
- "bootz ${loadaddr} - ${fdtaddr}; " \
- "fi; " \
- "fi\0" \
- "nandroot=ubi0:rootfs ubi.mtd=rootfs rw\0" \
- "nandrootfstype=ubifs rootwait\0" \
- "nandargs=run defaultargs; setenv bootargs console=${console} " \
- "${mtdparts} " \
- "${defargs} " \
- "${optargs} " \
- "root=${nandroot} " \
- "rootfstype=${nandrootfstype}\0" \
- "nandboot=if nand read ${loadaddr} kernel && nand read ${fdtaddr} dtb; then " \
- "echo Booting uImage from NAND MTD 'kernel' partition ...; " \
- "run nandargs; " \
- "bootm ${loadaddr} - ${fdtaddr}; " \
- "fi\0" \
- "loadramdisk=ext4load mmc ${bootpart} ${rdaddr} ${bootdir}/${ramdisk}\0" \
- "ramdisk=rootfs.ext2.gz.uboot\0" \
- "ramdisk_size=16384\0" \
- "ramroot=/dev/ram rw\0" \
- "ramrootfstype=ext2\0" \
- "ramargs=run defaultargs; setenv bootargs console=${console} " \
- "${mtdparts} " \
- "${defargs} " \
- "${optargs} " \
- "root=${ramroot} ramdisk_size=${ramdisk_size} " \
- "rootfstype=${ramrootfstype}\0" \
- "ramboot=run mmcbootenv; " \
- "if run loadimage && run loaddtb && run loadramdisk; then " \
- "echo Booting ${bootdir}/${bootfile} from mmc ${bootpart} w/ramdisk ...; " \
- "run ramargs; " \
- "bootz ${loadaddr} ${rdaddr} ${fdtaddr}; " \
- "fi\0" \
- BOOTENV
-
-#endif /* __CONFIG_H */
diff --git a/include/configs/omap4_panda.h b/include/configs/omap4_panda.h
deleted file mode 100644
index 69749ab6302..00000000000
--- a/include/configs/omap4_panda.h
+++ /dev/null
@@ -1,16 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2010
- * Texas Instruments Incorporated.
- * Steve Sakoman <steve@sakoman.com>
- *
- * Configuration settings for the TI OMAP4 Panda board.
- * See ti_omap4_common.h for OMAP4 common part
- */
-
-#ifndef __CONFIG_PANDA_H
-#define __CONFIG_PANDA_H
-
-#include <configs/ti_omap4_common.h>
-
-#endif /* __CONFIG_PANDA_H */
diff --git a/include/configs/omap4_sdp4430.h b/include/configs/omap4_sdp4430.h
deleted file mode 100644
index fb210ce69b3..00000000000
--- a/include/configs/omap4_sdp4430.h
+++ /dev/null
@@ -1,23 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2010
- * Texas Instruments Incorporated.
- * Aneesh V <aneesh@ti.com>
- * Steve Sakoman <steve@sakoman.com>
- *
- * Configuration settings for the TI SDP4430 board.
- * See ti_omap4_common.h for OMAP4 common part
- */
-
-#ifndef __CONFIG_SDP4430_H
-#define __CONFIG_SDP4430_H
-
-/*
- * High Level Configuration Options
- */
-
-#include <configs/ti_omap4_common.h>
-
-/* ENV related config options */
-
-#endif /* __CONFIG_SDP4430_H */
diff --git a/include/twl6030.h b/include/twl6030.h
deleted file mode 100644
index e3a1058091a..00000000000
--- a/include/twl6030.h
+++ /dev/null
@@ -1,224 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2010
- * Texas Instruments, <www.ti.com>
- */
-
-#ifndef TWL6030_H
-#define TWL6030_H
-
-#include <i2c.h>
-
-/* I2C chip addresses */
-#define TWL6030_CHIP_PM 0x48
-
-#define TWL6030_CHIP_USB 0x49
-#define TWL6030_CHIP_ADC 0x49
-#define TWL6030_CHIP_CHARGER 0x49
-#define TWL6030_CHIP_PWM 0x49
-
-/* Slave Address 0x48 */
-#define TWL6030_STS_HW_CONDITIONS 0x21
-
-#define TWL6030_STS_HW_CONDITIONS_PWRON (1 << 0)
-
-#define TWL6030_PHOENIX_DEV_ON 0x25
-
-#define TWL6030_PHOENIX_APP_DEVOFF (1 << 0)
-#define TWL6030_PHOENIX_CON_DEVOFF (1 << 1)
-#define TWL6030_PHOENIX_MOD_DEVOFF (1 << 2)
-
-#define TWL6030_PH_STS_BOOT 0x29
-
-#define TWL6030_PH_STS_BOOT0 (1 << 0)
-#define TWL6030_PH_STS_BOOT1 (1 << 1)
-#define TWL6030_PH_STS_BOOT2 (1 << 2)
-#define TWL6030_PH_STS_BOOT3 (1 << 3)
-
-#define TWL6030_VAUX1_CFG_STATE 0x86
-#define TWL6030_VAUX1_CFG_VOLTAGE 0x87
-#define TWL6030_VMMC_CFG_STATE 0x9A
-#define TWL6030_VMMC_CFG_VOLTAGE 0x9B
-#define TWL6030_VUSB_CFG_STATE 0xA2
-#define TWL6030_VUSB_CFG_VOLTAGE 0xA3
-
-#define TWL6030_CFG_GRP_P1 (1 << 0)
-#define TWL6030_CFG_STATE_ON (1 << 0)
-#define TWL6030_CFG_STATE_P1 (TWL6030_CFG_GRP_P1 << 5)
-#define TWL6030_CFG_VOLTAGE_18 0x09
-#define TWL6030_CFG_VOLTAGE_28 0x13
-#define TWL6030_CFG_VOLTAGE_30 0x15
-#define TWL6030_CFG_VOLTAGE_33 0x18
-
-#define MISC1 0xE4
-#define VAC_MEAS (1 << 2)
-#define VBAT_MEAS (1 << 1)
-#define BB_MEAS (1 << 0)
-
-#define TWL6030_MISC2 0xE5
-#define TWL6030_MISC2_VUSB_IN_PMID (1 << 3)
-#define TWL6030_MISC2_VUSB_IN_VSYS (1 << 4)
-
-/* Slave Address 0x49 */
-
-#define TWL6030_CONTROLLER_STAT1 0xE3
-
-#define TWL6030_CONTROLLER_STAT1_VAC_DET (1 << 3)
-#define TWL6030_CONTROLLER_STAT1_VBUS_DET (1 << 2)
-
-/* Battery CHARGER REGISTERS */
-#define CONTROLLER_INT_MASK 0xE0
-#define CONTROLLER_CTRL1 0xE1
-#define CONTROLLER_WDG 0xE2
-#define CONTROLLER_STAT1 0xE3
-#define CHARGERUSB_INT_STATUS 0xE4
-#define CHARGERUSB_INT_MASK 0xE5
-#define CHARGERUSB_STATUS_INT1 0xE6
-#define CHARGERUSB_STATUS_INT2 0xE7
-#define CHARGERUSB_CTRL1 0xE8
-#define CHARGERUSB_CTRL2 0xE9
-#define CHARGERUSB_CTRL3 0xEA
-#define CHARGERUSB_STAT1 0xEB
-#define CHARGERUSB_VOREG 0xEC
-#define CHARGERUSB_VICHRG 0xED
-#define CHARGERUSB_CINLIMIT 0xEE
-#define CHARGERUSB_CTRLLIMIT1 0xEF
-
-/* CHARGERUSB_VICHRG */
-#define CHARGERUSB_VICHRG_500 0x4
-#define CHARGERUSB_VICHRG_1500 0xE
-/* CHARGERUSB_CINLIMIT */
-#define CHARGERUSB_CIN_LIMIT_100 0x1
-#define CHARGERUSB_CIN_LIMIT_300 0x5
-#define CHARGERUSB_CIN_LIMIT_500 0x9
-#define CHARGERUSB_CIN_LIMIT_NONE 0xF
-/* CONTROLLER_INT_MASK */
-#define MVAC_FAULT (1 << 6)
-#define MAC_EOC (1 << 5)
-#define MBAT_REMOVED (1 << 4)
-#define MFAULT_WDG (1 << 3)
-#define MBAT_TEMP (1 << 2)
-#define MVBUS_DET (1 << 1)
-#define MVAC_DET (1 << 0)
-/* CHARGERUSB_INT_MASK */
-#define MASK_MCURRENT_TERM (1 << 3)
-#define MASK_MCHARGERUSB_STAT (1 << 2)
-#define MASK_MCHARGERUSB_THMREG (1 << 1)
-#define MASK_MCHARGERUSB_FAULT (1 << 0)
-/* CHARGERUSB_VOREG */
-#define CHARGERUSB_VOREG_3P52 0x01
-#define CHARGERUSB_VOREG_4P0 0x19
-#define CHARGERUSB_VOREG_4P2 0x23
-#define CHARGERUSB_VOREG_4P76 0x3F
-/* CHARGERUSB_CTRL1 */
-#define SUSPEND_BOOT (1 << 7)
-#define OPA_MODE (1 << 6)
-#define HZ_MODE (1 << 5)
-#define TERM (1 << 4)
-/* CHARGERUSB_CTRL2 */
-#define CHARGERUSB_CTRL2_VITERM_50 (0 << 5)
-#define CHARGERUSB_CTRL2_VITERM_100 (1 << 5)
-#define CHARGERUSB_CTRL2_VITERM_150 (2 << 5)
-#define CHARGERUSB_CTRL2_VITERM_400 (7 << 5)
-/* CONTROLLER_CTRL1 */
-#define CONTROLLER_CTRL1_EN_CHARGER (1 << 4)
-#define CONTROLLER_CTRL1_SEL_CHARGER (1 << 3)
-/* CONTROLLER_STAT1 */
-#define CHRG_EXTCHRG_STATZ (1 << 7)
-#define CHRG_DET_N (1 << 5)
-#define VAC_DET (1 << 3)
-#define VBUS_DET (1 << 2)
-
-#define FG_REG_10 0xCA
-#define FG_REG_11 0xCB
-
-#define TOGGLE1 0x90
-#define FGS (1 << 5)
-#define FGR (1 << 4)
-#define GPADCS (1 << 1)
-#define GPADCR (1 << 0)
-
-#define CTRL_P2 0x34
-#define CTRL_P2_SP2 (1 << 2)
-#define CTRL_P2_EOCP2 (1 << 1)
-#define CTRL_P2_BUSY (1 << 0)
-
-#define TWL6032_CTRL_P1 0x36
-#define CTRL_P1_SP1 (1 << 3)
-
-#define GPCH0_LSB 0x57
-#define GPCH0_MSB 0x58
-
-#define TWL6032_GPCH0_LSB 0x3b
-
-#define TWL6032_GPSELECT_ISB 0x35
-
-#define USB_PRODUCT_ID_LSB 0x02
-
-#define TWL6030_GPADC_VBAT_CHNL 0x07
-#define TWL6032_GPADC_VBAT_CHNL 0x12
-
-#define TWL6030_GPADC_CTRL 0x2e
-#define TWL6032_GPADC_CTRL2 0x2f
-#define GPADC_CTRL2_CH18_SCALER_EN (1 << 2)
-#define GPADC_CTRL_SCALER_DIV4 (1 << 3)
-
-#define TWL6030_VBAT_MULT 40 * 1000
-#define TWL6032_VBAT_MULT 25 * 1000
-
-#define TWL6030_VBAT_SHIFT (10 + 3)
-#define TWL6032_VBAT_SHIFT (12 + 2)
-
-enum twl603x_chip_type{
- chip_TWL6030,
- chip_TWL6032,
- chip_TWL603X_cnt
-};
-
-struct twl6030_data{
- u8 chip_type;
- u8 adc_rbase;
- u8 adc_ctrl;
- u8 adc_enable;
- int vbat_mult;
- int vbat_shift;
-};
-
-/* Functions to read and write from TWL6030 */
-#if !CONFIG_IS_ENABLED(DM_I2C)
-static inline int twl6030_i2c_write_u8(u8 chip_no, u8 reg, u8 val)
-{
- return i2c_write(chip_no, reg, 1, &val, 1);
-}
-
-static inline int twl6030_i2c_read_u8(u8 chip_no, u8 reg, u8 *val)
-{
- return i2c_read(chip_no, reg, 1, val, 1);
-}
-#else
-int twl6030_i2c_write_u8(u8 chip_no, u8 reg, u8 val);
-int twl6030_i2c_read_u8(u8 chip_no, u8 reg, u8 *val);
-#endif
-
-/*
- * Power
- */
-
-void twl6030_power_off(void);
-void twl6030_init_battery_charging(void);
-void twl6030_usb_device_settings(void);
-void twl6030_start_usb_charging(void);
-void twl6030_stop_usb_charging(void);
-int twl6030_get_battery_voltage(void);
-int twl6030_get_battery_current(void);
-void twl6030_power_mmc_init(int dev_index);
-
-/*
- * Input
- */
-
-int twl6030_input_power_button(void);
-int twl6030_input_charger(void);
-int twl6030_input_usb(void);
-
-#endif /* TWL6030_H */