History log of /arch/arm/mach-orion5x/ts78xx-setup.c
Revision Date Author Comments
9d06d34bcc62f4cc3679704ac42cff5b44a97c6e 13-Sep-2014 Joe Perches <joe@perches.com> ARM: orion5x: Convert pr_warning to pr_warn

Use the more common pr_warn.

Other miscellanea:

o Realign arguments

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lkml.kernel.org/r/b438c7c54306f095a150e50df41fbba4d515c2f8.1410632835.git.joe@perches.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
4236666688e9dbc38d0c7a98b7cfa16c8961f752 23-Oct-2013 Andrew Lunn <andrew@lunn.ch> ARM: Orion5x: Fix warnings when using C=1.

Add missing include files, missing static keyword, and use NULL instead
of 0, in order to fix warnings when compiling with C=1.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
6bb27d7349db51b50c40534710fe164ca0d58902 08-Nov-2012 Stephen Warren <swarren@nvidia.com> ARM: delete struct sys_timer

Now that the only field in struct sys_timer is .init, delete the struct,
and replace the machine descriptor .timer field with the initialization
function itself.

This will enable moving timer drivers into drivers/clocksource without
having to place a public prototype of each struct sys_timer object into
include/linux; the intent is to create a single of_clocksource_init()
function that determines which timer driver to initialize by scanning
the device dtree, much like the proposed irqchip_init() at:
http://www.spinics.net/lists/arm-kernel/msg203686.html

Includes mach-omap2 fixes from Igor Grinberg.

Tested-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
ac3524b7f5a6b9a744fb7ea19991355354c09afb 28-Sep-2012 Andrew Lunn <andrew@lunn.ch> ARM: Orion5x: ts78xx: Add IOMEM for virtual addresses.

Also convert logical or to + for register offsets from base
addresses. This fixes a number of warnings currently seen in
linux-next:

warning: passing argument 2 of '__raw_writeb' makes pointer from
interger without cast.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
4d72cef17bb71a63526b6219bc06b7f31d86dde1 12-May-2012 Alexander Clouter <alex@digriz.org.uk> ARM: orion5x: ts78xx debugging changes

Move to using a refined pr_fmt to avoid having to manually
prefix every message line with 'ts78xx'.

Changelog:
v2: moved pr_fmt define ahead of includes as suggested by
Hartley Sweeten to avoid use of leading undef
v1: initial release

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
4f8cf6106dcf77b9b60af23cbb35fd537b1c9c1d 12-May-2012 Alexander Clouter <alex@digriz.org.uk> ARM: orion5x: remove PM dependency from ts78xx

Move ts78xx_fpga from /sys/power to /sys/firmware so that
we can remove the PM dependency.

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
167473a5937f54aaac4c3c01a192a81214933a23 12-May-2012 Alexander Clouter <alex@digriz.org.uk> ARM: orion5x: ts78xx fix NAND resource off by one

Changelog:
v2: use DEFINE_RES_MEM as suggesed by Hartley Sweeten
v1: inital release

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
9f234997dac445a64f5d9672bf21649e6d745bb9 12-May-2012 Alexander Clouter <alex@digriz.org.uk> ARM: orion5x: ts78xx whitespace cleanups

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
60f8291003844a42b6edd4d8f37b2995c9431b57 28-Mar-2012 H Hartley Sweeten <hartleys@visionengravers.com> arm: Use the plat_nand default partition parser

Use the default partition parser, cmdlinepart, provided by the plat_nand driver.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: Alexander Clouter <alex@digriz.org.uk>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
764cbcc2e3fa444c205b20b3d7908b06b60716ab 05-Nov-2011 Russell King <rmk+kernel@arm.linux.org.uk> ARM: restart: orion5x: use new restart hook

Hook these platforms restart code into the new restart hook rather than
using arch_reset().

