MIPS: BCM63XX: Expose the USBH/USBD clocks on BCM6328/BCM6368

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
MIPS: BCM63XX: Move DMA descriptor definition into common header file

The "IUDMA" engine used by bcm63xx_enet is also used by other blocks,
such as the USB 2.0 device.  Move the definitions into a common file so
that they do not need to be duplicated in each driver.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
MIPS: BCM63XX: Add new IUDMA definitions needed for USBD

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
MIPS: BCM63XX: Add register definitions for USBD dependencies

The USB 2.0 device depends on some functionality in other blocks, such
as GPIO and USBH.  Add those register definitions here.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
MIPS: BCM63XX: Fix USB IRQ definitions for 6328

OHCI/EHCI are in the high (second) word.  Not currently used by any
driver.

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
MIPS: BCM63XX: Add register and IRQ definitions for USB 2.0 device

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
MIPS: BCM63XX: Create platform_device for USBD

Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
MIPS: BCM63XX: select HAVE_CLK

BCM63XX implements the clk interface, but does not advertise it.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
MIPS: BCM63XX: add external irq support for BCM6345

Add the missing definitions for BCM6345.

Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
[jonas.gorski@gmail.com: split up original patch, add commit log]
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
MIPS: BCM63XX: don't write to the chipid register on reboot

While harmless, it is bad style to do so.

Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
[jonas.gorski@gmail.com: add commit log]
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
MIPS: BCM63XX: use a switch for external irq config

Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
MIPS: BCM63XX: remove ENETSW_TXDMA interrupts from BCM6328

BCM6328 does not expose the ENETSW_TXDMA interrupts.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
MTD: bcm63xxpart: remove unused variable

namelen is never used, so drop it.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
MTD: bcm63xxpart: merge sparelen calculation

The length of the spare part is calculated the same way in both branches
so move to a common place.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
MTD: bcm63xxpart: make fixed part length calculation more generic

The CFE does not use 4K sectors even if the flash supports it, so
for the fixed partitions like CFE itself or NVRAM the erase block
size is always 64k or bigger.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
MTD: bcm63xxpart: move the last curpart++ to its correct place

The line belongs above the comment, not below it.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
MTD: bcm63xxpart: use correct printk format for partitions

Use ll to be able to remove the casts.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
MIPS: BCM63XX: add HSSPI register definitions

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
MIPS: BCM63XX: expose the HS SPI clock

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
MIPS: BCM63XX: add HS SPI platform device and register it

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>