1
0
Fork 0
Commit Graph

525113 Commits (steinar/releases/milestone-yocto-brcmfmac4330-fu-fix)

Author SHA1 Message Date
Ye.Li b4dcb26e1f ENGR00323682 MMC: Fixed boot_config overwritten by switch partition
In MMC driver, two variables: boot_config and part_config  are used to
keep eCSD(179) PARTITION_CONFIG. The part_config is not updated when
set new boot_config, which causes the eCSD(179) is overwritten by
any following partition switching, so the new boot_config is lost.

Signed-off-by: Ye.Li <B37916@freescale.com>
(cherry picked from commit e66d21ade29855299ce048c97830a4bb79373761)
2016-09-27 19:31:24 +02:00
Richard Zhu fcad224793 ENGR00285671 mmc: setup emmc boot partition configure methods
- Configure boot partition
Expose the interfaces that used to enable the configurations
of the boot mode of the eMMC cards.
usage how-to and examples:
Enable the boot partition 1 boot enabled.
"echo 8 > /sys/devices/soc0/soc.1/2100000.aips-bus/
219c000.usdhc/mmc_host/mmc2/mmc2\:0001/boot_config"

In order to make sure that the re-read the ext-csd of card
can be completed successfully, add the method to wait for
the finish of the busy state.

- setup boot_info message output
Output bit means of important esd_csd register

Read esd_csd info each time when cat boot_info
becasue user may change config affect esd_csd
value.

- Boot partition access howto:
About the details, please refer to the guidance of
Documentation/mmc/mmc-dev-parts.txt

To enable write access to /dev/mmcblkXbootY, disable the forced
read-only access with:
echo 0 > /sys/block/mmcblkXbootY/force_ro

To re-enable read-only access:
echo 1 > /sys/block/mmcblkXbootY/force_ro

NOTE:
- The definitions of the EXT_CSD_PART_CONFIG and EXT_CSD_BOOT_BUS_WIDTH
+------------------------------------------------------------+
| Bit7 | Bit6     | Bit5 Bit4 Bit3        | Bit2 Bit1 Bit0   |
|------|----------|-----------------------|------------------|
| X    | BOOT_ACK | BOOT_PARTITION_ENABLE | PARTITION_ACCESS |
+------------------------------------------------------------+
Bit7: Reserved
Bit6: always set to vaule '1' when boot_part is enabled
Bit[5:3]:
0x0 : Device not boot enabled (default)
0x1 : Boot partition 1 enabled for boot
0x2 : Boot partition 2 enabled for boot
0x7 : User area enabled for boot
Bit[2:0]:
0x0 : No access to boot partition (default)
0x1 : R/W boot partition 1
0x2 : R/W boot partition 2

+--------------------------------------------------------------------+
| Bit7 Bit6 Bit5 | Bit4 Bit3 | Bit2                 | Bit1 Bit0      |
|----------------|----------------------------------|----------------|
| X              | BOOT_MODE | RESET_BOOT_BUS_WIDTH | BOOT_BUS_WIDTH |
+--------------------------------------------------------------------+
Bit [4:3] : BOOT_MODE (non-volatile)
0x0 : Use single data rate + backward compatible timings in boot
operation (default)
0x1 : Use single data rate + high speed timings in boot operation mode
0x2 : Use dual data rate in boot operation
0x3 : Reserved
Bit [2]: RESET_BOOT_BUS_WIDTH (non-volatile)
0x0 : Reset bus width to x1, single data rate and backward compatible
timings after boot operation (default)
0x1 : Retain boot bus width and boot mode after boot operation
Bit[1:0] : BOOT_BUS_WIDTH (non-volatile)
0x0 : x1 (sdr) or x4 (ddr) bus width in boot operation mode (default)
0x1 : x4 (sdr/ddr) bus width in boot operation mode
0x2 : x8 (sdr/ddr) bus width in boot operation mode
0x3 : Reserved

