rowboat:dvachevs-dvachevs-u-boot.git
7 years agoAdded MUSB support for AM335X int_am335xpsp_04.06.00.01
Prashantha Krishna [Mon, 26 Sep 2011 09:32:55 +0000 (15:02 +0530)]
Added MUSB support for AM335X

This adds MUSB support for AM335X to operate in both host mode and
peripheral mode. Fastboot is tested with this MUSB patch.

Signed-off-by: Prashantha Krishna <x0156546@ti.com>
7 years agoFASTBOOT: Housekeeping
Afzal Mohammed [Thu, 16 Dec 2010 13:52:37 +0000 (19:22 +0530)]
FASTBOOT: Housekeeping

Housekeeping

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: Resolved issue with reconnecting cable
Afzal Mohammed [Thu, 16 Dec 2010 13:50:27 +0000 (19:20 +0530)]
FASTBOOT: Resolved issue with reconnecting cable

MUSB core interrupt also read from TI registers instead of MUSB registers.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: AM35X support added
Afzal Mohammed [Thu, 16 Dec 2010 11:26:24 +0000 (16:56 +0530)]
FASTBOOT: AM35X support added

Added AM35X support. MUSB UDC has to be modified; to capture interrupt
status TI registers has to be accessed instead of MUSB registers.
Verified to work properly with both Linux & Windows host as HS device.

TODO: Reconnecting cable causes device to be unrecognized by the host,
possible issue may be bytewise read on MUSB registers causing corruption.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: Resolve compiler error when compiling MUSB as host
Afzal Mohammed [Wed, 15 Dec 2010 07:45:09 +0000 (13:15 +0530)]
FASTBOOT: Resolve compiler error when compiling MUSB as host

Resolve compiler error when compiling MUSB as host by using macro
CONFIG_CMD_FASTBOOT for conditional compilation instead of
CONFIG_FASTBOOT. Another macro for CONFIG_CMD_FASTBOOT may be
appropriate so as to take care of fastboot at boot (to be implemented)

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: Copyright updated
Afzal Mohammed [Wed, 15 Dec 2010 04:20:52 +0000 (09:50 +0530)]
FASTBOOT: Copyright updated

Copyright updated

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: Device made to get enumerated as HS if host supports it.
Afzal Mohammed [Tue, 14 Dec 2010 09:15:40 +0000 (14:45 +0530)]
FASTBOOT: Device made to get enumerated as HS if host supports it.

Based on HS negotiation result with host, device is configured as HS or FS

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: Fastboot using MUSB made HS capable
Afzal Mohammed [Mon, 13 Dec 2010 07:37:00 +0000 (13:07 +0530)]
FASTBOOT: Fastboot using MUSB made HS capable

Fastboot, MUSB UDC & USB modified to take care of USB HS.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: Combine different instances of FASTBOOT_RESPONSE_FLAG to one
Afzal Mohammed [Mon, 13 Dec 2010 05:31:10 +0000 (11:01 +0530)]
FASTBOOT: Combine different instances of FASTBOOT_RESPONSE_FLAG to one

Combine different instances of FASTBOOT_RESPONSE_FLAG to one coming
under fbt_rx_process().

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: Revert data toggling for MUSB UDC
Afzal Mohammed [Fri, 10 Dec 2010 12:26:48 +0000 (17:56 +0530)]
FASTBOOT: Revert data toggling for MUSB UDC

Revert data toggling for MUSB UDC

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: OMAP3EVM: Use partition name and product name as required by Android
Afzal Mohammed [Fri, 10 Dec 2010 09:10:12 +0000 (14:40 +0530)]
FASTBOOT: OMAP3EVM: Use partition name and product name as required by Android

Partition name changed from kernel to boot; boot is combination of uImage and
ramdisk. Product name modified so that fastboot command - flashall can be
executed successfully, fastboot host requires the name depending on actual
product name used during Android build.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: Use macros for EP numbers/index
Afzal Mohammed [Wed, 8 Dec 2010 08:09:06 +0000 (13:39 +0530)]
FASTBOOT: Use macros for EP numbers/index

Use macros for EP numbers/index in fstboot driver

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: Cleanup
Afzal Mohammed [Tue, 7 Dec 2010 03:40:34 +0000 (09:10 +0530)]
FASTBOOT: Cleanup

fastboot driver cleanup

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: Incorporated fastboot upload capability
Afzal Mohammed [Mon, 6 Dec 2010 14:00:28 +0000 (19:30 +0530)]
FASTBOOT: Incorporated fastboot upload capability

