db1000.c (61b7369483efb5e0a9f3b48e75fac00d46d661e0) | db1000.c (d4a5c59a955bba96b273ec1a5885bada24c56979) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * DBAu1000/1500/1100 PBAu1100/1500 board support 4 * 5 * Copyright 2000, 2008 MontaVista Software Inc. 6 * Author: MontaVista Software, Inc. <source@mvista.com> 7 */ 8 9#include <linux/clk.h> 10#include <linux/dma-mapping.h> 11#include <linux/gpio.h> 12#include <linux/gpio/machine.h> 13#include <linux/init.h> 14#include <linux/interrupt.h> 15#include <linux/leds.h> 16#include <linux/mmc/host.h> | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * DBAu1000/1500/1100 PBAu1100/1500 board support 4 * 5 * Copyright 2000, 2008 MontaVista Software Inc. 6 * Author: MontaVista Software, Inc. <source@mvista.com> 7 */ 8 9#include <linux/clk.h> 10#include <linux/dma-mapping.h> 11#include <linux/gpio.h> 12#include <linux/gpio/machine.h> 13#include <linux/init.h> 14#include <linux/interrupt.h> 15#include <linux/leds.h> 16#include <linux/mmc/host.h> |
17#include <linux/module.h> | |
18#include <linux/platform_device.h> 19#include <linux/pm.h> 20#include <linux/spi/spi.h> 21#include <linux/spi/spi_gpio.h> 22#include <linux/spi/ads7846.h> 23#include <asm/mach-au1x00/au1000.h> 24#include <asm/mach-au1x00/gpio-au1000.h> 25#include <asm/mach-au1x00/au1000_dma.h> --- 136 unchanged lines hidden (view full) --- 162 .coherent_dma_mask = DMA_BIT_MASK(32), 163 }, 164}; 165 166/******************************************************************************/ 167 168static irqreturn_t db1100_mmc_cd(int irq, void *ptr) 169{ | 17#include <linux/platform_device.h> 18#include <linux/pm.h> 19#include <linux/spi/spi.h> 20#include <linux/spi/spi_gpio.h> 21#include <linux/spi/ads7846.h> 22#include <asm/mach-au1x00/au1000.h> 23#include <asm/mach-au1x00/gpio-au1000.h> 24#include <asm/mach-au1x00/au1000_dma.h> --- 136 unchanged lines hidden (view full) --- 161 .coherent_dma_mask = DMA_BIT_MASK(32), 162 }, 163}; 164 165/******************************************************************************/ 166 167static irqreturn_t db1100_mmc_cd(int irq, void *ptr) 168{ |
170 void (*mmc_cd)(struct mmc_host *, unsigned long); 171 /* link against CONFIG_MMC=m */ 172 mmc_cd = symbol_get(mmc_detect_change); 173 mmc_cd(ptr, msecs_to_jiffies(500)); 174 symbol_put(mmc_detect_change); 175 | 169 mmc_detect_change(ptr, msecs_to_jiffies(500)); |
176 return IRQ_HANDLED; 177} 178 179static int db1100_mmc_cd_setup(void *mmc_host, int en) 180{ 181 int ret = 0, irq; 182 183 if (BCSR_WHOAMI_BOARD(bcsr_read(BCSR_WHOAMI)) == BCSR_WHOAMI_DB1100) --- 390 unchanged lines hidden --- | 170 return IRQ_HANDLED; 171} 172 173static int db1100_mmc_cd_setup(void *mmc_host, int en) 174{ 175 int ret = 0, irq; 176 177 if (BCSR_WHOAMI_BOARD(bcsr_read(BCSR_WHOAMI)) == BCSR_WHOAMI_DB1100) --- 390 unchanged lines hidden --- |