bcm63xx: add infrastructure for MPI-connected VoIP DSP
PATCH 1/8 bcm63xx: add infrastructure for MPI-connected VoIP DSP
This patch adds the required infrastructure to register a MPI and GPIO connected VoIP DSP. We will register devices in a subsequent patch.
Signed-off-by Florian Fainelli <[email protected]>
---
arch/mips/bcm63xx/Makefile +1 -0
@@ -4,6 +4,7 @@ obj-y += dev-pcmcia.o obj-y += dev-usb-ohci.o obj-y += dev-usb-ehci.o obj-y += dev-enet.o +obj-y += dev-dsp.o obj-$(CONFIG_EARLY_PRINTK) += early_printk.o obj-y += boards/
arch/mips/bcm63xx/dev-dsp.c new file +56 -0
56 lines not on this page · raw message
arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_dsp.h new file +13 -0
@@ -0,0 +1,13 @@ +#ifndef __BCM63XX_DSP_H +#define __BCM63XX_DSP_H + +struct bcm63xx_dsp_platform_data { +unsigned gpio_rst; +unsigned gpio_int; +unsigned cs; +unsigned ext_irq; +}; + +int __init bcm63xx_dsp_register (const struct bcm63xx_dsp_platform_data *pd); + +#endif /* __BCM63XX_DSP_H */
arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h +5 -0
@@ -3,6 +3,7 @@#include <linux/types.h> #include <bcm63xx_dev_enet.h> +#include <bcm63xx_dev_dsp.h> /* * flash mapping
@@ -41,10 +42,14 @@ struct board_info { unsigned int has_pccard:1; unsigned int has_ohci0:1; unsigned int has_ehci0:1; + unsigned int has_dsp:1;/* ethernet config */ struct bcm63xx_enet_platform_data enet0;struct bcm63xx_enet_platform_data enet1; + +/* DSP config */ + struct bcm63xx_dsp_platform_data dsp; };#endif /* ! BOARD_BCM963XX_H_ */
Quoted 24 lines · Florian Fainelli
This patch adds the required infrastructure to register a MPI and GPIO connected VoIP DSP. We will register devices in a subsequent patch.
Signed-off-by Florian Fainelli <[email protected]>---
arch/mips/bcm63xx/Makefile +1
-0@@ -4,6 +4,7 @@ obj-y += dev-pcmcia.o obj-y += dev-usb-ohci.o obj-y += dev-usb-ehci.o obj-y += dev-enet.o +obj-y += dev-dsp.o obj-$(CONFIG_EARLY_PRINTK) += early_printk.o obj-y += boards/arch/mips/bcm63xx/dev-dsp.c new file +0
-0
arch/mips/bcm63xx/dev-dsp.c line 8
Quoted 8 lines
arch/mips/bcm63xx/dev-dsp.c new file +8
-0@@ -0,0 +1,56 @@ +/* +* Broadcom BCM63xx VoIP DSP registration +* +* This file is subject to the terms and conditions of the GNU General Public +* License. See the file "COPYING" in the main directory of this archive +* for more details. +* +* Copyright (C) 2009 Florian Fainelli <[email protected]>
^^^
You *wham* shall *wham* not *wham* sumbit *wham* trailing *wham* whitespace :-)
I cleaned that but it's really YOUR job to do that.
Ralf