Incorporated fastboot upload capability; This command has not been
observed as part of fastboot protocol, but it has been implemented
as part of OmapZoom.
TODO:
1. Check whether USB serial works after MUSB UDC changes done for fastboot
2. Incorporate handling of various fastboot command options
3. Test commands - boot, flashall, flash:raw, update, upload
4. Error recovery
5. Cleanup

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: Added fastboot command - boot
Afzal Mohammed [Mon, 6 Dec 2010 09:11:00 +0000 (14:41 +0530)]
FASTBOOT: Added fastboot command - boot

Added fastboot boot command. This has not been verified.
TODO: Verify boot command.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: Added fastboot commands - reboot & continue
Afzal Mohammed [Mon, 6 Dec 2010 08:42:58 +0000 (14:12 +0530)]
FASTBOOT: Added fastboot commands - reboot & continue

Added fastboot commands reboot, reboot-bootloader (for now effect
of both are same) and continue.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: Handle other "fastboot getvar" commands
Afzal Mohammed [Mon, 6 Dec 2010 07:42:20 +0000 (13:12 +0530)]
FASTBOOT: Handle other "fastboot getvar" commands

Incorporated code to handle additional "fastboot getvar" commands

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: Add capability to add partitions dynamically
Afzal Mohammed [Mon, 6 Dec 2010 06:19:47 +0000 (11:49 +0530)]
FASTBOOT: Add capability to add partitions dynamically

Add capability for fastboot to add partitions during initialization
based on information stored under "fbparts" environmental variable.
This has been ported from OmapZooom.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: Remove board specific details from fastboot function(command) driver
Afzal Mohammed [Mon, 6 Dec 2010 04:08:24 +0000 (09:38 +0530)]
FASTBOOT: Remove board specific details from fastboot function(command) driver

Setting partition detail - a board specific matter, moved from
the board independent fastboot function (command) driver to
board file(OMAP3 EVM).

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: Disable debug prints in MUSB UDC
Afzal Mohammed [Fri, 3 Dec 2010 13:27:48 +0000 (18:57 +0530)]
FASTBOOT: Disable debug prints in MUSB UDC

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: Revert changes done for testing
Afzal Mohammed [Fri, 3 Dec 2010 13:24:49 +0000 (18:54 +0530)]
FASTBOOT: Revert changes done for testing

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: fastboot flash command working
Afzal Mohammed [Fri, 3 Dec 2010 13:15:21 +0000 (18:45 +0530)]
FASTBOOT: fastboot flash command working

Ported fastboot command - flash handling form OmapZoom.
Flashing is working,has to be tested thoroughly
TODO:
1. Incorporate remaining fastboot commands
2. Error recovery
3. Cleanup
4. Environmental partition has to be setup during initialization
5. A better organized handling or design for memory hardware so that
   both flash and SD/MMC can be used, if doing, handle code inside
   macro - FASTBOOT_PORT_OMAPZOOM_NAND_FLASHING
6. Check the effect of modification in MUSB gadget driver on serial driver

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: fastboot erase working
Amit Pundir [Fri, 6 May 2011 11:12:07 +0000 (16:42 +0530)]
FASTBOOT: fastboot erase working

Ported erase & partial flash code from OmapZoom.
Fastboot erase is working.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: Incorporate erase and flash commands
Afzal Mohammed [Fri, 3 Dec 2010 09:32:09 +0000 (15:02 +0530)]
FASTBOOT: Incorporate erase and flash commands

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: Disable debug prints in cmd_fastboot.c
Afzal Mohammed [Fri, 3 Dec 2010 09:14:46 +0000 (14:44 +0530)]
FASTBOOT: Disable debug prints in cmd_fastboot.c

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: fastboot data download working
Afzal Mohammed [Fri, 3 Dec 2010 08:44:31 +0000 (14:14 +0530)]
FASTBOOT: fastboot data download working

Data sent after fastboot command seems to be recieved properly

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASBOOT: Disable debug prints in ep0.c
Afzal Mohammed [Fri, 3 Dec 2010 05:05:46 +0000 (10:35 +0530)]
FASBOOT: Disable debug prints in ep0.c

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: Posion Rx URB buffer, remove code modification in gadget core
Afzal Mohammed [Fri, 3 Dec 2010 05:01:17 +0000 (10:31 +0530)]
FASTBOOT: Posion Rx URB buffer, remove code modification in gadget core

Rx URB poisoned so as to decode commands properly, fastboot commands are
sent w/o trailing NULL. Remove code modifying and making use of Rx URB status,
use Rx URB actual length field as this avoids modification to gadget core

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: Basic fastboot command communication working
Afzal Mohammed [Thu, 2 Dec 2010 15:26:31 +0000 (20:56 +0530)]
FASTBOOT: Basic fastboot command communication working