In addition, convert calls to arm_machine_restart() to orion5x_restart()
to ensure that they continue to work as intended.

Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
bb9ebd4e714385a2592a482845865ef2d58b2868 01-Jun-2011 Brian Norris <computersforpeace@gmail.com> mtd: nand: rename NAND_USE_FLASH_BBT

Recall the recently added prefix requirements:
* "NAND_" for flags in nand.h, used in nand_chip.options
* "NAND_BBT_" for flags in bbm.h, used in nand_chip.bbt_options
or in nand_bbt_descr.options

Thus, I am changing NAND_USE_FLASH_BBT to NAND_BBT_USE_FLASH.

Again, this flag is found in bbm.h and so should NOT be used in the
"nand_chip.options" field.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
a40f73419f02e40555f692785ea1c1813d5b4c12 01-Jun-2011 Brian Norris <computersforpeace@gmail.com> mtd: nand: consolidate redundant flash-based BBT flags

This patch works with the following three flags from two headers (nand.h
and bbm.h):
(1) NAND_USE_FLASH_BBT (nand.h)
(2) NAND_USE_FLASH_BBT_NO_OOB (nand.h)
(3) NAND_BBT_NO_OOB (bbm.h)

These flags are all related and interdependent, yet they were in
different headers. Flag (2) is simply the combination of (1) and (3) and
can be eliminated.

This patch accomplishes the following:
* eliminate NAND_USE_FLASH_BBT_NO_OOB (i.e., flag (2))
* move NAND_USE_FLASH_BBT (i.e., flag (1)) to bbm.h

It's important to note that because (1) and (3) are now both found in
bbm.h, they should NOT be used in the "nand_chip.options" field.

I removed a small section from the mtdnand DocBook because it referes to
NAND_USE_FLASH_BBT in nand.h, which has been moved to bbm.h.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
65aa1b1ea499a75c9920c1ebadacec0a0b8a79a6 06-Jul-2011 Nicolas Pitre <nicolas.pitre@linaro.org> ARM: mach-orion5x: convert boot_params to atag_offset

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
554cdaefd1cf7bb54b209c4e68c7cec87ce442a9 15-May-2011 Andrew Lunn <andrew@lunn.ch> ARM: orion5x: Refactor mpp code to use common orion platform mpp.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
7bcdca95c039d1cd1cfddd6aa012026b409ddb14 06-Mar-2011 Alexander Clouter <alex@digriz.org.uk> ARM: orion5x: replace printk with pr_{err,info,...} in ts78xx-setup.c

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
53936c56dcaf1db818fe953ae05592a8b5e345b5 05-Mar-2011 Alexander Clouter <alex@digriz.org.uk> ARM: orion5x: fix compiler cast warnings in ts78xx-setup.c

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
[np: used min_t() as suggested by Sergei Shtylyov <sshtylyov@mvista.com>]
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
b3882330843650b751817712db57b9a7061e7879 05-Mar-2011 Alexander Clouter <alex@digriz.org.uk> ARM: orion5x: use safer FPGA ID 'default' for TS-78xx

Originally the FPGA ID checking switch statement left disabled all the
TS implemented FPGA devices if the ID was unknown to it. Michael Spang
created a fix in f9b1184e that changed the default to enable the devices
in the event TS silently release more revisions into the wild, this
unfortunately breaks custom FPGA bitstreams.

This patch amends the switch statement so that the TS devices are only
enabled if on the revision number is unknown (whilst the magic matches).

Changelog:
v2: neater implementation and some cosmetic changes
v1: initial release <20110305112937.GA22117@chipmunk>

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
f9b1184e12e5ff8129b04837dffddb5a3c390473 05-Mar-2011 Michael Spang <mspang@csclub.uwaterloo.ca> ARM: Enable TS-78XX features in unknown revisions

When the manufacturer increases the revision number the platform
devices for the RTC, NAND, and RNG disappear. We should assume
new revisions have these devices instead of assuming they do not.

Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
4ee1f6b574765a6c97f945e6b0277e5ccac38cb5 15-Oct-2010 Lennert Buytenhek <buytenh@wantstofly.org> ARM: Remove dependency of plat-orion time code on mach directory includes.

