The Livebox 1 support is currently broken. Fixed with this patch
Fixes:
- Redboot partitioning broken: fixed
- Replaced custom ephy reset with platform code
- USB code breaks the building process: fixed
- Led colors
- Removed unneded EHCI code since bcm6348 only has OHCI
Signed-off-by: Daniel Gonzalez <dgcbueu@gmail.com>
[jogo: drop unneded parts since merge, fixup to apply to current head]
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41424
3c298f89-4303-0410-b956-
a3cf2f4a3e73
+ } else {
+ for (i = 0; i < numslots; i++) {
+ if (!strncmp(buf[i].name, "RedBoot", 8)) {
+ } else {
+ for (i = 0; i < numslots; i++) {
+ if (!strncmp(buf[i].name, "RedBoot", 8)) {
-+ fis_origin = ((buf[i].flash_base & (master->size << 1)) - 1);
++ fis_origin = (buf[i].flash_base & (master->size << 1) - 1);
#endif /* __BOARD_COMMON_H */
--- /dev/null
+++ b/arch/mips/bcm63xx/boards/board_livebox.c
#endif /* __BOARD_COMMON_H */
--- /dev/null
+++ b/arch/mips/bcm63xx/boards/board_livebox.c
+/*
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+/*
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+
+ .has_dsp = 0, /*TODO some Liveboxes have dsp*/
+ .dsp = {
+
+ .has_dsp = 0, /*TODO some Liveboxes have dsp*/
+ .dsp = {
-+ .gpio_rst = 6, /*FIXME eth1 shares gpio6 with dsp?*/
+ .gpio_int = 35,
+ .cs = 2,
+ .ext_irq = 2,
+ .gpio_int = 35,
+ .cs = 2,
+ .ext_irq = 2,
-+ .name = "Livebox-blue-5g::adsl-fail",
++ .name = "Livebox-blue-5g:red:adsl-fail",
+ .gpio = 0,
+ .active_low = 0,
+ .default_trigger = "default-on",
+ },
+ {
+ .gpio = 0,
+ .active_low = 0,
+ .default_trigger = "default-on",
+ },
+ {
-+ .name = "Livebox-blue-5g::adsl",
++ .name = "Livebox-blue-5g:red:adsl",
-+ .name = "Livebox-blue-5g::traffic",
++ .name = "Livebox-blue-5g:red:traffic",
-+ .name = "Livebox-blue-5g::phone",
++ .name = "Livebox-blue-5g:red:phone",
-+ .name = "Livebox-blue-5g::wifi",
++ .name = "Livebox-blue-5g:red:wifi",
++
++ .ephy_reset_gpio = 6,
++ .ephy_reset_gpio_flags = GPIOF_INIT_HIGH,
+ } else {
+ for (i = 0; i < numslots; i++) {
+ if (!strncmp(buf[i].name, "RedBoot", 8)) {
+ } else {
+ for (i = 0; i < numslots; i++) {
+ if (!strncmp(buf[i].name, "RedBoot", 8)) {
-+ fis_origin = ((buf[i].flash_base & (master->size << 1)) - 1);
++ fis_origin = (buf[i].flash_base & (master->size << 1) - 1);
#endif /* __BOARD_COMMON_H */
--- /dev/null
+++ b/arch/mips/bcm63xx/boards/board_livebox.c
#endif /* __BOARD_COMMON_H */
--- /dev/null
+++ b/arch/mips/bcm63xx/boards/board_livebox.c
+/*
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+/*
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+
+ .has_dsp = 0, /*TODO some Liveboxes have dsp*/
+ .dsp = {
+
+ .has_dsp = 0, /*TODO some Liveboxes have dsp*/
+ .dsp = {
-+ .gpio_rst = 6, /*FIXME eth1 shares gpio6 with dsp?*/
+ .gpio_int = 35,
+ .cs = 2,
+ .ext_irq = 2,
+ .gpio_int = 35,
+ .cs = 2,
+ .ext_irq = 2,
-+ .name = "Livebox-blue-5g::adsl-fail",
++ .name = "Livebox-blue-5g:red:adsl-fail",
+ .gpio = 0,
+ .active_low = 0,
+ .default_trigger = "default-on",
+ },
+ {
+ .gpio = 0,
+ .active_low = 0,
+ .default_trigger = "default-on",
+ },
+ {
-+ .name = "Livebox-blue-5g::adsl",
++ .name = "Livebox-blue-5g:red:adsl",
-+ .name = "Livebox-blue-5g::traffic",
++ .name = "Livebox-blue-5g:red:traffic",
-+ .name = "Livebox-blue-5g::phone",
++ .name = "Livebox-blue-5g:red:phone",
-+ .name = "Livebox-blue-5g::wifi",
++ .name = "Livebox-blue-5g:red:wifi",
++
++ .ephy_reset_gpio = 6,
++ .ephy_reset_gpio_flags = GPIOF_INIT_HIGH,