Fastboot communication of commands working, checked only for getvar
TODO: Data handling

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: Handling recieve
Afzal Mohammed [Wed, 1 Dec 2010 15:28:04 +0000 (20:58 +0530)]
FASTBOOT: Handling recieve

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: File "ep0.c" made verbose
Afzal Mohammed [Wed, 1 Dec 2010 12:15:07 +0000 (17:45 +0530)]
FASTBOOT: File "ep0.c" made verbose

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: Modified usb serial driver to check MUSB initialization
Afzal Mohammed [Wed, 1 Dec 2010 12:05:27 +0000 (17:35 +0530)]
FASTBOOT: Modified usb serial driver to check MUSB initialization

Modified usb serial driver to check MUSB initialization with the
help of "usbtest" command; only for debug purpose.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: MUSB UDC getting enumerated in host PC
Afzal Mohammed [Wed, 1 Dec 2010 12:00:34 +0000 (17:30 +0530)]
FASTBOOT: MUSB UDC getting enumerated in host PC

Fix: Update global variable "usb_strings".
Modified to be more verbose and added code to debug MUSB UDC.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASBOOT: Initialize MUSB with fastboot cmd
Afzal Mohammed [Tue, 30 Nov 2010 14:39:43 +0000 (20:09 +0530)]
FASBOOT: Initialize MUSB with fastboot cmd

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: MUSB UDC enabled in OMAP3 EVM config option
Afzal Mohammed [Tue, 30 Nov 2010 10:22:33 +0000 (15:52 +0530)]
FASTBOOT: MUSB UDC enabled in OMAP3 EVM config option

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoFASTBOOT: Add minimal macros, incorporate fastboot header and no-op command
Afzal Mohammed [Tue, 30 Nov 2010 09:11:03 +0000 (14:41 +0530)]
FASTBOOT: Add minimal macros, incorporate fastboot header and no-op command

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Amit Pundir <amitpundir@ti.com>
7 years agoAM335x: Corrected the offset of NAND environment.
Philip, Avinash [Sun, 2 Oct 2011 15:12:13 +0000 (20:42 +0530)]
AM335x: Corrected the offset of NAND environment.

Corrected the environment offset in NAND to accommodate 4 blocks for
u-boot.min.

Signed-off-by: Philip, Avinash <avinashphilip@ti.com>
7 years agoAM335X: CPSW autonegotiates to 10/100 mbps
Chandan Nath [Fri, 30 Sep 2011 13:44:50 +0000 (19:14 +0530)]
AM335X: CPSW autonegotiates to 10/100 mbps

This patch is added as an workaround for cpsw to autonegotiates
to 10/100 mbps speed even if it is connected to 1 Gig link. The reason
for this is to overcome hardware issue of 1 Gig speed. Currently cpsw
is not working at 1 Gig speed and so when ethernet is connected to 1 Gig
link, it will auto negotiates and will fall back 10/100 mbps speed.

Signed-off-by: Chandan Nath <chandan.nath@ti.com>
7 years agoAM335x: Corrected MPU voltage switching.
Philip, Avinash [Wed, 21 Sep 2011 06:05:27 +0000 (11:35 +0530)]
AM335x: Corrected MPU voltage switching.

VDD_MPU is connected to VDD1_SMPS on latest schematic. This fix is to
correct the same.

Signed-off-by: Philip, Avinash <avinashphilip@ti.com>
7 years agoAM335x: DDR for 266 MHz.
Philip, Avinash [Thu, 15 Sep 2011 11:33:41 +0000 (17:03 +0530)]
AM335x: DDR for 266 MHz.

DDR clock rate is updated to 266 MHz.

Signed-off-by: Philip, Avinash <avinashphilip@ti.com>
7 years agoAM335X: Remove warning that occur during compile
Hebbar, Gururaja [Tue, 20 Sep 2011 15:25:37 +0000 (20:55 +0530)]
AM335X: Remove warning that occur during compile

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoAM335X: enabling 2 slave port support in cpsw
Chandan Nath [Tue, 20 Sep 2011 10:09:00 +0000 (15:39 +0530)]
AM335X: enabling 2 slave port support in cpsw

Enabled the two slaves of the CPSW with port forwarding enabled.
Port forward is moved from slave open to link up so that queues
are not used when link is down and prevents from fifo overflow.

Signed-off-by: Chandan Nath <chandan.nath@ti.com>
7 years agoAM335x: Support for MPU clock switch to 600MHz.
Philip, Avinash [Mon, 19 Sep 2011 11:56:34 +0000 (17:26 +0530)]
AM335x: Support for MPU clock switch to 600MHz.

This patch supports for MPU clock to run at 600 MHz. First switch the
MPU clock to 550 MHZ as the MPU voltage set by PMIC is 1.1V. Delaying
the MPU clock switch to 600 MHz, as I2C drivers for PMIC access is
available only after DDR initialization. After PMIC voltage for MPU is
switched to 1.2V, MPU clock is updated to 600 MHz.

Signed-off-by: Philip, Avinash <avinashphilip@ti.com>
7 years agoAM335x: FIX for I2C write of address length 1
Philip, Avinash [Mon, 19 Sep 2011 12:07:29 +0000 (17:37 +0530)]
AM335x: FIX for I2C write of address length 1

Present OMAP24xx I2C driver fails when writing to i2c devices on
controllers with 8-bit data registers with address length 1.
This patch fixes the same.

Signed-off-by: Philip, Avinash <avinashphilip@ti.com>
7 years agoTI81xx: NAND: Fix system reset when BCH4 ecc is selected using nandecc cmd
Mansoor Ahamed Basheer [Thu, 28 Jul 2011 10:07:26 +0000 (15:37 +0530)]
TI81xx: NAND: Fix system reset when BCH4 ecc is selected using nandecc cmd

 The nandecc switch command does not support BCH4 and BCH16 ecc schemes.
 When these two options were selected the system used to reset. The nand
 core will check for valid ECC scheme and it will do a controlled reset
 using BUG().

 This has been fixed by using a return value for switch function and then
 invoking nand_scan_tail() only when there is a successful ecc switch.

Signed-off-by: Basheer, Mansoor Ahamed <mansoor.ahamed@ti.com>
7 years agoAM335x: Run time detection of NAND Bus width
Philip, Avinash [Fri, 16 Sep 2011 06:00:37 +0000 (11:30 +0530)]
AM335x: Run time detection of NAND Bus width

This fix is taken from TI816x tree for fixing NAND bus width on run
time.
Commit id <878b311ae687cb3e9f909d0f3578ce4cc674e4e6>

Signed-off-by: Philip, Avinash <avinashphilip@ti.com>
7 years agoti81xx: nand: add 8/16 bit nand runtime detection
Saxena, Parth [Fri, 29 Jul 2011 11:45:54 +0000 (17:15 +0530)]
ti81xx: nand: add 8/16 bit nand runtime detection

This patch adds runtime detection between 8 and 16 bit nand.
If the BTMODE BW pin on the board is set to 0,
16-bit nand is selected.
If the BTMODE BW pin on the board is set to 1,
8-bit nand is selected.

Signed-off-by: Saxena, Parth <parth.saxena@ti.com>
7 years agoAM335X: provide proper fallback incase of failure
Hebbar, Gururaja [Tue, 13 Sep 2011 12:13:41 +0000 (17:43 +0530)]
AM335X: provide proper fallback incase of failure

Initially all EEPROM were assumed to contain valid EVM Configuration.
However few EVM's are seen with empty/incorrect EEPROM data.
In such cases, this patch provides valid fallback method

In case of errors, fallback to default configuration.
board_id = GP_BOARD;
profile = 0
daughter_board_connected = TRUE;

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoAM335X: correct evm type defines
Hebbar, Gururaja [Tue, 13 Sep 2011 06:13:51 +0000 (11:43 +0530)]
AM335X: correct evm type defines

While merging bring-up branch to integration branch, evm type related
boot.

This patch corrcts the same.

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoAM335X: Removed unused ddr config file
Hebbar, Gururaja [Tue, 6 Sep 2011 11:41:50 +0000 (17:11 +0530)]
AM335X: Removed unused ddr config file

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoAM335X: correct spi 1 pin-mux
Hebbar, Gururaja [Mon, 5 Sep 2011 07:04:51 +0000 (12:34 +0530)]
AM335X: correct spi 1 pin-mux

Allign spi1 pin-mux as per Linux. This patch enable spi flash on IA
Board accessible

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoAM335X: enable printf if in u-boot 2nd stage
Hebbar, Gururaja [Sun, 4 Sep 2011 11:18:54 +0000 (16:48 +0530)]
AM335X: enable printf if in u-boot 2nd stage

u-boot 1st stage enables required uart. so enable early printf in 2nd
stage.

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoAM335X: Add debug print to display evm configuration
Hebbar, Gururaja [Sun, 4 Sep 2011 11:02:25 +0000 (16:32 +0530)]
AM335X: Add debug print to display evm configuration

