kernel/u-boot.git
14 years agoppc/85xx: Clean up MPC8544 DS PCI setup code
Kumar Gala [Wed, 4 Nov 2009 16:22:26 +0000 (10:22 -0600)]
ppc/85xx: Clean up MPC8544 DS PCI setup code

Use new fsl_pci_init_port() that reduces amount of duplicated code in the
board ports, use IO accessors and clean up printing of status info.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
14 years agoppc/85xx: Clean up MPC8536 DS PCI setup code
Mingkai Hu [Wed, 28 Oct 2009 02:49:31 +0000 (10:49 +0800)]
ppc/85xx: Clean up MPC8536 DS PCI setup code

Use new fsl_pci_init_port() that reduces amount of duplicated code in the
board ports, use IO accessors and clean up printing of status info.

Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
14 years agoNET: Base support for etsec2.0
Kumar Gala [Sat, 31 Oct 2009 16:23:41 +0000 (11:23 -0500)]
NET: Base support for etsec2.0

1. Modified the tsec_mdio structure to include the new regs
2. Modified the MDIO_BASE_ADDR so that it will handle both
older version and new version of etsec.

Signed-off-by: Sandeep Gopalpet <sandeep.kumar@freescale.com>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
14 years agoNET: Move MDIO regs out of TSEC Space
Sandeep Gopalpet [Fri, 30 Oct 2009 19:05:04 +0000 (00:35 +0530)]
NET: Move MDIO regs out of TSEC Space

Moved the mdio regs out of the tsec structure,and
provided different offsets for tsec base and mdio
base so that provision for etsec2.0 can be provided.

This patch helps in providing the support for etsec2.0
In etsec2.0, the MDIO register space and the etsec reg
space are different.

Also, moved the TSEC_BASE_ADDR and MDIO_BASE_ADDR definitons into
platform specific files.

Signed-off-by: Sandeep Gopalpet <sandeep.kumar@freescale.com>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
14 years ago85xx: Add support to set DPAA (data path) devices clock frequencies
Kumar Gala [Thu, 19 Mar 2009 07:46:28 +0000 (02:46 -0500)]
85xx: Add support to set DPAA (data path) devices clock frequencies

Set clock-frequency for Frame Manager 0/1 and Patter Match Engine on p4080.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
14 years agoppc/8xxx: Don't use pci_cfg on FSL_CORENET platforms
Kumar Gala [Thu, 17 Sep 2009 05:01:14 +0000 (00:01 -0500)]
ppc/8xxx: Don't use pci_cfg on FSL_CORENET platforms

The FSL_CORENET platforms use a completely different means to determine
which PCIe port is enabled as well as if its a host or agent/end-point.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
14 years agoppc/p4080: Added p4080 SERDES registers & USB offset
Kumar Gala [Fri, 16 Oct 2009 04:22:10 +0000 (23:22 -0500)]
ppc/p4080: Added p4080 SERDES registers & USB offset

Added immap definition for SERDES registers on p4080, the USB offset
(since it was missing) and a GPL header.

Signed-off-by: Li Yang <leoli@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
14 years ago85xx: Add support for e500mc cache stashing
Kumar Gala [Thu, 19 Mar 2009 07:53:01 +0000 (02:53 -0500)]
85xx: Add support for e500mc cache stashing

The e500mc core supports the ability to stash into the L1 or L2 cache,
however we need to uniquely identify the caches with an id.

We use the following equation to set the various stash-ids:

32 + coreID*2 + 0(L1) or 1(L2)

The 0 (for L1) or 1 (for L2) matches the CT field used be various cache
control instructions.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
14 years agos5pc1xx: reduce u-boot-sleep current. (16.8 -> 12.2 mA)
MyungJoo Ham [Tue, 5 Jan 2010 10:57:19 +0000 (19:57 +0900)]
s5pc1xx: reduce u-boot-sleep current. (16.8 -> 12.2 mA)

