VAR-SOM-AM33 Linux SDK 7 Configurations: Difference between revisions

From Variscite Wiki
(Created page with "{{PageHeader|VAR-SOM-AM33 SDK 7.0 typical configurations}} {{DocImage|category1=VAR-SOM-AM33|category2=Arago}} __toc__ = LCD porting = *VAR-SOM-AM33 Linux SDK 7 installing...")
 
 
(3 intermediate revisions by one other user not shown)
Line 4: Line 4:
= LCD porting  =
= LCD porting  =


*[[VAR-SOM-AM33 Linux SDK 7 installing graphics SDK|Installing Graphics SDK]]
Refer to:[[VAR-SOM-AM33 Linux SDK 7 LCD porting|LCD porting]]
*[[VAR-SOM-AM33 Linux SDK 7 LCD porting|LCD porting]]


= Installing Graphics SDK  =
= Installing Graphics SDK  =
*[[VAR-SOM-AM33 Linux SDK 7 installing graphics SDK|Installing Graphics SDK]]
Refer to: [[VAR-SOM-AM33 Linux SDK 7 installing graphics SDK|Installing Graphics SDK]]
 
= Change u-boot default Ethernet port to Gbit Ethernet =
Default ethernet port is defined in the below struct in board/ti/var-som-am33/board.c
Changing the order of the definition of the ports determines the default port, when the last defined port is the default.
<pre>
static struct cpsw_slave_data cpsw_slaves[] = {
{
.slave_reg_ofs = 0x308,
.sliver_reg_ofs = 0xdc0,
.phy_addr = 7,
},
{
.slave_reg_ofs = 0x208, //Default u-boot port is 10/100 port
.sliver_reg_ofs = 0xd80,
.phy_addr = 0,
},
}
;
</pre>
 
= Change USB-OTG port configuration to Host-only =
From SW perspective, the developer should do as follows:
*Download a VAR-SOM-AM33 kernel out-of-tree.
*Update var-som-am33.dts, as follows:
<pre>
$ gedit arch/arm/boot/dts/var-som-am33.dts
...
          usb@47401800 {
                              status = "okay";
                              dr_mode = "host"; /* <<-- Add this line */
                        };
...
</pre>
*Build var-som-am33.dtb and replace it on flash / NFS.
 
Once the var-som-am33.dtb has been replaced on flash / NFS - The USB-OTG port will function in Host-only mode.


= Reference Documentation  =
= Reference Documentation  =

Latest revision as of 11:51, 12 October 2014

VAR-SOM-AM33 SDK 7.0 typical configurations

LCD porting

Refer to:LCD porting

Installing Graphics SDK

Refer to: Installing Graphics SDK

Change u-boot default Ethernet port to Gbit Ethernet

Default ethernet port is defined in the below struct in board/ti/var-som-am33/board.c Changing the order of the definition of the ports determines the default port, when the last defined port is the default.

static struct cpsw_slave_data cpsw_slaves[] = {
	{
		.slave_reg_ofs	= 0x308,
		.sliver_reg_ofs	= 0xdc0,
		.phy_addr	= 7,
	},
	{
		.slave_reg_ofs	= 0x208, //Default u-boot port is 10/100 port
		.sliver_reg_ofs	= 0xd80,
		.phy_addr	= 0,
	},
}
;

Change USB-OTG port configuration to Host-only

From SW perspective, the developer should do as follows:

  • Download a VAR-SOM-AM33 kernel out-of-tree.
  • Update var-som-am33.dts, as follows:
$ gedit arch/arm/boot/dts/var-som-am33.dts
...
           usb@47401800 {
                               status = "okay";
                               dr_mode = "host"; /* <<-- Add this line */
                        };
...
  • Build var-som-am33.dtb and replace it on flash / NFS.

Once the var-som-am33.dtb has been replaced on flash / NFS - The USB-OTG port will function in Host-only mode.

Reference Documentation