Through use of #define, enable display of evm info

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoAM335X: Remove extra cpsw pinmux config
Chandan Nath [Tue, 30 Aug 2011 09:21:41 +0000 (14:51 +0530)]
AM335X: Remove extra cpsw pinmux config

This patch removes extra rmii1_refclk and rmii2_refclk pinmux configuration
from rgmii pinmux configuration which are not required for current mode of
operation. Also, this pins are been used by audio and should not be configure
here.

Signed-off-by: Chandan Nath <chandan.nath@ti.com>
Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoAM335X: Enable In Band mode in cpsw for 10 mbps
Chandan Nath [Fri, 26 Aug 2011 13:31:28 +0000 (19:01 +0530)]
AM335X: Enable In Band mode in cpsw for 10 mbps

This patch adds support for enabling In Band mode in 10 mbps speed.
RGMII supports 1 Gig and 100 mbps mode for Forced mode of operation.
For 10mbps mode it should be configured to in band mode so that link
status, duplexity and speed are determined from the RGMII input data
stream

Signed-off-by: Chandan Nath <chandan.nath@ti.com>
Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoAM335X: Enable multi-i2c support
Hebbar, Gururaja [Wed, 24 Aug 2011 10:01:15 +0000 (15:31 +0530)]
AM335X: Enable multi-i2c support

All AM335X EVM support atleast 2 i2c busses (i2c0 i2c1/i2c2). So enable
support to access them.

Also, EEPROM read command requires to send two bytes of address. so fix the same

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoAM335X: update omap24xx i2c driver to support multi-i2c
Hebbar, Gururaja [Wed, 24 Aug 2011 09:57:25 +0000 (15:27 +0530)]
AM335X: update omap24xx i2c driver to support multi-i2c

This patch changes reg offset to depend on i2c base address rather than
being complete address themselves. This also make way for implementing
MULTI-I2C feature.

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoAM335x: I2C Multi byte address support for EEPROM
Philip, Avinash [Tue, 23 Aug 2011 06:54:57 +0000 (12:24 +0530)]
AM335x: I2C Multi byte address support for EEPROM

This patch is to support 2 byte address write for EEPROM. Existing
omap24xx_i2c.c does not support address length greater than one.

1. CAT24C256 EEPROM requires writing two byte address for write/read
operations.
2. To support the EEPROM write/read support call the i2c_read/i2c_write
API with alen 2.

Also, this patch corrects the handling of error states in i2c functionalities.
On detecting I2C bus busy, return from function with error status added.

when we are at it,
1. I2C printf are removed since these functionalities might be called
   before console sets up.
2. Removed the unused functions & there by eliminating warning.

Signed-off-by: Philip, Avinash <avinashphilip@ti.com>
Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoAM335X: Move setenv from default_serial_console
Afzal Mohammed [Tue, 23 Aug 2011 12:45:51 +0000 (18:15 +0530)]
AM335X: Move setenv from default_serial_console

Doing setenv in default_serial_console() was causing U-boot
to hang. Move setenv on console to board_late_init().

Signed-off-by: Afzal Mohammed <afzal@ti.com>
Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoAM335X: Corrected TLK110 PHY ID
Chandan Nath [Mon, 22 Aug 2011 15:22:02 +0000 (20:52 +0530)]
AM335X: Corrected TLK110 PHY ID

This patch is added to correct TLK110 PHY address. The PHY address
is changed from 1 (00001) to 30 (11110)

Signed-off-by: Chandan Nath <chandan.nath@ti.com>
Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoam335x: clean-up board detection logic
Sekhar Nori [Mon, 15 Aug 2011 23:45:23 +0000 (18:45 -0500)]
am335x: clean-up board detection logic

This patch
1. fixes incorrect calling of printf() from board_init() where console
is still not set
2. updates Coding style

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoAM335X: add support for i2c1 & i2c2 & fix i2c0 pin-mux
Hebbar, Gururaja [Wed, 24 Aug 2011 09:53:34 +0000 (15:23 +0530)]
AM335X: add support for i2c1 & i2c2 & fix i2c0 pin-mux

PLL clock config for i2c1 & i2c2 is added. However, i2c2 pin-mux is yet
to be finalized. Hence this patch does not contain pin-mux for i2c2.

when we are in i2c correction also, allgin i2c0 pin-mux with Linux

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoAM335X: Add missing UART3 Functional Clocks
Hebbar, Gururaja [Fri, 19 Aug 2011 10:31:17 +0000 (16:01 +0530)]
AM335X: Add missing UART3 Functional Clocks

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoAM335x: SPI bus no is updated on board detection
Philip, Avinash [Fri, 19 Aug 2011 17:39:26 +0000 (23:09 +0530)]
AM335x: SPI bus no is updated on board detection