Done by turning sound codec off.
Applies to u-boot sleep only (kernel does it already)
1 less mili-amps to match kernel.

14 years agos5pc1xx:gpio S5PC110 EVT0 Errata
MyungJoo Ham [Tue, 5 Jan 2010 10:56:07 +0000 (19:56 +0900)]
s5pc1xx:gpio S5PC110 EVT0 Errata

14 years agos5pc110: sleep: power/clock related registers are saved for uboot sleep
MyungJoo Ham [Tue, 5 Jan 2010 08:57:00 +0000 (17:57 +0900)]
s5pc110: sleep: power/clock related registers are saved for uboot sleep

14 years agos5pc110: more registers registered in the headers.
MyungJoo Ham [Tue, 5 Jan 2010 08:53:21 +0000 (17:53 +0900)]
s5pc110: more registers registered in the headers.

14 years agos5pc110: powerdown gpio setting: less hardcoded values.
MyungJoo Ham [Tue, 5 Jan 2010 08:52:32 +0000 (17:52 +0900)]
s5pc110: powerdown gpio setting: less hardcoded values.

14 years agoMerge branch 'master' of ssh://riverful.kim@party/pub/git/u-boot-s5pc1xx
Heungjun Kim [Tue, 5 Jan 2010 08:42:25 +0000 (17:42 +0900)]
Merge branch 'master' of ssh://riverful.kim@party/pub/git/u-boot-s5pc1xx

14 years agos5pc1xx: touchkey: power chip bug fix
Heungjun Kim [Tue, 5 Jan 2010 08:40:38 +0000 (17:40 +0900)]
s5pc1xx: touchkey: power chip bug fix

- must use TOUCH_CE pin for power controlling, after TOUCH_EN pin high.

Signed-off-by: Heungjun Kim <riverful.kim@samsung.com>
14 years agos5pc1xx: wakeup I/O retention control for EVT1, save ETC GPIO control
MyungJoo Ham [Tue, 5 Jan 2010 08:02:56 +0000 (17:02 +0900)]
s5pc1xx: wakeup I/O retention control for EVT1, save ETC GPIO control

14 years agousbd: remove warning
Minkyu Kang [Tue, 5 Jan 2010 04:00:45 +0000 (13:00 +0900)]
usbd: remove warning

remove below warning
cmd_usbd.c: In function 'process_data':
cmd_usbd.c:727: warning: initialization makes pointer from integer without a cast

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc1xx: sleep: codes clean
Minkyu Kang [Tue, 5 Jan 2010 03:54:11 +0000 (12:54 +0900)]
s5pc1xx: sleep: codes clean

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc1xx: sleep: remove CONFIG_CPU_S5PC110_EVT0_ERRATA define (2)
Minkyu Kang [Tue, 5 Jan 2010 02:30:57 +0000 (11:30 +0900)]
s5pc1xx: sleep: remove CONFIG_CPU_S5PC110_EVT0_ERRATA define (2)

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc1xx: sleep: set correct sleep mode by CPU revision
Minkyu Kang [Tue, 5 Jan 2010 02:29:09 +0000 (11:29 +0900)]
s5pc1xx: sleep: set correct sleep mode by CPU revision

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agoMerge branch 'master' of prom@party:/pub/git/u-boot-s5pc1xx
Minkyu Kang [Tue, 5 Jan 2010 02:28:46 +0000 (11:28 +0900)]
Merge branch 'master' of prom@party:/pub/git/u-boot-s5pc1xx

14 years agos5pc1xx: sleep: remove CONFIG_CPU_S5PC110_EVT0_ERRATA define
Minkyu Kang [Tue, 5 Jan 2010 02:27:06 +0000 (11:27 +0900)]
s5pc1xx: sleep: remove CONFIG_CPU_S5PC110_EVT0_ERRATA define

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: revert GPIO_G1 PDN setting, update 3_TOUCH GPIO PDN setting.
MyungJoo Ham [Tue, 5 Jan 2010 02:20:49 +0000 (11:20 +0900)]
s5pc110: revert GPIO_G1 PDN setting, update 3_TOUCH GPIO PDN setting.

- no noticable change.

14 years agoMerge branch 'master' of mj.ham@party:/pub/git/u-boot-s5pc1xx
MyungJoo Ham [Tue, 5 Jan 2010 01:46:23 +0000 (10:46 +0900)]
Merge branch 'master' of mj.ham@party:/pub/git/u-boot-s5pc1xx

14 years agos5pc110: GPIO PDN mode setting for WLAN (~2.3mA reduced)
MyungJoo Ham [Tue, 5 Jan 2010 01:45:37 +0000 (10:45 +0900)]
s5pc110: GPIO PDN mode setting for WLAN (~2.3mA reduced)

14 years agousbd: send error status
Minkyu Kang [Tue, 5 Jan 2010 00:40:21 +0000 (09:40 +0900)]
usbd: send error status

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agousbd: use status definitions
Minkyu Kang [Tue, 5 Jan 2010 00:36:10 +0000 (09:36 +0900)]
usbd: use status definitions

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc1xx: checking cpu revision at bootloader downloading
Minkyu Kang [Tue, 5 Jan 2010 00:10:47 +0000 (09:10 +0900)]
s5pc1xx: checking cpu revision at bootloader downloading

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agoDavinci: NAND enable ECC even when not in NAND boot mode
Nick Thompson [Sat, 12 Dec 2009 17:13:10 +0000 (12:13 -0500)]
Davinci: NAND enable ECC even when not in NAND boot mode

Davinci: NAND enable ECC even when not in NAND boot mode

On Davinci platforms, the default NAND device is enabled (for ECC)
in low level boot code when NAND boot mode is used. If booting in
another mode, NAND ECC is not enabled. The driver should make
sure ECC is enabled regardless of boot mode if NAND is configured
in U-Boot.

Signed-off-by: Nick Thompson <nick.thompson@ge.com>
14 years agoDavinci: Configurable NAND chip selects
Nick Thompson [Sat, 12 Dec 2009 17:12:26 +0000 (12:12 -0500)]
Davinci: Configurable NAND chip selects

Davinci: Configurable NAND chip selects

Add a CONFIG_SYS_NAND_CS setting to all davinci configs and
use it to setup the NAND controller in the davinci_nand
mtd driver.

Signed-off-by: Nick Thompson <nick.thompson@gefanuc.com>
14 years agoDavinci: Table driven pinmux configuration
Nick Thompson [Sat, 12 Dec 2009 17:10:51 +0000 (12:10 -0500)]
Davinci: Table driven pinmux configuration

Davinci: Table driven pinmux configuration

Add code to allow pinmux_config tables to be grouped and configured
as a single resource. This removes multiple calls to the pinmux
configuration code from board_init and allows pinmuxes to be
individually configured and added by data manipulation only.

All related #ifdefs can the be removed from board_init code and
since the compiler optimises away statics, #ifdefs can be reduced in
the data definitions as well.

Signed-off-by: Nick Thompson <nick.thompson@gefanuc.com>
14 years agoRemove superfluous uses of V_PROMPT macro.
Robert P. J. Day [Sat, 12 Dec 2009 17:10:33 +0000 (12:10 -0500)]
Remove superfluous uses of V_PROMPT macro.

A number of config files define the V_PROMPT macro for the
command-line prompt, only to immediately use that macro to define
CONFIG_SYS_PROMPT, making V_PROMPT entirely superfluous.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
14 years agopandora: don't enable VAUX3, VDAC and VPLL2 regulators
Grazvydas Ignotas [Fri, 11 Dec 2009 13:07:30 +0000 (15:07 +0200)]
pandora: don't enable VAUX3, VDAC and VPLL2 regulators

