atheros-initvals: add a makefile target for refreshing all initval files
PATCH v2 1/6 atheros-initvals: add a makefile target for refreshing all initval files
Signed-off-by Felix Fietkau <[email protected]>
--- Makefile | 31 +++++++++++++++++++++---------- 1 files changed, 21 insertions(+), 10 deletions(-)
Makefile +21 -10
@@ -23,22 +23,33 @@ ATHEROS_DEPS += \ ar9300_jupiter20.ini endif -ATH9K_DEPS += \ - ar5008_initvals.h \ - ar9001_initvals.h \ - ar9002_initvals.h \ - ar9003_2p2_initvals.h \ - ar9330_1p1_initvals.h \ - ar9330_1p2_initvals.h \ - ar9485_initvals.h \ - ar9580_1p0_initvals.h \ - ar9462_2p0_initvals.h +ATH9K_HEADERS = \ + ar5008:ar5008_initvals.h \ + ar9001:ar9001_initvals.h \ + ar9002:ar9002_initvals.h \ + ar9003-2p2:ar9003_2p2_initvals.h \ + ar9330-1p1:ar9330_1p1_initvals.h \ + ar9330-1p2:ar9330_1p2_initvals.h \ + ar9485:ar9485_initvals.h \ + ar9580-1p0:ar9580_1p0_initvals.h \ + ar9462-2p0:ar9462_2p0_initvals.h + +ATH9K_DEPS := $(foreach header,$(ATH9K_HEADERS),$(word 2,$(subst :, ,$(header)))) SOURCES:=initvals.c sha1.c initvals: $(ATH9K_DEPS) $(ATHEROS_DEPS) $(SOURCES) gcc $(LOCAL_CFLAGS) -o $@ $(SOURCES) +define refresh_command + ./initvals -w -f $(word 1,$(subst :, ,$(1))) > $(word 2,$(subst :, ,$(1))) + +endef + +refresh: initvals + $(foreach header,$(ATH9K_HEADERS),$(call refresh_command,$(header))) + ./initvals > checksums.txt + all: initvals clean:
Signature · 1 line
1.7.3.2
PATCH v2 2/6 atheros-initvals: remove the old script for generating ath9k headers
Signed-off-by Felix Fietkau <[email protected]>
--- gen_ath9k_headers.sh | 37 ------------------------------------- 1 files changed, 0 insertions(+), 37 deletions(-) delete mode 100755 gen_ath9k_headers.sh
gen_ath9k_headers.sh deleted +0 -37
@@ -1,37 +0,0 @@ -#!/bin/sh - -gen_ath9k_header() -{ - local family="$1" - local ath9k_hdr - - case $family in - ar5008 |\ - ar9001 |\ - ar9002 |\ - ar9003-2p2|\ - ar9330-1p1|\ - ar9330-1p2|\ - ar9485|\ - ar9580-1p0|\ - ar9462-2p0) - ath9k_hdr="$(echo $family | tr '-' '_')_initvals.h" - ;; - *) - echo "unknown family: '$family'" 1>&2 - return 1 - ;; - esac - - echo "$family => $ath9k_hdr" - ./initvals -w -f $family > "./$ath9k_hdr" -} - -FAMILIES="$@" -[ -z "$FAMILIES" ] && FAMILIES="ar5008 ar9001 ar9002 ar9003-2p2 ar9330-1p1 ar9330-1p2 ar9485 ar9580-1p0 ar9462-2p0" - -make clean all ATHEROS=1 >/dev/null - -for family in $FAMILIES; do - gen_ath9k_header $family -done
Signature · 1 line
1.7.3.2
PATCH v2 3/6 atheros-initvals: fix comments for non-fastclock 3-column tables
Signed-off-by Felix Fietkau <[email protected]>
--- initvals.c | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-)
initvals.c +7 -4
@@ -284,7 +284,7 @@ typedef long long unsigned int u64; printf("%s "#_array"\n", sha1sum); \ }else { \ printf("static const u32 "#_array"[][%d] = {\n", (int) ARRAY_SIZE((_array)[0])); \ -ath9k_hw_print_initval ((const u32 *) _array, \ + ath9k_hw_print_initval(#_array, (const u32 *) _array, \ ARRAY_SIZE(_array), ARRAY_SIZE((_array)[0]), false); \ } \ }while (0 )
@@ -297,7 +297,7 @@ typedef long long unsigned int u64; printf("%s "#_array"\n", sha1sum); \ }else { \ printf("static const u32 "#_array"[] = {\n"); \ -ath9k_hw_print_initval ((const u32 *) _array, \ + ath9k_hw_print_initval(#_array, (const u32 *) _array, \ ARRAY_SIZE(_array), 1, true); \ } \ }while (0 )
@@ -337,7 +337,7 @@ static u32 ath9k_patch_initval(u32 idx, u32 val)return val; } -static void ath9k_hw_print_initval (const u32 *array,u32 rows,u32 columns,bool onedim) +static void ath9k_hw_print_initval (const char *name,const u32 *array,u32 rows,u32 columns,bool onedim) {u32 col, row;
@@ -355,7 +355,10 @@ static void ath9k_hw_print_initval(const u32 *array, u32 rows, u32 columns, boolprintf ("\t/* Addr 5G_HT20 5G_HT40 2G_HT40 2G_HT20 */\n" );break ;case 3 : -printf ("\t/* Addr 5G_HT20 5G_HT40 */\n" ); +if (strstr (name,"fast_clock" )) +printf ("\t/* Addr 5G_HT20 5G_HT40 */\n" ); +else +printf ("\t/* Addr 5G 2G */\n" );break ;case 2 :printf ("\t/* Addr allmodes */\n" );
Signature · 1 line
1.7.3.2
PATCH v2 4/6 atheros-initvals: drop the "turbo" column for older chipsets, it is unused and unsupported
Signed-off-by Felix Fietkau <[email protected]>
--- initvals.c | 17 +++++++++++------ 1 files changed, 11 insertions(+), 6 deletions(-)
initvals.c +11 -6
@@ -283,7 +283,6 @@ typedef long long unsigned int u64; ARRAY_SIZE(_array), ARRAY_SIZE((_array)[0])); \ printf("%s "#_array"\n", sha1sum); \ }else { \ - printf("static const u32 "#_array"[][%d] = {\n", (int) ARRAY_SIZE((_array)[0])); \ ath9k_hw_print_initval(#_array, (const u32 *) _array, \ ARRAY_SIZE(_array), ARRAY_SIZE((_array)[0]), false); \ } \
@@ -296,7 +295,6 @@ typedef long long unsigned int u64; ARRAY_SIZE(_array), 1); \ printf("%s "#_array"\n", sha1sum); \ }else { \ - printf("static const u32 "#_array"[] = {\n"); \ ath9k_hw_print_initval(#_array, (const u32 *) _array, \ ARRAY_SIZE(_array), 1, true); \ } \
@@ -339,6 +337,7 @@ static u32 ath9k_patch_initval(u32 idx, u32 val)static void ath9k_hw_print_initval (const char *name,const u32 *array,u32 rows,u32 columns,bool onedim) { +u32 p_columns = columns >5 ?5 : columns;u32 col, row;/*
@@ -350,7 +349,12 @@ static void ath9k_hw_print_initval(const char *name, const u32 *array, u32 rows,if (columns >6 )return ; -switch (columns) { +if (onedim) +printf ("static const u32 %s[] = {\n" , name); +else +printf ("static const u32 %s[][%d] = {\n" , name, p_columns); + +switch (p_columns) {case 5 :printf ("\t/* Addr 5G_HT20 5G_HT40 2G_HT40 2G_HT20 */\n" );break ;
@@ -368,7 +372,7 @@ static void ath9k_hw_print_initval(const char *name, const u32 *array, u32 rows, }for (row =0 ; row < rows; row++) { -for (col =0 ; col < columns; col++) { +for (col =0 ; col < p_columns; col++) {u32 idx;u32 val;if (!col)
@@ -379,7 +383,7 @@ static void ath9k_hw_print_initval(const char *name, const u32 *array, u32 rows, val =ath9k_patch_initval (idx, val); }printf ("0x%08x" , val); -if (col +1 < columns) +if (col +1 < p_columns)printf (", " ); }printf ("%s,\n" , onedim ?"" :"}" );
@@ -392,11 +396,12 @@ static char *ath9k_hw_check_initval(const u32 *array, u32 rows, u32 columns)SHA1_CTX ctx;unsigned char digest[SHA1_DIGEST_SIZE ];static char buf[64 ]; +u32 p_columns = columns >5 ?5 : columns;u32 col, row;SHA1_Init (&ctx);for (row =0 ; row < rows; row++) { -for (col =0 ; col < columns; col++) { +for (col =0 ; col < p_columns; col++) {unsigned char sha1_buf[4 ];u32 val;
Signature · 1 line
1.7.3.2
PATCH v2 5/6 atheros-initvals: update copyright notices
Signed-off-by Felix Fietkau <[email protected]>
--- initvals.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
initvals.c +2 -1
@@ -303,7 +303,8 @@ typedef long long unsigned int u64;static void print_license (void ) {printf ("/*\n" ); -printf (" * Copyright (c) 2011 Atheros Communications Inc.\n" ); +printf (" * Copyright (c) 2010-2011 Atheros Communications Inc.\n" ); +printf (" * Copyright (c) 2011-2012 Qualcomm Atheros Inc.\n" );printf (" *\n" );printf (" * Permission to use, copy, modify, and/or distribute this software for any\n" );printf (" * purpose with or without fee is hereby granted, provided that the above\n" );
Signature · 1 line
1.7.3.2
PATCH v2 6/6 atheros-initvals: update and refresh all generated files
Signed-off-by Felix Fietkau <[email protected]>
--- ar5008_initvals.h | 140 +- ar9001_initvals.h | 285 +++-- ar9002_initvals.h | 3406 +++++++++++++++++++++++++------------------------ ar9003_2p2_initvals.h | 3 +- ar9330_1p1_initvals.h | 25 +- ar9330_1p2_initvals.h | 17 +- ar9462_2p0_initvals.h | 3 +- ar9485_initvals.h | 5 +- ar9580_1p0_initvals.h | 3 +- checksums.txt | 349 +++--- 10 files changed, 2143 insertions(+), 2093 deletions(-)
ar5008_initvals.h +71 -69
@@ -1,5 +1,6 @@/* -* Copyright (c) 2010 Atheros Communications Inc. +* Copyright (c) 2010-2011 Atheros Communications Inc. +* Copyright (c) 2011-2012 Qualcomm Atheros Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above
@@ -14,70 +15,71 @@* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -static const u32 ar5416Modes[][6 ] = { - {0x00001030 ,0x00000230 ,0x00000460 ,0x000002c0 ,0x00000160 ,0x000001e0 }, - {0x00001070 ,0x00000168 ,0x000002d0 ,0x00000318 ,0x0000018c ,0x000001e0 }, - {0x000010b0 ,0x00000e60 ,0x00001cc0 ,0x00007c70 ,0x00003e38 ,0x00001180 }, - {0x000010f0 ,0x0000a000 ,0x00014000 ,0x00016000 ,0x0000b000 ,0x00014008 }, - {0x00008014 ,0x03e803e8 ,0x07d007d0 ,0x10801600 ,0x08400b00 ,0x06e006e0 }, - {0x0000801c ,0x128d93a7 ,0x128d93cf ,0x12e013d7 ,0x12e013ab ,0x098813cf }, - {0x00008120 ,0x08f04800 ,0x08f04800 ,0x08f04810 ,0x08f04810 ,0x08f04810 }, - {0x000081d0 ,0x00003210 ,0x00003210 ,0x0000320a ,0x0000320a ,0x0000320a }, - {0x00009804 ,0x00000300 ,0x000003c4 ,0x000003c4 ,0x00000300 ,0x00000303 }, - {0x00009820 ,0x02020200 ,0x02020200 ,0x02020200 ,0x02020200 ,0x02020200 }, - {0x00009824 ,0x00000e0e ,0x00000e0e ,0x00000e0e ,0x00000e0e ,0x00000e0e }, - {0x00009828 ,0x0a020001 ,0x0a020001 ,0x0a020001 ,0x0a020001 ,0x0a020001 }, - {0x00009834 ,0x00000e0e ,0x00000e0e ,0x00000e0e ,0x00000e0e ,0x00000e0e }, - {0x00009838 ,0x00000007 ,0x00000007 ,0x00000007 ,0x00000007 ,0x00000007 }, - {0x00009844 ,0x1372161e ,0x1372161e ,0x137216a0 ,0x137216a0 ,0x137216a0 }, - {0x00009848 ,0x001a6a65 ,0x001a6a65 ,0x00197a68 ,0x00197a68 ,0x00197a68 }, - {0x0000a848 ,0x001a6a65 ,0x001a6a65 ,0x00197a68 ,0x00197a68 ,0x00197a68 }, - {0x0000b848 ,0x001a6a65 ,0x001a6a65 ,0x00197a68 ,0x00197a68 ,0x00197a68 }, - {0x00009850 ,0x6c48b4e0 ,0x6d48b4e0 ,0x6d48b0de ,0x6c48b0de ,0x6c48b0de }, - {0x00009858 ,0x7ec82d2e ,0x7ec82d2e ,0x7ec82d2e ,0x7ec82d2e ,0x7ec82d2e }, - {0x0000985c ,0x31395d5e ,0x3139605e ,0x3139605e ,0x31395d5e ,0x31395d5e }, - {0x00009860 ,0x00049d18 ,0x00049d18 ,0x00049d18 ,0x00049d18 ,0x00049d18 }, - {0x00009864 ,0x0001ce00 ,0x0001ce00 ,0x0001ce00 ,0x0001ce00 ,0x0001ce00 }, - {0x00009868 ,0x409a4190 ,0x409a4190 ,0x409a4190 ,0x409a4190 ,0x409a4190 }, - {0x0000986c ,0x050cb081 ,0x050cb081 ,0x050cb081 ,0x050cb081 ,0x050cb081 }, - {0x00009914 ,0x000007d0 ,0x00000fa0 ,0x00001130 ,0x00000898 ,0x000007d0 }, - {0x00009918 ,0x000001b8 ,0x00000370 ,0x00000268 ,0x00000134 ,0x00000134 }, - {0x00009924 ,0xd0058a0b ,0xd0058a0b ,0xd0058a0b ,0xd0058a0b ,0xd0058a0b }, - {0x00009944 ,0xffb81020 ,0xffb81020 ,0xffb81020 ,0xffb81020 ,0xffb81020 }, - {0x00009960 ,0x00000900 ,0x00000900 ,0x00012d80 ,0x00012d80 ,0x00012d80 }, - {0x0000a960 ,0x00000900 ,0x00000900 ,0x00012d80 ,0x00012d80 ,0x00012d80 }, - {0x0000b960 ,0x00000900 ,0x00000900 ,0x00012d80 ,0x00012d80 ,0x00012d80 }, - {0x00009964 ,0x00000000 ,0x00000000 ,0x00001120 ,0x00001120 ,0x00001120 }, - {0x000099bc ,0x001a0a00 ,0x001a0a00 ,0x001a0a00 ,0x001a0a00 ,0x001a0a00 }, - {0x000099c0 ,0x038919be ,0x038919be ,0x038919be ,0x038919be ,0x038919be }, - {0x000099c4 ,0x06336f77 ,0x06336f77 ,0x06336f77 ,0x06336f77 ,0x06336f77 }, - {0x000099c8 ,0x6af6532c ,0x6af6532c ,0x6af6532c ,0x6af6532c ,0x6af6532c }, - {0x000099cc ,0x08f186c8 ,0x08f186c8 ,0x08f186c8 ,0x08f186c8 ,0x08f186c8 }, - {0x000099d0 ,0x00046384 ,0x00046384 ,0x00046384 ,0x00046384 ,0x00046384 }, - {0x000099d4 ,0x00000000 ,0x00000000 ,0x00000000 ,0x00000000 ,0x00000000 }, - {0x000099d8 ,0x00000000 ,0x00000000 ,0x00000000 ,0x00000000 ,0x00000000 }, - {0x0000a204 ,0x00000880 ,0x00000880 ,0x00000880 ,0x00000880 ,0x00000880 }, - {0x0000a208 ,0xd6be4788 ,0xd6be4788 ,0xd03e4788 ,0xd03e4788 ,0xd03e4788 }, - {0x0000a20c ,0x002ec1e0 ,0x002ec1e0 ,0x002ac120 ,0x002ac120 ,0x002ac120 }, - {0x0000b20c ,0x002ec1e0 ,0x002ec1e0 ,0x002ac120 ,0x002ac120 ,0x002ac120 }, - {0x0000c20c ,0x002ec1e0 ,0x002ec1e0 ,0x002ac120 ,0x002ac120 ,0x002ac120 }, - {0x0000a21c ,0x1883800a ,0x1883800a ,0x1883800a ,0x1883800a ,0x1883800a }, - {0x0000a230 ,0x00000000 ,0x00000000 ,0x00000210 ,0x00000108 ,0x00000000 }, - {0x0000a274 ,0x0a1a9caa ,0x0a1a9caa ,0x0a1a7caa ,0x0a1a7caa ,0x0a1a7caa }, - {0x0000a300 ,0x18010000 ,0x18010000 ,0x18010000 ,0x18010000 ,0x18010000 }, - {0x0000a304 ,0x30032602 ,0x30032602 ,0x2e032402 ,0x2e032402 ,0x2e032402 }, - {0x0000a308 ,0x48073e06 ,0x48073e06 ,0x4a0a3c06 ,0x4a0a3c06 ,0x4a0a3c06 }, - {0x0000a30c ,0x560b4c0a ,0x560b4c0a ,0x621a540b ,0x621a540b ,0x621a540b }, - {0x0000a310 ,0x641a600f ,0x641a600f ,0x764f6c1b ,0x764f6c1b ,0x764f6c1b }, - {0x0000a314 ,0x7a4f6e1b ,0x7a4f6e1b ,0x845b7a5a ,0x845b7a5a ,0x845b7a5a }, - {0x0000a318 ,0x8c5b7e5a ,0x8c5b7e5a ,0x950f8ccf ,0x950f8ccf ,0x950f8ccf }, - {0x0000a31c ,0x9d0f96cf ,0x9d0f96cf ,0xa5cf9b4f ,0xa5cf9b4f ,0xa5cf9b4f }, - {0x0000a320 ,0xb51fa69f ,0xb51fa69f ,0xbddfaf1f ,0xbddfaf1f ,0xbddfaf1f }, - {0x0000a324 ,0xcb3fbd07 ,0xcb3fbcbf ,0xd1ffc93f ,0xd1ffc93f ,0xd1ffc93f }, - {0x0000a328 ,0x0000d7bf ,0x0000d7bf ,0x00000000 ,0x00000000 ,0x00000000 }, - {0x0000a32c ,0x00000000 ,0x00000000 ,0x00000000 ,0x00000000 ,0x00000000 }, - {0x0000a330 ,0x00000000 ,0x00000000 ,0x00000000 ,0x00000000 ,0x00000000 }, - {0x0000a334 ,0x00000000 ,0x00000000 ,0x00000000 ,0x00000000 ,0x00000000 }, +static const u32 ar5416Modes[][5 ] = { +/* Addr 5G_HT20 5G_HT40 2G_HT40 2G_HT20 */ + {0x00001030 ,0x00000230 ,0x00000460 ,0x000002c0 ,0x00000160 }, + {0x00001070 ,0x00000168 ,0x000002d0 ,0x00000318 ,0x0000018c }, + {0x000010b0 ,0x00000e60 ,0x00001cc0 ,0x00007c70 ,0x00003e38 }, + {0x000010f0 ,0x0000a000 ,0x00014000 ,0x00016000 ,0x0000b000 }, + {0x00008014 ,0x03e803e8 ,0x07d007d0 ,0x10801600 ,0x08400b00 }, + {0x0000801c ,0x128d93a7 ,0x128d93cf ,0x12e013d7 ,0x12e013ab }, + {0x00008120 ,0x08f04800 ,0x08f04800 ,0x08f04810 ,0x08f04810 }, + {0x000081d0 ,0x00003210 ,0x00003210 ,0x0000320a ,0x0000320a }, + {0x00009804 ,0x00000300 ,0x000003c4 ,0x000003c4 ,0x00000300 }, + {0x00009820 ,0x02020200 ,0x02020200 ,0x02020200 ,0x02020200 }, + {0x00009824 ,0x00000e0e ,0x00000e0e ,0x00000e0e ,0x00000e0e }, + {0x00009828 ,0x0a020001 ,0x0a020001 ,0x0a020001 ,0x0a020001 }, + {0x00009834 ,0x00000e0e ,0x00000e0e ,0x00000e0e ,0x00000e0e }, + {0x00009838 ,0x00000007 ,0x00000007 ,0x00000007 ,0x00000007 }, + {0x00009844 ,0x1372161e ,0x1372161e ,0x137216a0 ,0x137216a0 }, + {0x00009848 ,0x001a6a65 ,0x001a6a65 ,0x00197a68 ,0x00197a68 }, + {0x0000a848 ,0x001a6a65 ,0x001a6a65 ,0x00197a68 ,0x00197a68 }, + {0x0000b848 ,0x001a6a65 ,0x001a6a65 ,0x00197a68 ,0x00197a68 }, + {0x00009850 ,0x6c48b4e0 ,0x6d48b4e0 ,0x6d48b0de ,0x6c48b0de }, + {0x00009858 ,0x7ec82d2e ,0x7ec82d2e ,0x7ec82d2e ,0x7ec82d2e }, + {0x0000985c ,0x31395d5e ,0x3139605e ,0x3139605e ,0x31395d5e }, + {0x00009860 ,0x00049d18 ,0x00049d18 ,0x00049d18 ,0x00049d18 }, + {0x00009864 ,0x0001ce00 ,0x0001ce00 ,0x0001ce00 ,0x0001ce00 }, + {0x00009868 ,0x409a4190 ,0x409a4190 ,0x409a4190 ,0x409a4190 }, + {0x0000986c ,0x050cb081 ,0x050cb081 ,0x050cb081 ,0x050cb081 }, + {0x00009914 ,0x000007d0 ,0x00000fa0 ,0x00001130 ,0x00000898 }, + {0x00009918 ,0x000001b8 ,0x00000370 ,0x00000268 ,0x00000134 }, + {0x00009924 ,0xd0058a0b ,0xd0058a0b ,0xd0058a0b ,0xd0058a0b }, + {0x00009944 ,0xffb81020 ,0xffb81020 ,0xffb81020 ,0xffb81020 }, + {0x00009960 ,0x00000900 ,0x00000900 ,0x00012d80 ,0x00012d80 }, + {0x0000a960 ,0x00000900 ,0x00000900 ,0x00012d80 ,0x00012d80 }, + {0x0000b960 ,0x00000900 ,0x00000900 ,0x00012d80 ,0x00012d80 }, + {0x00009964 ,0x00000000 ,0x00000000 ,0x00001120 ,0x00001120 }, + {0x000099bc ,0x001a0a00 ,0x001a0a00 ,0x001a0a00 ,0x001a0a00 }, + {0x000099c0 ,0x038919be ,0x038919be ,0x038919be ,0x038919be }, + {0x000099c4 ,0x06336f77 ,0x06336f77 ,0x06336f77 ,0x06336f77 }, + {0x000099c8 ,0x6af6532c ,0x6af6532c ,0x6af6532c ,0x6af6532c }, + {0x000099cc ,0x08f186c8 ,0x08f186c8 ,0x08f186c8 ,0x08f186c8 }, + {0x000099d0 ,0x00046384 ,0x00046384 ,0x00046384 ,0x00046384 }, + {0x000099d4 ,0x00000000 ,0x00000000 ,0x00000000 ,0x00000000 }, + {0x000099d8 ,0x00000000 ,0x00000000 ,0x00000000 ,0x00000000 }, + {0x0000a204 ,0x00000880 ,0x00000880 ,0x00000880 ,0x00000880 }, + {0x0000a208 ,0xd6be4788 ,0xd6be4788 ,0xd03e4788 ,0xd03e4788 }, + {0x0000a20c ,0x002ec1e0 ,0x002ec1e0 ,0x002ac120 ,0x002ac120 }, + {0x0000b20c ,0x002ec1e0 ,0x002ec1e0 ,0x002ac120 ,0x002ac120 }, + {0x0000c20c ,0x002ec1e0 ,0x002ec1e0 ,0x002ac120 ,0x002ac120 }, + {0x0000a21c ,0x1883800a ,0x1883800a ,0x1883800a ,0x1883800a }, + {0x0000a230 ,0x00000000 ,0x00000000 ,0x00000210 ,0x00000108 }, + {0x0000a274 ,0x0a1a9caa ,0x0a1a9caa ,0x0a1a7caa ,0x0a1a7caa }, + {0x0000a300 ,0x18010000 ,0x18010000 ,0x18010000 ,0x18010000 }, + {0x0000a304 ,0x30032602 ,0x30032602 ,0x2e032402 ,0x2e032402 }, + {0x0000a308 ,0x48073e06 ,0x48073e06 ,0x4a0a3c06 ,0x4a0a3c06 }, + {0x0000a30c ,0x560b4c0a ,0x560b4c0a ,0x621a540b ,0x621a540b }, + {0x0000a310 ,0x641a600f ,0x641a600f ,0x764f6c1b ,0x764f6c1b }, + {0x0000a314 ,0x7a4f6e1b ,0x7a4f6e1b ,0x845b7a5a ,0x845b7a5a }, + {0x0000a318 ,0x8c5b7e5a ,0x8c5b7e5a ,0x950f8ccf ,0x950f8ccf }, + {0x0000a31c ,0x9d0f96cf ,0x9d0f96cf ,0xa5cf9b4f ,0xa5cf9b4f }, + {0x0000a320 ,0xb51fa69f ,0xb51fa69f ,0xbddfaf1f ,0xbddfaf1f }, + {0x0000a324 ,0xcb3fbd07 ,0xcb3fbcbf ,0xd1ffc93f ,0xd1ffc93f }, + {0x0000a328 ,0x0000d7bf ,0x0000d7bf ,0x00000000 ,0x00000000 }, + {0x0000a32c ,0x00000000 ,0x00000000 ,0x00000000 ,0x00000000 }, + {0x0000a330 ,0x00000000 ,0x00000000 ,0x00000000 ,0x00000000 }, + {0x0000a334 ,0x00000000 ,0x00000000 ,0x00000000 ,0x00000000 }, };static const u32 ar5416Common[][2 ] = {
@@ -465,7 +467,7 @@ static const u32 ar5416Bank0[][2] = { };static const u32 ar5416BB_RfGain[][3 ] = { -/* Addr 5G_HT20 5G_HT40 */ +/* Addr 5G 2G */ {0x00009a00 ,0x00000000 ,0x00000000 }, {0x00009a04 ,0x00000040 ,0x00000040 }, {0x00009a08 ,0x00000080 ,0x00000080 },
@@ -545,12 +547,12 @@ static const u32 ar5416Bank2[][2] = { };static const u32 ar5416Bank3[][3 ] = { -/* Addr 5G_HT20 5G_HT40 */ +/* Addr 5G 2G */ {0x000098f0 ,0x01400018 ,0x01c00018 }, };static const u32 ar5416Bank6[][3 ] = { -/* Addr 5G_HT20 5G_HT40 */ +/* Addr 5G 2G */ {0x0000989c ,0x00000000 ,0x00000000 }, {0x0000989c ,0x00000000 ,0x00000000 }, {0x0000989c ,0x00000000 ,0x00000000 },
@@ -587,7 +589,7 @@ static const u32 ar5416Bank6[][3] = { };static const u32 ar5416Bank6TPC[][3 ] = { -/* Addr 5G_HT20 5G_HT40 */ +/* Addr 5G 2G */ {0x0000989c ,0x00000000 ,0x00000000 }, {0x0000989c ,0x00000000 ,0x00000000 }, {0x0000989c ,0x00000000 ,0x00000000 },
ar9001_initvals.h +144 -141
345 lines not on this page · raw message
ar9002_initvals.h +1713 -1693
2,483 lines not on this page · raw message
checksums.txt +184 -165
349 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.3.2
Part of the diff is not shown here. View the raw message.
Quoted 1 line · Felix Fietkau
Signed-off-by Felix Fietkau <[email protected]>
Applied and pushed all, thanks!!!
Luis