SPI bus no environment variable is updated in accordance with the board
detection.

Signed-off-by: Philip, Avinash <avinashphilip@ti.com>
Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoAM335X: Support new MACH-id for IA EVM
Hebbar, Gururaja [Wed, 17 Aug 2011 16:36:44 +0000 (22:06 +0530)]
AM335X: Support new MACH-id for IA EVM

A EVM uses different MACH Id. Support the same

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoAM335X: Correct UART Pin-mux and align with RBL
Hebbar, Gururaja [Wed, 17 Aug 2011 16:26:55 +0000 (21:56 +0530)]
AM335X: Correct UART Pin-mux and align with RBL

Pin-mux for CTSN & RTSN is not setup. So dont configure them.
Also align pin-mux with how RBL does.

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoam335x: I2C misc fixes
Sekhar Nori [Tue, 16 Aug 2011 18:23:16 +0000 (13:23 -0500)]
am335x: I2C misc fixes

1) fix I2C input clock frequencies

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoam335x: streamline mac address read logic
Sekhar Nori [Mon, 15 Aug 2011 23:49:04 +0000 (18:49 -0500)]
am335x: streamline mac address read logic

This patch streamlines the usage & updation of MAC address

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoAM335X: Multi serial support for AM335x
Hebbar, Gururaja [Tue, 16 Aug 2011 15:47:15 +0000 (21:17 +0530)]
AM335X: Multi serial support for AM335x

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoAM335X: Fix in-correct SPI module handling
Hebbar, Gururaja [Fri, 12 Aug 2011 15:28:38 +0000 (20:58 +0530)]
AM335X: Fix in-correct SPI module handling

This patch fixes missing SPI base address & Flash frequency
data. Sets up correct Pin-mux.

This patch also fixes the incorrect "data line reversal
handling" in spi driver.

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoAM335X: Update NAND Module
Sugumar Natarajan [Thu, 11 Aug 2011 13:32:04 +0000 (19:02 +0530)]
AM335X: Update NAND Module

1. RBL checks at 4 NAND location for u-boot min image as a fallback
   feature in case one NAND image fails.
   This patch corrects the address for 2nd stage u-boot.

2. This patch setups the Pin-mux as per RBL

3. This patch  revert to 'GPMC_NAND_ECC_LP_x16_LAYOUT' as that seems to be
   correct

4. This patch corrects the NAND read address of uImage

Signed-off-by: Sugumar Natarajan <sugumar@ti.com>
7 years agoam335x: wdt1: disable in early init
Vaibhav Bedia [Tue, 9 Aug 2011 19:38:35 +0000 (01:08 +0530)]
am335x: wdt1: disable in early init

WDT1 is already running when the bootloader gets control.
Disable it in early init code to avoid "random" resets.

Signed-off-by: Vaibhav Bedia <vaibhav.bedia@ti.com>
Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoAM335X: Add config option to select b/w EVM types
Patil, Rachna [Fri, 2 Sep 2011 12:02:30 +0000 (17:32 +0530)]
AM335X: Add config option to select b/w EVM types

AM335X Evm is available in 2 SOC types 13x13 & 15x15.

This patch provides config option to select the same

Signed-off-by: Patil, Rachna <rachna@ti.com>
Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoAM335X: Correct DDR & PLL config
Sugumar Natarajan [Fri, 2 Sep 2011 11:40:43 +0000 (17:10 +0530)]
AM335X: Correct DDR & PLL config

1. DDR is configured to run at 200 MHz
2. Change ddr pll settings as well
3. Fix small Coding style errors

Signed-off-by: Sugumar Natarajan <sugumar@ti.com>
Signed-off-by: Vaibhav Bedia <vaibhav.bedia@ti.com>
Signed-off-by: Patil, Rachna <rachna@ti.com>
Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoAM335X: Revert Commit related to MDDR addition
Hebbar, Gururaja [Fri, 2 Sep 2011 11:13:59 +0000 (16:43 +0530)]
AM335X: Revert Commit related to MDDR addition

Revert "AM335X: add uart related changes for IA evm."
(commit 0cab3c6cce31474fe8e8629ae9ce6769030b8970)

Revert "AM335X: ifdef added for ddr settings."
(commit 158e3ef8424e3b75ec49a044d8b8405f6487e639)

By reverting make way for new improved board detection

7 years agoAM335X: add uart related changes for IA evm.
Patil, Rachna [Tue, 16 Aug 2011 10:24:55 +0000 (15:54 +0530)]
AM335X: add uart related changes for IA evm.

