CN105159714A - PMIC initialization method and electronic equipment - Google Patents
PMIC initialization method and electronic equipment Download PDFInfo
- Publication number
- CN105159714A CN105159714A CN201510555601.3A CN201510555601A CN105159714A CN 105159714 A CN105159714 A CN 105159714A CN 201510555601 A CN201510555601 A CN 201510555601A CN 105159714 A CN105159714 A CN 105159714A
- Authority
- CN
- China
- Prior art keywords
- pmic
- initialization
- file
- configuration information
- initialization directive
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The invention relates to electronic equipment, in particular to the initialization or configuration of PMICs (Power Management Integrated Circuits) in the electronic equipment. The invention provides the electronic equipment, which comprises a first initialization module, a second initialization module, a configuration file management module and a PMIC detection module. The equipment has the advantages that a corresponding instruction can be automatically selected for initializing the PMIC according to the PMIC concretely mounted on the equipment during the system initialization; the same series of equipment can be saved; and the problem that different versions of firmware need to be maintained during the mounting of different PMICs is solved.
Description
Technical field
The present invention relates to electronic equipment, more specifically, the present invention relates to initialization or the configuration of PMIC in electronic equipment.
Background technology
PMU (powermanagementunit) is exactly Power Management Unit, corresponding PMIC (PowerManagementIC) power management integrated circuit, it is used to the power-supply device in management host system, is usually used in mobile phone and various mobile terminal device.After CPU is working properly, can be controlled by the modules of I2C interface to PMIC.
Current embedded Linux operating system adopts dtb (devicetreeblob) file to be configured plate level resource.DeviceTree is a kind of data structure describing hardware, and it originates from OpenFirmware (OF).After adopting DeviceTree, the details of much hardware directly can pass to Linux through it, and no longer needs to carry out a large amount of redundancy encodings in kernel.Devicetree information is recorded in .dts file.DTC (devicetreecompiler) is instrument .dts file being compiled as .dtb file.Consult Fig. 1, in boot process, the file that can be .dtb by suffix from arbitrary mediums such as NAND, SD or TFTP reads in internal memory.And by Uboot or bootloader, the address of dtb is passed to kernel reflection.So just can according to the facility information load driver in dtb with regard to kernel reflection.
When a certain product of raw manufacturer volume production, usually have the model machine of multiple series.The model machine possibility fabric swatch of different series is identical and adopt PMIC different.Namely latter event refers to may occur that a product volume is given birth to, the situation that the PMIC pasted is different.So raw manufacturer can select to paste which kind of PMIC according to the market price easily.And inventor finds that, for the different model machine pasting different PMIC in prior art, the compatibility in order to operating system needs to develop multiple firmware, thus need firmware to safeguard quite loaded down with trivial details, reduce development efficiency.
Summary of the invention
Below provide and the simplification of one or more aspect is summarized to try hard to provide the basic comprehension to this type of aspect.Detailed the combining of this not all aspect contemplated of general introduction is look at, and both not intended to be pointed out out the scope of key or decisive any or all aspect of elements nor delineate of all aspects.Its unique object is some concepts that will provide one or more aspect in simplified form using as the more specifically bright sequence provided after a while.
In addition, additional aspect can comprise a kind of method finding to ask for detection and response as described in this article.Further aspect in this regard can comprise: at least one processor comprising execution; Comprise the computer program of computer-readable medium, this computer-readable medium comprises and can perform by computing machine the instruction finding request with detection and response; Or comprise the equipment finding device or the assembly of asking for detection and response.
Before reaching, address relevant object, this one or more aspect is included in and hereinafter fully describes and the feature particularly pointed out in the following claims.The following description and drawings illustrate some illustrative aspects of this one or more aspect.But these features are only indicate that can to adopt in the various modes of the principle of various aspect several, and this description is intended to contain this type of aspects all and equivalent aspect thereof.
Inventor provides a kind of PMIC initial method, presets in the initializes configuration information write configuration file of supported PMIC by multiple;
Described configuration file is burnt in the storage medium of write device, or described configuration file is compiled into System guides file, with in boot files write device storage medium;
After equipment energising, read described configuration file and obtain the initializes configuration information presetting supported PMIC;
Choose multiple initializes configuration information presetting the PMIC of one of supported PMIC part, in conjunction with the PMIC in its corresponding first initialization directive collection initialization apparatus described, described first initialization directive collection is the set of the instruction of corresponding initialization PMIC;
Initialization success is judged whether according to the execution result of the first initialization directive collection, if unsuccessful, attempt the PMIC in the initialization directive collection initialization apparatus of initializes configuration information combination another PMIC corresponding of another PMIC, another PMIC is one of described multiple default supported PMIC, the all initialization failures of initialization directive collection corresponding to supported PMIC are preset until all, or the first initialization directive collection initialization success of a certain PMIC;
If the first initialization directive collection initialization success, by the initializes configuration information of described a certain PMIC in conjunction with the PMIC in the second initialization directive collection initialization apparatus of its correspondence.
Further, if the first initialization directive collection initialization success, mark the initializes configuration information of the described a certain PMIC in described configuration file, and generate new configuration file and be kept in storage medium;
When initialization system, read this configuration file and in conjunction with the second initialization directive collection corresponding to described a certain PMIC for the PMIC in initialization apparatus.
Further, generate new configuration file and be kept in storage medium as covering original configuration file in storage medium.
Further, if the first initialization directive collection initialization success, thereafter, also comprise step, mark the initializes configuration information of described a certain PMIC, and by the initializes configuration information of this mark in conjunction with the PMIC in the second initialization directive collection initialization apparatus of its correspondence.
Further, by I2C Interface Controller PMIC, choosing multiple initializes configuration information presetting the PMIC of one of supported PMIC part, before the PMIC in its corresponding first initialization directive collection initialization apparatus described, also comprise step, call I2C and drive I2C interface initialization.
Further, configuration file is binary coding or character code.
Further, choosing multiple initializes configuration information presetting the PMIC of one of supported PMIC part, before the PMIC in its corresponding first initialization directive collection initialization apparatus described, also comprising step: the IO state of the memory device in configuration device.
Further, described configuration file is DTB file, and DTB file is compiled by DTS file and obtains, and described initializes configuration information follows the organizational form of DTS file;
In DTS file, add the initializes configuration information presetting supported PMIC, and DTS compiling is packaged into DTB file, and DTB file is written in the storage medium of equipment;
After energising, bootloader reads DTB file, and decompiling is DTS file, and obtains the initializes configuration information presetting supported PMIC;
Bootlaoder chooses multiple initializes configuration information presetting the PMIC of one of supported PMIC part, in conjunction with the PMIC in its corresponding first initialization directive collection initialization apparatus described, described first initialization directive collection is the set of the instruction of corresponding initialization PMIC;
Bootlaoder judges whether initialization success according to the execution result of the first initialization directive collection, if unsuccessful, attempt the PMIC in the initialization directive collection initialization apparatus of initializes configuration information combination another PMIC corresponding of another PMIC, another PMIC is one of described multiple default supported PMIC, the all initialization failures of initialization directive collection corresponding to supported PMIC are preset until all, or the first initialization directive collection initialization success of a certain PMIC;
Initialization success after, bootloader by the initializes configuration information of described a certain PMIC in conjunction with the PMIC in the second initialization directive collection initialization apparatus of its correspondence.
Further, described first initialization directive integrates and minimizes instruction set corresponding to initial code module as PMIC, and described second initialization directive integrates as instruction set corresponding to PMIC driver.
The present invention also provides a kind of electronic equipment, and described equipment comprises the first initialization module, the second initial module, profile management module, PMIC detecting module;
Described first initialization module is for choosing multiple initializes configuration information presetting the PMIC of one of supported PMIC part, the PMIC in its corresponding first initialization directive collection initialization apparatus described in combining;
Described second initial module is used for the initializes configuration information of PMIC in conjunction with the PMIC in the second initialization directive collection initialization apparatus of its correspondence;
Described profile management module is for reading described configuration file and obtaining the initializes configuration information presetting supported PMIC;
Described memory device detecting module runs for controlling the first initialization module, the all initialization failures of initialization directive collection corresponding to supported PMIC are preset until all, or a certain PMIC first the initialization of initialization directive collection success time, control second initialization module run.
Further, described profile management module also for after the first initialization directive collection initialization success, marks the initializes configuration information of the successful PMIC of initialization in described configuration file, and generates new configuration file and be kept in storage medium; When initialization system, read this configuration file and in conjunction with the second initialization directive collection corresponding to described a certain PMIC for the PMIC in initialization apparatus.
Further, described profile management module is also for generating new configuration file and being kept in storage medium as covering original configuration file in storage medium.
Further, PMIC connects I2C interface, described first initial module is also for choosing multiple initializes configuration information presetting the PMIC of one of supported PMIC part, before the PMIC in its corresponding first initialization directive collection initialization apparatus described, also comprise step, call I2C and drive I2C interface initialization.
Further, described profile management module management DTB file.
Further, the first initialization directive that described first initialization module uses integrates and minimizes instruction set corresponding to initial code module as PMIC, and described second initialization directive that described second initialization module uses integrates as instruction set corresponding to PMIC driver.
Further, the configuration file of described profile management module management is binary coding or character code.
Be different from prior art, the method can boot in the model loading before kernel PMIC in first by the first setup code detecting devices of different PMIC, in kernel loads process, system calls corresponding driving again to PMIC initialization, save with a series of equipment, when pasting different PMIC, need the problem safeguarding different editions firmware.
Accompanying drawing explanation
Describe disclosed aspect below with reference to accompanying drawing, provide accompanying drawing to be non-limiting disclosed aspect in order to illustrate, label similar in accompanying drawing indicates similar elements, and wherein:
The schematic diagram that Fig. 1 adopts dtb (devicetreeblob) file to be configured plate level resource for linux operating system described in background technology;
Fig. 2 is process flow diagram described described in embodiment.
Fig. 3 is the module map described in embodiment.
Description of reference numerals:
30, electronic equipment;
310, the first initialization module;
320, profile management module;
330, the second initialization module;
340, PMIC detecting module.
Embodiment
By describe in detail technical scheme technology contents, structural attitude, realized object and effect, coordinate accompanying drawing to be explained in detail below in conjunction with specific embodiment.In the following description, numerous details is set forth for explanatory purposes providing the thorough understanding to one or more aspect.But it is evident that do not have these details also can put into practice this type of aspect.The list of some terms occurred in literary composition is provided at this:
DeviceTree: be a kind of data structure describing hardware;
DTS:devicetreesource, .dts file is a kind of DeviceTree description of text formatting, .dts file can quote (include) other .dtsi files, and in this article, amendment .dts file also can refer to the .dtsi file that amendment .dts quotes; DTC:devicetreecompiler, is compiled as the instrument of .dtb by .dts;
Particular content of the present invention is realized by illustrating in conjunction with the linux equipment that bootloader guides for the present invention in embodiment, but should understand, the present invention or its improvement also can be applicable to window or mac system, or in conjunction with other starting factor instrument or code, solve the problem that the present invention runs into, realize object of the present invention.In the present invention, said equipment is computer equipment, includes but not limited to: personal computer, server, multi-purpose computer, special purpose computer, the network equipment, embedded device, programmable device, intelligent mobile terminal, intelligent home device, wearable intelligent equipment, vehicle intelligent equipment etc.; Described storage medium, includes but not limited to: RAM, ROM, magnetic disc, tape, CD, flash memory, USB flash disk, portable hard drive, storage card, SD card, EMMC, NANDFlash, memory stick, webserver storage, network cloud storage etc.; See Fig. 2, a kind of embodiment comprises step:
See step S210, configuration .dts file, namely dts file syntax rule is pressed by the initializes configuration information of all dissimilar PMIC of required support write DTS file, also namely according to PMIC and the dts file syntax rule of required support, the initialization information of newly-increased corresponding PMIC in .dts file.Required support PMIC namely preset supported PMIC.The initializes configuration information of PMIC comprises mode of operation and equipment state, voltage, the model etc. of PMIC, and when PMIC initialization, these initializes configuration information are as the parameter of initialization directive.In certain embodiments, the status information in the initializes configuration information of PMIC has three kinds of values, namely enables (okey), forbidding (i.e. disable), empty (not number completion value).Status information in the initialization information of PMIC all in .dts file all can be set to forbidding during configuration .dts file, also it all can be set to enable.By DTC .dts file is compiled as .dtb file again, by the assigned address of .dtb burning file to the storage medium in equipment, i.e. the burning position of the .dtb file of acquiescence or setting.Configuration file is equal to .dtb file or .dts file in the present embodiment.Configuration file also can be the file of other types in other embodiments.
Should be appreciated that .dts file is for recording the initialization information of various PMIC in the present embodiment, namely PMIC initialization information also can be recorded in alternative document with character code or binary form in further embodiments, and the PMIC initialization information read when system starts in this file, for the PMIC initialization in equipment.
See step S220, after equipment energising, take out .dtb files loading in internal memory, and the information of resolving in .dtb file is dts file..dtb file can also can Leader in bootloader.Should be appreciated that, it is not necessary for resolving to dts file, it resolves to dts file is information in order to obtain in file, in the performance history of any this real realization, numerous decision specific to realizing must be carried out, to realize the specific purpose of developer, such as relevant to system and that business is relevant constraint is compatible, and these constraints can be different with realization.
Call I2C see step S230, bootloader to drive.It should be noted that, conventional I2C Interface Controller PMIC, it should be understood that at present, other interfaces also can connect PMIC and for control PMIC, in the specific implementation, according to the difference of control interface, call different interface drivers, namely differ establish a capital be call I2C drive.Bootloader obtains all relevant information of PMIC in .dts.Bootloader obtains and presets the initializes configuration information of supported PMIC in some cases, and in dts file, this category information exists with the form of node (Node) one by one.
Generate the list of the PMIC supported according to all relevant information of obtained PMIC see step S240, bootloader.
See step S250, and attempt using the first corresponding initialization directive collection to carry out hardware initialization according to PMIC list.Such as, a certain PMIC is one of described multiple default supported PMIC, according to the initializes configuration information of a certain PMIC, in conjunction with the PMIC in the first initialization directive collection initialization apparatus of corresponding a certain PMIC.
See step S251, S252, the initialization PMIC that the initializes configuration information of above-mentioned a certain PMIC cannot be correct in conjunction with the first initialization directive collection of its correspondence if use, then attempt the initializes configuration information of another PMIC.Another PMIC above-mentioned is also one of default supported PMIC, and the initializes configuration information of another PMIC above-mentioned is also recorded in configuration file.Until attempt the first initialization directive collection (see step S252, S291) of the PMIC of all pre-supports, or until the integrated merit of the first initialization directive of a certain PMIC has carried out initialization to PMIC.First initialization directive collection is made up of many instructions of initialization PMIC and (also comprises initiation parameter in instruction, the initialization directive of different PMIC is generally different), preferred its can be minimum setup code module, also can be instruction set corresponding to minimum setup code module.First setup code can be that the I2C of each PMIC device described in DTS sends broadcast packet from address in another embodiment, detects whether there is reply handshake, if there is handshake, and initialization success.
See step S260, if the integrated merit of the initialization directive of a certain PMIC has carried out initialization to hardware, then revise the dts file in internal memory, mark wherein can the initializes configuration information of PMIC in successful initialization equipment, namely can be the status information in initialization information corresponding for this PMIC in dts file be revised as to enable (okey), the initialization information of other PMIC be revised as forbidding (disable).In certain embodiments, bootloader by amended dts file transfers to kernel.In certain embodiments, the dts file in internal memory is packaged into dtb data block by bootloader again, and covers the dtb data block on original storage medium.Needing to understand, can be marked by the status information in amendment PMIC initializes configuration information at dts file, also can mark by adding other fields.
Call the second initialization directive collection see step S270, bootloader, initial configuration is carried out to it.After second initialization directive collection initialization, the PMIC in equipment presses set model work, and in certain embodiments, the second initialization directive collection i.e. this PMIC drives.Second initialization directive collection can perform when linux kernel starts, namely jump to linux kernel from bootloader to start, linux kernel loads amended dtb file when starting, if the configuration information of the PMIC in dtb file only enables a PMIC initialization information, other are all forbiddings, namely the status information of the configuration information of a PMIC is only had for enabling, the configuration information of PMIC that then linux calls according to it calls the second initialization directive collection of corresponding PMIC, completes the initialization to PMIC.It should be noted that PMIC generally by Interface Controller such as I2C, before the driving of shelf PMIC, also carrying out initialization to interfaces such as I2C, is also understandable.
Be different from prior art, the method can boot in the model loading before kernel PMIC in first by the first setup code detecting devices of different PMIC, in kernel loads process, system calls corresponding driving again to PMIC initialization, save with a series of equipment, when pasting different PMIC, need the problem safeguarding different editions firmware.
See Fig. 3, the present invention also provides a kind of equipment using said method initialization PMIC.Described equipment comprises the first setup code module, the second initial code module, profile management module, PMIC detecting module;
The present invention also provides a kind of electronic equipment, and described equipment comprises the first initialization module, the second initial module, profile management module, PMIC detecting module;
Described first initialization module is for choosing multiple initializes configuration information presetting the PMIC of one of supported PMIC part, the PMIC in its corresponding first initialization directive collection initialization apparatus described in combining;
Described second initial module is used for the initializes configuration information of PMIC in conjunction with the PMIC in the second initialization directive collection initialization apparatus of its correspondence;
Described profile management module is for reading described configuration file and obtaining the initializes configuration information presetting supported PMIC;
Described memory device detecting module runs for controlling the first initialization module, the all initialization failures of initialization directive collection corresponding to supported PMIC are preset until all, or a certain PMIC first the initialization of initialization directive collection success time, control second initialization module run.
Further, described profile management module also for after the first initialization directive collection initialization success, marks the initializes configuration information of the successful PMIC of initialization in described configuration file, and generates new configuration file and be kept in storage medium; When initialization system, read this configuration file and in conjunction with the second initialization directive collection corresponding to described a certain PMIC for the PMIC in initialization apparatus.
Further, described profile management module is also for generating new configuration file and being kept in storage medium as covering original configuration file in storage medium.
Further, PMIC connects I2C interface, described first initial module is also for choosing multiple initializes configuration information presetting the PMIC of one of supported PMIC part, before the PMIC in its corresponding first initialization directive collection initialization apparatus described, also comprise step, call I2C and drive I2C interface initialization.
Further, described profile management module management DTB file.
Further, the first initialization directive that described first initialization module uses integrates and minimizes instruction set corresponding to initial code module as PMIC, and described second initialization directive that described second initialization module uses integrates as instruction set corresponding to PMIC driver.
Further, the configuration file of described profile management module management is binary coding or character code.
Be different from prior art, the method can boot in the model loading before kernel PMIC in first by the first setup code detecting devices of different PMIC, in kernel loads process, system calls corresponding driving again to PMIC initialization, save with a series of equipment, when pasting different PMIC, need the problem safeguarding different editions firmware.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or terminal device and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or terminal device.When not more restrictions, the key element limited by statement " comprising ... " or " comprising ... ", and be not precluded within process, method, article or the terminal device comprising described key element and also there is other key element.In addition, in this article, " be greater than ", " being less than ", " exceeding " etc. be interpreted as and do not comprise this number; " more than ", " below ", " within " etc. be interpreted as and comprise this number.
Those skilled in the art should understand, the various embodiments described above can be provided as method, device or computer program.These embodiments can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.The hardware that all or part of step in the method that the various embodiments described above relate to can carry out instruction relevant by program has come, described program can be stored in the storage medium that computer equipment can read, for performing all or part of step described in the various embodiments described above method.Described storage medium, includes but not limited to: the storage of RAM, ROM, magnetic disc, tape, CD, flash memory, USB flash disk, portable hard drive, storage card, memory stick, the webserver, network cloud storage etc.
The various embodiments described above describe with reference to the process flow diagram of method, equipment (system) and computer program according to embodiment and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of computer equipment to produce a machine, making the instruction performed by the processor of computer equipment produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer equipment readable memory that works in a specific way of vectoring computer equipment, the instruction making to be stored in this computer equipment readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded on computer equipment, make to perform sequence of operations step on a computing device to produce computer implemented process, thus the instruction performed on a computing device is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Although be described the various embodiments described above; but those skilled in the art are once obtain the basic creative concept of cicada; then can make other change and amendment to these embodiments; so the foregoing is only embodiments of the invention; not thereby scope of patent protection of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included within scope of patent protection of the present invention.
Claims (17)
1. a PMIC initial method, is characterized in that, presets in the initializes configuration information write configuration file of supported PMIC by multiple;
Described configuration file is burnt in the storage medium of write device, or described configuration file is compiled into System guides file, with in boot files write device storage medium;
After equipment energising, read described configuration file and obtain the initializes configuration information presetting supported PMIC;
Choose multiple initializes configuration information presetting the PMIC of one of supported PMIC part, in conjunction with the PMIC in its corresponding first initialization directive collection initialization apparatus described, described first initialization directive collection is the set of the instruction of corresponding initialization PMIC;
Execution result according to the first initialization directive collection judges whether to run succeeded, if unsuccessful, attempt the PMIC in the initialization directive collection initialization apparatus of initializes configuration information combination another PMIC corresponding of another PMIC, another PMIC is one of described multiple default supported PMIC, the initialization directive collection presetting supported PMIC corresponding until all performs failure, or the first initialization directive collection of a certain PMIC runs succeeded;
If the first initialization directive collection runs succeeded, by the initializes configuration information of described a certain PMIC in conjunction with the PMIC in the second initialization directive collection initialization apparatus of its correspondence.
2. a kind of PMIC initial method as claimed in claim 1, it is characterized in that, if the first initialization directive collection runs succeeded, mark the initializes configuration information of the described a certain PMIC in described configuration file, and generate new configuration file and be kept in storage medium;
When initialization system, read information relevant to described a certain PMIC in this configuration file and and in conjunction with the second initialization directive collection corresponding to described a certain PMIC for the PMIC in initialization apparatus.
3. a kind of PMIC initial method as claimed in claim 2, is characterized in that, generates new configuration file and is kept in storage medium as covering original configuration file in storage medium.
4. a kind of PMIC initial method as claimed in claim 1, it is characterized in that, if the first initialization directive collection runs succeeded, thereafter, also comprise step, mark the initializes configuration information of described a certain PMIC, and by the initializes configuration information of this mark in conjunction with the PMIC in the second initialization directive collection initialization apparatus of its correspondence.
5. a kind of PMIC initial method as claimed in claim 1, it is characterized in that, by I2C Interface Controller PMIC, choosing multiple initializes configuration information presetting the PMIC of one of supported PMIC part, before the PMIC in its corresponding first initialization directive collection initialization apparatus described, also comprise step, call I2C and drive I2C interface initialization.
6. a kind of PMIC initial method as claimed in claim 1, is characterized in that, configuration file is binary coding or character code.
7. a kind of PMIC initial method as claimed in claim 1, it is characterized in that, choosing multiple initializes configuration information presetting the PMIC of one of supported PMIC part, before the PMIC in its corresponding first initialization directive collection initialization apparatus described, also comprise step: the IO state of the memory device in configuration device.
8. a kind of PMIC initial method as claimed in claim 1, is characterized in that, described configuration file is DTB file, and DTB file is compiled by DTS file and obtains, and described initializes configuration information follows the organizational form of DTS file;
In DTS file, add the initializes configuration information presetting supported PMIC, and DTS compiling is packaged into DTB file, and DTB file is written in the storage medium of equipment;
After energising, bootloader reads DTB file, and decompiling is DTS file, and obtains the initializes configuration information presetting supported PMIC;
Bootlaoder chooses multiple initializes configuration information presetting the PMIC of one of supported PMIC part, in conjunction with the PMIC in its corresponding first initialization directive collection initialization apparatus described, described first initialization directive collection is the set of the instruction of corresponding initialization PMIC;
Bootlaoder judges whether initialization success according to the execution result of the first initialization directive collection, if unsuccessful, attempt the PMIC in the initialization directive collection initialization apparatus of initializes configuration information combination another PMIC corresponding of another PMIC, another PMIC is one of described multiple default supported PMIC, the all initialization failures of initialization directive collection corresponding to supported PMIC are preset until all, or the first initialization directive collection initialization success of a certain PMIC;
If after the first initialization directive runs succeeded, bootloader by the initializes configuration information of described a certain PMIC in conjunction with the PMIC in the second initialization directive collection initialization apparatus of its correspondence.
9. a kind of PMIC initial method as claimed in claim 8, is characterized in that, if after the first initialization directive runs succeeded, also comprise step:
Mark the initializes configuration information of described a certain PMIC, and by the initializes configuration information of this mark in conjunction with the PMIC in the second initialization directive collection initialization apparatus of its correspondence.
10. a kind of PMIC initial method as claimed in claim 1, is characterized in that, described first initialization directive integrates and minimizes instruction set corresponding to initial code module as PMIC, and described second initialization directive integrates as instruction set corresponding to PMIC driver.
11. 1 kinds of electronic equipments, is characterized in that, described equipment comprises the first initialization module, the second initial module, profile management module, PMIC detecting module;
Described first initialization module is for choosing multiple initializes configuration information presetting the PMIC of one of supported PMIC part, the PMIC in its corresponding first initialization directive collection initialization apparatus described in combining; And judge whether the first initialization directive collection runs succeeded;
Described second initial module is used for the initializes configuration information of PMIC in conjunction with the PMIC in the second initialization directive collection initialization apparatus of its correspondence;
Described profile management module is for reading described configuration file and obtaining the initializes configuration information presetting supported PMIC;
Described memory device detecting module runs for controlling the first initialization module, the initialization directive collection presetting supported PMIC corresponding until all performs failure, or the first initialization directive collection of a certain PMIC is when running succeeded, controls the second initialization module and run.
12. a kind of electronic equipments as claimed in claim 11, it is characterized in that, described profile management module is also for after the first initialization directive collection runs succeeded, mark the initializes configuration information of the successful PMIC of initialization in described configuration file, and generate new configuration file and be kept in storage medium; When initialization system, read this configuration file and in conjunction with the second initialization directive collection corresponding to described a certain PMIC for the PMIC in initialization apparatus.
13. a kind of electronic equipments as claimed in claim 12, is characterized in that, described profile management module is also for generating new configuration file and being kept in storage medium as covering original configuration file in storage medium.
14. a kind of electronic equipments as claimed in claim 11, it is characterized in that, PMIC connects I2C interface, described first initial module is also for choosing multiple initializes configuration information presetting the PMIC of one of supported PMIC part, before the PMIC in its corresponding first initialization directive collection initialization apparatus described, also comprise step, call I2C and drive I2C interface initialization.
15. a kind of electronic equipments as claimed in claim 11, is characterized in that, described profile management module management DTB file.
16. a kind of electronic equipments as claimed in claim 11, it is characterized in that, the first initialization directive that described first initialization module uses integrates and minimizes instruction set corresponding to initial code module as PMIC, and described second initialization directive that described second initialization module uses integrates as instruction set corresponding to PMIC driver.
17. a kind of electronic equipments as claimed in claim 11, is characterized in that, the configuration file of described profile management module management is binary coding or character code.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510555601.3A CN105159714B (en) | 2015-09-02 | 2015-09-02 | A kind of PMIC initial method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510555601.3A CN105159714B (en) | 2015-09-02 | 2015-09-02 | A kind of PMIC initial method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105159714A true CN105159714A (en) | 2015-12-16 |
CN105159714B CN105159714B (en) | 2019-06-21 |
Family
ID=54800578
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510555601.3A Active CN105159714B (en) | 2015-09-02 | 2015-09-02 | A kind of PMIC initial method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105159714B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108958809A (en) * | 2017-05-24 | 2018-12-07 | 龙芯中科技术有限公司 | Method, apparatus, electronic equipment and the storage medium of equipment initialization |
CN109857468A (en) * | 2019-01-04 | 2019-06-07 | 烽火通信科技股份有限公司 | A kind of method and system for supporting more DTB in single linux system mirror image |
CN110502283A (en) * | 2019-08-19 | 2019-11-26 | 深圳大趋智能科技有限公司 | A kind of product peripheral hardware compatibility method and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070150716A1 (en) * | 2005-12-27 | 2007-06-28 | Hon Hai Precision Industry Co., Ltd. | System and method for selecting boot devices for a computer via hotkeys |
CN102184117A (en) * | 2011-06-03 | 2011-09-14 | 展讯通信(上海)有限公司 | Method and device for starting system on different Nandflash |
CN104503722A (en) * | 2014-12-19 | 2015-04-08 | 广东欧珀移动通信有限公司 | Display screen compatible method and device and mobile terminal |
-
2015
- 2015-09-02 CN CN201510555601.3A patent/CN105159714B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070150716A1 (en) * | 2005-12-27 | 2007-06-28 | Hon Hai Precision Industry Co., Ltd. | System and method for selecting boot devices for a computer via hotkeys |
CN102184117A (en) * | 2011-06-03 | 2011-09-14 | 展讯通信(上海)有限公司 | Method and device for starting system on different Nandflash |
CN104503722A (en) * | 2014-12-19 | 2015-04-08 | 广东欧珀移动通信有限公司 | Display screen compatible method and device and mobile terminal |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108958809A (en) * | 2017-05-24 | 2018-12-07 | 龙芯中科技术有限公司 | Method, apparatus, electronic equipment and the storage medium of equipment initialization |
CN109857468A (en) * | 2019-01-04 | 2019-06-07 | 烽火通信科技股份有限公司 | A kind of method and system for supporting more DTB in single linux system mirror image |
CN110502283A (en) * | 2019-08-19 | 2019-11-26 | 深圳大趋智能科技有限公司 | A kind of product peripheral hardware compatibility method and system |
Also Published As
Publication number | Publication date |
---|---|
CN105159714B (en) | 2019-06-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105159716A (en) | Memory device initialization method and electronic equipment | |
US8484631B2 (en) | Supporting hardware configuration changes in a UEFI firmware component | |
CN101110039B (en) | Terminal unit self-installing and self-starting system and method thereof | |
CN107291510B (en) | Rapid starting method for Linux vehicle-mounted information system | |
CN103412769A (en) | External card parameter configuration method, equipment and system | |
CN105579953A (en) | Flexible bootstrap code architecture | |
CN102436383A (en) | Firmware program processing method and equipment | |
CN102141923B (en) | Memory file system loading method and device | |
CN108121556B (en) | eMMC compatible upgrading method, intelligent terminal and readable storage medium | |
CN105824678A (en) | Method and device for installing operating system | |
CN105704188A (en) | Deployment method and apparatus of applications and services | |
CN105302663A (en) | Mirror image starting method and terminal equipment | |
CN103729211A (en) | Operating system recovery method and device and terminal equipment | |
CN104636165A (en) | Mobile equipment starting method and device | |
CN105159714A (en) | PMIC initialization method and electronic equipment | |
CN105677445A (en) | Application installation managing method, device and intelligent terminal | |
CN112912743B (en) | Calculation force control method, device, equipment and storage medium | |
CN104484211B (en) | The method and device of shared image file | |
CN117891766B (en) | Driving method, device, equipment and storage medium compatible with serial communication module | |
CN104765631A (en) | Restoration method and device for application program of mobile terminal | |
CN116719724B (en) | EMMC multi-platform testing method and device and electronic equipment | |
CN103678214A (en) | Method for redirecting system console and display equipment | |
CN105373384A (en) | Software development method and apparatus | |
CN108052337A (en) | A kind of firmware upgrade method and device of eMMC production tools | |
CN115617419A (en) | Intelligent loading method, device, equipment and medium for driving of Internet of things operating system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: 350003 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China Patentee after: Ruixin Microelectronics Co., Ltd Address before: 350003 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China Patentee before: Fuzhou Rockchips Electronics Co.,Ltd. |
|
CP01 | Change in the name or title of a patent holder |