add support for the palm treo 680 board
PATCH v5 1/1 add support for the palm treo 680 board
A quick overview of u-boot implementation on the treo 680...
The treo 680 has a Diskonchip G4 nand flash chip. This device has a 2k region that maps to the system bus at the reset vector in a NOR-like fashion so that it can be used as the boot device. The phone is shipped with this 2k region configured as write-protected (can't be modified) and programmed with an initial program loader (IPL). At power-up, this IPL loads the contents of two flash blocks to SDRAM and jumps to it. The capacity of the two blocks is not large enough to hold all of u-boot, so a u-boot SPL is used. To conserve flash space, these two blocks and the necessary number of subsequent blocks are programmed with a concatenated spl + u-boot image. That way, the IPL will also load a portion of u-boot proper, and when the spl runs, it relocates the portion of u-boot that the IPL has already loaded, and then resumes loading the remaining part of u-boot before jumping to it.
The default_environment is used (CONFIG_ENV_IS_NOWHERE) because I didn't think that having a writable environment was worth the cost of a flash block, although adding it would be straightforward. I abuse the CONFIG_EXTRA_ENV_SETTINGS option to specify the usbtty for the console (CONFIG_SYS_CONSOLE_IS_IN_ENV).
Support for the LCD is included, but currently it is only useful for displaying the u-boot splash screen. But if u-boot is built without the usbtty console, it does display the auto-boot progress nicely.
---
Changelog:
v5: do not use a custom linker script for spl build
v4:
- use CONFIG_MACH_TYPE instead of MACH_TYPE_TREO680 to initialize bi_arch_number
- use offset from CONFIG_SYS_DRAM_BASE to initialize bi_boot_params, instead of hard-coding an absolute address
- use shift operator to set one bit when initializing gpio register
- remove memcpy() definition from spl build; use CONFIG_SPL_LIBGENERIC_SUPPORT to properly build and link with u-boot's memcpy()
- config file cleanup: remove erroneous comments, unneeded numerical definitions
- edited README.palmtreo680 a bit
v3: flash_u-boot utility split into separate patch
v2:
- tabs removed in #defines in palmtreo680.h
- utility for programming u-boot to flash moved to tools/palmtreo680
CREDITS | 4 + MAINTAINERS | 3 + board/palmtreo680/Makefile | 34 +++ board/palmtreo680/palmtreo680.c | 154 +++++++++++ boards.cfg | 1 + doc/README.palmtreo680 | 581 +++++++++++++++++++++++++++++++++++++++ include/configs/palmtreo680.h | 286 +++++++++++++++++++ 7 files changed, 1063 insertions(+), 0 deletions(-) create mode 100644 board/palmtreo680/Makefile create mode 100644 board/palmtreo680/palmtreo680.c create mode 100644 doc/README.palmtreo680 create mode 100644 include/configs/palmtreo680.h
CREDITS +4 -0
@@ -124,6 +124,10 @@ N: James F. Dougherty E: jfd at GigabitNetworks.COM D: Port to the MOUSSE board +N: Mike Dunn +E: mikedunn at newsguy.com +D: Palmtreo680 board, docg4 nand flash driver + N: Dave Ellis E: DGE at sixnetio.com D: EEPROM Speedup, SXNI855T port
MAINTAINERS +3 -0
@@ -650,6 +650,9 @@ Wolfgang Denk <[email protected]> imx27lite i.MX27 qong i.MX31 +Mike Dunn <[email protected]> + palmtreo680 pxa270 + Kristoffer Ericson <[email protected]> jornada SA1110
board/palmtreo680/Makefile new file +34 -0
@@ -0,0 +1,34 @@ +# +# Palm Treo680 Support +# +# Copyright (C) 2013 Mike Dunn <[email protected]> +# +# This file is released under the terms of GPL v2 and any later version. +# See the file COPYING in the root directory of the source tree for details. + +include $(TOPDIR)/config.mk + +LIB = $(obj)lib$(BOARD).o + +COBJS := palmtreo680.o + +SRCS := $(COBJS:.o=.c) +OBJS := $(addprefix $(obj),$(COBJS)) + +$(LIB): $(obj).depend $(OBJS) + $(call cmd_link_o_target, $(OBJS)) + +clean: + rm -f $(OBJS) + +distclean: clean + rm -f $(LIB) core *.bak $(obj).depend + +######################################################################### + +# defines $(obj).depend target +include $(SRCTREE)/rules.mk + +sinclude $(obj).depend + +#########################################################################
board/palmtreo680/palmtreo680.c new file +154 -0
154 lines not on this page · raw message
boards.cfg +1 -0
@@ -336,6 +336,7 @@ h2200 arm pxa lubbock arm pxa palmld arm pxa palmtc arm pxa +palmtreo680 arm pxa polaris arm pxa trizepsiv - - trizepsiv:POLARIS pxa255_idp arm pxa trizepsiv arm pxa
doc/README.palmtreo680 new file +581 -0
581 lines not on this page · raw message
include/configs/palmtreo680.h new file +286 -0
286 lines not on this page · raw message
Signature · 1 line
1.7.8.6