This patch adds uart3 for IA evm.

Signed-off-by: Patil, Rachna <rachna@ti.com>
7 years agoAM335X: ifdef added for ddr settings.
Patil, Rachna [Tue, 16 Aug 2011 07:42:45 +0000 (13:12 +0530)]
AM335X: ifdef added for ddr settings.

Signed-off-by: Patil, Rachna <rachna@ti.com>
7 years agoAM335X: Add IO control registers in mddr config.
Patil, Rachna [Mon, 8 Aug 2011 12:52:10 +0000 (18:22 +0530)]
AM335X: Add IO control registers in mddr config.

Signed-off-by: Patil, Rachna <rachna@ti.com>
7 years agoAM335x: SPI data line inversion handled
Philip, Avinash [Fri, 5 Aug 2011 11:09:40 +0000 (16:39 +0530)]
AM335x: SPI data line inversion handled

In AM335x SPI data line are inverted and this patch will handled the
data line inversion for AM335x. Pin-muxing also updated.

Signed-off-by: Philip, Avinash <avinashphilip@ti.com>
7 years agoAM335X: Fix Coding style errors
Hebbar, Gururaja [Fri, 5 Aug 2011 15:19:00 +0000 (20:49 +0530)]
AM335X: Fix Coding style errors

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoAM335X: Fix inconsitency in PAD Conf header file
Hebbar, Gururaja [Fri, 5 Aug 2011 12:52:07 +0000 (18:22 +0530)]
AM335X: Fix inconsitency in PAD Conf header file

This patch corrects the offset for various pins

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoAM335X: Add DDR configurations.
Patil, Rachna [Fri, 5 Aug 2011 09:46:56 +0000 (15:16 +0530)]
AM335X: Add DDR configurations.

This patch adds mddr and ddr2 configurations.

Signed-off-by: Patil, Rachna <rachna@ti.com>
7 years agoAM335X : Correct Profile Reading & Handling
Hebbar, Gururaja [Wed, 3 Aug 2011 10:49:12 +0000 (16:19 +0530)]
AM335X : Correct Profile Reading & Handling

The Profile range is 0 - 7. So, handle it acordingly

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoam335x: Read MACID from eeprom
Chandan Nath [Wed, 3 Aug 2011 11:09:53 +0000 (16:39 +0530)]
am335x: Read MACID from eeprom

This patch is added to support reading MACID from eeprom when
MACID read from efuse is not valid. MACID is read from efuse and
checked the address for valid ethernet address. If the address is
found to be invalid, mac address stored in EEPROM is used.

Signed-off-by: Chandan Nath <chandan.nath@ti.com>
7 years agoAM335X: Board-identification Feature Improvement
Hebbar, Gururaja [Wed, 3 Aug 2011 09:31:24 +0000 (15:01 +0530)]
AM335X: Board-identification Feature Improvement

Base board EEPROM also store information regarding to which EVM
Kit it belongs. So setup pinmux only when relevant daughter board is
present.

This patch is a merge of below improvements
1. Read SKU data from eeprom & init modules only if respective modules
are present
2. Add device_on member to pin-mux struct to indicate the device
location (baseboard or daughter board)
3. Sparse and Coding Style correction

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years ago AM335X : addd support for reading MAC Address from EEPROM
Hebbar, Gururaja [Tue, 2 Aug 2011 12:47:24 +0000 (18:17 +0530)]
 AM335X : addd support for reading MAC Address from EEPROM

This patch provides support for reading MAC address from EEPROM.
Upto 3 MAC Address are stored inside EEPROM on Baseboard. if the
MAC Address on eFUSE if invalid, ethernet module can get the
valid MAC Address from EEPROM

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoam335x: miiphy register address change
Chandan Nath [Fri, 22 Jul 2011 12:03:38 +0000 (17:33 +0530)]
am335x: miiphy register address change

This patch is added as an workaround to support TLK110 PHY. The register
offset value of this PHY is exceeding 0xFF and cannot be used with
"unsigned char" datatype in miiphy_read, miiphy_write and miiphy_register
functions. Datatype of register offset is changed to unsigned short instead
of unsigned char so that offset value greater then 0xFF can be used.

Signed-off-by: Chandan Nath <chandan.nath@ti.com>
7 years agoam335x: NOR: remove GPIO related code
Sugumar Natarajan [Fri, 22 Jul 2011 16:04:54 +0000 (21:34 +0530)]
am335x: NOR: remove GPIO related code

GPIO configuration in NOR boot startup code
is not required for am335x.