This patch makes the various mach dirs that use the plat-orion time
code pass in timer and bridge addresses explicitly, instead of having
plat-orion get those values by including a mach dir include file --
the latter mechanism is problematic if you want to support multiple
ARM platforms in the same kernel image.

Signed-off-by: Lennert Buytenhek <buytenh@secretlab.ca>
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
17718e17a25cc989954a8430985b3133ca21422e 16-Feb-2011 Alexander Clouter <alex@digriz.org.uk> [ARM] update FPGA revisions for TS-7800

New FPGA revisions have been released and seen in the wild on the
platform, so it's time to update the list.

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
e25bac968d41d994e5295f89547bdff6cb40588a 08-Jan-2011 Alexander Clouter <alex@digriz.org.uk> [ARM] orion5x: accelerate NAND on the TS-78xx

The NAND supports 32bit reads and writes so lets stop shunting 8bit
chunks across the bus.

Doing a dumb 'dd' benchmark, this increases performance roughly like so:
* read: 1.3MB/s to 3.4MB/s
* write: 614kB/s to 882kB/s

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
377304abefa208890dce5739e4f297c93240efb2 05-Nov-2010 Michael Spang <mspang@csclub.uwaterloo.ca> [ARM] TS-78xxx NAND resource type should be IORESOURCE_MEM

The type was IORESOURCE_IO which is not what is expected by
plat_nand_probe(). This device has not worked since 2d098a72
("mtd: plat_nand: request memory resource before doing ioremap").

Signed-off-by: Michael Spang <mspang@csclub.uwaterloo.ca>
Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
6451d7783ba5ff24eb1a544eaa6665b890f30466 15-Oct-2010 Nicolas Pitre <nicolas.pitre@linaro.org> arm: remove machine_desc.io_pg_offst and .phys_io

Since we're now using addruart to establish the debug mapping, we can
remove the io_pg_offst and phys_io members of struct machine_desc.

The various declarations were removed using the following script:

grep -rl MACHINE_START arch/arm | xargs \
sed -i '/MACHINE_START/,/MACHINE_END/ { /\.\(phys_io\|io_pg_offst\)/d }'

[ Initial patch was from Jeremy Kerr, example script from Russell King ]

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Eric Miao <eric.miao at canonical.com>
ef077179a2909d3d0d3accf29ad1ea9ebb19019b 12-Aug-2010 Marek Vasut <marek.vasut@gmail.com> ARM: Fix gen_nand probe structures contents

