Merge branch 'bugzilla-13041' into release
[linux-2.6] / drivers / net / wireless / ath9k / eeprom.h
1 /*
2  * Copyright (c) 2008-2009 Atheros Communications Inc.
3  *
4  * Permission to use, copy, modify, and/or distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15  */
16
17 #ifndef EEPROM_H
18 #define EEPROM_H
19
20 #define AH_USE_EEPROM   0x1
21
22 #ifdef __BIG_ENDIAN
23 #define AR5416_EEPROM_MAGIC 0x5aa5
24 #else
25 #define AR5416_EEPROM_MAGIC 0xa55a
26 #endif
27
28 #define CTRY_DEBUG   0x1ff
29 #define CTRY_DEFAULT 0
30
31 #define AR_EEPROM_EEPCAP_COMPRESS_DIS   0x0001
32 #define AR_EEPROM_EEPCAP_AES_DIS        0x0002
33 #define AR_EEPROM_EEPCAP_FASTFRAME_DIS  0x0004
34 #define AR_EEPROM_EEPCAP_BURST_DIS      0x0008
35 #define AR_EEPROM_EEPCAP_MAXQCU         0x01F0
36 #define AR_EEPROM_EEPCAP_MAXQCU_S       4
37 #define AR_EEPROM_EEPCAP_HEAVY_CLIP_EN  0x0200
38 #define AR_EEPROM_EEPCAP_KC_ENTRIES     0xF000
39 #define AR_EEPROM_EEPCAP_KC_ENTRIES_S   12
40
41 #define AR_EEPROM_EEREGCAP_EN_FCC_MIDBAND   0x0040
42 #define AR_EEPROM_EEREGCAP_EN_KK_U1_EVEN    0x0080
43 #define AR_EEPROM_EEREGCAP_EN_KK_U2         0x0100
44 #define AR_EEPROM_EEREGCAP_EN_KK_MIDBAND    0x0200
45 #define AR_EEPROM_EEREGCAP_EN_KK_U1_ODD     0x0400
46 #define AR_EEPROM_EEREGCAP_EN_KK_NEW_11A    0x0800
47
48 #define AR_EEPROM_EEREGCAP_EN_KK_U1_ODD_PRE4_0  0x4000
49 #define AR_EEPROM_EEREGCAP_EN_KK_NEW_11A_PRE4_0 0x8000
50
51 #define AR5416_EEPROM_MAGIC_OFFSET  0x0
52 #define AR5416_EEPROM_S             2
53 #define AR5416_EEPROM_OFFSET        0x2000
54 #define AR5416_EEPROM_MAX           0xae0
55
56 #define AR5416_EEPROM_START_ADDR \
57         (AR_SREV_9100(ah)) ? 0x1fff1000 : 0x503f1200
58
59 #define SD_NO_CTL               0xE0
60 #define NO_CTL                  0xff
61 #define CTL_MODE_M              7
62 #define CTL_11A                 0
63 #define CTL_11B                 1
64 #define CTL_11G                 2
65 #define CTL_2GHT20              5
66 #define CTL_5GHT20              6
67 #define CTL_2GHT40              7
68 #define CTL_5GHT40              8
69
70 #define EXT_ADDITIVE (0x8000)
71 #define CTL_11A_EXT (CTL_11A | EXT_ADDITIVE)
72 #define CTL_11G_EXT (CTL_11G | EXT_ADDITIVE)
73 #define CTL_11B_EXT (CTL_11B | EXT_ADDITIVE)
74
75 #define SUB_NUM_CTL_MODES_AT_5G_40 2
76 #define SUB_NUM_CTL_MODES_AT_2G_40 3
77
78 #define INCREASE_MAXPOW_BY_TWO_CHAIN     6  /* 10*log10(2)*2 */
79 #define INCREASE_MAXPOW_BY_THREE_CHAIN   10 /* 10*log10(3)*2 */
80
81 /*
82  * For AR9285 and later chipsets, the following bits are not being programmed
83  * in EEPROM and so need to be enabled always.
84  *
85  * Bit 0: en_fcc_mid
86  * Bit 1: en_jap_mid
87  * Bit 2: en_fcc_dfs_ht40
88  * Bit 3: en_jap_ht40
89  * Bit 4: en_jap_dfs_ht40
90  */
91 #define AR9285_RDEXT_DEFAULT    0x1F
92
93 #define AR_EEPROM_MAC(i)        (0x1d+(i))
94 #define ATH9K_POW_SM(_r, _s)    (((_r) & 0x3f) << (_s))
95 #define FREQ2FBIN(x, y)         ((y) ? ((x) - 2300) : (((x) - 4800) / 5))
96 #define ath9k_hw_use_flash(_ah) (!(_ah->ah_flags & AH_USE_EEPROM))
97
98 #define AR5416_VER_MASK (eep->baseEepHeader.version & AR5416_EEP_VER_MINOR_MASK)
99 #define OLC_FOR_AR9280_20_LATER (AR_SREV_9280_20_OR_LATER(ah) && \
100                                  ah->eep_ops->get_eeprom(ah, EEP_OL_PWRCTRL))
101
102 #define AR_EEPROM_RFSILENT_GPIO_SEL     0x001c
103 #define AR_EEPROM_RFSILENT_GPIO_SEL_S   2
104 #define AR_EEPROM_RFSILENT_POLARITY     0x0002
105 #define AR_EEPROM_RFSILENT_POLARITY_S   1
106
107 #define EEP_RFSILENT_ENABLED        0x0001
108 #define EEP_RFSILENT_ENABLED_S      0
109 #define EEP_RFSILENT_POLARITY       0x0002
110 #define EEP_RFSILENT_POLARITY_S     1
111 #define EEP_RFSILENT_GPIO_SEL       0x001c
112 #define EEP_RFSILENT_GPIO_SEL_S     2
113
114 #define AR5416_OPFLAGS_11A           0x01
115 #define AR5416_OPFLAGS_11G           0x02
116 #define AR5416_OPFLAGS_N_5G_HT40     0x04
117 #define AR5416_OPFLAGS_N_2G_HT40     0x08
118 #define AR5416_OPFLAGS_N_5G_HT20     0x10
119 #define AR5416_OPFLAGS_N_2G_HT20     0x20
120
121 #define AR5416_EEP_NO_BACK_VER       0x1
122 #define AR5416_EEP_VER               0xE
123 #define AR5416_EEP_VER_MINOR_MASK    0x0FFF
124 #define AR5416_EEP_MINOR_VER_2       0x2
125 #define AR5416_EEP_MINOR_VER_3       0x3
126 #define AR5416_EEP_MINOR_VER_7       0x7
127 #define AR5416_EEP_MINOR_VER_9       0x9
128 #define AR5416_EEP_MINOR_VER_16      0x10
129 #define AR5416_EEP_MINOR_VER_17      0x11
130 #define AR5416_EEP_MINOR_VER_19      0x13
131 #define AR5416_EEP_MINOR_VER_20      0x14
132 #define AR5416_EEP_MINOR_VER_22      0x16
133
134 #define AR5416_NUM_5G_CAL_PIERS         8
135 #define AR5416_NUM_2G_CAL_PIERS         4
136 #define AR5416_NUM_5G_20_TARGET_POWERS  8
137 #define AR5416_NUM_5G_40_TARGET_POWERS  8
138 #define AR5416_NUM_2G_CCK_TARGET_POWERS 3
139 #define AR5416_NUM_2G_20_TARGET_POWERS  4
140 #define AR5416_NUM_2G_40_TARGET_POWERS  4
141 #define AR5416_NUM_CTLS                 24
142 #define AR5416_NUM_BAND_EDGES           8
143 #define AR5416_NUM_PD_GAINS             4
144 #define AR5416_PD_GAINS_IN_MASK         4
145 #define AR5416_PD_GAIN_ICEPTS           5
146 #define AR5416_EEPROM_MODAL_SPURS       5
147 #define AR5416_MAX_RATE_POWER           63
148 #define AR5416_NUM_PDADC_VALUES         128
149 #define AR5416_BCHAN_UNUSED             0xFF
150 #define AR5416_MAX_PWR_RANGE_IN_HALF_DB 64
151 #define AR5416_MAX_CHAINS               3
152 #define AR5416_PWR_TABLE_OFFSET         -5
153
154 /* Rx gain type values */
155 #define AR5416_EEP_RXGAIN_23DB_BACKOFF     0
156 #define AR5416_EEP_RXGAIN_13DB_BACKOFF     1
157 #define AR5416_EEP_RXGAIN_ORIG             2
158
159 /* Tx gain type values */
160 #define AR5416_EEP_TXGAIN_ORIGINAL         0
161 #define AR5416_EEP_TXGAIN_HIGH_POWER       1
162
163 #define AR5416_EEP4K_START_LOC                64
164 #define AR5416_EEP4K_NUM_2G_CAL_PIERS         3
165 #define AR5416_EEP4K_NUM_2G_CCK_TARGET_POWERS 3
166 #define AR5416_EEP4K_NUM_2G_20_TARGET_POWERS  3
167 #define AR5416_EEP4K_NUM_2G_40_TARGET_POWERS  3
168 #define AR5416_EEP4K_NUM_CTLS                 12
169 #define AR5416_EEP4K_NUM_BAND_EDGES           4
170 #define AR5416_EEP4K_NUM_PD_GAINS             2
171 #define AR5416_EEP4K_PD_GAINS_IN_MASK         4
172 #define AR5416_EEP4K_PD_GAIN_ICEPTS           5
173 #define AR5416_EEP4K_MAX_CHAINS               1
174
175 #define AR9280_TX_GAIN_TABLE_SIZE 22
176
177 enum eeprom_param {
178         EEP_NFTHRESH_5,
179         EEP_NFTHRESH_2,
180         EEP_MAC_MSW,
181         EEP_MAC_MID,
182         EEP_MAC_LSW,
183         EEP_REG_0,
184         EEP_REG_1,
185         EEP_OP_CAP,
186         EEP_OP_MODE,
187         EEP_RF_SILENT,
188         EEP_OB_5,
189         EEP_DB_5,
190         EEP_OB_2,
191         EEP_DB_2,
192         EEP_MINOR_REV,
193         EEP_TX_MASK,
194         EEP_RX_MASK,
195         EEP_RXGAIN_TYPE,
196         EEP_TXGAIN_TYPE,
197         EEP_OL_PWRCTRL,
198         EEP_RC_CHAIN_MASK,
199         EEP_DAC_HPWR_5G,
200         EEP_FRAC_N_5G
201 };
202
203 enum ar5416_rates {
204         rate6mb, rate9mb, rate12mb, rate18mb,
205         rate24mb, rate36mb, rate48mb, rate54mb,
206         rate1l, rate2l, rate2s, rate5_5l,
207         rate5_5s, rate11l, rate11s, rateXr,
208         rateHt20_0, rateHt20_1, rateHt20_2, rateHt20_3,
209         rateHt20_4, rateHt20_5, rateHt20_6, rateHt20_7,
210         rateHt40_0, rateHt40_1, rateHt40_2, rateHt40_3,
211         rateHt40_4, rateHt40_5, rateHt40_6, rateHt40_7,
212         rateDupCck, rateDupOfdm, rateExtCck, rateExtOfdm,
213         Ar5416RateSize
214 };
215
216 enum ath9k_hal_freq_band {
217         ATH9K_HAL_FREQ_BAND_5GHZ = 0,
218         ATH9K_HAL_FREQ_BAND_2GHZ = 1
219 };
220
221 struct base_eep_header {
222         u16 length;
223         u16 checksum;
224         u16 version;
225         u8 opCapFlags;
226         u8 eepMisc;
227         u16 regDmn[2];
228         u8 macAddr[6];
229         u8 rxMask;
230         u8 txMask;
231         u16 rfSilent;
232         u16 blueToothOptions;
233         u16 deviceCap;
234         u32 binBuildNumber;
235         u8 deviceType;
236         u8 pwdclkind;
237         u8 futureBase_1[2];
238         u8 rxGainType;
239         u8 dacHiPwrMode_5G;
240         u8 openLoopPwrCntl;
241         u8 dacLpMode;
242         u8 txGainType;
243         u8 rcChainMask;
244         u8 desiredScaleCCK;
245         u8 power_table_offset;
246         u8 frac_n_5g;
247         u8 futureBase_3[21];
248 } __packed;
249
250 struct base_eep_header_4k {
251         u16 length;
252         u16 checksum;
253         u16 version;
254         u8 opCapFlags;
255         u8 eepMisc;
256         u16 regDmn[2];
257         u8 macAddr[6];
258         u8 rxMask;
259         u8 txMask;
260         u16 rfSilent;
261         u16 blueToothOptions;
262         u16 deviceCap;
263         u32 binBuildNumber;
264         u8 deviceType;
265         u8 txGainType;
266 } __packed;
267
268
269 struct spur_chan {
270         u16 spurChan;
271         u8 spurRangeLow;
272         u8 spurRangeHigh;
273 } __packed;
274
275 struct modal_eep_header {
276         u32 antCtrlChain[AR5416_MAX_CHAINS];
277         u32 antCtrlCommon;
278         u8 antennaGainCh[AR5416_MAX_CHAINS];
279         u8 switchSettling;
280         u8 txRxAttenCh[AR5416_MAX_CHAINS];
281         u8 rxTxMarginCh[AR5416_MAX_CHAINS];
282         u8 adcDesiredSize;
283         u8 pgaDesiredSize;
284         u8 xlnaGainCh[AR5416_MAX_CHAINS];
285         u8 txEndToXpaOff;
286         u8 txEndToRxOn;
287         u8 txFrameToXpaOn;
288         u8 thresh62;
289         u8 noiseFloorThreshCh[AR5416_MAX_CHAINS];
290         u8 xpdGain;
291         u8 xpd;
292         u8 iqCalICh[AR5416_MAX_CHAINS];
293         u8 iqCalQCh[AR5416_MAX_CHAINS];
294         u8 pdGainOverlap;
295         u8 ob;
296         u8 db;
297         u8 xpaBiasLvl;
298         u8 pwrDecreaseFor2Chain;
299         u8 pwrDecreaseFor3Chain;
300         u8 txFrameToDataStart;
301         u8 txFrameToPaOn;
302         u8 ht40PowerIncForPdadc;
303         u8 bswAtten[AR5416_MAX_CHAINS];
304         u8 bswMargin[AR5416_MAX_CHAINS];
305         u8 swSettleHt40;
306         u8 xatten2Db[AR5416_MAX_CHAINS];
307         u8 xatten2Margin[AR5416_MAX_CHAINS];
308         u8 ob_ch1;
309         u8 db_ch1;
310         u8 useAnt1:1,
311             force_xpaon:1,
312             local_bias:1,
313             femBandSelectUsed:1, xlnabufin:1, xlnaisel:2, xlnabufmode:1;
314         u8 miscBits;
315         u16 xpaBiasLvlFreq[3];
316         u8 futureModal[6];
317
318         struct spur_chan spurChans[AR5416_EEPROM_MODAL_SPURS];
319 } __packed;
320
321 struct calDataPerFreqOpLoop {
322         u8 pwrPdg[2][5];
323         u8 vpdPdg[2][5];
324         u8 pcdac[2][5];
325         u8 empty[2][5];
326 } __packed;
327
328 struct modal_eep_4k_header {
329         u32  antCtrlChain[AR5416_EEP4K_MAX_CHAINS];
330         u32  antCtrlCommon;
331         u8   antennaGainCh[AR5416_EEP4K_MAX_CHAINS];
332         u8   switchSettling;
333         u8   txRxAttenCh[AR5416_EEP4K_MAX_CHAINS];
334         u8   rxTxMarginCh[AR5416_EEP4K_MAX_CHAINS];
335         u8   adcDesiredSize;
336         u8   pgaDesiredSize;
337         u8   xlnaGainCh[AR5416_EEP4K_MAX_CHAINS];
338         u8   txEndToXpaOff;
339         u8   txEndToRxOn;
340         u8   txFrameToXpaOn;
341         u8   thresh62;
342         u8   noiseFloorThreshCh[AR5416_EEP4K_MAX_CHAINS];
343         u8   xpdGain;
344         u8   xpd;
345         u8   iqCalICh[AR5416_EEP4K_MAX_CHAINS];
346         u8   iqCalQCh[AR5416_EEP4K_MAX_CHAINS];
347         u8   pdGainOverlap;
348         u8   ob_01;
349         u8   db1_01;
350         u8   xpaBiasLvl;
351         u8   txFrameToDataStart;
352         u8   txFrameToPaOn;
353         u8   ht40PowerIncForPdadc;
354         u8   bswAtten[AR5416_EEP4K_MAX_CHAINS];
355         u8   bswMargin[AR5416_EEP4K_MAX_CHAINS];
356         u8   swSettleHt40;
357         u8   xatten2Db[AR5416_EEP4K_MAX_CHAINS];
358         u8   xatten2Margin[AR5416_EEP4K_MAX_CHAINS];
359         u8   db2_01;
360         u8   version;
361         u16  ob_234;
362         u16  db1_234;
363         u16  db2_234;
364         u8   futureModal[4];
365
366         struct spur_chan spurChans[AR5416_EEPROM_MODAL_SPURS];
367 } __packed;
368
369
370 struct cal_data_per_freq {
371         u8 pwrPdg[AR5416_NUM_PD_GAINS][AR5416_PD_GAIN_ICEPTS];
372         u8 vpdPdg[AR5416_NUM_PD_GAINS][AR5416_PD_GAIN_ICEPTS];
373 } __packed;
374
375 struct cal_data_per_freq_4k {
376         u8 pwrPdg[AR5416_EEP4K_NUM_PD_GAINS][AR5416_EEP4K_PD_GAIN_ICEPTS];
377         u8 vpdPdg[AR5416_EEP4K_NUM_PD_GAINS][AR5416_EEP4K_PD_GAIN_ICEPTS];
378 } __packed;
379
380 struct cal_target_power_leg {
381         u8 bChannel;
382         u8 tPow2x[4];
383 } __packed;
384
385 struct cal_target_power_ht {
386         u8 bChannel;
387         u8 tPow2x[8];
388 } __packed;
389
390
391 #ifdef __BIG_ENDIAN_BITFIELD
392 struct cal_ctl_edges {
393         u8 bChannel;
394         u8 flag:2, tPower:6;
395 } __packed;
396 #else
397 struct cal_ctl_edges {
398         u8 bChannel;
399         u8 tPower:6, flag:2;
400 } __packed;
401 #endif
402
403 struct cal_ctl_data {
404         struct cal_ctl_edges
405         ctlEdges[AR5416_MAX_CHAINS][AR5416_NUM_BAND_EDGES];
406 } __packed;
407
408 struct cal_ctl_data_4k {
409         struct cal_ctl_edges
410         ctlEdges[AR5416_EEP4K_MAX_CHAINS][AR5416_EEP4K_NUM_BAND_EDGES];
411 } __packed;
412
413 struct ar5416_eeprom_def {
414         struct base_eep_header baseEepHeader;
415         u8 custData[64];
416         struct modal_eep_header modalHeader[2];
417         u8 calFreqPier5G[AR5416_NUM_5G_CAL_PIERS];
418         u8 calFreqPier2G[AR5416_NUM_2G_CAL_PIERS];
419         struct cal_data_per_freq
420          calPierData5G[AR5416_MAX_CHAINS][AR5416_NUM_5G_CAL_PIERS];
421         struct cal_data_per_freq
422          calPierData2G[AR5416_MAX_CHAINS][AR5416_NUM_2G_CAL_PIERS];
423         struct cal_target_power_leg
424          calTargetPower5G[AR5416_NUM_5G_20_TARGET_POWERS];
425         struct cal_target_power_ht
426          calTargetPower5GHT20[AR5416_NUM_5G_20_TARGET_POWERS];
427         struct cal_target_power_ht
428          calTargetPower5GHT40[AR5416_NUM_5G_40_TARGET_POWERS];
429         struct cal_target_power_leg
430          calTargetPowerCck[AR5416_NUM_2G_CCK_TARGET_POWERS];
431         struct cal_target_power_leg
432          calTargetPower2G[AR5416_NUM_2G_20_TARGET_POWERS];
433         struct cal_target_power_ht
434          calTargetPower2GHT20[AR5416_NUM_2G_20_TARGET_POWERS];
435         struct cal_target_power_ht
436          calTargetPower2GHT40[AR5416_NUM_2G_40_TARGET_POWERS];
437         u8 ctlIndex[AR5416_NUM_CTLS];
438         struct cal_ctl_data ctlData[AR5416_NUM_CTLS];
439         u8 padding;
440 } __packed;
441
442 struct ar5416_eeprom_4k {
443         struct base_eep_header_4k baseEepHeader;
444         u8 custData[20];
445         struct modal_eep_4k_header modalHeader;
446         u8 calFreqPier2G[AR5416_EEP4K_NUM_2G_CAL_PIERS];
447         struct cal_data_per_freq_4k
448         calPierData2G[AR5416_EEP4K_MAX_CHAINS][AR5416_EEP4K_NUM_2G_CAL_PIERS];
449         struct cal_target_power_leg
450         calTargetPowerCck[AR5416_EEP4K_NUM_2G_CCK_TARGET_POWERS];
451         struct cal_target_power_leg
452         calTargetPower2G[AR5416_EEP4K_NUM_2G_20_TARGET_POWERS];
453         struct cal_target_power_ht
454         calTargetPower2GHT20[AR5416_EEP4K_NUM_2G_20_TARGET_POWERS];
455         struct cal_target_power_ht
456         calTargetPower2GHT40[AR5416_EEP4K_NUM_2G_40_TARGET_POWERS];
457         u8 ctlIndex[AR5416_EEP4K_NUM_CTLS];
458         struct cal_ctl_data_4k ctlData[AR5416_EEP4K_NUM_CTLS];
459         u8 padding;
460 } __packed;
461
462 enum reg_ext_bitmap {
463         REG_EXT_JAPAN_MIDBAND = 1,
464         REG_EXT_FCC_DFS_HT40 = 2,
465         REG_EXT_JAPAN_NONDFS_HT40 = 3,
466         REG_EXT_JAPAN_DFS_HT40 = 4
467 };
468
469 struct ath9k_country_entry {
470         u16 countryCode;
471         u16 regDmnEnum;
472         u16 regDmn5G;
473         u16 regDmn2G;
474         u8 isMultidomain;
475         u8 iso[3];
476 };
477
478 enum ath9k_eep_map {
479         EEP_MAP_DEFAULT = 0x0,
480         EEP_MAP_4KBITS,
481         EEP_MAP_MAX
482 };
483
484 struct eeprom_ops {
485         int (*check_eeprom)(struct ath_hw *hw);
486         u32 (*get_eeprom)(struct ath_hw *hw, enum eeprom_param param);
487         bool (*fill_eeprom)(struct ath_hw *hw);
488         int (*get_eeprom_ver)(struct ath_hw *hw);
489         int (*get_eeprom_rev)(struct ath_hw *hw);
490         u8 (*get_num_ant_config)(struct ath_hw *hw, enum ieee80211_band band);
491         u16 (*get_eeprom_antenna_cfg)(struct ath_hw *hw,
492                                       struct ath9k_channel *chan);
493         void (*set_board_values)(struct ath_hw *hw, struct ath9k_channel *chan);
494         void (*set_addac)(struct ath_hw *hw, struct ath9k_channel *chan);
495         int (*set_txpower)(struct ath_hw *hw, struct ath9k_channel *chan,
496                            u16 cfgCtl, u8 twiceAntennaReduction,
497                            u8 twiceMaxRegulatoryPower, u8 powerLimit);
498         u16 (*get_spur_channel)(struct ath_hw *ah, u16 i, bool is2GHz);
499 };
500
501 #define ar5416_get_ntxchains(_txchainmask)                      \
502         (((_txchainmask >> 2) & 1) +                            \
503          ((_txchainmask >> 1) & 1) + (_txchainmask & 1))
504
505 int ath9k_hw_eeprom_attach(struct ath_hw *ah);
506
507 #endif /* EEPROM_H */