Skip to contentSkip to conversation

RFC [PATCH 4/5 v5 RESEND] dreamplug: initial board support.

U-Boot Jason Cooper 2 participants 3 messages Jul 29, 2011 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Copied wholeheartedly from board/Marvell/guruplug and modified to add support for SPI NOR flash.

Also, the following features are used:
- Use the Marvell Integrated RTC.
- display Marvell CPU/L2/etc speeds if requested.

Note: this still uses MACH_TYPE_GURUPLUG until MACH_TYPE_DREAMPLUG is accepted into mainline Linux. The source from Globalscale did the same.

---

Changes from v1 to v2:

- resorted series to move 'make all' support last.

Changes from v2 to v3:

- Use MACH_TYPE_GURUPLUG for now until dreamplug support is in Linux.
- Update MAINTAINERS.
- Collapse into one patch.

Changes from v3 to v4:

- update copyright info as recommended by Prafulla Wadaskar.
- maintain proper order in boards.cfg, MAINTAINERS, etc.
- label MPP's
- change back to MACH_TYPE_DREAMPLUG. This patch is just RFC until the Dreamplug is supported in Linux (and MACH_TYPE_
added).

Changes from v4 to v5:

- Complete rewrite due to receiving u-boot source indirectly from Global Scale Tech.
- Added driver for integrated RTC. (thx GST!)
- Added support for displaying CPU frequencies at boot. (thx GST!)
- Adjust USB timeout to handle dreamplug EHCI chipset.
- Cleaned up MPP registers based on Global Scale code. (thx GST!)
- broke out MACH_TYPE_DREAMPLUG changes since it's going to be a while until the Linux arm tree gets sorted and accepts new boards again. Since all Dreamplugs currently on the market set r1 to MACH_TYPE_GURUPLUG, this allows the board to be added to u-boot while waiting for Linux mainline. Once it's in Linux mainline, then the last patch can be integrated to use MACH_TYPE_DREAMPLUG.

Changes for v5 resend:
- include this changelog.

 MAINTAINERS                          |    4 +
 MAKEALL                              |    1 +
 board/Marvell/dreamplug/Makefile     |   54 +++++++++++
 board/Marvell/dreamplug/dreamplug.c  |  157 ++++++++++++++++++++++++++++++++
 board/Marvell/dreamplug/dreamplug.h  |   42 +++++++++
 board/Marvell/dreamplug/kwbimage.cfg |  163 ++++++++++++++++++++++++++++++++++
 boards.cfg                           |    1 +
 include/configs/dreamplug.h          |  138 ++++++++++++++++++++++++++++
 8 files changed, 560 insertions(+), 0 deletions(-)
 create mode 100644 board/Marvell/dreamplug/Makefile
 create mode 100644 board/Marvell/dreamplug/dreamplug.c
 create mode 100644 board/Marvell/dreamplug/dreamplug.h
 create mode 100644 board/Marvell/dreamplug/kwbimage.cfg
 create mode 100644 include/configs/dreamplug.h
MAINTAINERS +4 -0
index 2bba7b4..9affbea 100644
@@ -70,6 +70,10 @@ Conn Clark <[email protected]>
 
 	ESTEEM192E	MPC8xx
 
+Jason Cooper <[email protected]>
+
+	dreamplug	ARM926EJS (Kirkwood SoC)
+
 Joe D'Abbraccio <[email protected]>
 
 	MPC837xERDB	MPC837x
MAKEALL +1 -0
index 51db13e..55a122f 100755
@@ -335,6 +335,7 @@ LIST_ARM9="			\
 	cp966			\
 	da830evm		\
 	da850evm		\
+	dreamplug		\
 	edb9301			\
 	edb9302			\
 	edb9302a		\
board/Marvell/dreamplug/Makefile new file +54 -0

54 lines not on this page · raw message

board/Marvell/dreamplug/dreamplug.c new file +157 -0

157 lines not on this page · raw message

board/Marvell/dreamplug/dreamplug.h new file +42 -0

42 lines not on this page · raw message

board/Marvell/dreamplug/kwbimage.cfg new file +163 -0

163 lines not on this page · raw message

boards.cfg +1 -0
index dfefc3f..294c675 100644
@@ -118,6 +118,7 @@ davinci_sonata               arm         arm926ejs   sonata              davinci
 suen3                        arm         arm926ejs   km_arm              keymile        kirkwood
 suen8                        arm         arm926ejs   km_arm              keymile        kirkwood
 mgcoge3un                    arm         arm926ejs   km_arm              keymile        kirkwood
+dreamplug                    arm         arm926ejs   -                   Marvell        kirkwood
 guruplug                     arm         arm926ejs   -                   Marvell        kirkwood
 mv88f6281gtw_ge              arm         arm926ejs   -                   Marvell        kirkwood
 openrd_base                  arm         arm926ejs   openrd              Marvell        kirkwood        openrd:BOARD_IS_OPENRD_BASE
include/configs/dreamplug.h new file +138 -0

138 lines not on this page · raw message

Signature · 1 line
1.7.0.4
#2 lore raw

Dear Jason Cooper,

Quoted 9 lines · In message <[email protected]> you wrote:

Copied wholeheartedly from board/Marvell/guruplug and modified to add support for SPI NOR flash.

Also, the following features are used:
- Use the Marvell Integrated RTC.
- display Marvell CPU/L2/etc speeds if requested.

Note: this still uses MACH_TYPE_GURUPLUG until MACH_TYPE_DREAMPLUG is accepted into mainline Linux. The source from Globalscale did the same.

Checkpatch says:

WARNING: __func__ should be used instead of gcc specific __FUNCTION__

MAKEALL LIST_ARM9=" \ · line 341

Quoted 10 lines
MAKEALL +1 -0
@@ -335,6 +335,7 @@ LIST_ARM9="			\
 	cp966			\
 	da830evm		\
 	da850evm		\
+	dreamplug		\
 	edb9301			\
 	edb9302			\
 	edb9302a		\

NAK. We don't add boards to MAKEALL any more. We use boards.cfg instead.

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Alliance: In international politics, the union  of  two  thieves  who
have  their hands so deeply inserted in each other's pocket that they
cannot separately plunder a third.                   - Ambrose Bierce
author
#3 lore raw
Quoted 10 lines · Wolfgang Denk

Dear Jason Cooper,

Quoted 7 lines · In message <[email protected]> you wrote:

Copied wholeheartedly from board/Marvell/guruplug and modified to add support for SPI NOR flash.

Also, the following features are used:
- Use the Marvell Integrated RTC.
- display Marvell CPU/L2/etc speeds if requested.

Quoted 6 lines
Quoted 2 lines

Note: this still uses MACH_TYPE_GURUPLUG until MACH_TYPE_DREAMPLUG is accepted into mainline Linux. The source from Globalscale did the same.

Checkpatch says:

WARNING: __func__ should be used instead of gcc specific __FUNCTION__

Will fix.

Quoted 5 lines
Quoted 5 lines
MAKEALL +0 -0
@@ -335,6 +335,7 @@ LIST_ARM9="			\
 	cp966			\
 	da830evm		\
Quoted 8 lines

MAKEALL LIST_ARM9=" \ · line 341

Quoted 5 lines
MAKEALL +1 -0
 	da850evm		\
+	dreamplug		\
 	edb9301			\
 	edb9302			\
 	edb9302a		\

NAK. We don't add boards to MAKEALL any more. We use boards.cfg instead.

Ok, thanks. will fix in v6.

Jason.