- example of the boot_info:
boot_info:0x07;
  ALT_BOOT_MODE:1 - Supports alternate boot method
  DDR_BOOT_MODE:1 - Supports alternate dual data rate during boot
  HS_BOOTMODE:1 - Supports high speed timing during boot
boot_size:2048KB
  boot_partition:0x48;
  BOOT_ACK:1 - Boot acknowledge sent during boot operation
  BOOT_PARTITION-ENABLE: 1 - Boot partition 1 enabled
  PARTITION_ACCESS:0 - No access to boot partition
boot_bus:0x00
  BOOT_MODE:0 - Use single data rate + backward compatible timings
  in boot operation
  RESET_BOOT_BUS_WIDTH:0 - Reset bus width to x1, single data rate
  and backwardcompatible timings after boot operation
  BOOT_BUS_WIDTH:0 - x1 (sdr) or x4 (ddr) bus width in boot
  operation mode

Signed-off-by: Richard Zhu <r65037@freescale.com>
2016-09-27 19:31:17 +02:00
Martin T. H. Sandsmark e9bd4a96ab dts: remove ethernet/FEC 2016-09-26 12:57:00 +02:00
Martin T. H. Sandsmark a999603253 dts: remove ssi2 2016-09-26 12:56:29 +02:00
Martin T. H. Sandsmark 496e0c1f03 Remove some useless debug output from wacom_i2c driver 2016-09-26 12:54:53 +02:00
Martin T. H. Sandsmark 3dcbdea7ad Use correct poweroff driver 2016-09-23 13:28:19 +02:00
Martin T. H. Sandsmark 8bb2584e00 Add tilt and distance reporting to Wacom I2C 2016-09-21 20:27:03 +02:00
Martin T. H. Sandsmark e2972eb4d1 Fix OTG VBUS pin 2016-09-20 17:03:21 +02:00
Martin T. H. Sandsmark fc3a66c306 Remove unnecessary wacom debug output 2016-09-19 15:53:59 +02:00
Martin T. H. Sandsmark fc5b9bdb64 Disable auto update mode in EPDC driver 2016-09-19 11:11:08 +02:00
Martin T. H. Sandsmark 773fdf6dda Revert "Add patch from NXP to attempt to fix 8 byte alignment"
This reverts commit cf7ad566bb.
2016-09-16 22:58:53 +02:00
Martin T. H. Sandsmark fe2065ef53 Re-enable USB PWR pin 2016-09-16 22:57:29 +02:00
Martin T. H. Sandsmark eda834802e Re-enable touch panel in DTS 2016-09-16 22:57:12 +02:00
Martin T. H. Sandsmark a619303bdf Remove all traces of the 5bit waveforms 2016-09-13 11:08:51 +02:00
Martin T. H. Sandsmark 0010ccf30e Add patch from NXP to use the correct mutex when panning display 2016-09-12 16:20:39 +02:00
Martin T. H. Sandsmark cf7ad566bb Add patch from NXP to attempt to fix 8 byte alignment 2016-09-12 16:20:25 +02:00
Martin T. H. Sandsmark e96a68436f Update timing information for the MAX17135 2016-09-12 09:33:44 +02:00
Martin T. H. Sandsmark f2e9a712ac Add support for ES103CS1 display with 4bit waveforms 2016-09-09 13:31:56 +02:00
Martin T. H. Sandsmark 009c7f0642 Add 4bit waveform for ES103CS1 2016-09-09 13:24:47 +02:00
Martin T. H. Sandsmark eaf5ebe480 Set the default pass number for MAX17135 to 2 2016-09-09 13:09:24 +02:00
Martin T. H. Sandsmark 1beba6ec27 Update panel timing values based on independent calculations 2016-09-01 17:37:34 +02:00
Martin T. H. Sandsmark 7664e55f65 Bring up our panel by default 2016-09-01 17:37:18 +02:00
Martin T. H. Sandsmark 3dbb49bcca Update power sequencing for EPD 2016-09-01 17:35:48 +02:00
Martin T. H. Sandsmark bcafc61a98 Update waveform after attempting to fix NXP's waveform converter 2016-08-31 20:24:37 +02:00
Martin T. H. Sandsmark b87bcff479 Update panel timing information based on NXP EPD calculator values 2016-08-26 15:06:39 +02:00
Martin T. H. Sandsmark 3c3d1e03bf Enable PXPv2 in defconfig 2016-08-24 15:22:16 +02:00
Martin T. H. Sandsmark a8179ee397 Fix max voltage for USDHC3 in DTS 2016-08-24 15:17:41 +02:00
Martin T. H. Sandsmark 065b189bf1 Update EPDC driver to use correct pixels per SDCLK and data bus width 2016-08-24 15:16:19 +02:00
Martin T. H. Sandsmark d7a0544346 Only rely on PWRGOOD in MAX17135, add some debug output 2016-08-23 21:37:25 +02:00
Martin T. H. Sandsmark 5fa24ae531 Make the MAX17135 driver check the PWRGOOD pin 2016-08-23 21:14:41 +02:00
Martin T. H. Sandsmark 5e9b79f085 Move waveform to correct folder 2016-08-23 14:48:57 +02:00
Martin T. H. Sandsmark f1c678a136 Add waveform for our display 2016-08-23 14:40:56 +02:00
Martin T. H. Sandsmark 5e79982fea Add some debug output to Wacom driver 2016-08-23 12:25:34 +02:00
Martin T. H. Sandsmark b0a8eeb353 Change keypad debug output to printk for HW debugging 2016-08-23 12:23:42 +02:00
Martin T. H. Sandsmark 212763da0c First attempt at setting our display configuration, based on info sheet from E-Ink 2016-08-23 12:19:56 +02:00
Martin T. H. Sandsmark 0f19a92738 Add touchscreen to device tree 2016-08-23 12:19:55 +02:00
Martin T. H. Sandsmark b8d4ebf8d4 Fix getting of GPIO in cyttsp5 from device tree 2016-08-23 12:19:55 +02:00
Martin T. H. Sandsmark 7a42eadad6 Disable reducing of ddr3 bus frequency for now 2016-08-23 12:19:55 +02:00
Martin T. H. Sandsmark 93a79f3d18 Set KPP pins as keypad pins in iomux 2016-08-23 12:19:54 +02:00
Martin T. H. Sandsmark 399063c98b Re-enable large files support 2016-08-23 12:19:54 +02:00
Martin T. H. Sandsmark c6093b5190 Add some extra output from the MAX17135 for Kaifa 2016-08-23 12:19:53 +02:00
Martin T. H. Sandsmark 8071984a98 Use the correct pins for I2C bus number 3 2016-08-23 12:19:53 +02:00
Martin T. H. Sandsmark 223ae75ea1 Add hack to EPDC driver to unconditionally turn on the regulators during initialization for Kaifa testing 2016-08-23 12:19:52 +02:00
Martin T. H. Sandsmark 6f17b452de Make the bq27xxx driver print out the voltage when initialized 2016-08-23 12:19:52 +02:00
Martin T. H. Sandsmark a5b24489bd Remove the V3P3 regulator, it is not used by us 2016-08-23 12:19:51 +02:00
Martin T. H. Sandsmark 5a0a30716d Re-add IMX serial to defconfig 2016-08-23 12:19:51 +02:00
Martin T. H. Sandsmark 347aa1aede Ensure that the MAX17135 MFD selects MFD_CORE 2016-08-23 12:19:50 +02:00
Martin T. H. Sandsmark af346a6640 Clean out unused stuff from defconfig 2016-08-23 12:19:49 +02:00
Martin T. H. Sandsmark 85be9d0d0e Import cyttsp5 driver from Parade 2016-08-23 12:19:49 +02:00
Martin T. H. Sandsmark 7bb960f5be Update USDHC pad control according to schematics 2016-08-23 12:19:49 +02:00