Merge branch 'for-next/misc'
This commit is contained in:
commit
ce961e3412
|
@ -3,67 +3,52 @@
|
|||
# subdirectories here. Add them in the ".gitignore" file
|
||||
# in that subdirectory instead.
|
||||
#
|
||||
# NOTE! Please use 'git ls-files -i --exclude-standard'
|
||||
# command after changing this file, to see if there are
|
||||
# any tracked files which get ignored after the change.
|
||||
#
|
||||
# Normal rules
|
||||
#
|
||||
*~
|
||||
.*
|
||||
\#*\#
|
||||
*.o
|
||||
*.o.*
|
||||
*.a
|
||||
*.s
|
||||
*.ko
|
||||
*.so
|
||||
*.so.dbg
|
||||
*.mod.c
|
||||
*.i
|
||||
*.lst
|
||||
*.symtypes
|
||||
*.elf
|
||||
*.patch
|
||||
*.mcp
|
||||
*.orig
|
||||
*.bct
|
||||
*.dcd
|
||||
*.dcd.S
|
||||
*.bbenv
|
||||
*.bbenv.*
|
||||
Module.symvers
|
||||
|
||||
#
|
||||
# Top-level generic files
|
||||
#
|
||||
tags
|
||||
TAGS
|
||||
cross_arch
|
||||
cross_compile
|
||||
barebox
|
||||
barebox.S
|
||||
barebox.bin
|
||||
barebox.srec
|
||||
barebox.netx
|
||||
barebox.s5p
|
||||
barebox.spi
|
||||
barebox.ubl
|
||||
barebox.zynq
|
||||
barebox.uimage
|
||||
barebox.map
|
||||
barebox.kwb
|
||||
barebox.kwbuart
|
||||
barebox.efi
|
||||
barebox.canon-a1100.bin
|
||||
barebox-flash-image
|
||||
System.map
|
||||
Module.symvers
|
||||
barebox_default_env*
|
||||
/tags
|
||||
/TAGS
|
||||
/barebox*
|
||||
/System.map
|
||||
|
||||
#
|
||||
# git files that we don't want to ignore even it they are dot-files
|
||||
#
|
||||
!.gitignore
|
||||
!.mailmap
|
||||
|
||||
#
|
||||
# Generated include files
|
||||
#
|
||||
include/asm-*/asm-offsets.h
|
||||
include/config
|
||||
include/linux/compile.h
|
||||
include/generated
|
||||
|
||||
# Generated files
|
||||
|
@ -79,6 +64,17 @@ series
|
|||
|
||||
# cscope files
|
||||
cscope.*
|
||||
ncscope.*
|
||||
|
||||
# patches
|
||||
*.patch
|
||||
# gnu global files
|
||||
GPATH
|
||||
GRTAGS
|
||||
GSYMS
|
||||
GTAGS
|
||||
|
||||
*.orig
|
||||
*~
|
||||
\#*\#
|
||||
|
||||
# Kconfig presets
|
||||
all.config
|
||||
|
|
472
CREDITS
472
CREDITS
|
@ -1,472 +0,0 @@
|
|||
#
|
||||
# Parts of the development effort for this project have been
|
||||
# sponsored by SIEMENS AG, Austria. Thanks to SIEMENS for
|
||||
# supporting an Open Source project!
|
||||
#
|
||||
#
|
||||
# This is at least a partial credits-file of individual people that
|
||||
# have contributed to the barebox project. It is sorted by name and
|
||||
# formatted to allow easy grepping and beautification by scripts.
|
||||
# The fields are: name (N), email (E), web-address (W), PGP key ID
|
||||
# and fingerprint (P), description (D), and snail-mail address (S).
|
||||
# Thanks,
|
||||
#
|
||||
# Wolfgang Denk
|
||||
#----------
|
||||
|
||||
N: Dr. Bruno Achauer
|
||||
E: bruno@exet-ag.de
|
||||
D: Support for NetBSD (both as host and target system)
|
||||
|
||||
N: Guillaume Alexandre
|
||||
E: guillaume.alexandre@gespac.ch
|
||||
D: Add PCIPPC6 configuration
|
||||
|
||||
N: Swen Anderson
|
||||
E: sand@peppercon.de
|
||||
D: ERIC Support
|
||||
|
||||
N: Pantelis Antoniou
|
||||
E: panto@intracom.gr
|
||||
D: NETVIA & NETPHONE board support, ARTOS support.
|
||||
D: Support for Silicon Turnkey eXpress XTc
|
||||
|
||||
N: Pierre Aubert
|
||||
E: <p.aubert@staubli.com>
|
||||
D: Support for RPXClassic board
|
||||
|
||||
N: Yuli Barcohen
|
||||
E: yuli@arabellasw.com
|
||||
D: Unified support for Motorola MPC826xADS/MPC8272ADS/PQ2FADS boards.
|
||||
D: Support for Zephyr Engineering ZPC.1900 board.
|
||||
D: Support for Interphase iSPAN boards.
|
||||
D: Support for Analogue&Micro Adder boards.
|
||||
D: Support for Analogue&Micro Rattler boards.
|
||||
W: http://www.arabellasw.com
|
||||
|
||||
N: Jerry van Baren
|
||||
E: <vanbaren@cideas.com>
|
||||
D: BedBug port to 603e core (MPC82xx). Code for enhanced memory test.
|
||||
|
||||
N: Pavel Bartusek
|
||||
E: <pba@sysgo.com>
|
||||
D: Reiserfs support
|
||||
W: http://www.elinos.com
|
||||
|
||||
N: Andre Beaudin
|
||||
E: <andre.beaudin@colubris.com>
|
||||
D: PCMCIA, Ethernet, TFTP
|
||||
|
||||
N: Jon Benediktsson
|
||||
E: jonb@marel.is
|
||||
D: Support for Marel V37 board
|
||||
|
||||
N: Raphael Bossek
|
||||
E: raphael.bossek@solutions4linux.de
|
||||
D: 8xxrom-0.3.0
|
||||
|
||||
N: Cliff Brake
|
||||
E: cliff.brake@gmail.com
|
||||
D: Port to Vibren PXA255 IDP platform
|
||||
W: http://www.vibren.com
|
||||
W: http://bec-systems.com
|
||||
|
||||
N: Rick Bronson
|
||||
E: rick@efn.org
|
||||
D: Atmel AT91RM9200DK and NAND support
|
||||
|
||||
N: David Brown
|
||||
E: DBrown03@harris.com
|
||||
D: Extensions to 8xxrom-0.3.0
|
||||
|
||||
N: Oliver Brown
|
||||
E: obrown@adventnetworks.com
|
||||
D: Port to the gw8260 board
|
||||
|
||||
N: Curt Brune
|
||||
E: curt@cucy.com
|
||||
D: Added support for Samsung S3C4510B CPU (ARM7tdmi based SoC)
|
||||
D: Added support for ESPD-Inc. EVB4510 Board
|
||||
W: http://www.cucy.com
|
||||
|
||||
N: Jonathan De Bruyne
|
||||
E: jonathan.debruyne@siemens.atea.be
|
||||
D: Port to Siemens IAD210 board
|
||||
|
||||
N: Ken Chou
|
||||
E: kchou@ieee.org
|
||||
D: Support for A3000 SBC board
|
||||
|
||||
N: Conn Clark
|
||||
E: clark@esteem.com
|
||||
D: ESTEEM192E support
|
||||
|
||||
N: Magnus Damm
|
||||
E: damm@opensource.se
|
||||
D: 8xxrom
|
||||
|
||||
N: Richard Danter
|
||||
E: richard.danter@windriver.com
|
||||
D: Support for Wind River PPMC 7xx/74xx boards
|
||||
|
||||
N: George G. Davis
|
||||
E: gdavis@mvista.com
|
||||
D: Board ports for ADS GraphicsClient+ and Intel Assabet
|
||||
|
||||
N: Arun Dharankar
|
||||
E: ADharankar@ATTBI.Com
|
||||
D: threads / scheduler example code
|
||||
|
||||
N: Kári Davíðsson
|
||||
E: kd@flaga.is
|
||||
D: FLAGA DM Support
|
||||
|
||||
N: Wolfgang Denk
|
||||
E: wd@denx.de
|
||||
D: barebox initial version, continuing maintenance, ARMBoot merge
|
||||
W: http://www.denx.de
|
||||
|
||||
N: Dan A. Dickey
|
||||
E: ddickey@charter.net
|
||||
D: FADS Support
|
||||
|
||||
N: James F. Dougherty
|
||||
E: jfd@GigabitNetworks.COM
|
||||
D: Port to the MOUSSE board
|
||||
|
||||
N: Dave Ellis
|
||||
E: DGE@sixnetio.com
|
||||
D: EEPROM Speedup, SXNI855T port
|
||||
|
||||
N: Thomas Elste
|
||||
E: info@elste.org
|
||||
D: Port for the ModNET50 Board, NET+50 CPU Port
|
||||
W: http://www.imms.de
|
||||
|
||||
N: Daniel Engström
|
||||
E: daniel@omicron.se
|
||||
D: x86 port, Support for sc520_cdp board
|
||||
|
||||
N: Dr. Wolfgang Grandegger
|
||||
E: wg@denx.de
|
||||
D: Support for Interphase 4539 T1/E1/J1 PMC, PN62, CCM, SCM boards
|
||||
W: www.denx.de
|
||||
|
||||
N: Peter Figuli
|
||||
E: peposh@etc.sk
|
||||
D: Support for WEP EP250 (PXA) board
|
||||
|
||||
N: Thomas Frieden
|
||||
E: ThomasF@hyperion-entertainment.com
|
||||
D: Support for AmigaOne
|
||||
|
||||
N: Frank Gottschling
|
||||
E: fgottschling@eltec.de
|
||||
D: Support for ELTEC MHPC/BAB7xx/ELPPC boards, cfb-console, i8042, SMI LynxEM
|
||||
W: www.eltec.de
|
||||
|
||||
N: Marius Groeger
|
||||
E: mgroeger@sysgo.de
|
||||
D: MBX Support, board specific function interface, EST SBC8260 support; initial support for StrongARM (LART), ARM720TDMI (implementa A7)
|
||||
W: www.elinos.com
|
||||
|
||||
N: Kirk Haderlie
|
||||
E: khaderlie@vividimage.com
|
||||
D: Added TFTP to 8xxrom (-> 0.3.1)
|
||||
|
||||
N: Chris Hallinan
|
||||
E: clh@net1plus.com
|
||||
D: DHCP Support
|
||||
|
||||
N: Anne-Sophie Harnois
|
||||
E: Anne-Sophie.Harnois@nextream.fr
|
||||
D: Port to Walnut405 board
|
||||
|
||||
N: Andreas Heppel
|
||||
E: aheppel@sysgo.de
|
||||
D: CPU Support for MPC 75x; board support for Eltec BAB750 [obsolete!]
|
||||
|
||||
N: August Hoeraendl
|
||||
E: august.hoerandl@gmx.at
|
||||
D: Support for the logodl board (PXA2xx)
|
||||
|
||||
N: Josh Huber
|
||||
E: huber@alum.wpi.edu
|
||||
D: Port to the Galileo Evaluation Board, and the MPC74xx cpu series.
|
||||
W: http://www.mclx.com/
|
||||
|
||||
H: Stuart Hughes
|
||||
E: stuarth@lineo.com
|
||||
D: Port to MPC8260ADS board
|
||||
|
||||
H: Rich Ireland
|
||||
E: r.ireland@computer.org
|
||||
D: FPGA device configuration driver
|
||||
|
||||
N: Gary Jennejohn
|
||||
E: garyj@jennejohn.org, gj@denx.de
|
||||
D: Support for Samsung ARM920T S3C2400X, ARM920T "TRAB"
|
||||
W: www.denx.de
|
||||
|
||||
N: Murray Jensen
|
||||
E: Murray.Jensen@csiro.au
|
||||
D: Initial 8260 support; GDB support
|
||||
D: Port to Cogent+Hymod boards; Hymod Board Database
|
||||
|
||||
N: Yoo. Jonghoon
|
||||
E: yooth@ipone.co.kr
|
||||
D: Added port to the RPXlite board
|
||||
|
||||
N: Mark Jonas
|
||||
E: mark.jonas@freescale.com
|
||||
D: Support for Freescale Total5200 platform
|
||||
W: http://www.mobilegt.com/
|
||||
|
||||
N: Sam Song
|
||||
E: samsongshu@yahoo.com.cn
|
||||
D: Port to the RPXlite_DW board
|
||||
|
||||
N: Brad Kemp
|
||||
E: Brad.Kemp@seranoa.com
|
||||
D: Port to Windriver ppmc8260 board
|
||||
|
||||
N: Sangmoon Kim
|
||||
E: dogoil@etinsys.com
|
||||
D: Support for debris board
|
||||
D: Support for KVME080 board
|
||||
|
||||
N: Frederick W. Klatt
|
||||
E: fred.klatt@windriver.com
|
||||
D: Support for Wind River SBC8540/SBC8560 boards
|
||||
|
||||
N: Thomas Koeller
|
||||
E: tkoeller@gmx.net
|
||||
D: Port to Motorola Sandpoint 3 (MPC8240)
|
||||
|
||||
N: Raghu Krishnaprasad
|
||||
E: Raghu.Krishnaprasad@fci.com
|
||||
D: Support for Adder-II MPC852T evaluation board
|
||||
W: http://www.forcecomputers.com
|
||||
|
||||
N: Bernhard Kuhn
|
||||
E: bkuhn@metrowerks.com
|
||||
D Support for Coldfire CPU; Support for Motorola M5272C3 and M5282EVB boards
|
||||
|
||||
N: Prakash Kumar
|
||||
E: prakash@embedx.com
|
||||
D Support for Intrinsyc CERF PXA250 board.
|
||||
|
||||
N: Thomas Lange
|
||||
E: thomas@corelatus.se
|
||||
D: Support for GTH, GTH2 and dbau1x00 boards; lots of PCMCIA fixes
|
||||
|
||||
N: Marc Leeman
|
||||
E: marc.leeman@barco.com
|
||||
D: Support for Barco Streaming Video Card (SVC) and Sample Compress Network (SCN)
|
||||
W: www.barco.com
|
||||
|
||||
N: The LEOX team
|
||||
E: team@leox.org
|
||||
D: Support for LEOX boards, DS164x RTC
|
||||
W: http://www.leox.org
|
||||
|
||||
N: Leif Lindholm
|
||||
E: leif.lindholm@i3micro.com
|
||||
D: Support for AMD dbau1550 board.
|
||||
|
||||
N: Stephan Linz
|
||||
E: linz@li-pro.net
|
||||
D: Support for Nios Stratix Development Kit (DK-1S10)
|
||||
D: Support for SSV ADNP/ESC1 (Nios Cyclone)
|
||||
W: http://www.li-pro.net
|
||||
|
||||
N: Raymond Lo
|
||||
E: lo@routefree.com
|
||||
D: Support for DOS partitions
|
||||
|
||||
N: Dan Malek
|
||||
E: dan@embeddedalley.com
|
||||
D: FADSROM, the grandfather of all of this
|
||||
D: Support for Silicon Turnkey eXpress XTc
|
||||
|
||||
N: Andrea "llandre" Marson
|
||||
E: andrea.marson@dave-tech.it
|
||||
D: Port to PPChameleonEVB board
|
||||
W: www.dave-tech.it
|
||||
|
||||
N: Reinhard Meyer
|
||||
E: r.meyer@emk-elektronik.de
|
||||
D: Port to EMK TOP860 Module
|
||||
|
||||
N: Jay Monkman
|
||||
E: jtm@smoothsmoothie.com
|
||||
D: EST SBC8260 support
|
||||
|
||||
N: Frank Morauf
|
||||
E: frank.morauf@salzbrenner.com
|
||||
D: Support for Embedded Planet RPX Super Board
|
||||
|
||||
N: David Müller
|
||||
E: d.mueller@elsoft.ch
|
||||
D: Support for Samsung ARM920T SMDK2410 eval board
|
||||
|
||||
N: Scott McNutt
|
||||
E: smcnutt@psyent.com
|
||||
D: Support for Altera Nios-32 CPU
|
||||
D: Support for Altera Nios-II CPU
|
||||
D: Support for Nios Cyclone Development Kit (DK-1C20)
|
||||
W: http://www.psyent.com
|
||||
|
||||
N: Rolf Offermanns
|
||||
E: rof@sysgo.de
|
||||
D: Initial support for SSV-DNP1110, SMC91111 driver
|
||||
W: www.elinos.com
|
||||
|
||||
N: John Otken
|
||||
E: jotken@softadvances.com
|
||||
D: Support for AMCC Luan 440SP board
|
||||
|
||||
N: Tolunay Orkun
|
||||
E: torkun@nextio.com
|
||||
D: Support for Cogent CSB272 & CSB472 boards
|
||||
|
||||
N: Keith Outwater
|
||||
E: keith_outwater@mvis.com
|
||||
D: Support for generic/custom MPC860T boards (GEN860T, GEN860T_SC)
|
||||
|
||||
N: Frank Panno
|
||||
E: fpanno@delphintech.com
|
||||
D: Support for Embedded Planet EP8260 Board
|
||||
|
||||
N: Denis Peter
|
||||
E: d.peter@mpl.ch
|
||||
D: Support for 4xx SCSI, floppy, CDROM, CT69000 video, ...
|
||||
D: Support for PIP405 board
|
||||
D: Support for MIP405 board
|
||||
|
||||
N: Dave Peverley
|
||||
E: dpeverley@mpc-data.co.uk
|
||||
W: http://www.mpc-data.co.uk
|
||||
D: OMAP730 P2 board support
|
||||
|
||||
N: Bill Pitts
|
||||
E: wlp@mindspring.com
|
||||
D: BedBug embedded debugger code
|
||||
|
||||
N: Daniel Poirot
|
||||
E: dan.poirot@windriver.com
|
||||
D: Support for the Wind River sbc405, sbc8240 board
|
||||
W: http://www.windriver.com
|
||||
|
||||
N: Stefan Roese
|
||||
E: stefan.roese@esd-electronics.com
|
||||
D: AMCC PPC401/403/405GP Support; Windows environment support
|
||||
|
||||
N: Erwin Rol
|
||||
E: erwin@muffin.org
|
||||
D: boot support for RTEMS
|
||||
|
||||
N: Paul Ruhland
|
||||
E: pruhland@rochester.rr.com
|
||||
D: Port to Logic Zoom LH7A40x SDK board(s)
|
||||
|
||||
N: Neil Russell
|
||||
E: caret@c-side.com
|
||||
D: Author of LiMon-1.4.2, which contributed some ideas
|
||||
|
||||
N: Travis B. Sawyer
|
||||
E: travis.sawyer@sandburst.com
|
||||
D: Support for AMCC PPC440GX, XES XPedite1000 440GX PrPMC board. AMCC 440gx Ref Platform (Ocotea)
|
||||
|
||||
N: Paolo Scaffardi
|
||||
E: arsenio@tin.it
|
||||
D: FADS823 configuration, MPC823 video support, I2C, wireless keyboard, lots more
|
||||
|
||||
N: Robert Schwebel
|
||||
E: r.schwebel@pengutronix.de
|
||||
D: Support for csb226, logodl and innokom boards (PXA2xx)
|
||||
|
||||
N: Aaron Sells
|
||||
E: sellsa@embeddedplanet.com
|
||||
D: Support for EP82xxM
|
||||
|
||||
N: Art Shipkowski
|
||||
E: art@videon-central.com
|
||||
D: Support for NetSilicon NS7520
|
||||
|
||||
N: Yasushi Shoji
|
||||
E: yashi@atmark-techno.com
|
||||
D: Support for Xilinx MicroBlaze, for Atmark Techno SUZAKU FPGA board
|
||||
|
||||
N: Kurt Stremerch
|
||||
E: kurt@exys.be
|
||||
D: Support for Exys XSEngine board
|
||||
|
||||
N: Andrea Scian
|
||||
E: andrea.scian@dave-tech.it
|
||||
D: Port to B2 board
|
||||
W: www.dave-tech.it
|
||||
|
||||
N: Rob Taylor
|
||||
E: robt@flyingpig.com
|
||||
D: Port to MBX860T and Sandpoint8240
|
||||
|
||||
N: Erik Theisen
|
||||
E: etheisen@mindspring.com
|
||||
D: MBX8xx and many other patches
|
||||
|
||||
N: Jim Thompson
|
||||
E: jim@musenki.com
|
||||
D: Support for MUSENKI board
|
||||
|
||||
N: Rune Torgersen
|
||||
E: <runet@innovsys.com>
|
||||
D: Support for Motorola MPC8266ADS board
|
||||
|
||||
N: Greg Ungerer
|
||||
E: greg.ungerer@opengear.com
|
||||
D: Support for ks8695 CPU, and OpenGear cmXXXX boards
|
||||
|
||||
N: David Updegraff
|
||||
E: dave@cray.com
|
||||
D: Port to Cray L1 board; DHCP vendor extensions
|
||||
|
||||
N: Christian Vejlbo
|
||||
E: christian.vejlbo@tellabs.com
|
||||
D: FADS860T ethernet support
|
||||
|
||||
N: Robert Whaley
|
||||
E: rwhaley@applieddata.net
|
||||
D: Port to ARM PXA27x adsvix SBC
|
||||
|
||||
N: Martin Winistoerfer
|
||||
E: martinwinistoerfer@gmx.ch
|
||||
D: Port to MPC555/556 microcontrollers and support for cmi board
|
||||
|
||||
N: Ming-Len Wu
|
||||
E: minglen_wu@techware.com.tw
|
||||
D: Motorola MX1ADS board support
|
||||
W: http://www.techware.com.tw/
|
||||
|
||||
N: Xianghua Xiao
|
||||
E: x.xiao@motorola.com
|
||||
D: Support for Motorola 85xx(PowerQUICC III) chip, MPC8540ADS and MPC8560ADS boards.
|
||||
|
||||
N: John Zhan
|
||||
E: zhanz@sinovee.com
|
||||
D: Support for SinoVee Microsystems SC8xx SBC
|
||||
|
||||
N: Alex Zuepke
|
||||
E: azu@sysgo.de
|
||||
D: Overall improvements on StrongARM, ARM720TDMI; Support for Tuxscreen; initial PCMCIA support for ARM
|
||||
W: www.elinos.com
|
||||
|
||||
N: James MacAulay
|
||||
E: james.macaulay@amirix.com
|
||||
D: Suppport for Amirix AP1000
|
||||
W: www.amirix.com
|
||||
|
||||
N: Timur Tabi
|
||||
E: timur@freescale.com
|
||||
D: Support for MPC8349E-mITX
|
||||
W: www.freescale.com
|
3
MAKEALL
3
MAKEALL
|
@ -91,7 +91,6 @@ do_build_target() {
|
|||
local log_err="${LOGDIR}/${target}/errors.log"
|
||||
|
||||
rm -rf "${BUILDDIR}"
|
||||
mkdir -p "${BUILDDIR}"
|
||||
mkdir -p "${LOGDIR}/${target}"
|
||||
printf "Building ${arch} ${target} \n" >&2 | tee -a "${log_report}"
|
||||
|
||||
|
@ -175,7 +174,7 @@ do_build_all() {
|
|||
|
||||
if [ -d $i ]
|
||||
then
|
||||
do_build ${arch}
|
||||
do_build ${arch} "*"
|
||||
build_target=$((build_target + 1))
|
||||
fi
|
||||
done
|
||||
|
|
6
Makefile
6
Makefile
|
@ -488,9 +488,9 @@ images/%.s: barebox.bin FORCE
|
|||
$(Q)$(MAKE) $(build)=images $@
|
||||
|
||||
ifdef CONFIG_PBL_MULTI_IMAGES
|
||||
all: $(KBUILD_DTBS) barebox.bin images
|
||||
all: barebox.bin images
|
||||
else
|
||||
all: barebox-flash-image $(KBUILD_DTBS)
|
||||
all: barebox-flash-image
|
||||
endif
|
||||
|
||||
common-$(CONFIG_PBL_IMAGE) += pbl/
|
||||
|
@ -953,7 +953,7 @@ endif # CONFIG_MODULES
|
|||
CLEAN_DIRS += $(MODVERDIR)
|
||||
CLEAN_FILES += barebox System.map include/generated/barebox_default_env.h \
|
||||
.tmp_version .tmp_barebox* barebox.bin barebox.map barebox.S \
|
||||
.tmp_kallsyms* common/barebox_default_env* barebox.ldr \
|
||||
.tmp_kallsyms* barebox.ldr \
|
||||
scripts/bareboxenv-target barebox-flash-image \
|
||||
barebox.srec barebox.s5p barebox.ubl barebox.zynq \
|
||||
barebox.uimage barebox.spi barebox.kwb barebox.kwbuart \
|
||||
|
|
|
@ -13,8 +13,6 @@ AS += -EL
|
|||
LD += -EL
|
||||
endif
|
||||
|
||||
comma = ,
|
||||
|
||||
# This selects which instruction set is used.
|
||||
# Note that GCC does not numerically define an architecture version
|
||||
# macro, but instead defines a whole series of macros which makes
|
||||
|
|
|
@ -40,7 +40,7 @@ ENDPROC(setup_c)
|
|||
/*
|
||||
* void relocate_to_adr(unsigned long targetadr)
|
||||
*
|
||||
* Copy binary to targetadr, relocate code, clear bss and continue
|
||||
* Copy binary to targetadr, relocate code and continue
|
||||
* executing at new address.
|
||||
*/
|
||||
.section .text.relocate_to_adr
|
||||
|
|
|
@ -68,9 +68,9 @@ SECTIONS
|
|||
.barebox_cmd : { BAREBOX_CMDS }
|
||||
___barebox_cmd_end = .;
|
||||
|
||||
__barebox_magicvar_start = .;
|
||||
___barebox_magicvar_start = .;
|
||||
.barebox_magicvar : { BAREBOX_MAGICVARS }
|
||||
__barebox_magicvar_end = .;
|
||||
___barebox_magicvar_end = .;
|
||||
|
||||
___barebox_initcalls_start = .;
|
||||
.barebox_initcalls : { INITCALLS }
|
||||
|
|
|
@ -1,54 +1,13 @@
|
|||
/*
|
||||
* barebox - linkage.h
|
||||
*
|
||||
* Copyright (c) 2005 blackfin.uclinux.org
|
||||
*
|
||||
* See file CREDITS for list of people who contributed to this
|
||||
* project.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of
|
||||
* the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
* Copyright 2004-2009 Analog Devices Inc.
|
||||
*
|
||||
* Licensed under the GPL-2 or later.
|
||||
*/
|
||||
|
||||
#ifndef _LINUX_LINKAGE_H
|
||||
#define _LINUX_LINKAGE_H
|
||||
#ifndef __ASM_LINKAGE_H
|
||||
#define __ASM_LINKAGE_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
#define CPP_ASMLINKAGE extern "C"
|
||||
#else
|
||||
#define CPP_ASMLINKAGE
|
||||
#endif
|
||||
|
||||
#define asmlinkage CPP_ASMLINKAGE
|
||||
|
||||
#define SYMBOL_NAME_STR(X) #X
|
||||
#define SYMBOL_NAME(X) X
|
||||
#ifdef __STDC__
|
||||
#define SYMBOL_NAME_LABEL(X) X##:
|
||||
#else
|
||||
#define SYMBOL_NAME_LABEL(X) X:
|
||||
#endif
|
||||
|
||||
#define __ALIGN .align 4
|
||||
#define __ALIGN_STR ".align 4"
|
||||
|
||||
#ifdef __ASSEMBLY__
|
||||
|
||||
#define ALIGN __ALIGN
|
||||
#define ALIGN_STR __ALIGN_STR
|
||||
|
||||
#define ENTRY(name) \
|
||||
.globl SYMBOL_NAME(name); \
|
||||
ALIGN; \
|
||||
SYMBOL_NAME_LABEL(name)
|
||||
#endif
|
||||
#define __ALIGN .align 4
|
||||
#define __ALIGN_STR ".align 4"
|
||||
|
||||
#endif
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#ifndef _BLACKFIN_SYSTEM_H
|
||||
#define _BLACKFIN_SYSTEM_H
|
||||
|
||||
#include <asm/linkage.h>
|
||||
#include <linux/linkage.h>
|
||||
#include <asm/blackfin.h>
|
||||
#include <asm/segment.h>
|
||||
#include <asm/entry.h>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
#define ASSEMBLY
|
||||
|
||||
#include <asm/linkage.h>
|
||||
#include <linux/linkage.h>
|
||||
#include <asm/cplb.h>
|
||||
#include <asm/blackfin.h>
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
KBUILD_DEFCONFIG := efi_defconfig
|
||||
|
||||
CFLAGS += -fpic -fshort-wchar -mno-sse -mno-mmx
|
||||
|
||||
ifeq ($(CONFIG_X86_32),y)
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
barebox.lds
|
|
@ -33,13 +33,11 @@
|
|||
* the executable file might be covered by the GNU General Public License.
|
||||
*/
|
||||
|
||||
#include <linux/stringify.h>
|
||||
#include <asm/ppc_asm.tmpl>
|
||||
|
||||
#define N_FUN 36
|
||||
|
||||
#define __stringify_1(x...) #x
|
||||
#define __stringify(x...) __stringify_1(x)
|
||||
|
||||
#define _GLOBAL(n) \
|
||||
.text; \
|
||||
.stabs __stringify(n:F-1),N_FUN,0,0,n;\
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
KBUILD_DEFCONFIG := sandbox_defconfig
|
||||
|
||||
CPPFLAGS += -D__SANDBOX__ -fno-strict-aliasing
|
||||
|
||||
|
|
|
@ -8,6 +8,8 @@ else
|
|||
CPPFLAGS = $(patsubst %,-I$(srctree)/%include,$(machdirs))
|
||||
endif
|
||||
|
||||
CPPFLAGS += -DCONFIG_MALLOC_SIZE=$(CONFIG_MALLOC_SIZE)
|
||||
|
||||
CFLAGS := -Wall
|
||||
NOSTDINC_FLAGS :=
|
||||
|
||||
|
|
|
@ -285,7 +285,7 @@ int main(int argc, char *argv[])
|
|||
{
|
||||
void *ram;
|
||||
int opt, ret, fd;
|
||||
int malloc_size = 8 * 1024 * 1024;
|
||||
int malloc_size = CONFIG_MALLOC_SIZE;
|
||||
char str[6];
|
||||
int fdno = 0, envno = 0, option_index = 0;
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
KBUILD_DEFCONFIG := generic_defconfig
|
||||
|
||||
CPPFLAGS += -D__X86__ -fno-strict-aliasing
|
||||
|
||||
board-y := x86_generic
|
||||
|
|
|
@ -46,9 +46,10 @@ static int do_crc(int argc, char *argv[])
|
|||
#ifdef CONFIG_CMD_CRC_CMP
|
||||
char *vfilename = NULL;
|
||||
#endif
|
||||
char *crcvarname = NULL, *sizevarname = NULL;
|
||||
int opt, err = 0, filegiven = 0, verify = 0;
|
||||
|
||||
while((opt = getopt(argc, argv, "f:F:v:V:")) > 0) {
|
||||
while((opt = getopt(argc, argv, "f:F:v:V:r:s:")) > 0) {
|
||||
switch(opt) {
|
||||
case 'f':
|
||||
filename = optarg;
|
||||
|
@ -60,6 +61,12 @@ static int do_crc(int argc, char *argv[])
|
|||
vfilename = optarg;
|
||||
break;
|
||||
#endif
|
||||
case 'r':
|
||||
crcvarname = optarg;
|
||||
break;
|
||||
case 's':
|
||||
sizevarname = optarg;
|
||||
break;
|
||||
case 'v':
|
||||
verify = 1;
|
||||
vcrc = simple_strtoul(optarg, NULL, 0);
|
||||
|
@ -89,6 +96,18 @@ static int do_crc(int argc, char *argv[])
|
|||
printf("CRC32 for %s 0x%08lx ... 0x%08lx ==> 0x%08lx",
|
||||
filename, (ulong)start, (ulong)start + total - 1, crc);
|
||||
|
||||
if (crcvarname) {
|
||||
char *crcstr = asprintf("0x%lx", crc);
|
||||
setenv(crcvarname, crcstr);
|
||||
kfree(crcstr);
|
||||
}
|
||||
|
||||
if (sizevarname) {
|
||||
char *sizestr = asprintf("0x%lx", total);
|
||||
setenv(sizevarname, sizestr);
|
||||
kfree(sizestr);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_CMD_CRC_CMP
|
||||
if (vfilename) {
|
||||
size = total;
|
||||
|
@ -118,6 +137,8 @@ BAREBOX_CMD_HELP_OPT ("-F FILE", "Use file to compare.")
|
|||
#endif
|
||||
BAREBOX_CMD_HELP_OPT ("-v CRC", "Verify")
|
||||
BAREBOX_CMD_HELP_OPT ("-V FILE", "Verify with CRC read from FILE")
|
||||
BAREBOX_CMD_HELP_OPT ("-r <var>", "Set <var> to the checksum result\n")
|
||||
BAREBOX_CMD_HELP_OPT ("-s <var>", "Set <var> to the data size\n")
|
||||
BAREBOX_CMD_HELP_END
|
||||
|
||||
BAREBOX_CMD_START(crc32)
|
||||
|
|
|
@ -109,7 +109,7 @@ static int do_loadenv(int argc, char *argv[])
|
|||
|
||||
BAREBOX_CMD_HELP_START(loadenv)
|
||||
BAREBOX_CMD_HELP_TEXT("Load environment from files in ENVFS (default /dev/env0) in")
|
||||
BAREBOX_CMD_HELP_TEXT("DIRECTORY (default /env")
|
||||
BAREBOX_CMD_HELP_TEXT("DIRECTORY (default /env)")
|
||||
BAREBOX_CMD_HELP_TEXT("")
|
||||
BAREBOX_CMD_HELP_TEXT("Options:")
|
||||
BAREBOX_CMD_HELP_OPT("-n", "do not overwrite existing files")
|
||||
|
@ -120,7 +120,7 @@ BAREBOX_CMD_HELP_END
|
|||
BAREBOX_CMD_START(loadenv)
|
||||
.cmd = do_loadenv,
|
||||
BAREBOX_CMD_DESC("load environment from ENVFS")
|
||||
BAREBOX_CMD_OPTS("{-nsd] [ENVFS] [DIRECTORY]")
|
||||
BAREBOX_CMD_OPTS("[-nsd] [ENVFS] [DIRECTORY]")
|
||||
BAREBOX_CMD_GROUP(CMD_GRP_ENV)
|
||||
BAREBOX_CMD_HELP(cmd_loadenv_help)
|
||||
BAREBOX_CMD_END
|
||||
|
|
|
@ -60,8 +60,7 @@ static int request_memtest_regions(struct list_head *list)
|
|||
*/
|
||||
if (list_empty(&bank->res->children)) {
|
||||
start = PAGE_ALIGN(bank->res->start);
|
||||
end = PAGE_ALIGN_DOWN(bank->res->end) - 1;
|
||||
size = end - start + 1;
|
||||
size = PAGE_ALIGN_DOWN(bank->res->end - start + 1);
|
||||
|
||||
ret = alloc_memtest_region(list, start, size);
|
||||
if (ret < 0)
|
||||
|
@ -89,13 +88,13 @@ static int request_memtest_regions(struct list_head *list)
|
|||
* Between used regions. Start from second entry.
|
||||
*/
|
||||
list_for_each_entry_from(r, &bank->res->children, sibling) {
|
||||
start = PAGE_ALIGN(r_prev->end);
|
||||
end = PAGE_ALIGN_DOWN(r->start);
|
||||
start = PAGE_ALIGN(r_prev->end + 1);
|
||||
end = r->start - 1;
|
||||
r_prev = r;
|
||||
if (start >= end)
|
||||
continue;
|
||||
|
||||
size = end - start;
|
||||
size = PAGE_ALIGN_DOWN(end - start + 1);
|
||||
ret = alloc_memtest_region(list, start, size);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
@ -107,9 +106,9 @@ static int request_memtest_regions(struct list_head *list)
|
|||
r = list_last_entry(&bank->res->children,
|
||||
struct resource, sibling);
|
||||
start = PAGE_ALIGN(r->end);
|
||||
end = PAGE_ALIGN_DOWN(bank->res->end) - 1;
|
||||
size = end - start + 1;
|
||||
if (start < end) {
|
||||
end = bank->res->end;
|
||||
size = PAGE_ALIGN_DOWN(end - start + 1);
|
||||
if (start < end && start > r->end) {
|
||||
ret = alloc_memtest_region(list, start, size);
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
|
|
@ -194,7 +194,7 @@ int console_register(struct console_device *newcdev)
|
|||
console_init_early();
|
||||
|
||||
if (newcdev->devname) {
|
||||
dev->id = DEVICE_ID_SINGLE;
|
||||
dev->id = newcdev->devid;
|
||||
strcpy(dev->name, newcdev->devname);
|
||||
} else {
|
||||
dev->id = DEVICE_ID_DYNAMIC;
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
barebox_default_env*
|
|
@ -3,7 +3,7 @@ bbenv-$(CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW_MENU) += defaultenv-2-menu
|
|||
bbenv-$(CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW_DFU) += defaultenv-2-dfu
|
||||
bbenv-$(CONFIG_DEFAULT_ENVIRONMENT_GENERIC) += defaultenv-1
|
||||
obj-$(CONFIG_DEFAULT_ENVIRONMENT) += defaultenv.o
|
||||
extra-y += barebox_default_env barebox_default_env.h barebox_default_env$(DEFAULT_COMPRESSION_SUFFIX)
|
||||
extra-y += barebox_default_env barebox_default_env.h barebox_default_env$(DEFAULT_COMPRESSION_SUFFIX) barebox_zero_env
|
||||
|
||||
$(obj)/defaultenv.o: $(obj)/barebox_default_env.h
|
||||
|
||||
|
@ -22,3 +22,9 @@ cmd_env_h = cat $< | (cd $(obj) && $(objtree)/scripts/bin2c "__aligned(4) defaul
|
|||
|
||||
$(obj)/barebox_default_env.h: $(obj)/barebox_default_env$(DEFAULT_COMPRESSION_SUFFIX) FORCE
|
||||
$(call if_changed,env_h)
|
||||
|
||||
quiet_cmd_env_zero = ENVZ $@
|
||||
cmd_env_zero = ($(objtree)/scripts/bareboxenv -z $(CONFIG_DEFAULT_ENVIRONMENT_PATH) $@)
|
||||
|
||||
$(obj)/barebox_zero_env: FORCE
|
||||
$(call cmd,env_zero)
|
||||
|
|
|
@ -471,6 +471,9 @@ static int esdhc_init(struct mci_host *mci, struct device_d *dev)
|
|||
esdhc_write32(regs + SDHCI_CLOCK_CONTROL__TIMEOUT_CONTROL__SOFTWARE_RESET,
|
||||
SYSCTL_HCKEN | SYSCTL_IPGEN);
|
||||
|
||||
/* RSTA doesn't reset MMC_BOOT register, so manually reset it */
|
||||
esdhc_write32(regs + SDHCI_MMC_BOOT, 0);
|
||||
|
||||
/* Set the initial clock speed */
|
||||
set_sysctl(mci, 400000);
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
#define SDHCI_SIGNAL_ENABLE 0x38
|
||||
#define SDHCI_ACMD12_ERR__HOST_CONTROL2 0x3C
|
||||
#define SDHCI_CAPABILITIES 0x40
|
||||
#define SDHCI_MMC_BOOT 0xC4
|
||||
|
||||
#define COMMAND_CMD(x) ((x & 0x3f) << 24)
|
||||
#define COMMAND_CMDTYP_NORMAL 0x0
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
* To preserve the factory bad block information we take the following
|
||||
* strategy:
|
||||
*
|
||||
* - If the NAND driver detects that no flasg BBT is present on 2k NAND
|
||||
* - If the NAND driver detects that no flash BBT is present on 2k NAND
|
||||
* chips it will not create one because it would do so based on the wrong
|
||||
* BBM position
|
||||
* - This command is used to create a flash BBT then.
|
||||
|
|
|
@ -62,9 +62,6 @@ int of_pinctrl_select_state(struct device_node *np, const char *name)
|
|||
struct device_node *np_config;
|
||||
const char *statename;
|
||||
|
||||
if (!IS_ENABLED(CONFIG_PINCTRL))
|
||||
return -ENOSYS;
|
||||
|
||||
if (!of_find_property(np, "pinctrl-0", NULL))
|
||||
return 0;
|
||||
|
||||
|
|
|
@ -340,8 +340,10 @@ static int imx_serial_probe(struct device_d *dev)
|
|||
cdev->linux_console_name = "ttymxc";
|
||||
if (dev->device_node) {
|
||||
devname = of_alias_get(dev->device_node);
|
||||
if (devname)
|
||||
if (devname) {
|
||||
cdev->devname = xstrdup(devname);
|
||||
cdev->devid = DEVICE_ID_SINGLE;
|
||||
}
|
||||
}
|
||||
|
||||
imx_serial_init_port(cdev);
|
||||
|
|
|
@ -122,7 +122,7 @@ int hub_port_reset(struct usb_device *dev, int port,
|
|||
for (tries = 0; tries < MAX_TRIES; tries++) {
|
||||
|
||||
usb_set_port_feature(dev, port + 1, USB_PORT_FEAT_RESET);
|
||||
wait_ms(200);
|
||||
mdelay(200);
|
||||
|
||||
if (usb_get_port_status(dev, port + 1, &portsts) < 0) {
|
||||
dev_dbg(&dev->dev, "get_port_status failed status %lX\n",
|
||||
|
@ -149,7 +149,7 @@ int hub_port_reset(struct usb_device *dev, int port,
|
|||
if (portstatus & USB_PORT_STAT_ENABLE)
|
||||
break;
|
||||
|
||||
wait_ms(200);
|
||||
mdelay(200);
|
||||
}
|
||||
|
||||
if (tries == MAX_TRIES) {
|
||||
|
@ -196,7 +196,7 @@ static void usb_hub_port_connect_change(struct usb_device *dev, int port)
|
|||
if (dev->children[port] && !(portstatus & USB_PORT_STAT_ENABLE))
|
||||
usb_remove_device(dev->children[port]);
|
||||
|
||||
wait_ms(200);
|
||||
mdelay(200);
|
||||
|
||||
/* Reset the port */
|
||||
if (hub_port_reset(dev, port, &portstatus) < 0) {
|
||||
|
@ -204,7 +204,7 @@ static void usb_hub_port_connect_change(struct usb_device *dev, int port)
|
|||
return;
|
||||
}
|
||||
|
||||
wait_ms(200);
|
||||
mdelay(200);
|
||||
|
||||
/* Allocate a new device struct for it */
|
||||
usb = usb_alloc_new_device();
|
||||
|
|
|
@ -372,7 +372,7 @@ int usb_new_device(struct usb_device *dev)
|
|||
goto err_out;
|
||||
}
|
||||
|
||||
wait_ms(10); /* Let the SET_ADDRESS settle */
|
||||
mdelay(10); /* Let the SET_ADDRESS settle */
|
||||
|
||||
tmp = sizeof(*dev->descriptor);
|
||||
|
||||
|
|
|
@ -530,6 +530,7 @@ int gserial_connect(struct gserial *gser, u8 port_num)
|
|||
cdev->flush = serial_flush;
|
||||
cdev->setbrg = serial_setbaudrate;
|
||||
cdev->devname = "usbserial";
|
||||
cdev->devid = DEVICE_ID_SINGLE;
|
||||
|
||||
status = console_register(cdev);
|
||||
if (status)
|
||||
|
|
|
@ -646,7 +646,7 @@ ehci_submit_root(struct usb_device *dev, unsigned long pipe, void *buffer,
|
|||
* root
|
||||
*/
|
||||
ehci_powerup_fixup(ehci);
|
||||
wait_ms(50);
|
||||
mdelay(50);
|
||||
ehci->portreset |= 1 << le16_to_cpu(req->index);
|
||||
/* terminate the reset */
|
||||
ehci_writel(status_reg, reg & ~EHCI_PS_PR);
|
||||
|
@ -709,7 +709,7 @@ ehci_submit_root(struct usb_device *dev, unsigned long pipe, void *buffer,
|
|||
goto unknown;
|
||||
}
|
||||
|
||||
wait_ms(1);
|
||||
mdelay(1);
|
||||
len = min3(srclen, (int)le16_to_cpu(req->length), length);
|
||||
if (srcptr != NULL && len > 0)
|
||||
memcpy(buffer, srcptr, len);
|
||||
|
@ -804,7 +804,7 @@ static int ehci_init(struct usb_host *host)
|
|||
ehci_writel(&ehci->hcor->or_configflag, cmd);
|
||||
/* unblock posted write */
|
||||
cmd = ehci_readl(&ehci->hcor->or_usbcmd);
|
||||
wait_ms(5);
|
||||
mdelay(5);
|
||||
|
||||
ehci->rootdev = 0;
|
||||
|
||||
|
|
|
@ -133,7 +133,7 @@ int usb_stor_Bulk_transport(ccb *srb, struct us_data *us)
|
|||
/* DATA STAGE */
|
||||
/* send/receive data payload, if there is any */
|
||||
|
||||
wait_ms(1);
|
||||
mdelay(1);
|
||||
|
||||
data_actlen = 0;
|
||||
if (srb->datalen) {
|
||||
|
@ -229,17 +229,17 @@ int usb_stor_Bulk_reset(struct us_data *us)
|
|||
US_DEBUGP("Soft reset stalled: %d\n", result);
|
||||
return result;
|
||||
}
|
||||
wait_ms(150);
|
||||
mdelay(150);
|
||||
|
||||
/* clear the bulk endpoints halt */
|
||||
US_DEBUGP("Soft reset: clearing %s endpoint halt\n", "bulk-in");
|
||||
pipe = usb_rcvbulkpipe(us->pusb_dev, us->recv_bulk_ep);
|
||||
result = usb_clear_halt(us->pusb_dev, pipe);
|
||||
wait_ms(150);
|
||||
mdelay(150);
|
||||
US_DEBUGP("Soft reset: clearing %s endpoint halt\n", "bulk-out");
|
||||
pipe = usb_sndbulkpipe(us->pusb_dev, us->send_bulk_ep);
|
||||
result2 = usb_clear_halt(us->pusb_dev, pipe);
|
||||
wait_ms(150);
|
||||
mdelay(150);
|
||||
|
||||
if (result >= 0)
|
||||
result = result2;
|
||||
|
|
|
@ -101,7 +101,7 @@ static int usb_stor_test_unit_ready(ccb *srb, struct us_data *us)
|
|||
if (result == USB_STOR_TRANSPORT_GOOD)
|
||||
return 0;
|
||||
usb_stor_request_sense(srb, us);
|
||||
wait_ms(100);
|
||||
mdelay(100);
|
||||
} while (retries--);
|
||||
|
||||
return -1;
|
||||
|
|
|
@ -47,6 +47,7 @@ struct console_device {
|
|||
int (*set_active)(struct console_device *cdev, unsigned active);
|
||||
|
||||
char *devname;
|
||||
int devid;
|
||||
|
||||
struct list_head list;
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
#if defined (CONFIG_DEBUG_LL)
|
||||
|
||||
static inline void putc_ll(unsigned char value)
|
||||
static inline void putc_ll(char value)
|
||||
{
|
||||
PUTC_LL(value);
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ static inline void puts_ll(const char * str)
|
|||
|
||||
#else
|
||||
|
||||
static inline void putc_ll(unsigned char value)
|
||||
static inline void putc_ll(char value)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -171,10 +171,6 @@ int usb_submit_int_msg(struct usb_device *dev, unsigned long pipe,
|
|||
void *buffer, int transfer_len, int interval);
|
||||
void usb_disable_asynch(int disable);
|
||||
int usb_maxpacket(struct usb_device *dev, unsigned long pipe);
|
||||
static inline void wait_ms(unsigned long ms)
|
||||
{
|
||||
mdelay(ms);
|
||||
};
|
||||
int usb_get_configuration_no(struct usb_device *dev, unsigned char *buffer,
|
||||
int cfgno);
|
||||
int usb_get_report(struct usb_device *dev, int ifnum, unsigned char type,
|
||||
|
|
|
@ -114,7 +114,7 @@ int dev_param_set_generic(struct device_d *dev, struct param_d *p,
|
|||
return 0;
|
||||
}
|
||||
p->value = strdup(val);
|
||||
return 0;
|
||||
return p->value ? 0 : -ENOMEM;
|
||||
}
|
||||
|
||||
static const char *param_get_generic(struct device_d *dev, struct param_d *p)
|
||||
|
@ -130,6 +130,10 @@ static int __dev_add_param(struct param_d *param, struct device_d *dev, const ch
|
|||
if (get_param_by_name(dev, name))
|
||||
return -EEXIST;
|
||||
|
||||
param->name = strdup(name);
|
||||
if (!param->name)
|
||||
return -ENOMEM;
|
||||
|
||||
if (set)
|
||||
param->set = set;
|
||||
else
|
||||
|
@ -139,7 +143,6 @@ static int __dev_add_param(struct param_d *param, struct device_d *dev, const ch
|
|||
else
|
||||
param->get = param_get_generic;
|
||||
|
||||
param->name = strdup(name);
|
||||
param->flags = flags;
|
||||
param->dev = dev;
|
||||
list_add_tail(¶m->list, &dev->parameters);
|
||||
|
|
|
@ -154,6 +154,7 @@ static int netconsole_init(void)
|
|||
cdev->putc = nc_putc;
|
||||
cdev->getc = nc_getc;
|
||||
cdev->devname = "netconsole";
|
||||
cdev->devid = DEVICE_ID_SINGLE;
|
||||
cdev->set_active = nc_set_active;
|
||||
|
||||
g_priv = priv;
|
||||
|
|
|
@ -328,7 +328,7 @@ sub top_of_kernel_tree {
|
|||
my ($root) = @_;
|
||||
|
||||
my @tree_check = (
|
||||
"arch", "commands", "common", "COPYING", "CREDITS", "defaultenv",
|
||||
"arch", "commands", "common", "COPYING", "defaultenv",
|
||||
"Documentation", "drivers", "fs", "include", "lib",
|
||||
"MAKEALL", "Makefile", "net", "README", "scripts", "TODO"
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue