diff options
| author | Kevin Hilman <khilman@linaro.org> | 2014-12-15 16:59:43 -0500 |
|---|---|---|
| committer | Kevin Hilman <khilman@linaro.org> | 2014-12-15 16:59:43 -0500 |
| commit | 1888d2fa314033755026ceddee1fff8f80659fe4 (patch) | |
| tree | b0085323f5db6dca5f259b92038e27843c5a43a6 /include/linux/platform_data | |
| parent | 9d312cd12e89ce08add99fe66e8f6baeaca16d7d (diff) | |
| parent | 661ea91b676bcca137c1c3fe838997925ce98060 (diff) | |
Merge tag 'omap-for-v3.19/fixes-for-merge-window' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into fixes
From: Tony Lindgren <tony@atomide.com>
Subject: [GIT PULL] few fixes for the v3.19 merge window
Fixes for a few issues found that would be good to get
into -rc1:
- Update SoC revision detection for am43x es1.2
- Fix regression with GPMC timings on 2430sdp for some versions
of u-boot
- Fix dra7 watchdog compatible property
- Fix am437x-sk-evm LCD timings
- Fix dra7 DSS clock muxing
- Fix dra7-evm voltages
- Remove a unused function prototype for am33xx_clk_init
- Enable AHCI in the omap2plus_defconfig
* tag 'omap-for-v3.19/fixes-for-merge-window' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: (1601 commits)
ARM: omap2plus_defconfig: Enable AHCI_PLATFORM driver
ARM: dts: am437x-sk-evm.dts: fix LCD timings
ARM: dts: dra7-evm: Update SMPS7 (VDD_CORE) max voltage to match DM
ARM: dts: dra7-evm: Fix typo in SMPS6 (VDD_GPU) max voltage
ARM: OMAP2+: AM43x: Add ID for ES1.2
ARM: dts: am437x-sk: fix lcd enable pin mux data
ARM: dts: Fix gpmc regression for omap 2430sdp smc91x
hwmon: (tmp401) Detect TMP435 on all addresses it supports
mfd: rtsx: Add func to split u32 into register
mmc: sdhci-msm: Convert to mmc_send_tuning()
mmc: sdhci-esdhc-imx: Convert to mmc_send_tuning()
mmc: core: Let mmc_send_tuning() to take struct mmc_host* as parameter
nios2: Make NIOS2_CMDLINE_IGNORE_DTB depend on CMDLINE_BOOL
nios2: Add missing NR_CPUS to Kconfig
nios2: asm-offsets: Remove unused definition TI_TASK
nios2: Remove write-only struct member from nios2_timer
nios2: Remove unused extern declaration of shm_align_mask
nios2: include linux/type.h in io.h
nios2: move include asm-generic/io.h to end of file
nios2: remove include asm-generic/iomap.h from io.h
...
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/hsmmc-omap.h | 90 | ||||
| -rw-r--r-- | include/linux/platform_data/mmc-atmel-mci.h | 22 | ||||
| -rw-r--r-- | include/linux/platform_data/mmc-omap.h | 27 | ||||
| -rw-r--r-- | include/linux/platform_data/pxa_sdhci.h | 5 | ||||
| -rw-r--r-- | include/linux/platform_data/serial-omap.h | 3 |
5 files changed, 112 insertions, 35 deletions
diff --git a/include/linux/platform_data/hsmmc-omap.h b/include/linux/platform_data/hsmmc-omap.h new file mode 100644 index 000000000000..67bbcf0785f6 --- /dev/null +++ b/include/linux/platform_data/hsmmc-omap.h | |||
| @@ -0,0 +1,90 @@ | |||
| 1 | /* | ||
| 2 | * MMC definitions for OMAP2 | ||
| 3 | * | ||
| 4 | * Copyright (C) 2006 Nokia Corporation | ||
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify | ||
| 7 | * it under the terms of the GNU General Public License version 2 as | ||
| 8 | * published by the Free Software Foundation. | ||
| 9 | */ | ||
| 10 | |||
| 11 | /* | ||
| 12 | * struct omap_hsmmc_dev_attr.flags possibilities | ||
| 13 | * | ||
| 14 | * OMAP_HSMMC_SUPPORTS_DUAL_VOLT: Some HSMMC controller instances can | ||
| 15 | * operate with either 1.8Vdc or 3.0Vdc card voltages; this flag | ||
| 16 | * should be set if this is the case. See for example Section 22.5.3 | ||
| 17 | * "MMC/SD/SDIO1 Bus Voltage Selection" of the OMAP34xx Multimedia | ||
| 18 | * Device Silicon Revision 3.1.x Revision ZR (July 2011) (SWPU223R). | ||
| 19 | * | ||
| 20 | * OMAP_HSMMC_BROKEN_MULTIBLOCK_READ: Multiple-block read transfers | ||
| 21 | * don't work correctly on some MMC controller instances on some | ||
| 22 | * OMAP3 SoCs; this flag should be set if this is the case. See | ||
| 23 | * for example Advisory 2.1.1.128 "MMC: Multiple Block Read | ||
| 24 | * Operation Issue" in _OMAP3530/3525/3515/3503 Silicon Errata_ | ||
| 25 | * Revision F (October 2010) (SPRZ278F). | ||
| 26 | */ | ||
| 27 | #define OMAP_HSMMC_SUPPORTS_DUAL_VOLT BIT(0) | ||
| 28 | #define OMAP_HSMMC_BROKEN_MULTIBLOCK_READ BIT(1) | ||
| 29 | #define OMAP_HSMMC_SWAKEUP_MISSING BIT(2) | ||
| 30 | |||
| 31 | struct omap_hsmmc_dev_attr { | ||
| 32 | u8 flags; | ||
| 33 | }; | ||
| 34 | |||
| 35 | struct mmc_card; | ||
| 36 | |||
| 37 | struct omap_hsmmc_platform_data { | ||
| 38 | /* back-link to device */ | ||
| 39 | struct device *dev; | ||
| 40 | |||
| 41 | /* set if your board has components or wiring that limits the | ||
| 42 | * maximum frequency on the MMC bus */ | ||
| 43 | unsigned int max_freq; | ||
| 44 | |||
| 45 | /* Integrating attributes from the omap_hwmod layer */ | ||
| 46 | u8 controller_flags; | ||
| 47 | |||
| 48 | /* Register offset deviation */ | ||
| 49 | u16 reg_offset; | ||
| 50 | |||
| 51 | /* | ||
| 52 | * 4/8 wires and any additional host capabilities | ||
| 53 | * need to OR'd all capabilities (ref. linux/mmc/host.h) | ||
| 54 | */ | ||
| 55 | u32 caps; /* Used for the MMC driver on 2430 and later */ | ||
| 56 | u32 pm_caps; /* PM capabilities of the mmc */ | ||
| 57 | |||
| 58 | /* switch pin can be for card detect (default) or card cover */ | ||
| 59 | unsigned cover:1; | ||
| 60 | |||
| 61 | /* use the internal clock */ | ||
| 62 | unsigned internal_clock:1; | ||
| 63 | |||
| 64 | /* nonremovable e.g. eMMC */ | ||
| 65 | unsigned nonremovable:1; | ||
| 66 | |||
| 67 | /* eMMC does not handle power off when not in sleep state */ | ||
| 68 | unsigned no_regulator_off_init:1; | ||
| 69 | |||
| 70 | /* we can put the features above into this variable */ | ||
| 71 | #define HSMMC_HAS_PBIAS (1 << 0) | ||
| 72 | #define HSMMC_HAS_UPDATED_RESET (1 << 1) | ||
| 73 | #define HSMMC_HAS_HSPE_SUPPORT (1 << 2) | ||
| 74 | unsigned features; | ||
| 75 | |||
| 76 | int switch_pin; /* gpio (card detect) */ | ||
| 77 | int gpio_wp; /* gpio (write protect) */ | ||
| 78 | |||
| 79 | int (*set_power)(struct device *dev, int power_on, int vdd); | ||
| 80 | void (*remux)(struct device *dev, int power_on); | ||
| 81 | /* Call back before enabling / disabling regulators */ | ||
| 82 | void (*before_set_reg)(struct device *dev, int power_on, int vdd); | ||
| 83 | /* Call back after enabling / disabling regulators */ | ||
| 84 | void (*after_set_reg)(struct device *dev, int power_on, int vdd); | ||
| 85 | /* if we have special card, init it using this callback */ | ||
| 86 | void (*init_card)(struct mmc_card *card); | ||
| 87 | |||
| 88 | const char *name; | ||
| 89 | u32 ocr_mask; | ||
| 90 | }; | ||
diff --git a/include/linux/platform_data/mmc-atmel-mci.h b/include/linux/platform_data/mmc-atmel-mci.h new file mode 100644 index 000000000000..399a2d5a14bd --- /dev/null +++ b/include/linux/platform_data/mmc-atmel-mci.h | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | #ifndef __MMC_ATMEL_MCI_H | ||
| 2 | #define __MMC_ATMEL_MCI_H | ||
| 3 | |||
| 4 | #include <linux/platform_data/dma-atmel.h> | ||
| 5 | #include <linux/platform_data/dma-dw.h> | ||
| 6 | |||
| 7 | /** | ||
| 8 | * struct mci_dma_data - DMA data for MCI interface | ||
| 9 | */ | ||
| 10 | struct mci_dma_data { | ||
| 11 | #ifdef CONFIG_ARM | ||
| 12 | struct at_dma_slave sdata; | ||
| 13 | #else | ||
| 14 | struct dw_dma_slave sdata; | ||
| 15 | #endif | ||
| 16 | }; | ||
| 17 | |||
| 18 | /* accessor macros */ | ||
| 19 | #define slave_data_ptr(s) (&(s)->sdata) | ||
| 20 | #define find_slave_dev(s) ((s)->sdata.dma_dev) | ||
| 21 | |||
| 22 | #endif /* __MMC_ATMEL_MCI_H */ | ||
diff --git a/include/linux/platform_data/mmc-omap.h b/include/linux/platform_data/mmc-omap.h index 51e70cf25cbc..5c188f4e9bec 100644 --- a/include/linux/platform_data/mmc-omap.h +++ b/include/linux/platform_data/mmc-omap.h | |||
| @@ -10,32 +10,8 @@ | |||
| 10 | 10 | ||
| 11 | #define OMAP_MMC_MAX_SLOTS 2 | 11 | #define OMAP_MMC_MAX_SLOTS 2 |
| 12 | 12 | ||
| 13 | /* | ||
| 14 | * struct omap_mmc_dev_attr.flags possibilities | ||
| 15 | * | ||
| 16 | * OMAP_HSMMC_SUPPORTS_DUAL_VOLT: Some HSMMC controller instances can | ||
| 17 | * operate with either 1.8Vdc or 3.0Vdc card voltages; this flag | ||
| 18 | * should be set if this is the case. See for example Section 22.5.3 | ||
| 19 | * "MMC/SD/SDIO1 Bus Voltage Selection" of the OMAP34xx Multimedia | ||
| 20 | * Device Silicon Revision 3.1.x Revision ZR (July 2011) (SWPU223R). | ||
| 21 | * | ||
| 22 | * OMAP_HSMMC_BROKEN_MULTIBLOCK_READ: Multiple-block read transfers | ||
| 23 | * don't work correctly on some MMC controller instances on some | ||
| 24 | * OMAP3 SoCs; this flag should be set if this is the case. See | ||
| 25 | * for example Advisory 2.1.1.128 "MMC: Multiple Block Read | ||
| 26 | * Operation Issue" in _OMAP3530/3525/3515/3503 Silicon Errata_ | ||
| 27 | * Revision F (October 2010) (SPRZ278F). | ||
| 28 | */ | ||
| 29 | #define OMAP_HSMMC_SUPPORTS_DUAL_VOLT BIT(0) | ||
| 30 | #define OMAP_HSMMC_BROKEN_MULTIBLOCK_READ BIT(1) | ||
| 31 | #define OMAP_HSMMC_SWAKEUP_MISSING BIT(2) | ||
| 32 | |||
| 33 | struct mmc_card; | 13 | struct mmc_card; |
| 34 | 14 | ||
| 35 | struct omap_mmc_dev_attr { | ||
| 36 | u8 flags; | ||
| 37 | }; | ||
| 38 | |||
| 39 | struct omap_mmc_platform_data { | 15 | struct omap_mmc_platform_data { |
| 40 | /* back-link to device */ | 16 | /* back-link to device */ |
| 41 | struct device *dev; | 17 | struct device *dev; |
| @@ -106,9 +82,6 @@ struct omap_mmc_platform_data { | |||
| 106 | unsigned vcc_aux_disable_is_sleep:1; | 82 | unsigned vcc_aux_disable_is_sleep:1; |
| 107 | 83 | ||
| 108 | /* we can put the features above into this variable */ | 84 | /* we can put the features above into this variable */ |
| 109 | #define HSMMC_HAS_PBIAS (1 << 0) | ||
| 110 | #define HSMMC_HAS_UPDATED_RESET (1 << 1) | ||
| 111 | #define HSMMC_HAS_HSPE_SUPPORT (1 << 2) | ||
| 112 | #define MMC_OMAP7XX (1 << 3) | 85 | #define MMC_OMAP7XX (1 << 3) |
| 113 | #define MMC_OMAP15XX (1 << 4) | 86 | #define MMC_OMAP15XX (1 << 4) |
| 114 | #define MMC_OMAP16XX (1 << 5) | 87 | #define MMC_OMAP16XX (1 << 5) |
diff --git a/include/linux/platform_data/pxa_sdhci.h b/include/linux/platform_data/pxa_sdhci.h index 27d3156d093a..9e20c2fb4ffd 100644 --- a/include/linux/platform_data/pxa_sdhci.h +++ b/include/linux/platform_data/pxa_sdhci.h | |||
| @@ -55,9 +55,4 @@ struct sdhci_pxa_platdata { | |||
| 55 | unsigned int quirks2; | 55 | unsigned int quirks2; |
| 56 | unsigned int pm_caps; | 56 | unsigned int pm_caps; |
| 57 | }; | 57 | }; |
| 58 | |||
| 59 | struct sdhci_pxa { | ||
| 60 | u8 clk_enable; | ||
| 61 | u8 power_mode; | ||
| 62 | }; | ||
| 63 | #endif /* _PXA_SDHCI_H_ */ | 58 | #endif /* _PXA_SDHCI_H_ */ |
diff --git a/include/linux/platform_data/serial-omap.h b/include/linux/platform_data/serial-omap.h index c860c1b314c0..d09275f3cde3 100644 --- a/include/linux/platform_data/serial-omap.h +++ b/include/linux/platform_data/serial-omap.h | |||
| @@ -38,9 +38,6 @@ struct omap_uart_port_info { | |||
| 38 | unsigned int dma_rx_timeout; | 38 | unsigned int dma_rx_timeout; |
| 39 | unsigned int autosuspend_timeout; | 39 | unsigned int autosuspend_timeout; |
| 40 | unsigned int dma_rx_poll_rate; | 40 | unsigned int dma_rx_poll_rate; |
| 41 | int DTR_gpio; | ||
| 42 | int DTR_inverted; | ||
| 43 | int DTR_present; | ||
| 44 | 41 | ||
| 45 | int (*get_context_loss_count)(struct device *); | 42 | int (*get_context_loss_count)(struct device *); |
| 46 | void (*enable_wakeup)(struct device *, bool); | 43 | void (*enable_wakeup)(struct device *, bool); |
