Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
broadcom-utils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Broadcom
broadcom-utils
Commits
5dacd8e9
Commit
5dacd8e9
authored
5 years ago
by
Ronny Nilsson
Browse files
Options
Downloads
Patches
Plain Diff
Remove support for VOX since it is not in use any more.
parent
e20676e6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
brcm_fw_tool/brcm_fw_tool.c
+7
-22
7 additions, 22 deletions
brcm_fw_tool/brcm_fw_tool.c
with
7 additions
and
22 deletions
brcm_fw_tool/brcm_fw_tool.c
+
7
−
22
View file @
5dacd8e9
...
...
@@ -61,16 +61,11 @@ void *mapped_base;
#if BCM_SDK_VERSION != 502020 && BCM_SDK_VERSION != 502030
/* Write of default nvram is only necessary
* for Broadcom SDK 5.02L.02 and 5.02L.03.
* The reset will auto synchronize. */
#define BOARD_IOCTL_NVRAM_WRITE BOARD_IOCTL_GET_TIMEMS
/* Use of hacky spi write api was needed for
* VOX. Unused since Broadcom SDK 5.02L.06. */
#define BOARD_IOCTL_SPI_INIT BOARD_IOCTL_GET_TIMEMS
#define BOARD_IOCTL_SPI_WRITE BOARD_IOCTL_GET_TIMEMS
#endif // !defined(CONFIG_BRCM_SDK_VER_502002) && !defined(CONFIG_BRCM_SDK_VER_502003)
/* Write of default nvram is only necessary
* for Broadcom SDK 5.02L.02 and 5.02L.03.
* The reset will auto synchronize. */
#define BOARD_IOCTL_NVRAM_WRITE BOARD_IOCTL_GET_TIMEMS
#endif
int
verbose
=
0
;
...
...
@@ -304,7 +299,7 @@ static int get_info(int memdump, int chip_id, int flash_size, int chip_rev, int
return
0
;
}
static
int
set_info
(
int
gpio
,
int
led
,
int
state
,
int
bootline
,
char
*
wan_interface
,
int
spi
,
int
spi_dev
,
char
*
payload
,
int
nv_wr
)
{
static
int
set_info
(
int
gpio
,
int
led
,
int
state
,
int
bootline
,
char
*
wan_interface
,
char
*
payload
,
int
nv_wr
)
{
fd
=
open
(
"/dev/brcmboard"
,
O_RDWR
);
if
(
fd
==
-
1
)
{
fprintf
(
stderr
,
"failed to open: /dev/brcmboard
\n
"
);
...
...
@@ -368,11 +363,6 @@ static int set_info(int gpio, int led, int state, int bootline, char* wan_interf
}
}
if
(
spi
)
{
char
buf
[
6
]
=
{
8
,
1
,
0
,
0
,
0
,
0
};
board_ioctl
(
BOARD_IOCTL_SPI_INIT
,
spi_dev
,
0
,
0
,
0
,
391000
);
board_ioctl
(
BOARD_IOCTL_SPI_WRITE
,
spi_dev
,
0
,
buf
,
6
,
0
);
}
ret_pos:
close
(
fd
);
return
0
;
...
...
@@ -863,7 +853,6 @@ static void usage(void)
" -p <state> state of led or gpio io 0/1
\n
"
" -u <0|1> set bootline
\n
"
" -d <interface> -p <0|1> set the wan state of an interface
\n
"
" -k -s <dev> -p <payload> write hex payload to spi device
\n
"
" -n write external nvram to default nvram
\n
"
"---- write options ----
\n
"
" -q write cfe to flash
\n
"
...
...
@@ -906,8 +895,6 @@ int main (int argc, char **argv)
int
status
=
0
;
int
boot_mode
=
0
;
int
boot_mode_id
=
0
;
int
spi
=
0
;
int
spi_dev
=
0
;
int
write_nvram
=
0
;
char
*
payload
=
NULL
;
char
*
in_file
=
NULL
;
...
...
@@ -1002,11 +989,9 @@ int main (int argc, char **argv)
break
;
case
's'
:
sequence_number
=
optarg
;
spi_dev
=
atoi
(
optarg
);
break
;
case
'k'
:
kernel_chip_id
=
1
;
spi
=
1
;
break
;
case
'f'
:
kernel_flash_size
=
1
;
...
...
@@ -1071,7 +1056,7 @@ int main (int argc, char **argv)
break
;
case
CMD_SET_INFO
:
if
(
verbose
)
fprintf
(
stderr
,
"Setting kernel info.
\n
"
);
set_info
(
gpio
,
led
,
state
,
bootline
,
wan_interface
,
spi
,
spi_dev
,
payload
,
write_nvram
);
set_info
(
gpio
,
led
,
state
,
bootline
,
wan_interface
,
payload
,
write_nvram
);
break
;
default:
fprintf
(
stderr
,
"Unknown command %d
\n
"
,
cmd
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment