History log of /arch/sh/boards/mach-sdk7786/setup.c
Revision Date Author Comments
c953efdbb1b4f6804a476329a2df8bdab3a76019 29-Feb-2012 Magnus Damm <damm@opensource.se> sh: board sh_clk_ops rename

Convert remaining sh board code to use sh_clk_ops.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
7912825d8b755e6a5b9839eab910f451b0271aba 24-Jun-2011 Paul Mundt <lethal@linux-sh.org> sh: Tidy up pre-clkdev clk_get() error handling.

clk_get() used to return NULL or an errno value depending on whether a
clkdev lookup failed or a clock wasn't found in the primary clock list.
As these disjoint paths were unified and everything now is handled via
clkdev lookups, the NULL case never makes it out of clk_get(). Update
accordingly and always look to the errno value.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
95d210ce6b23ec8916f97ec0cc7eb4d5fa80e0b3 07-Jan-2011 Nobuhiro Iwamatsu <iwamatsu@nigauri.org> sh: Use device_initcall() instead of __initcall()

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
3bd75e5e0c5b58636aeadd34890114bcb988777e 07-Jan-2011 Paul Mundt <lethal@linux-sh.org> sh: mach-sdk7786: Fix up fallout from clkdev consolidation.

CC arch/sh/boards/mach-sdk7786/setup.o
arch/sh/boards/mach-sdk7786/setup.c:179: error: variable 'sdk7786_pcie_cl' has initializer but incomplete type
arch/sh/boards/mach-sdk7786/setup.c:180: error: unknown field 'con_id' specified in initializer
arch/sh/boards/mach-sdk7786/setup.c:180: warning: excess elements in struct initializer
arch/sh/boards/mach-sdk7786/setup.c:180: warning: (near initialization for 'sdk7786_pcie_cl')
arch/sh/boards/mach-sdk7786/setup.c:181: error: unknown field 'clk' specified in initializer
arch/sh/boards/mach-sdk7786/setup.c:181: warning: excess elements in struct initializer
arch/sh/boards/mach-sdk7786/setup.c:181: warning: (near initialization for 'sdk7786_pcie_cl')
arch/sh/boards/mach-sdk7786/setup.c: In function 'sdk7786_clk_init':
arch/sh/boards/mach-sdk7786/setup.c:211: error: implicit declaration of function 'clkdev_add'

which is a fanciful way of saying that the struct definition moved from
asm/clkdev.h to linux/clkdev.h.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
76496f8f2e104b8bb08db09c063a6817d18829a6 17-Dec-2010 Paul Mundt <lethal@linux-sh.org> sh: mach-sdk7786: Handle baseboard NMI source selection.

The on-board NMI switch is routed through and mangled by the FPGA prior
to its delivery to the NMI pin, so add some glue for the various
configuration options. The default is to unmask it and enable all input
sources.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
b6b77b2d5ffd2f8ee74fcc27661f7f4962c34705 14-Oct-2010 Paul Mundt <lethal@linux-sh.org> sh: pci: Support secondary FPGA-driven PCIe clocks on SDK7786.

The SDK7786 FPGA has secondary control over the PCIe clocks, specifically
relating to the slots and oscillator. This ties the FPGA clocks in to the
clock framework and balances the refcounting similar to how the primary
on-chip clocks are managed. While the on-chip clocks are per-port, the
FPGA clock enable/disable is global for the entire block.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
3366e3585fbf0d40ce6f2382b544851cf4df1654 29-Mar-2010 Paul Mundt <lethal@linux-sh.org> sh: Move platform smp ops in to their own structure.

This cribs the MIPS plat_smp_ops approach for wrapping up the platform
ops. This will allow for mixing and matching different ops on the same
platform in the future.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
d9c944463d8f3f7cafaaba8f3e44df62ce817484 19-Apr-2010 Paul Mundt <lethal@linux-sh.org> sh: mach-sdk7786: pm_power_off support.

This wires up power-off support for the SDK7786 board.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
b51989b8afe9409ee68c67ce2a5de4390693bd2b 20-Jan-2010 Paul Mundt <lethal@linux-sh.org> sh: mach-sdk7786: reset controller reboot support.

This wires up the machine_ops reboot call to use the system reset
controller.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
5f240718b475dcddee86b138b624f24c681dbb29 20-Jan-2010 Paul Mundt <lethal@linux-sh.org> sh: mach-sdk7786: Split out FPGA IRQ controller setup.

This moves out the FPGA IRQ controller setup code to its own file, in
preparation for switching off of IRL mode and having it provide its own
irq_chip.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
efd590d57a5edddabaaf4cfaf532c0f674193b81 20-Jan-2010 Paul Mundt <lethal@linux-sh.org> sh: mach-sdk7786: FPGA updates.

This does a bit of refactoring of the FPGA management code. The primary
FPGA initialization is moved out to its own file in preparation for
implementing some of the more complex capabilities, a complete set of
register definitions is provided, and all of the existing users in the
board code are moved over to use the new interface instead of setting up
overlapping mappings. This also corrects the FPGA size, which previously
was chomped off at the SDIF control register.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
c8098218271d19e7123d8b9137b9a4b87e5ffec0 19-Jan-2010 Paul Mundt <lethal@linux-sh.org> sh: mach-sdk7786: Detect/configure/propagate EXTAL.

This uses the mode pins exposed through the FPGA to work out whether
we're driven from EXTAL or not and does the appropriate setup and
propagation through the clock framework.

This will also -EINVAL out for anyone adding in their own oscillators,
forcing proper configuration with the clock framework instead of
proceeding on with bogus clock values.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
6f832e8aab8c4c6d28629e970e4a85e74a8d0be6 15-Jan-2010 Paul Mundt <lethal@linux-sh.org> sh: mach-sdk7786: mode pins support.

This wires up the mode pins support on the SDK7786. The pins are
standard SH7786 pins, and all are fixed in software. Needed for the
clock framework, PCIe, and so forth.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2267c7875b3a3a41b7a8cc9659d75ec934c98ffd 14-Jan-2010 Paul Mundt <lethal@linux-sh.org> sh: mach-sdk7786: heartbeat support.

Hand off the user LEDs to the heartbeat driver.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
02bf6cc72cc2a6258411ddf1649f33a65fc9a06e 14-Jan-2010 Paul Mundt <lethal@linux-sh.org> sh: Preliminary SDK7786 board support.

This stubs in some preliminary board support for the RTE SDK7786.

This is quite stunted at the moment, and primarily builds on top of the
system FPGA. FPGA IRQs are handled via CPU IRL masking for simplicity,
with initial peripheral support restricted to the debug ethernet.

Signed-off-by: Matt Fleming <matt@console-pimps.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>