Commit Graph

38024 Commits

Author SHA1 Message Date
Rene Straub db067fefdd nm: cleanup board descriptor library
- fix documentation/license information
- fix missing includes (dependancies, own header file)
- fix declaration mismatches
- fix data types
- fix parentheses
- fix order of functions in source/header
2019-03-30 11:07:39 +01:00
Wieslaw Kubala f6a10e8995 nmhw21: update static configuration of SJA1105 switch
- set default VLAN ID for untagged frames to 4095,
- set ports 0-2 speed to 0 - allows linux driver to set speed later on.

BugzID: 55890
Signed-off-by: Wieslaw Kubala <wieslaw.kubala@netmodule.com>
2019-02-26 09:27:39 +01:00
Rene Straub 6901116337 nmhw21: fix user module version detection
- version register read requires a delay of 50ms
2019-02-18 11:56:09 +01:00
Wieslaw Kubala a135a2d3ac nmhw21: clean up static configuration of SJA1105 switch
- remove groupcast filter for 01:80:C2:00:00:0E address
- remove VLAN 1 and 73

BugzID: 55710
Signed-off-by: Wieslaw Kubala <wieslaw.kubala@netmodule.com>
2019-02-15 11:23:06 +01:00
Rene Straub d10a7daaaf nmhw21: fix broadr PHY addresses for HW v1.0
- set PHY Id 6 for broadr0 on v1.0
- set PHY Id 7 for broadr1 on v1.0

BugzId: 55529
2019-02-05 09:13:13 +01:00
Rene Straub d53bbfbc77 nmhw21: improve support for tja1102 dual phy
- install filter driver for mdio read funtion
- remove ghost phy at address 0
- report phy type also for 2nd port

BugzId: 55131
2019-01-11 12:12:48 +01:00
Lucien Mueller fe1a692af7 nmhw21: remove kernel_image=zImage from u-boot env.
BugzID: 54718

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2019-01-09 15:32:45 +01:00
Rene Straub ec3ae39b9d nmhw21: cleanup board config file 2
- remove Androind fast boot stuff
- remove i2c i/o extender cli
2019-01-05 16:05:49 +01:00
Rene Straub 92bbeca1d6 nmhw21: cleanup board config file 2019-01-05 15:56:28 +01:00
Rene Straub 7a70f41cd9 nmhw21: refactor memory map description/names 2019-01-05 15:48:40 +01:00
Rene Straub f3d2175a53 nmhw21: add user module detection
- create new 'um' module to handle user module detection
- in nmhw21 board file
  - try to read presence register and check for magic ID
  - if found, determine type and hw version
  - display information at startup

BugzID: 53758
2019-01-05 14:59:39 +01:00
Rene Straub 49e124efb4 nmhw21: apply dynamic link detection to recovery boot
- replace fixed delay for pxe boot with mdio up command
- increase dhcp/bootp timeout to 10 seconds.
  5 seconds have shown to be close when DHCP server observes link
  by itself.

BugzID: 55019
2019-01-05 12:51:14 +01:00
Rene Straub d6cecc7f62 nmhw21: add configuration option for Ethernet link timeout
- env variable linktimeout defines timeout in milliseconds
- valid range is 1000 to 10000 ms
- default timeout is 5 seconds

BugzID: 55019
2019-01-05 12:25:51 +01:00
Rene Straub 377367a723 mdio: add subcommand 'up' to check for link
- performs a phy startup sequence and checks result
- returns 0 when link is up, 1 if no link could be established

BugzID: 55019
2019-01-05 12:06:08 +01:00
Rene Straub 84189ee455 nmhw21: add factory reset/recovery boot
- check reset button at startup
- short press (2s) invokes factory reset.
   - adds factory-reset to bootline
- long press (12s) invokes recovery boot in the following order:
   1. pxe boot
   2. tftp recovery boot

BugzID: 55039
2019-01-04 18:23:07 +01:00
Rene Straub 36d526cc87 nmhw21: cleanup da9063 driver
- remove unnecessary and dead code
2019-01-04 15:11:56 +01:00
Rene Straub 80417a713a nmhw21: apply PMIC sequencer fixes to v1.2 configuration
- apply sequencer fixes up to and including v1.2 config
- note: v1.3 config is incorrectly stored as v1.2 and will thus
 also be "fixed", although this is not required.

BugzID: 53234
2019-01-04 14:29:02 +01:00
Rene Straub 255163782d nmhw21: trim RTC for better accuracy
- trim RTC by -18ppm (average deviation of prototype build 2)

BugzID: 55020
2019-01-04 13:46:26 +01:00
Rene Straub bf667f5171 nmhw21: fixup code for hw_rev 1.0 broadr phy addr
phy addresses have been changed from rev 1.0 (6+7) to rev 2.0 and later
(2+3). the function ft_eth() overwrites these addresses in fdt_path just
for rev 1.0 boards.

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2018-12-16 16:28:32 +01:00
Rene Straub 2ddfb8e382 nmhw21: define LED state during boot
- Set LED colors in SPL start, bootloader start and end
- Minor cleanup (documentation, dead code)

BugzID: 54745
2018-12-16 15:59:55 +01:00
Rene Straub 5d4e667c1c nmhw21: add support for hw v2.0
- enable kl15 ignition gating control
- support BroadR PHY addresses 2,3 on hw v2.0
- add DTB fixup for UI leds
- remove code to read partition table descriptor
- remove unused variables
- update da9063 driver
  - add new register definitions
  - fix bug with nullpointer check in da9063_set_reg()
- fix led 0 pins (red/green swapped)

BugzID: 54785

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2018-12-11 21:26:21 +01:00
Lucien Mueller b35026d001 u-boot-env: changed fdt_high and initrd_high to 0xffffffff
BugzID: 54592

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2018-12-06 16:46:36 +01:00
Lucien Mueller be3dbc4966 nmhw21: Removed hw-revision form env.
BugzID: 54508

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2018-12-05 09:40:40 +01:00
Rene Straub cf3a77fa95 nmhw21: enable factory test station detection
Check whether an I2C device (EEPROM) is present at address 0xA2/0x51 as
part of the factory test sequence.

BugzID: 54436

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2018-11-23 19:26:33 +01:00
Patrick Zysset c67fb07a2a nmhw21: fix several cppcheck warnings
BugzID: 54211

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2018-11-23 01:16:37 +01:00
Lucien Mueller 750ce01f67 am335x_nmhw21 env: Renamed fdt_addr to fdt_addr_r.
This will hinder pxe to try to load a devicetree.

BugzID: 54220

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2018-11-20 11:02:11 +01:00
Lucien Mueller fc155929e5 am335x_nmhw21 env: Reworked the memory-addresses.
BugzID: 54210

Signed-off-by: Lucien Mueller <lucien.mueller@netmodule.com>
2018-11-20 11:02:01 +01:00
Patrick Zysset cb21ed3b23 nmhw21: adjust bootenv due to changed WIC behavior
SPL and U-Boot are moved to raw mmc memory - thus partition numbering
for rootfs have been changed.

BugzID: 54224

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2018-11-14 19:27:45 +01:00
Patrick Zysset 1726e4f99c nmhw21: fix bootcmd_otenv (filesize)
replaced file_size with filesize to get rid of data overriding ...

