linux/drivers/bcma/driver_chipcommon.c

/*
 * Broadcom specific AMBA
 * ChipCommon core driver
 *
 * Copyright 2005, Broadcom Corporation
 * Copyright 2006, 2007, Michael Buesch <[email protected]>
 * Copyright 2012, Hauke Mehrtens <[email protected]>
 *
 * Licensed under the GNU/GPL. See COPYING for details.
 */

#include "bcma_private.h"
#include <linux/bcm47xx_wdt.h>
#include <linux/export.h>
#include <linux/platform_device.h>
#include <linux/bcma/bcma.h>

static inline u32 bcma_cc_write32_masked(struct bcma_drv_cc *cc, u16 offset,
					 u32 mask, u32 value)
{}

u32 bcma_chipco_get_alp_clock(struct bcma_drv_cc *cc)
{}
EXPORT_SYMBOL_GPL();

static bool bcma_core_cc_has_pmu_watchdog(struct bcma_drv_cc *cc)
{}

static u32 bcma_chipco_watchdog_get_max_timer(struct bcma_drv_cc *cc)
{}

static u32 bcma_chipco_watchdog_timer_set_wdt(struct bcm47xx_wdt *wdt,
					      u32 ticks)
{}

static u32 bcma_chipco_watchdog_timer_set_ms_wdt(struct bcm47xx_wdt *wdt,
						 u32 ms)
{}

static int bcma_chipco_watchdog_ticks_per_ms(struct bcma_drv_cc *cc)
{}

int bcma_chipco_watchdog_register(struct bcma_drv_cc *cc)
{}

static void bcma_core_chipcommon_flash_detect(struct bcma_drv_cc *cc)
{}

void bcma_core_chipcommon_early_init(struct bcma_drv_cc *cc)
{}

void bcma_core_chipcommon_init(struct bcma_drv_cc *cc)
{}

/* Set chip watchdog reset timer to fire in 'ticks' backplane cycles */
u32 bcma_chipco_watchdog_timer_set(struct bcma_drv_cc *cc, u32 ticks)
{}

void bcma_chipco_irq_mask(struct bcma_drv_cc *cc, u32 mask, u32 value)
{}

u32 bcma_chipco_irq_status(struct bcma_drv_cc *cc, u32 mask)
{}

u32 bcma_chipco_gpio_in(struct bcma_drv_cc *cc, u32 mask)
{}

u32 bcma_chipco_gpio_out(struct bcma_drv_cc *cc, u32 mask, u32 value)
{}
EXPORT_SYMBOL_GPL();

u32 bcma_chipco_gpio_outen(struct bcma_drv_cc *cc, u32 mask, u32 value)
{}
EXPORT_SYMBOL_GPL();

/*
 * If the bit is set to 0, chipcommon controls this GPIO,
 * if the bit is set to 1, it is used by some part of the chip and not our code.
 */
u32 bcma_chipco_gpio_control(struct bcma_drv_cc *cc, u32 mask, u32 value)
{}
EXPORT_SYMBOL_GPL();

u32 bcma_chipco_gpio_intmask(struct bcma_drv_cc *cc, u32 mask, u32 value)
{}

u32 bcma_chipco_gpio_polarity(struct bcma_drv_cc *cc, u32 mask, u32 value)
{}

u32 bcma_chipco_gpio_pullup(struct bcma_drv_cc *cc, u32 mask, u32 value)
{}

u32 bcma_chipco_gpio_pulldown(struct bcma_drv_cc *cc, u32 mask, u32 value)
{}

#ifdef CONFIG_BCMA_DRIVER_MIPS
void bcma_chipco_serial_init(struct bcma_drv_cc *cc)
{}
#endif /* CONFIG_BCMA_DRIVER_MIPS */