30 Jul, 2013
7 commits
-
Clean up the code that checks the validity of a USB gadget driver
in usb_gadget_register_driver(). Moreover, limit the speed of the
driver to either FULL or HIGH, this is more precise and once we
have xHCI support, also more correct.Signed-off-by: Marek Vasut
Cc: Fabio Estevam
Cc: Lei Wen
Cc: Otavio Salvador
Cc: Stefano Babic -
The usb_lowlevel_init() call already fills and passes back struct
ehci_ctrl , which readily contains correctly determined address of
the port register block address computed from values from controller
configuration registers. Leverage this and make use of this value
as this makes the code mode universal, but also gets us rid of the
CONFIG_USB_REG_BASE configuration option.Moreover, this patch cleans up the usb_gadget_register_driver() call
a little by correcting the error handling. Note the usb_lowlevel_init()
and mvudc_probe() are now called in reversed order, but this has no
impact on the code.Signed-off-by: Marek Vasut
Cc: Fabio Estevam
Cc: Lei Wen
Cc: Otavio Salvador
Cc: Stefano Babic -
Move the struct ehci_ctrl defition from ehci-hcd.c into ehci.h
so it can be re-used by drivers. In particular, the mv_udc driver
can benefit from this move.Signed-off-by: Marek Vasut
Cc: Fabio Estevam
Cc: Lei Wen
Cc: Otavio Salvador
Cc: Stefano Babic -
Move the constant values that are programmed into mv_ep.ep into
separate static const structure so they can be memcpy()'d when
the initialization happens.Moveover, we only every init NUM_ENDPOINTS, not 2 * NUM_ENDPOINTS,
so fix this bug as well.Signed-off-by: Marek Vasut
Cc: Fabio Estevam
Cc: Lei Wen
Cc: Otavio Salvador
Cc: Stefano Babic -
The endpoints are operated on a per-controller basis, move the
endpoint array into controller's private data. Also shuffle the
struct mv_ep structure definition just above the definition of
the struct mv_drv so they're well grouped together.Signed-off-by: Marek Vasut
Cc: Fabio Estevam
Cc: Lei Wen
Cc: Otavio Salvador
Cc: Stefano Babic -
Do a coding-style cleanup of this file and throw away useless
defined values. These values were likely a result of a copy-paste
job.Signed-off-by: Marek Vasut
Cc: Fabio Estevam
Cc: Lei Wen
Cc: Otavio Salvador
Cc: Stefano Babic -
The mv_udc driver is broken for a while and doesn't even compile.
This patch fixes the issues and gets the driver into working state
again. This driver was tested on Freescale i.MX233/i.MX28 .Signed-off-by: Marek Vasut
Cc: Fabio Estevam
Cc: Lei Wen
Cc: Otavio Salvador
Cc: Stefano Babic
27 Jul, 2013
3 commits
-
Signed-off-by: Tom Rini
26 Jul, 2013
6 commits
-
CONFIG_SYS_FLASH_PROTECTION was active on most gdsys boards by default,
while hardware flash protection was not implemented.
Hardware support was added recently and we get into trouble because backward
compatibility is broken (u-boot can't unprotect the protected flash after a
downgrade). So we decided to disable hardware flash protection for all our boards.Signed-off-by: Dirk Eibach
Signed-off-by: Stefan Roese -
OSD size was constant 32x16 characters.
Now the size is set as announced by the FPGA.Signed-off-by: Dirk Eibach
Signed-off-by: Stefan Roese -
Signed-off-by: Dirk Eibach
Signed-off-by: Stefan Roese -
Signed-off-by: Dirk Eibach
Signed-off-by: Stefan Roese -
mclink is a serial interface for communication between gdsys FPGA.
Signed-off-by: Dirk Eibach
Signed-off-by: Stefan Roese -
A set of accessor functions was added to be able to access not only
memory mapped FPGA in a generic way.Thanks to Wolfgang Denk for getting this sorted properly.
Signed-off-by: Dirk Eibach
Signed-off-by: Stefan Roese
25 Jul, 2013
8 commits
-
While the flash_detect_legacy() of drivers/mtd/cfi_flash.c
feed unmap_physmem() with MAP_NOCACHE as 2nd parameter,
the do_spi_flash_read_write() of common/cmd_sf.c
feed unmap_physmem() with the length of the mapped buffer
as 2nd parameter.It's apparently a bug, and I personally think the 2nd parameter
should be the length of the mapped buffer.Signed-off-by: Kuo-Jung Su
CC: Albert Aribaud
CC: Stefan Roese
Signed-off-by: Stefan Roese -
Signed-off-by: Tom Rini
-
Conflict over SPDX changes means that one change was effectively dropped
as it was fixing typos in a removed hunk of text.Conflicts:
arch/mips/cpu/mips64/start.SSigned-off-by: Tom Rini
-
Acked-by: Heiko Schocher
Signed-off-by: Tom Rini -
Some version of Andes core support FPU coprocessor,
if this is the case, and toolchain support FPU instruction set,
we should enable it at low level initialization time.Signed-off-by: Kuan-Yu Kuo
Cc: Macpaul Lin -
Signed-off-by: Tom Rini
-
Signed-off-by: Kuan-Yu Kuo
Cc: Macpaul Lin
24 Jul, 2013
16 commits
-
Synchronize the code with mips64/cache.S, in order to
allow further unifications.Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck -
Synchronize the code with mips64/cache.S, in order to
allow further unifications.Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck -
Synchronize the code with mips64/cache.S, in order to
allow further unifications.Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck -
Make it similar to the code in mips{32,64}/start.S, in order to
allow further unifications.Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck -
Synchronize the code with mips{32,64}/start.S, in order to
allow further unifications.Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck -
Synchronize the code with mips{32,64}/start.S, in order to
allow further unifications.Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck -
Synchronize the code with mips{32,64}/start.S, in order to
allow further unifications.Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck -
Synchronize the code with mips{32,64}/start.S, in order to
allow further unifications.Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck -
Make it similar to the code in mips64/start.S, in order to
allow further unifications.Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck -
Synchronize the code with mips64/start.S, in order to
allow further unifications.Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck -
The t4 register already holds the cache
line size, and the value of the register
is not changed in mips_init_icache.Get the cache line size value from t4 for
mips_init_dcache as well and remove the
superfluous assignment of t5 register.Signed-off-by: Gabor Juhos
-
The MIPS code uses centralized u-boot.lds script already,
and dynamic relocation is supported as well.Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck -
Nothing is used from asm/mipsregs.h.
Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck -
Checking mips32/time.c with checkpatch.pl shows this:
arch/mips/cpu/mips32/time.c:30: WARNING: line over 80 characters
arch/mips/cpu/mips32/time.c:57: ERROR: return is not a function, parentheses are not required
total: 1 errors, 1 warnings, 0 checks, 85 lines checkedFix the code to make checkpatch.pl happy.
Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck -
Qemu emulates a PCNET PCI card for the Malta CoreLV board.
Enable the pcnet driver and add board specific ethernet
initialization function to bring it up. Also enable the
CONFIG_CMD_NET and CONFIG_CMD_PING options.Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck -
Qemu emulates the Galileo GT64120 System Controller
which provides a CPU bus to PCI bus bridge.The patch adds driver for this bridge and enables
PCI support for the emulated Malta board.Signed-off-by: Gabor Juhos
Cc: Daniel Schwierzeck