Skip to content
Snippets Groups Projects
Commit 3577a795 authored by Markus Gothe's avatar Markus Gothe :ok_hand: Committed by Oussama Ghorbel
Browse files

Add support for eagle platform.

The eagle platform (63178) is currently
used by the EX600. This commit adds
basic support for the EX600 in IOP6.
parent 82881907
Branches
Tags
1 merge request!95Add support for eagle platform.
config board 'board'
# Specs
option hasAdsl '0'
option hasVdsl '0'
option hasVoice '0'
option hasDect '0'
option hasUsb '1'
option hasCatv '0'
option hasSfp '0'
option hasWifi '1'
# Ethernet
option ethernetPorts '3'
option ethernetWanPort 'eth4'
option ethernetPortNames 'LAN1 LAN2 WAN'
option ethernetPortOrder 'eth1 eth3 eth4'
option ethernetLanPorts 'eth1 eth3'
# GPIO
option sk9822_attr_file '/sys/devices/platform/canyon_led/sk9822/led_color'
option sk9822_brightness_file '/sys/devices/platform/canyon_led/sk9822/led_brightness'
###############################################################################
# Button config, start
############### gpio buttons, driver config
config gpio_button gpio_buttons
list buttons gpio_reset
list buttons gpio_wps
config gpio_button gpio_reset
option addr 0
option active low
config gpio_button gpio_wps
option addr 21
option active low
############### mapping function button to driver button
config button RESET
list button gpio_reset
option minpress 0
option minpress_indicator 0
option longpress 10000
option longpress_indicator 1
option hotplug softresetbutton
option hotplug_long resetbutton
config button WPS
list button gpio_wps
option minpress 3000
option minpress_indicator 0
option longpress 10000
option longpress_indicator 0
option hotplug wpsbutton
option hotplug_long wpsbutton_noaction
###############################################################################
# Led config, start
#
config gpio_led gpio_leds
list leds wan_yellow
list leds wan_green
list leds lan1_green
list leds lan1_yellow
list leds lan2_green
list leds lan2_yellow
list leds statusled_red
list leds statusled_blue
list leds statusled_green
list leds statusled_yellow
list leds statusled_off
config gpio_led wan_yellow
option active high
option sysfs_attr 4
option mode led_linux
config gpio_led wan_green
option active high
option sysfs_attr 61
option mode led_linux
config gpio_led lan1_yellow
option active high
option sysfs_attr 69
option mode led_linux
config gpio_led lan1_green
option active high
option sysfs_attr 66
option mode led_linux
config gpio_led lan2_yellow
option active high
option sysfs_attr 67
option mode led_linux
config gpio_led lan2_green
option active high
option sysfs_attr 65
option mode led_linux
# RGB LED: virtual LED for each color
config gpio_led statusled_red
option rgb_color ff0000
option mode led_sk9822
config gpio_led statusled_blue
option rgb_color 0000ff
option mode led_sk9822
config gpio_led statusled_green
option rgb_color 006000
option mode led_sk9822
config gpio_led statusled_yellow
option rgb_color ffa000
option mode led_sk9822
config gpio_led statusled_off
option rgb_color 000000
option mode led_sk9822
############### mapping led function to driver led
config led_map led_map
list press_indicator led_lan
list press_indicator led_wan
list press_indicator led_composite
list functions lan
list functions wan
list functions status
list functions internet
list functions upgrade
list functions wps
list functions composite
config led_map led_wan
list led_action_ok 'wan_green = ON'
list led_action_ok 'wan_yellow = ON'
list led_action_off 'wan_green = OFF'
list led_action_off 'wan_yellow = OFF'
config led_map led_lan
list led_action_ok 'lan1_green = ON'
list led_action_ok 'lan1_yellow = ON'
list led_action_ok 'lan2_green = ON'
list led_action_ok 'lan2_yellow = ON'
list led_action_off 'lan1_green = OFF'
list led_action_off 'lan1_yellow = OFF'
list led_action_off 'lan2_green = OFF'
list led_action_off 'lan2_yellow = OFF'
config led_map led_status
config led_map led_internet
config led_map led_upgrade
config led_map led_wps
config led_map led_composite
list led_action_off 'statusled_off = ON'
list super_off 'status_off, internet_off, wps_off'
list led_action_ok 'statusled_green = ON'
list super_ok 'status_ok, internet_ok, wps_off'
list super_ok 'status_off, internet_ok, wps_off'
list super_ok 'status_ok, internet_off, wps_off'
list led_action_eok 'statusled_green = FLASH_SLOW'
list super_eok 'status_notice, internet_ok, wps_off'
list super_eok 'status_notice, internet_off, wps_off'
list super_eok 'status_ok, internet_error, wps_off'
list super_eok 'status_off, internet_error, wps_off'
list led_action_alert 'statusled_red = ON'
list super_alert 'status_error'
list super_alert 'upgrade_error'
list led_action_notice 'statusled_blue = ON'
list super_notice 'status_ok, wps_ok'
list super_notice 'status_off, wps_ok'
list led_action_error 'statusled_blue = FLASH_SLOW'
list super_error 'status_ok, wps_notice'
list super_error 'status_off, wps_notice'
list led_action_custom 'statusled_yellow = FLASH_SLOW'
list super_custom 'upgrade_notice'
...@@ -10,7 +10,7 @@ bcm_get_chip_id() { ...@@ -10,7 +10,7 @@ bcm_get_chip_id() {
case $chip_id in case $chip_id in
6313?) echo 63138 ;; 6313?) echo 63138 ;;
6315?) echo 63158 ;; 6315?) echo 63158 ;;
6752) echo 63178 ;; 6752|6750) echo 63178 ;;
*) echo $chip_id ;; *) echo $chip_id ;;
esac esac
} }
......
CONFIG_TARGET_FAMILY="EAGLE"
CONFIG_BCM_KERNEL_PROFILE="96750GW"
CONFIG_BCM_CHIP_ID="63178"
CONFIG_BCM_FIRMWARE_TYPE_NAND_SQUASHFS=y
# CONFIG_BCM_VOICE is not set
# CONFIG_BCM_DSL is not set
# CONFIG_PACKAGE_libdsl is not set
# CONFIG_PACKAGE_dslmngr is not set
# CONFIG_PACKAGE_mwan3 is not set
#!/bin/sh
case "$ACTION" in
add|register)
[ "softresetbutton" == "$INTERFACE" ] && {
printf "\n\nSoft reset button is pressed\n\n" > /dev/console
reboot
}
;;
remove|unregister)
;;
esac
#!/bin/sh /etc/rc.common
START=8
boot() {
# Cold plug trigger - USB LED etc..
udevtrigger
}
File added
...@@ -150,6 +150,7 @@ config TARGET_NAND_DEVSZ ...@@ -150,6 +150,7 @@ config TARGET_NAND_DEVSZ
default "268435456" if TARGET_iopsys_brcm63xx_arm_dg400prime default "268435456" if TARGET_iopsys_brcm63xx_arm_dg400prime
default "268435456" if TARGET_iopsys_brcm63xx_arm_tiger default "268435456" if TARGET_iopsys_brcm63xx_arm_tiger
default "268435456" if TARGET_iopsys_brcm63xx_arm_panther default "268435456" if TARGET_iopsys_brcm63xx_arm_panther
default "268435456" if TARGET_iopsys_brcm63xx_arm_eagle
default "268435456" if TARGET_iopsys_brcm63xx_arm_xug534 default "268435456" if TARGET_iopsys_brcm63xx_arm_xug534
default "536870912" if TARGET_iopsys_brcm63xx_arm_panda default "536870912" if TARGET_iopsys_brcm63xx_arm_panda
range 67108864 4294967296 range 67108864 4294967296
...@@ -164,6 +165,7 @@ config TARGET_NAND_BLOCKSZ ...@@ -164,6 +165,7 @@ config TARGET_NAND_BLOCKSZ
default "131072" if TARGET_iopsys_brcm63xx_arm_dg400prime default "131072" if TARGET_iopsys_brcm63xx_arm_dg400prime
default "131072" if TARGET_iopsys_brcm63xx_arm_tiger default "131072" if TARGET_iopsys_brcm63xx_arm_tiger
default "131072" if TARGET_iopsys_brcm63xx_arm_panther default "131072" if TARGET_iopsys_brcm63xx_arm_panther
default "131072" if TARGET_iopsys_brcm63xx_arm_eagle
default "131072" if TARGET_iopsys_brcm63xx_arm_xug534 default "131072" if TARGET_iopsys_brcm63xx_arm_xug534
default "262144" if TARGET_iopsys_brcm63xx_arm_panda default "262144" if TARGET_iopsys_brcm63xx_arm_panda
range 16384 1048576 range 16384 1048576
...@@ -179,6 +181,7 @@ config TARGET_NAND_PAGESZ ...@@ -179,6 +181,7 @@ config TARGET_NAND_PAGESZ
default "2048" if TARGET_iopsys_brcm63xx_arm_tiger default "2048" if TARGET_iopsys_brcm63xx_arm_tiger
default "2048" if TARGET_iopsys_brcm63xx_arm_panther default "2048" if TARGET_iopsys_brcm63xx_arm_panther
default "4096" if TARGET_iopsys_brcm63xx_arm_panda default "4096" if TARGET_iopsys_brcm63xx_arm_panda
default "2048" if TARGET_iopsys_brcm63xx_arm_eagle
default "2048" if TARGET_iopsys_brcm63xx_arm_xug534 default "2048" if TARGET_iopsys_brcm63xx_arm_xug534
range 256 65536 range 256 65536
depends on NAND_SUPPORT depends on NAND_SUPPORT
......
...@@ -83,6 +83,18 @@ define Profile/panda/Description ...@@ -83,6 +83,18 @@ define Profile/panda/Description
endef endef
$(eval $(call Profile,panda)) $(eval $(call Profile,panda))
=======
#################### EAGLE
define Profile/eagle
NAME:=eagle
PACKAGES:=i2c-tools
endef
define Profile/eagle/Description
eagle profile
endef
$(eval $(call Profile,eagle))
#################### Xavi xug534 #################### Xavi xug534
define Profile/xug534 define Profile/xug534
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment