diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2012-02-18 23:08:26 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2012-02-18 23:08:26 +0000 |
commit | 9b919a07e068953d4435ae65a6bf9a028f5da05f (patch) | |
tree | 397b1a30db8f78e15b86821f7268ad2211b00a8a /target/linux/brcm47xx/patches-3.2/192-ssb-add-ccode.patch | |
parent | 64c49080b676d26363124af31b08ea9d8f41c4ec (diff) | |
download | upstream-9b919a07e068953d4435ae65a6bf9a028f5da05f.tar.gz upstream-9b919a07e068953d4435ae65a6bf9a028f5da05f.tar.bz2 upstream-9b919a07e068953d4435ae65a6bf9a028f5da05f.zip |
brcm47xx: sprom for nvram parsing
This adds support for parsing sprom form nvram for sprom version form 1 to 9.
It also adds sprom from nvram support for devices on the bcma bus.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30638 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm47xx/patches-3.2/192-ssb-add-ccode.patch')
-rw-r--r-- | target/linux/brcm47xx/patches-3.2/192-ssb-add-ccode.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/brcm47xx/patches-3.2/192-ssb-add-ccode.patch b/target/linux/brcm47xx/patches-3.2/192-ssb-add-ccode.patch new file mode 100644 index 0000000000..1b6d5c44ec --- /dev/null +++ b/target/linux/brcm47xx/patches-3.2/192-ssb-add-ccode.patch @@ -0,0 +1,22 @@ +From b0a2a5c4a88f5d83046b408714ec9b86772fa75d Mon Sep 17 00:00:00 2001 +From: Hauke Mehrtens <hauke@hauke-m.de> +Date: Sat, 18 Feb 2012 17:16:28 +0100 +Subject: [PATCH 192/202] ssb: add ccode + +This member contains the country code encoded with two chars + +Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> +--- + include/linux/ssb/ssb.h | 1 + + 1 files changed, 1 insertions(+), 0 deletions(-) + +--- a/include/linux/ssb/ssb.h ++++ b/include/linux/ssb/ssb.h +@@ -35,6 +35,7 @@ struct ssb_sprom { + u8 country_code; /* Country Code */ + u8 leddc_on_time; /* LED Powersave Duty Cycle On Count */ + u8 leddc_off_time; /* LED Powersave Duty Cycle Off Count */ ++ char ccode[2]; + u8 ant_available_a; /* 2GHz antenna available bits (up to 4) */ + u8 ant_available_bg; /* 5GHz antenna available bits (up to 4) */ + u16 pa0b0; |