Signed-off-by: Sugumar Natarajan <sugumar@ti.com>
7 years agoam335x: remove redundant defines in makefile
Sugumar Natarajan [Fri, 22 Jul 2011 11:53:30 +0000 (17:23 +0530)]
am335x: remove redundant defines in makefile

Signed-off-by: Sugumar Natarajan <sugumar@ti.com>
7 years agoam335x: NOR: define 'CONFIG_NOR_BOOT' needed by gpmc_init
Sugumar Natarajan [Fri, 22 Jul 2011 11:41:07 +0000 (17:11 +0530)]
am335x: NOR: define 'CONFIG_NOR_BOOT' needed by gpmc_init

Signed-off-by: Sugumar Natarajan <sugumar@ti.com>
7 years agoam335x: Fix for removing miiphy warnings
Chandan Nath [Fri, 22 Jul 2011 10:25:53 +0000 (15:55 +0530)]
am335x: Fix for removing miiphy warnings

This patch is added to remove phy warnings as shown below.
evm.c:425: warning: large integer implicitly truncated to unsigned type
evm.c:459: warning: large integer implicitly truncated to unsigned type
miiphy_read and miiphy_write functions reg datatype is changed from char
to short.

Signed-off-by: Chandan Nath <chandan.nath@ti.com>
7 years agoam335x: SPI: Fix coding style warnings
Philip, Avinash [Fri, 22 Jul 2011 09:50:04 +0000 (15:20 +0530)]
am335x: SPI: Fix coding style warnings

Signed-off-by: Philip, Avinash <avinashphilip@ti.com>
7 years agoam335x: Add conditional compilation for the module pin mux
Sugumar Natarajan [Thu, 21 Jul 2011 14:56:18 +0000 (20:26 +0530)]
am335x: Add conditional compilation for the module pin mux

Signed-off-by: Sugumar Natarajan <sugumar@ti.com>
7 years agoam335x: Adding centaurus PG revisions
Chandan Nath [Thu, 21 Jul 2011 09:08:40 +0000 (14:38 +0530)]
am335x: Adding centaurus PG revisions

This patch is added for including CPU Revision defintion for TI814X
PG2.1 and PG1.0. This patch is picked up from int_ti81xxpsp_04.02.00.08
branch with commit id 5949fd3c2e3aa536d2a43c664809ced310d4ad20, to support
cpsw patches.

Signed-off-by: Chandan Nath <chandan.nath@ti.com>
7 years agoti8148: cust : modify the cpsw PHY address for new EVM
Sriramakrishnan A G [Wed, 22 Jun 2011 12:13:28 +0000 (17:43 +0530)]
ti8148: cust : modify the cpsw PHY address for new EVM

On the new EVM the PHY address are interchanged. revert this
patch once the issue is handled through board modification

Signed-off-by: Sriramakrishnan A G <srk@ti.com>
7 years agomiiphyutil: (hack) Disable check for 1000BaseX
Sriramakrishnan A G [Wed, 22 Jun 2011 12:14:53 +0000 (17:44 +0530)]
miiphyutil: (hack) Disable check for 1000BaseX

Atheros PHY reports 1000BaseX incorrectly. Add hack to
disable check for 1000BaseX mode.

Signed-off-by: Sriramakrishnan A G <srk@ti.com>
7 years agoti8148: cpsw : add support for rgmii
Sriramakrishnan A G [Wed, 22 Jun 2011 12:10:00 +0000 (17:40 +0530)]
ti8148: cpsw : add support for rgmii

Added pin-mux and clock configuration to support
rgmii interface on newer EVM(ES2.1)

Signed-off-by: Sriramakrishnan A G <srk@ti.com>
7 years agoti8148 cpsw : add pin mux configuration for second switch port.
Sriramakrishnan A G [Thu, 31 Mar 2011 14:38:26 +0000 (20:08 +0530)]
ti8148 cpsw : add pin mux configuration for second switch port.

Signed-off-by: Sriramakrishnan A G <srk@ti.com>
7 years agoam335x: Address review comments
Hebbar, Gururaja [Thu, 21 Jul 2011 08:30:59 +0000 (14:00 +0530)]
am335x: Address review comments

update bootargs code according review comments

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>
7 years agoam335x: Add default bootargs & bootacmds for Flash media
Hebbar, Gururaja [Mon, 18 Jul 2011 08:43:10 +0000 (14:13 +0530)]
am335x: Add default bootargs & bootacmds for Flash media

This patch adds various boot args & cmds for Flash Media
supported on AM335X (NAND, NOR, SPI, MMC ...)

Signed-off-by: Hebbar, Gururaja <gururaja.hebbar@ti.com>