1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
|
/*
* arch/arm/mach-tegra/board-pismo-sensors.c
*
* Copyright (c) 2012-2014 NVIDIA CORPORATION, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* Neither the name of NVIDIA CORPORATION nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#include <linux/i2c.h>
#include <linux/delay.h>
#include <linux/mpu.h>
#include <linux/regulator/consumer.h>
#include <linux/gpio.h>
#include <linux/therm_est.h>
#include <linux/nct1008.h>
#include <mach/edp.h>
#include <mach/gpio-tegra.h>
#include <mach/pinmux-t11.h>
#include <mach/pinmux.h>
#include <media/imx091.h>
#include <media/ov9772.h>
#include <media/as364x.h>
#include <media/ad5816.h>
#include <generated/mach-types.h>
#include <linux/power/sbs-battery.h>
#include "gpio-names.h"
#include "board.h"
#include "board-common.h"
#include "board-pismo.h"
#include "cpu-tegra.h"
#include "devices.h"
#include "tegra-board-id.h"
#include "dvfs.h"
static struct nvc_gpio_pdata imx091_gpio_pdata[] = {
{IMX091_GPIO_RESET, CAM_RSTN, true, false},
{IMX091_GPIO_PWDN, CAM1_POWER_DWN_GPIO, true, false},
{IMX091_GPIO_GP1, CAM_GPIO1, true, false}
};
static struct throttle_table tj_throttle_table[] = {
{ { 0, 1000 } },
{ { 51000, 1000 } },
{ { 102000, 1000 } },
{ { 204000, 1000 } },
{ { 252000, 1000 } },
{ { 288000, 1000 } },
{ { 372000, 1000 } },
{ { 468000, 1000 } },
{ { 510000, 1000 } },
{ { 612000, 1000 } },
{ { 714000, 1050 } },
{ { 816000, 1050 } },
{ { 918000, 1050 } },
{ {1020000, 1100 } },
{ {1122000, 1100 } },
{ {1224000, 1100 } },
{ {1326000, 1100 } },
{ {1428000, 1100 } },
{ {1530000, 1100 } },
};
static struct balanced_throttle tj_throttle = {
.throt_tab_size = ARRAY_SIZE(tj_throttle_table),
.throt_tab = tj_throttle_table,
};
static int __init pismo_throttle_init(void)
{
if (machine_is_pismo())
balanced_throttle_register(&tj_throttle, "pismo-nct");
return 0;
}
module_init(pismo_throttle_init);
static struct nct1008_platform_data pismo_nct1008_pdata = {
.supported_hwrev = true,
.extended_range = true,
.conv_rate = 0x06, /* 4Hz conversion rate */
.sensors = {
[LOC] = {
.shutdown_limit = 120, /* C */
.num_trips = 0,
.tzp = NULL,
},
[EXT] = {
.shutdown_limit = 105, /* C */
.num_trips = 1,
.tzp = NULL,
.trips = {
{
.cdev_type = "suspend_soctherm",
.trip_temp = 50000,
.trip_type = THERMAL_TRIP_ACTIVE,
.upper = 1,
.lower = 1,
.hysteresis = 5000,
.mask = 1,
},
},
}
}
};
static struct i2c_board_info pismo_i2c4_nct1008_board_info[] = {
{
I2C_BOARD_INFO("nct1008", 0x4C),
.platform_data = &pismo_nct1008_pdata,
.irq = -1,
}
};
#define VI_PINMUX(_pingroup, _mux, _pupd, _tri, _io, _lock, _ioreset) \
{ \
.pingroup = TEGRA_PINGROUP_##_pingroup, \
.func = TEGRA_MUX_##_mux, \
.pupd = TEGRA_PUPD_##_pupd, \
.tristate = TEGRA_TRI_##_tri, \
.io = TEGRA_PIN_##_io, \
.lock = TEGRA_PIN_LOCK_##_lock, \
.od = TEGRA_PIN_OD_DEFAULT, \
.ioreset = TEGRA_PIN_IO_RESET_##_ioreset \
}
static int pismo_focuser_power_on(struct ad5816_power_rail *pw)
{
int err;
if (unlikely(WARN_ON(!pw || !pw->vdd || !pw->vdd_i2c)))
return -EFAULT;
err = regulator_enable(pw->vdd_i2c);
if (unlikely(err))
goto ad5816_vdd_i2c_fail;
err = regulator_enable(pw->vdd);
if (unlikely(err))
goto ad5816_vdd_fail;
return 0;
ad5816_vdd_fail:
regulator_disable(pw->vdd_i2c);
ad5816_vdd_i2c_fail:
pr_err("%s FAILED\n", __func__);
return -ENODEV;
}
static int pismo_focuser_power_off(struct ad5816_power_rail *pw)
{
if (unlikely(WARN_ON(!pw || !pw->vdd || !pw->vdd_i2c)))
return -EFAULT;
regulator_disable(pw->vdd);
regulator_disable(pw->vdd_i2c);
return 0;
}
static struct tegra_pingroup_config mclk_disable =
VI_PINMUX(CAM_MCLK, VI, NORMAL, NORMAL, OUTPUT, DEFAULT, DEFAULT);
static struct tegra_pingroup_config mclk_enable =
VI_PINMUX(CAM_MCLK, VI_ALT3, NORMAL, NORMAL, OUTPUT, DEFAULT, DEFAULT);
static struct tegra_pingroup_config pbb0_disable =
VI_PINMUX(GPIO_PBB0, VI, NORMAL, NORMAL, OUTPUT, DEFAULT, DEFAULT);
static struct tegra_pingroup_config pbb0_enable =
VI_PINMUX(GPIO_PBB0, VI_ALT3, NORMAL, NORMAL, OUTPUT, DEFAULT, DEFAULT);
/*
* As a workaround, pismo_vcmvdd need to be allocated to activate the
* sensor devices. This is due to the focuser device(AD5816) will hook up
* the i2c bus if it is not powered up.
*/
static struct regulator *pismo_vcmvdd;
static int pismo_get_vcmvdd(void)
{
if (!pismo_vcmvdd) {
pismo_vcmvdd = regulator_get(NULL, "vdd_af_cam1");
if (unlikely(WARN_ON(IS_ERR(pismo_vcmvdd)))) {
pr_err("%s: can't get regulator vcmvdd: %ld\n",
__func__, PTR_ERR(pismo_vcmvdd));
pismo_vcmvdd = NULL;
return -ENODEV;
}
}
return 0;
}
static int pismo_imx091_power_on(struct nvc_regulator *vreg)
{
int err;
if (unlikely(WARN_ON(!vreg)))
return -EFAULT;
if (pismo_get_vcmvdd())
goto imx091_poweron_fail;
gpio_set_value(CAM1_POWER_DWN_GPIO, 0);
usleep_range(10, 20);
err = regulator_enable(vreg[IMX091_VREG_AVDD].vreg);
if (err)
goto imx091_avdd_fail;
err = regulator_enable(vreg[IMX091_VREG_IOVDD].vreg);
if (err)
goto imx091_iovdd_fail;
usleep_range(1, 2);
gpio_set_value(CAM1_POWER_DWN_GPIO, 1);
err = regulator_enable(pismo_vcmvdd);
if (unlikely(err))
goto imx091_vcmvdd_fail;
tegra_pinmux_config_table(&mclk_enable, 1);
usleep_range(300, 310);
return 1;
imx091_vcmvdd_fail:
regulator_disable(vreg[IMX091_VREG_IOVDD].vreg);
imx091_iovdd_fail:
regulator_disable(vreg[IMX091_VREG_AVDD].vreg);
imx091_avdd_fail:
gpio_set_value(CAM1_POWER_DWN_GPIO, 0);
imx091_poweron_fail:
pr_err("%s FAILED\n", __func__);
return -ENODEV;
}
static int pismo_imx091_power_off(struct nvc_regulator *vreg)
{
if (unlikely(WARN_ON(!vreg)))
return -EFAULT;
usleep_range(1, 2);
tegra_pinmux_config_table(&mclk_disable, 1);
gpio_set_value(CAM1_POWER_DWN_GPIO, 0);
usleep_range(1, 2);
regulator_disable(pismo_vcmvdd);
regulator_disable(vreg[IMX091_VREG_IOVDD].vreg);
regulator_disable(vreg[IMX091_VREG_AVDD].vreg);
return 1;
}
static struct nvc_imager_cap imx091_cap = {
.identifier = "IMX091",
.sensor_nvc_interface = 3,
.pixel_types[0] = 0x100,
.orientation = 0,
.direction = 0,
.initial_clock_rate_khz = 6000,
.clock_profiles[0] = {
.external_clock_khz = 24000,
.clock_multiplier = 10416667, /* value / 1,000,000 */
},
.clock_profiles[1] = {
.external_clock_khz = 0,
.clock_multiplier = 0,
},
.h_sync_edge = 0,
.v_sync_edge = 0,
.mclk_on_vgp0 = 0,
.csi_port = 0,
.data_lanes = 4,
.virtual_channel_id = 0,
.discontinuous_clk_mode = 1,
.cil_threshold_settle = 0x0,
.min_blank_time_width = 16,
.min_blank_time_height = 16,
.preferred_mode_index = 0,
.focuser_guid = NVC_FOCUS_GUID(0),
.torch_guid = NVC_TORCH_GUID(0),
.cap_version = NVC_IMAGER_CAPABILITIES_VERSION2,
};
static struct imx091_platform_data imx091_pdata = {
.num = 0,
.sync = 0,
.dev_name = "camera",
.gpio_count = ARRAY_SIZE(imx091_gpio_pdata),
.gpio = imx091_gpio_pdata,
.flash_cap = {
.sdo_trigger_enabled = 1,
.adjustable_flash_timing = 1,
},
.cap = &imx091_cap,
.power_on = pismo_imx091_power_on,
.power_off = pismo_imx091_power_off,
};
static struct sbs_platform_data sbs_pdata = {
.poll_retry_count = 100,
.i2c_retry_count = 2,
};
static int pismo_ov9772_power_on(struct ov9772_power_rail *pw)
{
int err;
if (unlikely(!pw || !pw->avdd || !pw->dovdd))
return -EFAULT;
if (pismo_get_vcmvdd())
goto ov9772_get_vcmvdd_fail;
gpio_set_value(CAM2_POWER_DWN_GPIO, 0);
gpio_set_value(CAM_RSTN, 0);
err = regulator_enable(pw->avdd);
if (unlikely(err))
goto ov9772_avdd_fail;
err = regulator_enable(pw->dovdd);
if (unlikely(err))
goto ov9772_dovdd_fail;
gpio_set_value(CAM_RSTN, 1);
gpio_set_value(CAM2_POWER_DWN_GPIO, 1);
err = regulator_enable(pismo_vcmvdd);
if (unlikely(err))
goto ov9772_vcmvdd_fail;
tegra_pinmux_config_table(&pbb0_enable, 1);
usleep_range(340, 380);
/* return 1 to skip the in-driver power_on sequence */
return 1;
ov9772_vcmvdd_fail:
regulator_disable(pw->dovdd);
ov9772_dovdd_fail:
regulator_disable(pw->avdd);
ov9772_avdd_fail:
gpio_set_value(CAM_RSTN, 0);
gpio_set_value(CAM2_POWER_DWN_GPIO, 0);
ov9772_get_vcmvdd_fail:
pr_err("%s FAILED\n", __func__);
return -ENODEV;
}
static int pismo_ov9772_power_off(struct ov9772_power_rail *pw)
{
if (unlikely(!pw || !pismo_vcmvdd || !pw->avdd || !pw->dovdd))
return -EFAULT;
usleep_range(21, 25);
tegra_pinmux_config_table(&pbb0_disable, 1);
gpio_set_value(CAM2_POWER_DWN_GPIO, 0);
gpio_set_value(CAM_RSTN, 0);
regulator_disable(pismo_vcmvdd);
regulator_disable(pw->dovdd);
regulator_disable(pw->avdd);
/* return 1 to skip the in-driver power_off sequence */
return 1;
}
static struct nvc_gpio_pdata ov9772_gpio_pdata[] = {
{ OV9772_GPIO_TYPE_SHTDN, CAM2_POWER_DWN_GPIO, true, 0, },
{ OV9772_GPIO_TYPE_PWRDN, CAM_RSTN, true, 0, },
};
static struct ov9772_platform_data pismo_ov9772_pdata = {
.num = 1,
.dev_name = "camera",
.gpio_count = ARRAY_SIZE(ov9772_gpio_pdata),
.gpio = ov9772_gpio_pdata,
.power_on = pismo_ov9772_power_on,
.power_off = pismo_ov9772_power_off,
};
static int pismo_as3648_power_on(struct as364x_power_rail *pw)
{
int err = pismo_get_vcmvdd();
if (err)
return err;
return regulator_enable(pismo_vcmvdd);
}
static int pismo_as3648_power_off(struct as364x_power_rail *pw)
{
if (!pismo_vcmvdd)
return -ENODEV;
return regulator_disable(pismo_vcmvdd);
}
static struct as364x_platform_data pismo_as3648_pdata = {
.config = {
.led_mask = 3,
.max_total_current_mA = 1000,
.max_peak_current_mA = 600,
.vin_low_v_run_mV = 3070,
.strobe_type = 1,
},
.pinstate = {
.mask = 1 << (CAM_FLASH_STROBE - TEGRA_GPIO_PBB0),
.values = 1 << (CAM_FLASH_STROBE - TEGRA_GPIO_PBB0)
},
.dev_name = "torch",
.type = AS3648,
.gpio_strobe = CAM_FLASH_STROBE,
.power_on_callback = pismo_as3648_power_on,
.power_off_callback = pismo_as3648_power_off,
};
static struct ad5816_platform_data pismo_ad5816_pdata = {
.cfg = 0,
.num = 0,
.sync = 0,
.dev_name = "focuser",
.power_on = pismo_focuser_power_on,
.power_off = pismo_focuser_power_off,
};
static struct i2c_board_info pismo_i2c_board_info_e1625[] = {
{
I2C_BOARD_INFO("imx091", 0x36),
.platform_data = &imx091_pdata,
},
{
I2C_BOARD_INFO("ov9772", 0x10),
.platform_data = &pismo_ov9772_pdata,
},
{
I2C_BOARD_INFO("as3648", 0x30),
.platform_data = &pismo_as3648_pdata,
},
{
I2C_BOARD_INFO("ad5816", 0x0E),
.platform_data = &pismo_ad5816_pdata,
},
};
static int pismo_camera_init(void)
{
tegra_pinmux_config_table(&mclk_disable, 1);
tegra_pinmux_config_table(&pbb0_disable, 1);
i2c_register_board_info(2, pismo_i2c_board_info_e1625,
ARRAY_SIZE(pismo_i2c_board_info_e1625));
return 0;
}
/* MPU board file definition */
static struct mpu_platform_data mpu9150_gyro_data = {
.int_config = 0x10,
.level_shifter = 0,
/* Located in board_[platformname].h */
.orientation = MPU_GYRO_ORIENTATION,
.sec_slave_type = SECONDARY_SLAVE_TYPE_COMPASS,
.sec_slave_id = COMPASS_ID_AK8975,
.secondary_i2c_addr = MPU_COMPASS_ADDR,
.secondary_read_reg = 0x06,
.secondary_orientation = MPU_COMPASS_ORIENTATION,
.key = {0x4E, 0xCC, 0x7E, 0xEB, 0xF6, 0x1E, 0x35, 0x22,
0x00, 0x34, 0x0D, 0x65, 0x32, 0xE9, 0x94, 0x89},
};
#define TEGRA_CAMERA_GPIO(_gpio, _label, _value) \
{ \
.gpio = _gpio, \
.label = _label, \
.value = _value, \
}
static struct i2c_board_info pismo_i2c_board_info_cm3218[] = {
{
I2C_BOARD_INFO("cm3218", 0x48),
},
};
static struct i2c_board_info __initdata inv_mpu9150_i2c2_board_info[] = {
{
I2C_BOARD_INFO(MPU_GYRO_NAME, MPU_GYRO_ADDR),
.platform_data = &mpu9150_gyro_data,
},
};
static void mpuirq_init(void)
{
int ret = 0;
unsigned gyro_irq_gpio = MPU_GYRO_IRQ_GPIO;
unsigned gyro_bus_num = MPU_GYRO_BUS_NUM;
char *gyro_name = MPU_GYRO_NAME;
pr_info("*** MPU START *** mpuirq_init...\n");
ret = gpio_request(gyro_irq_gpio, gyro_name);
if (ret < 0) {
pr_err("%s: gpio_request failed %d\n", __func__, ret);
return;
}
ret = gpio_direction_input(gyro_irq_gpio);
if (ret < 0) {
pr_err("%s: gpio_direction_input failed %d\n", __func__, ret);
gpio_free(gyro_irq_gpio);
return;
}
pr_info("*** MPU END *** mpuirq_init...\n");
inv_mpu9150_i2c2_board_info[0].irq = gpio_to_irq(MPU_GYRO_IRQ_GPIO);
i2c_register_board_info(gyro_bus_num, inv_mpu9150_i2c2_board_info,
ARRAY_SIZE(inv_mpu9150_i2c2_board_info));
}
static int pismo_nct1008_init(void)
{
int nct1008_port;
int ret = 0;
nct1008_port = TEGRA_GPIO_PX6;
tegra_add_all_vmin_trips(pismo_nct1008_pdata.sensors[EXT].trips,
&pismo_nct1008_pdata.sensors[EXT].num_trips);
pismo_i2c4_nct1008_board_info[0].irq =
gpio_to_irq(nct1008_port);
pr_info("%s: pismo nct1008 irq %d", __func__,
pismo_i2c4_nct1008_board_info[0].irq);
ret = gpio_request(nct1008_port, "temp_alert");
if (ret < 0)
return ret;
ret = gpio_direction_input(nct1008_port);
if (ret < 0) {
pr_info("%s: calling gpio_free(nct1008_port)",
__func__);
gpio_free(nct1008_port);
}
/* pismo has thermal sensor on GEN1-I2C i.e. instance 0 */
i2c_register_board_info(0, pismo_i2c4_nct1008_board_info,
ARRAY_SIZE(pismo_i2c4_nct1008_board_info));
return ret;
}
static struct i2c_board_info __initdata bq20z45_pdata[] = {
{
I2C_BOARD_INFO("sbs-battery", 0x0B),
.platform_data = &sbs_pdata,
},
};
#ifdef CONFIG_TEGRA_SKIN_THROTTLE
static int tegra_skin_match(struct thermal_zone_device *thz, void *data)
{
return strcmp((char *)data, thz->type) == 0;
}
static int tegra_skin_get_temp(void *data, long *temp)
{
struct thermal_zone_device *thz;
thz = thermal_zone_device_find(data, tegra_skin_match);
if (!thz || thz->ops->get_temp(thz, temp))
*temp = 25000;
return 0;
}
static struct therm_est_data skin_data = {
.toffset = 9793,
.polling_period = 1100,
.ndevs = 2,
.devs = {
{
.dev_data = "nct_ext",
.get_temp = tegra_skin_get_temp,
.coeffs = {
2, 1, 1, 1,
1, 1, 1, 1,
1, 1, 1, 0,
1, 1, 0, 0,
0, 0, -1, -7
},
},
{
.dev_data = "nct_int",
.get_temp = tegra_skin_get_temp,
.coeffs = {
-11, -7, -5, -3,
-3, -2, -1, 0,
0, 0, 1, 1,
1, 2, 2, 3,
4, 6, 11, 18
},
},
},
.trip_temp = 45000,
.tc1 = 10,
.tc2 = 1,
.passive_delay = 15000,
};
static struct throttle_table skin_throttle_table[] = {
{ { 640000, 1200 } },
{ { 640000, 1200 } },
{ { 760000, 1200 } },
{ { 760000, 1200 } },
{ {1000000, 1200 } },
{ {1000000, 1200 } },
};
static struct balanced_throttle skin_throttle = {
.throt_tab_size = ARRAY_SIZE(skin_throttle_table),
.throt_tab = skin_throttle_table,
};
static int __init pismo_skin_init(void)
{
struct thermal_cooling_device *skin_cdev;
skin_cdev = balanced_throttle_register(&skin_throttle, "pismo-skin");
skin_data.cdev = skin_cdev;
tegra_skin_therm_est_device.dev.platform_data = &skin_data;
platform_device_register(&tegra_skin_therm_est_device);
return 0;
}
late_initcall(pismo_skin_init);
#endif
int __init pismo_sensors_init(void)
{
int err;
err = pismo_nct1008_init();
if (err)
return err;
pismo_camera_init();
mpuirq_init();
i2c_register_board_info(0, pismo_i2c_board_info_cm3218,
ARRAY_SIZE(pismo_i2c_board_info_cm3218));
i2c_register_board_info(0, bq20z45_pdata,
ARRAY_SIZE(bq20z45_pdata));
return 0;
}
|