BugzID: 54229

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2018-11-10 18:03:33 +01:00
Mikael Trigo 8805c1c6d3 nmhw_21: fix U-Boot phy config based on review 2018-11-09 10:10:50 +01:00
Patrick Zysset a94b7cce1f nmhw21: add ostree env to board settings
values taken from ostree documenation
additionally we removed legacy env which are never used on this hardware

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2018-11-08 19:35:08 +01:00
mikaeltrigo beb0d6dfd0 nmhw21: broadr configuration
add configure_broad_phys
remove uboot env variable for broadr
2018-11-08 15:49:41 +01:00
Rene Straub a0bd4715b0 nmhw21: prepare Ethernet v2.0 initialization 2018-11-02 18:24:19 +01:00
Rene Straub 7fda5662f3 nmhw21: update V2.0 gpio 2018-11-02 07:49:02 +01:00
Rene Straub a962411cbf nmhw21: prepare UI v2.0 implementation 2018-11-02 07:13:02 +01:00
Rene Straub c0550c87fb nmhw21: rename project 2018-11-01 09:38:53 +01:00
Rene Straub ac6d09c2b7 nmhw21: add support for JTAG boot
- trigger breakpoint in SPL during JTAG boot
- don't execute boot command/remain on console in bootloader
2018-10-27 01:22:18 +02:00
mikaeltrigo a7647131e0 nmhw21 : add V2.0 UI detection along V1.0
You will find a UI: xxx output in the startup log of U-Boot.

BugzID: 53817

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2018-10-25 20:52:11 +02:00
Patrick Zysset 57c634da98 nmhw21: rename defconfig file
Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2018-10-20 01:44:07 +02:00
Mikael Trigo 462e9c4b5a vcu: set bootdelay to zero
I've successfully reduce boot time delay to 0 see case 53380 at the main
time I've added useful command to init BroadR phy until the Driver is
ready I've also fix the kernel_image definition

- set ubootdelay to 0
- add broadR init
- fix kernel image definition in u-boot env

BugzID: 53380

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2018-09-27 14:00:20 +02:00
Mikael Trigo 3a9388907a vcu: user interface detection improved
- detect ui once (remember status)
- normalize boot message format
- hide i2c errors in omap24xx driver if not ui is connected

BugzID: 53086
BugzID: 53087
BugzID: 53088

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2018-09-14 14:52:53 +02:00
Mikael Trigo 1923f7f14d vcu: UserInterface detetion
Detect availability of user interface using a dummy i2c access.
Change of DTS led depending on presence of UI boards.

Signed-off-by: Patrick Zysset <patrick.zysset@netmodule.com>
2018-09-14 14:29:37 +02:00
Rene Straub 92bdea79bc nrhw20: add shield support
- use OF library to enable shield nodes in devicetree
- delete command line based devicetree configuration
- add console configuration options for COMIO shield
2018-07-19 15:21:21 +02:00
Rene Straub cf9dd1423d nrhw20: cleanup file access module 2018-07-19 13:04:15 +02:00
Denis Pynkin 88720cc579 net: Use packed structures for networking
PXE boot is broken with GCC 7.1 due option '-fstore-merging' enabled
by default for '-O2':

BOOTP broadcast 1
data abort
pc : [<8ff8bb30>]          lr : [<00004f1f>]
reloc pc : [<17832b30>]    lr : [<878abf1f>]
sp : 8f558bc0  ip : 00000000     fp : 8ffef5a4
r10: 8ffed248  r9 : 8f558ee0     r8 : 8ffef594
r7 : 0000000e  r6 : 8ffed700     r5 : 00000000  r4 : 8ffed74e
r3 : 00060101  r2 : 8ffed230     r1 : 8ffed706  r0 : 00000ddd
Flags: nzcv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...

Core reason is usage of structures for network headers without packed
attribute.

Reviewed-by: Yauheni Kaliuta <yauheni.kaliuta@redhat.com>
Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>

Conflicts:
	include/net.h
2018-07-17 12:41:18 +02:00
Rene Straub 34e91fa6e1 hancock: set board version in device-tree 2018-07-06 20:30:27 +02:00
Rene Straub 0aee118629 nm: add HW patch entry to board descriptor system 2018-07-06 20:30:01 +02:00
Rene Straub afd8dd8f1e hancock: refactor sja1105 driver 2018-07-06 19:10:08 +02:00
Rene Straub 3df43b3f07 hancock: select console 3 (UART2) 2018-07-06 19:10:07 +02:00
straub 3f5bee91bb hancock: integration of sja1105 driver feature 2018-07-06 19:10:07 +02:00