These regulators are not needed to start the kernel and only
cause "incomplete constraints" warnings from kernel, so don't
turn them on to save power.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
14 years agoTWL4030: make LEDs selectable for twl4030_led_init()
Grazvydas Ignotas [Thu, 10 Dec 2009 15:10:21 +0000 (17:10 +0200)]
TWL4030: make LEDs selectable for twl4030_led_init()

Not all boards have both LEDs hooked, so enabling both on
boards with single LED will just waste power. Make it
possible to choose LEDs by adding argument to
twl4030_led_init().

Using this turn on only LEDB for pandora, leave both LEDs
on for all other boards, as it was before this patch.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
14 years agos5pc1xx: aquila: remove warning
Minkyu Kang [Mon, 4 Jan 2010 07:45:23 +0000 (16:45 +0900)]
s5pc1xx: aquila: remove warning

remove below warning
universal.c: In function 'power_on':
universal.c:2332: warning: no return statement in function returning non-void

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: add CPU revision checking function
Minkyu Kang [Mon, 4 Jan 2010 07:43:15 +0000 (16:43 +0900)]
s5pc110: add CPU revision checking function

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agoMerge branch 'master' of git://git.denx.de/u-boot-ppc4xx
Wolfgang Denk [Sun, 3 Jan 2010 20:07:04 +0000 (21:07 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-ppc4xx

14 years agos5pc110: power on/off all support
Kyungmin Park [Thu, 31 Dec 2009 04:50:46 +0000 (13:50 +0900)]
s5pc110: power on/off all support

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: Use s5pc110_gpio at predefined
Kyungmin Park [Thu, 31 Dec 2009 03:08:14 +0000 (12:08 +0900)]
s5pc110: Use s5pc110_gpio at predefined

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: Power control
Kyungmin Park [Thu, 31 Dec 2009 02:38:19 +0000 (11:38 +0900)]
s5pc110: Power control

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: power control
Kyungmin Park [Thu, 31 Dec 2009 02:08:35 +0000 (11:08 +0900)]
s5pc110: power control

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: Control device power
Kyungmin Park [Thu, 31 Dec 2009 01:31:57 +0000 (10:31 +0900)]
s5pc110: Control device power

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: gpio: show gpio at one row
Kyungmin Park [Thu, 31 Dec 2009 01:30:53 +0000 (10:30 +0900)]
s5pc110: gpio: show gpio at one row

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: aquila: Use proper EVT names
Kyungmin Park [Tue, 29 Dec 2009 09:55:08 +0000 (18:55 +0900)]
s5pc110: aquila: Use proper EVT names

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agobuild: Modify user setting
Joonyoung Shim [Tue, 29 Dec 2009 08:55:19 +0000 (17:55 +0900)]
build: Modify user setting

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
14 years agos5pc110: enable i2c clocks
Minkyu Kang [Tue, 29 Dec 2009 08:48:51 +0000 (17:48 +0900)]
s5pc110: enable i2c clocks

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: aquila: rev0.7 is 4G2G1G
Minkyu Kang [Tue, 29 Dec 2009 08:39:58 +0000 (17:39 +0900)]
s5pc110: aquila: rev0.7 is 4G2G1G

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: aquila: add memory setting for rev0.8
Minkyu Kang [Tue, 29 Dec 2009 08:14:12 +0000 (17:14 +0900)]
s5pc110: aquila: add memory setting for rev0.8

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: fb: added evt1 FIMD Driver support.
daeinki [Tue, 29 Dec 2009 05:39:47 +0000 (14:39 +0900)]
s5pc110: fb: added evt1 FIMD Driver support.

Signed-off-by: daeinki <inki.dae@samsung.com>
14 years agobuild: modify prom's setting
Minkyu Kang [Mon, 28 Dec 2009 10:46:43 +0000 (19:46 +0900)]
build: modify prom's setting

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: enable PWM clock
Minkyu Kang [Mon, 28 Dec 2009 08:59:54 +0000 (17:59 +0900)]
s5pc110: enable PWM clock

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agoMerge branch 'master' of prom@party:/pub/git/u-boot-s5pc1xx
Minkyu Kang [Mon, 28 Dec 2009 08:34:36 +0000 (17:34 +0900)]
Merge branch 'master' of prom@party:/pub/git/u-boot-s5pc1xx

14 years agos5pc110: checksum: evt1 doesn't have reserved page
Minkyu Kang [Mon, 28 Dec 2009 08:33:57 +0000 (17:33 +0900)]
s5pc110: checksum: evt1 doesn't have reserved page

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: geminus: Add rev0.1 board detection
Joonyoung Shim [Mon, 28 Dec 2009 08:23:12 +0000 (17:23 +0900)]
s5pc110: geminus: Add rev0.1 board detection

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
14 years agos5pc110: checksum: fix checksum routine
Minkyu Kang [Mon, 28 Dec 2009 07:35:33 +0000 (16:35 +0900)]
s5pc110: checksum: fix checksum routine
evt1 needs to sum reserved page, but evt0 doesn't need it.

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: evt1: fix text base
Minkyu Kang [Mon, 28 Dec 2009 07:11:50 +0000 (16:11 +0900)]
s5pc110: evt1: fix text base

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: checksum: fix checksum routine
Minkyu Kang [Mon, 28 Dec 2009 07:08:30 +0000 (16:08 +0900)]
s5pc110: checksum: fix checksum routine

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: aquila: Fix wrong TEXT_BASE16K_*
Kyungmin Park [Sat, 26 Dec 2009 04:41:37 +0000 (13:41 +0900)]
s5pc110: aquila: Fix wrong TEXT_BASE16K_*

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: aquila: set correct relocation address
Kyungmin Park [Sat, 26 Dec 2009 04:26:21 +0000 (13:26 +0900)]
s5pc110: aquila: set correct relocation address

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: aquila: Fix wrong size
Kyungmin Park [Sat, 26 Dec 2009 04:22:20 +0000 (13:22 +0900)]
s5pc110: aquila: Fix wrong size

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
14 years agos5pc110: support evt1
Minkyu Kang [Thu, 24 Dec 2009 08:30:46 +0000 (17:30 +0900)]
s5pc110: support evt1

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: aquila: disable ldo3
Minkyu Kang [Thu, 24 Dec 2009 05:18:46 +0000 (14:18 +0900)]
s5pc110: aquila: disable ldo3

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: pmic: add pmic command config
Minkyu Kang [Thu, 24 Dec 2009 05:10:25 +0000 (14:10 +0900)]
s5pc110: pmic: add pmic command config

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: aquila: seperate the 3-touchkey checking logic
Minkyu Kang [Thu, 24 Dec 2009 04:34:33 +0000 (13:34 +0900)]
s5pc110: aquila: seperate the 3-touchkey checking logic

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: aquila: codes clean
Minkyu Kang [Thu, 24 Dec 2009 02:22:53 +0000 (11:22 +0900)]
s5pc110: aquila: codes clean

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: gpio: codes clean
Minkyu Kang [Thu, 24 Dec 2009 00:41:37 +0000 (09:41 +0900)]
s5pc110: gpio: codes clean

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: gpio: fix print msg
Minkyu Kang [Thu, 24 Dec 2009 00:23:42 +0000 (09:23 +0900)]
s5pc110: gpio: fix print msg

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: gpio: add gpio command config
Minkyu Kang [Wed, 23 Dec 2009 09:49:07 +0000 (18:49 +0900)]
s5pc110: gpio: add gpio command config

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: gpio: add gpio command for debugging
Minkyu Kang [Wed, 23 Dec 2009 09:44:33 +0000 (18:44 +0900)]
s5pc110: gpio: add gpio command for debugging

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: aquila: battery: reset correctly CES1223_2
Minkyu Kang [Wed, 23 Dec 2009 05:56:37 +0000 (14:56 +0900)]
s5pc110: aquila: battery: reset correctly

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: PULL-UP setting for GPG1_[1,4-5] (WLAN_SDIO CMD, D)
MyungJoo Ham [Wed, 23 Dec 2009 01:48:31 +0000 (10:48 +0900)]
s5pc110: PULL-UP setting for GPG1_[1,4-5] (WLAN_SDIO CMD, D)

14 years agoRevert "s5pc110: clock: enabled sgx core clock."
Kyungmin Park [Tue, 22 Dec 2009 12:09:44 +0000 (21:09 +0900)]
Revert "s5pc110: clock: enabled sgx core clock."

This reverts commit cfef27e7e90af51ecbdc94f2271610a6beda9c0c.

14 years agos5pc110: clock: enabled sgx core clock.
daeinki [Tue, 22 Dec 2009 08:13:28 +0000 (17:13 +0900)]
s5pc110: clock: enabled sgx core clock.

this clock should be disabled in the future.

Signed-off-by: daeinki <inki.dae@samsung.com>
14 years agoppc4xx: alpr: Remove some not needed commands to make image fit again
Stefan Roese [Wed, 16 Dec 2009 08:27:31 +0000 (09:27 +0100)]
ppc4xx: alpr: Remove some not needed commands to make image fit again

The latest changes increased the size of the alpr image a bit more.
Now it doesn't fit into the 256k reserved for it. This patch now removes
the commands "ping" and "diag" which are not needed in the production
systems.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Pieter Voorthuijsen <pieter.voorthuijsen@prodrive.nl>
14 years agoi2c, ppc4xx: fix compiling KAREF and METROBOX boards.
Heiko Schocher [Thu, 3 Dec 2009 10:23:17 +0000 (11:23 +0100)]
i2c, ppc4xx: fix compiling KAREF and METROBOX boards.

commit eb5eb2b0f744f0cba405160c5d01335c40f09acf

ppc4xx: Cleanup PPC4xx I2C infrastructure

This patch cleans up the PPC4xx I2C intrastructure:

- Use C struct to describe the I2C registers instead of defines
- Coding style cleanup (braces, whitespace, comments, line length)
- Extract common code from i2c_read() and i2c_write()
- Remove unneeded IIC defines from ppc405.h & ppc440.h

breaks comiling for the KAREF and METROBOX boards.

This patch fixes this issue.

Signed-off-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Stefan Roese <sr@denx.de>
14 years agos5pc110: aquila: disable SROMC clock
Minkyu Kang [Tue, 22 Dec 2009 02:39:19 +0000 (11:39 +0900)]
s5pc110: aquila: disable SROMC clock

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agobuild: add private setting
Minkyu Kang [Tue, 22 Dec 2009 01:48:38 +0000 (10:48 +0900)]
build: add private setting

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agomove prototypes for gunzip() and zunzip() to common.h
Wolfgang Wegner [Wed, 9 Dec 2009 14:16:47 +0000 (15:16 +0100)]
move prototypes for gunzip() and zunzip() to common.h

Prototype for gunzip/zunzip was only in lib_generic/gunzip.c and thus
repeated in every file using it. This patch moves the prototypes to
common.h and removes all prototypes distributed anywhere else.

Signed-off-by: Wolfgang Wegner <w.wegner@astro-kom.de>
14 years agoMerge branch 'master' of git://git.denx.de/u-boot-usb
Wolfgang Denk [Mon, 21 Dec 2009 20:01:56 +0000 (21:01 +0100)]
Merge branch 'master' of git://git.denx.de/u-boot-usb

14 years agos5pc110: aquila: add IP4 clock gating
Minkyu Kang [Mon, 21 Dec 2009 08:37:56 +0000 (17:37 +0900)]
s5pc110: aquila: add IP4 clock gating

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: aquila: remove power gating (for suspend/resume)
Minkyu Kang [Mon, 21 Dec 2009 03:28:15 +0000 (12:28 +0900)]
s5pc110: aquila: remove power gating (for suspend/resume)

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agousb: write command for RAW partition.
Mahavir Jain [Tue, 3 Nov 2009 06:52:10 +0000 (12:22 +0530)]
usb: write command for RAW partition.

This patch implements write support to usb device with raw partition.
It will be useful for filesystem write support to usb device from
u-boot in future.

Tested with writing kernel image to raw usb disk & booting with usb
read command into ram.

[Note:  run usb part to get info about start sector & number of
sectors on a partition for usb write operation.]

Signed-off-by: Mahavir Jain <mjain@marvell.com>
14 years agoomap3evm: musb: add USB config
Ajay Kumar Gupta [Wed, 4 Nov 2009 21:58:23 +0000 (15:58 -0600)]
omap3evm: musb: add USB config

Added USB host and device config for host (MSC, Keyboard) and
device (ACM) functionalities.

Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
14 years agoOMAP3 USB Initialize twl4030 only if required
Tom Rix [Sat, 31 Oct 2009 17:37:46 +0000 (12:37 -0500)]
OMAP3 USB Initialize twl4030 only if required

OMAP3EVM uses ISP1504 phy and so twl4030 related init is not required.

Submitted-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
14 years agoOMAP3 zoom2 Use usbtty if the debug board is not connected.
Tom Rix [Sat, 31 Oct 2009 17:37:45 +0000 (12:37 -0500)]
OMAP3 zoom2 Use usbtty if the debug board is not connected.

The preferred serial output comes from the debug board.
When the debug board is disconnected, fall back on using
usbtty from the usb connector on the Zoom2 board.

This shows up as /dev/ttyACM0 in a linux host.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
14 years agoUSBTTY make some function declarations easier to use.
Tom Rix [Sat, 31 Oct 2009 17:37:44 +0000 (12:37 -0500)]
USBTTY make some function declarations easier to use.

Zoom2 needs to use these declarations and the include directory is a
better place from them than in the middle of the driver directory.
It did not make sense to create a new file for just a couple of
lines so they were appended to the serial.h

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
14 years agoOMAP3 beagle Add usbtty configuration
Tom Rix [Sat, 31 Oct 2009 17:37:43 +0000 (12:37 -0500)]
OMAP3 beagle Add usbtty configuration

The primary console of beagle is the serial header.

A secondary console is to use the usbtty.  The user can set this
manually by doing

setenv stdout usbtty; setenv stdin usbtty; setenv stderr usbtty
saveenv

usbtty will be usable by accessing the /dev/ttyACM0 on a linux host.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
14 years agoOMAP3 zoom1 Add usbtty configuration
Tom Rix [Sat, 31 Oct 2009 17:37:42 +0000 (12:37 -0500)]
OMAP3 zoom1 Add usbtty configuration

The primary console of zoom1 is the serial out from the jumpers
accessed by removing the back panel.

A secondary console is to use the usbtty.  The user can set this
manually by doing

setenv stdout usbtty; setenv stdin usbtty; setenv stderr usbtty
saveenv

usbtty will be usable by accessing the /dev/ttyACM0 on a linux host.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
14 years agoOMAP3 Add usb device support
Tom Rix [Sat, 31 Oct 2009 17:37:41 +0000 (12:37 -0500)]
OMAP3 Add usb device support

This change adds the usb device support for musb.

Omap3 platform support added at the same level as davinci.

The interface for usbtty to use the musb device support was added.

Verified on omap3 beagle, zoom1 and zoom2.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
14 years agoTWL4030 Add usb PHY support
Tom Rix [Sat, 31 Oct 2009 17:37:40 +0000 (12:37 -0500)]
TWL4030 Add usb PHY support

The twl4030 provides a PHY device for connecting a link device,
like musb, to physical connection.

This change adds the twl4030 usb registers and functions for
initializing the PHY as required by omap3.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
14 years agoUSB add macros for debugging usb device setup.
Tom Rix [Sat, 31 Oct 2009 17:37:39 +0000 (12:37 -0500)]
USB add macros for debugging usb device setup.

When developing usb device features, it is useful to print out
common usb structures.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
14 years agoUSB Consolidate descriptor definitions
Tom Rix [Sat, 31 Oct 2009 17:37:38 +0000 (12:37 -0500)]
USB Consolidate descriptor definitions

The header files usb.h and usbdescriptors.h have the same nameed
structure definitions for

usb_config_descriptor
usb_interface_descriptor
usb_endpoint_descriptor
usb_device_descriptor
usb_string_descriptor

These are out right duplicates in usb.h

usb_device_descriptor
usb_string_descriptor

This one has extra unused elements

usb_endpoint_descriptor

unsigned char bRefresh
unsigned char bSynchAddress;

These in usb.h have extra elements at the end of the usb 2.0
specified descriptor and are used.

usb_config_descriptor
usb_interface_descriptor

The change is to consolidate the definition of the descriptors
to usbdescriptors.h.  The dublicates in usb.h are removed.
The extra element structure will have their name shorted by
removing the '_descriptor' suffix.

So

usb_config_descriptor -> usb_config
usb_interface_descriptor -> usb_interface

For these, the common descriptor elements are accessed now
by an element 'desc'.

As an example

- if (iface->bInterfaceClass != USB_CLASS_HUB)
+ if (iface->desc.bInterfaceClass != USB_CLASS_HUB)

This has been compile tested on MAKEALL arm, ppc and mips.

Signed-off-by: Tom Rix <Tom.Rix@windriver.com>
14 years agos5pc110: corrected board detection.
daeinki [Fri, 18 Dec 2009 08:55:34 +0000 (17:55 +0900)]
s5pc110: corrected board detection.

Signed-off-by: daeinki <inki.dae@samsung.com>
14 years agos5pc110: bug fix for board detection.
daeinki [Fri, 18 Dec 2009 08:25:34 +0000 (17:25 +0900)]
s5pc110: bug fix for board detection.

Signed-off-by: daeinki <inki.dae@samsung.com>
14 years agos5pc110: added dual lcd support for Media and modified board detection.
daeinki [Fri, 18 Dec 2009 08:08:59 +0000 (17:08 +0900)]
s5pc110: added dual lcd support for Media and modified board detection.

1. added dual rgb code to framebuffer driver.
2. modified board detection.
3. code clean.

Signed-off-by: daeinki <inki.dae@samsung.com>
14 years agos5pc1xx: aquila: remove warning
Minkyu Kang [Fri, 18 Dec 2009 07:13:29 +0000 (16:13 +0900)]
s5pc1xx: aquila: remove warning

Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
14 years agos5pc110: fb: added definitions for dual rgb.
daeinki [Fri, 18 Dec 2009 07:03:09 +0000 (16:03 +0900)]
s5pc110: fb: added definitions for dual rgb.

Signed-off-by: daeinki <inki.dae@samsung.com>
14 years agos5pc110: added board detection code for Media.
daeinki [Fri, 18 Dec 2009 06:58:39 +0000 (15:58 +0900)]
s5pc110: added board detection code for Media.

Signed-off-by: daeinki <inki.dae@samsung.com>
14 years agos5pc110: added machine detection for Media.
daeinki [Fri, 18 Dec 2009 06:52:35 +0000 (15:52 +0900)]
s5pc110: added machine detection for Media.

Signed-off-by: daeinki <inki.dae@samsung.com>
14 years agos5pc110: fb: code clean.
daeinki [Fri, 18 Dec 2009 02:56:41 +0000 (11:56 +0900)]
s5pc110: fb: code clean.

Signed-off-by: daeinki <inki.dae@samsung.com>