mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
ARM: SoC driver updates
These are changes for drivers that are intimately tied to some SoC and for some reason could not get merged through the respective subsystem maintainer tree. This time around, much of this is for at91, with the bulk of it being syscon and udc drivers. Also, there's: - coupled cpuidle support for Samsung Exynos4210 - Renesas 73A0 common-clk work - of/platform changes to tear down DMA mappings on device destruction - a few updates to the TI Keystone knav code -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAABAgAGBQJU4upSAAoJEIwa5zzehBx3HkUP/Rc4B1yZChNIFNfVq4dbei6w dT9WdFmxOIj2JLeXEypFBiNf1nSHmsxrZe9/IDACz2fYQOnaZZ6/786utUJP/PtC 2GDJy9cjL2Xh03We3nQp5z6J33XvpEni1t82cOpCl8wLBOQNnkjEks8UvLgi1LHW CNLcMm8JtDQ2aB/gRTjzetp9liZluESY5+Mig+loE2F/rzbMbNQDcWDDgUPyIQIS 1onL+Bad3BnGFdo/+qnkurGc81pxoKiQJty06VWFftzvIwxXhsNjrqls2+KzstAx 0lLvW1tqaDhXvUBImRM8GgfbldZslsgoFVmgESS9MpPMBNENYrkAiQNvJUnM7kd9 qHDQNq+zRNsz/k4fVvp/YUp7xEiAo4rLcFmp/dBr535jS2LNyiZnB94q+kXsin/m tiyEMx+RWxEHTEHN9WdKE61Ty1RbzOa5UTLSzOKFAkF+m2nvuQsJvb97n19coAq9 SSsj/wJgesfqrDEegphCDh1fyVxUzlAjjhTAyvPS155WvPzkbxZxuBbSqRuriRKA 2aCfVne2ELimHAr3LEPgPW2kFBcONHckOGe6MvrTX4zPHU8bb9WIeg+iGdQChnr3 nclT9jq+ZnQro5XTgUtPtadq100oEXlJbqpAzhd+cJbvgzSNbcWfcgE6kOWqd9uK oeWQWFLCdXLmXf9zCwmk =T7R2 -----END PGP SIGNATURE----- Merge tag 'drivers-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc Pull ARM SoC driver updates from Olof Johansson: "These are changes for drivers that are intimately tied to some SoC and for some reason could not get merged through the respective subsystem maintainer tree. This time around, much of this is for at91, with the bulk of it being syscon and udc drivers. Also, there's: - coupled cpuidle support for Samsung Exynos4210 - Renesas 73A0 common-clk work - of/platform changes to tear down DMA mappings on device destruction - a few updates to the TI Keystone knav code" * tag 'drivers-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (26 commits) cpuidle: exynos: add coupled cpuidle support for exynos4210 ARM: EXYNOS: apply S5P_CENTRAL_SEQ_OPTION fix only when necessary soc: ti: knav_qmss_queue: change knav_range_setup_acc_irq to static soc: ti: knav_qmss_queue: makefile tweak to build as dynamic module pcmcia: at91_cf: depend on !ARCH_MULTIPLATFORM soc: ti: knav_qmss_queue: export API calls for use by user driver of/platform: teardown DMA mappings on device destruction usb: gadget: at91_udc: Allocate udc instance usb: gadget: at91_udc: Update DT binding documentation usb: gadget: at91_udc: Rework for multi-platform kernel support usb: gadget: at91_udc: Simplify probe and remove functions usb: gadget: at91_udc: Remove non-DT handling code usb: gadget: at91_udc: Document DT clocks and clock-names property usb: gadget: at91_udc: Drop uclk clock usb: gadget: at91_udc: Fix clock names mfd: syscon: Add Atmel SMC binding doc mfd: syscon: Add atmel-smc registers definition mfd: syscon: Add Atmel Matrix bus DT binding documentation mfd: syscon: Add atmel-matrix registers definition clk: shmobile: fix sparse NULL pointer warning ...
This commit is contained in:
commit
18656782a8
28 changed files with 1570 additions and 268 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#
|
||||
# TI Keystone SOC drivers
|
||||
#
|
||||
obj-$(CONFIG_KEYSTONE_NAVIGATOR_QMSS) += knav_qmss_queue.o knav_qmss_acc.o
|
||||
obj-$(CONFIG_KEYSTONE_NAVIGATOR_QMSS) += knav_qmss.o
|
||||
knav_qmss-y := knav_qmss_queue.o knav_qmss_acc.o
|
||||
obj-$(CONFIG_KEYSTONE_NAVIGATOR_DMA) += knav_dma.o
|
||||
|
|
|
|||
|
|
@ -209,7 +209,7 @@ static irqreturn_t knav_acc_int_handler(int irq, void *_instdata)
|
|||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
int knav_range_setup_acc_irq(struct knav_range_info *range,
|
||||
static int knav_range_setup_acc_irq(struct knav_range_info *range,
|
||||
int queue, bool enabled)
|
||||
{
|
||||
struct knav_device *kdev = range->kdev;
|
||||
|
|
|
|||
|
|
@ -626,6 +626,7 @@ int knav_queue_push(void *qhandle, dma_addr_t dma,
|
|||
atomic_inc(&qh->stats.pushes);
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(knav_queue_push);
|
||||
|
||||
/**
|
||||
* knav_queue_pop() - pop data (or descriptor) from the head of a queue
|
||||
|
|
@ -663,6 +664,7 @@ dma_addr_t knav_queue_pop(void *qhandle, unsigned *size)
|
|||
atomic_inc(&qh->stats.pops);
|
||||
return dma;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(knav_queue_pop);
|
||||
|
||||
/* carve out descriptors and push into queue */
|
||||
static void kdesc_fill_pool(struct knav_pool *pool)
|
||||
|
|
@ -717,12 +719,14 @@ dma_addr_t knav_pool_desc_virt_to_dma(void *ph, void *virt)
|
|||
struct knav_pool *pool = ph;
|
||||
return pool->region->dma_start + (virt - pool->region->virt_start);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(knav_pool_desc_virt_to_dma);
|
||||
|
||||
void *knav_pool_desc_dma_to_virt(void *ph, dma_addr_t dma)
|
||||
{
|
||||
struct knav_pool *pool = ph;
|
||||
return pool->region->virt_start + (dma - pool->region->dma_start);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(knav_pool_desc_dma_to_virt);
|
||||
|
||||
/**
|
||||
* knav_pool_create() - Create a pool of descriptors
|
||||
|
|
@ -878,6 +882,7 @@ void *knav_pool_desc_get(void *ph)
|
|||
data = knav_pool_desc_dma_to_virt(pool, dma);
|
||||
return data;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(knav_pool_desc_get);
|
||||
|
||||
/**
|
||||
* knav_pool_desc_put() - return a descriptor to the pool
|
||||
|
|
@ -890,6 +895,7 @@ void knav_pool_desc_put(void *ph, void *desc)
|
|||
dma = knav_pool_desc_virt_to_dma(pool, desc);
|
||||
knav_queue_push(pool->queue, dma, pool->region->desc_size, 0);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(knav_pool_desc_put);
|
||||
|
||||
/**
|
||||
* knav_pool_desc_map() - Map descriptor for DMA transfer
|
||||
|
|
@ -916,6 +922,7 @@ int knav_pool_desc_map(void *ph, void *desc, unsigned size,
|
|||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(knav_pool_desc_map);
|
||||
|
||||
/**
|
||||
* knav_pool_desc_unmap() - Unmap descriptor after DMA transfer
|
||||
|
|
@ -938,6 +945,7 @@ void *knav_pool_desc_unmap(void *ph, dma_addr_t dma, unsigned dma_sz)
|
|||
prefetch(desc);
|
||||
return desc;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(knav_pool_desc_unmap);
|
||||
|
||||
/**
|
||||
* knav_pool_count() - Get the number of descriptors in pool.
|
||||
|
|
@ -949,6 +957,7 @@ int knav_pool_count(void *ph)
|
|||
struct knav_pool *pool = ph;
|
||||
return knav_queue_get_count(pool->queue);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(knav_pool_count);
|
||||
|
||||
static void knav_queue_setup_region(struct knav_device *kdev,
|
||||
struct knav_region *region)
|
||||
|
|
|
|||
Loading…
Reference in a new issue