These three platforms didn't properly fill nr_chips in gen_nand
registration and therefore depended on gen_nand bug fixed by commit
81cbb0b17796d81cbd92defe113cf2a7c7a21fbb ("mtd: gen_nand: fix support for
multiple chips")

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
a914d4309c4cf6e7c4d0dbce4822dcad38a7cf27 03-May-2009 Alexander Clouter <alex@digriz.org.uk> [ARM] orion: add hwrng timeriomem hook to TS-78xx

Add hook so that the HW RNG source on the TS-78xx is available.

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Nicolas Pitre <nico@marvell.com>
0c1355e36fdc304b102851312d80a1e69c01f5a2 21-Mar-2009 Alexander Clouter <alex@digriz.org.uk> [ARM] orion5x: update of FPGA ID's for the TS-78xx

Received official word finally from Technological Systems on which
FPGA ID's they have released unto the world. Also an additional of
a dummy entry matching the FPGA ID of the Verilog template on our
wiki.

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Nicolas Pitre <nico@marvell.com>
195f4a170eaeb8ef37c73e02adef2579168e9287 04-Mar-2009 Alexander Clouter <alex@digriz.org.uk> [ARM] orion5x: added a new FPGA ID set for the TS-78xx

Stefan Agner found his board comes with 0x00b480/0x02 but the main
board also has Rev B printed on it like my 0x00b480/0x03. Some light
enum renaming was needed but it was to be expected.

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Nicolas Pitre <nico@marvell.com>
75bb6b9aab3255f440ef4e72a31978d1681105d6 23-Feb-2009 Alexander Clouter <alex@digriz.org.uk> [ARM] orion5x: ts78xx add NAND support via plat_nand

ts78xx add NAND support via plat_nand

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Nicolas Pitre <nico@cam.org>
673492a800b14a9aac5d9d1af120334b9578a23c 23-Feb-2009 Alexander Clouter <alex@digriz.org.uk> [ARM] orion5x: ts78xx amend RTC registering to not depend on ifdef's

amend RTC registering to not depend on ifdef's

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Nicolas Pitre <nico@cam.org>
f5273fa3102fa4c25819f3034b8834c37d3e62a3 23-Feb-2009 Alexander Clouter <alex@digriz.org.uk> [ARM] orion5x: ts78xx make more bulletproof the RTC load/unload code

Added checks to the platform_device_(register|add) calls so that if
a device failed to load it would then not later be unloaded; also
added the hooks so that it would not try to unload when the RTC
driver support is compiled out.

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Nicolas Pitre <nico@cam.org>
39008f959f4f3b60eecc5cec0ca077146c1f366b 06-Feb-2009 Alexander Clouter <alex@digriz.org.uk> [ARM] orion5x: TS-78xx support for 'hotplug' of FPGA devices

the FPGA on the TS-7800 provides access to a number of devices
and so we have to be careful when reprogramming it. As we
are effectively turning a bus off/on we have to inform the
kernel that it should stop using anything provided by the
FPGA (currently only the RTC however the NAND, LCD, etc is
to come) before it's reprogrammed.

Once reprogramed, we can tell the kernel to (re)enable things
by checking the FPGA ID against a lookup table for what a
particular FPGA bitstream can provide.

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
f54128609c4e7792fb52b03c3db0da78627ce607 06-Feb-2009 Alexander Clouter <alex@digriz.org.uk> [ARM] orion5x: TS-78xx comment shifting

moved the MPP comments to the mpp area of the platform code

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
c3dfdb0823213c81f60987c8a3770b89ea95cad6 06-Feb-2009 Alexander Clouter <alex@digriz.org.uk> [ARM] orion5x: remove TS-78xx NOR support as it does not exist

The TS-7800's M25P40 is not available to the kernel, it's used
to load the initial bitstream onto the FPGA and so these hooks
point to nothing and need to be removed.

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
ac840605f3b1d9b99e1e6629a54994f8e003ff91 26-Aug-2008 Lennert Buytenhek <buytenh@wantstofly.org> mv643xx_eth: remove force_phy_addr field

Currently, there are two different fields in the
mv643xx_eth_platform_data struct that together describe the PHY
address -- one field (phy_addr) has the address of the PHY, but if
that address is zero, a second field (force_phy_addr) needs to be
set to distinguish the actual address zero from a zero due to not
having filled in the PHY address explicitly (which should mean
'use the default PHY address').

If we are a bit smarter about the encoding of the phy_addr field,
we can avoid the need for a second field -- this patch does that.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
1d5a1a6e92abb1ecb011a673e637146c4e232f1e 17-Jun-2008 Saeed Bishara <saeed@marvell.com> [ARM] Orion: Instantiate mv_xor driver for 5182

Signed-off-by: Saeed Bishara <saeed@marvell.com>
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
a09e64fbc0094e3073dbb09c3b4bfe4ab669244b 05-Aug-2008 Russell King <rmk@dyn-67.arm.linux.org.uk> [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach

This just leaves include/asm-arm/plat-* to deal with.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
7171d8672bb0bcb744935bd2c6108378b5c6c6ad 31-May-2008 Alexander Clouter <alex@digriz.org.uk> [ARM] Orion: add Technologic Systems TS-78xx support

Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>